-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-157: Support Frontera Homepage Banner CSS
- submodule repo commit GH-35 - support short paths for loading `site_shared` css source files - support endless width sections and banner sections - add rgb color partials as needed - add centering mixins/extends—the first "tools" stylesheet!
- Loading branch information
1 parent
958b024
commit b2dc173
Showing
5 changed files
with
125 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
taccsite_cms/static/site_shared/css/src/_imports/tools/x-center.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
Center | ||
Styles that allow centering for specific contexts. | ||
Caveat: Only generic solutions with limited side effects are supported. See "Reference" section for more solutions. | ||
Reference: | ||
- [Centering in CSS: A Complete Guide](https://css-tricks.com/centering-css-complete-guide/) | ||
.x-center--horz-inline - Horz. align any num of inline el's | ||
.x-center--horz-block - Horz. align any num of block el's | ||
.x-center--horz-block-multiple-children - Horz. align multiple block el's | ||
.x-center--vert-inline-multiline--flex - Vert. align multiple inline el's: Flex Method | ||
.x-center--both--flex - Vert. & Horz. align any el's | ||
Styleguide Tools.ExtendsAndMixins.Center | ||
*/ | ||
|
||
/* Horizontal */ | ||
|
||
/* Horizontal: Inline */ | ||
.x-center--horz-inline { | ||
text-align: center; | ||
} | ||
|
||
/* Horizontal: Block */ | ||
.x-center--horz-block { | ||
margin: 0 auto; | ||
} | ||
|
||
/* Horizontal: Block: Multiple Children */ | ||
.x-center--horz-block-multiple-children { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
} | ||
|
||
/* Vertical */ | ||
|
||
/* Vertical: Inline: Multiple Lines - via Flexbox */ | ||
.x-center--vert-inline-multiline--flex { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
|
||
/* Both */ | ||
|
||
/* Both: Any - via Flexbox */ | ||
.x-center--both--flex { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} |
Submodule taccsite_custom
updated
from 767c3d to faeebe