Flex Grid
Configurable row and column layout component.
Component Properties
Text / Background Color Theme [COLOR_THEME]
Using the Sass color-contrast()
function, the text color is automatically determined based on the defined $color-contrast-dark
and $color-contrast-light
text color variables for the contrasting color for a particular background-color
. Available classes are:
Section Modifier [MODIFIER]
Optionally add an overall modifier class to the component.
Section Vertical Spacing [SPACING]
Optional: Adds top and bottom padding to section.
none
- No spacing applied to element
.sec-spacing
- Adds top and bottom spacing to section
.sec-spacing-sm
- Adds a small amount top and bottom spacing to section
.sec-spacing-lg
- Adds a large amount top and bottom spacing to section
Container Modifier [CONTAINER]
Use .container-fluid
for a full width container, spanning the entire width of the viewport
.container
- Standard width section contrainer. Container width snaps to width at breakpoints.
.container-xxl
- Standard width section contrainer. Container has fluid until it reaches it's maximum width
.container-fluid
- Full width section contrainer. Container runs from edge to egde of the viewport
Row Justification [ROW_JUSTIFY]
Use justify-content
utilities on flexbox containers to change the alignment of flex items on the main x-axis.
.justify-content-start
- Pack columns from the left
.justify-content-end
- Pack columns from the right
.justify-content-center
- Pack columns around the center.
.justify-content-between
- Distribute columns evenly. The first item is flush with the start, the last is flush with the end.
.justify-content-around
- Distribute columns evenly. Start and end gaps are half the size of the space between each item.
.justify-content-evenly
- Distribute columns evenly. Start, in-between, and end gaps have equal sizes.
Row Alignment [ROW_ALIGN]
Use align-items
utilities on flexbox containers to change the alignment of flex items on the cross y-axis.
.align-items-start
- Columns are packed flush to each other toward the start edge of the row in the appropriate axis.
.align-items-end
- Columns are packed flush to each other toward the end edge of the row in the appropriate axis.
.align-items-center
- Columns are vertically aligned to the center of the row.
.align-items-stretch
- All Columns are stretched vertically to match the tallest column in the row.
Column widths [COL_WIDTH_MD] [COL_WIDTH_XL]
Set the width of the content column for desktop vieports.
.col-md-[1-12]
[COL_WIDTH_MD]
Sets column width at the$md
breakpoint.col-xl-[1-12]
[COL_WIDTH_XL]
Sets column width at the$xl
breakpoint.col-break
- Force next columns to break to new line through all breakpoints
Grid Spacing [GRID_GAP_X] [GRID_GAP_Y]
Gutters are the padding between your columns, used to responsively space and align content in the grid system.
none
- Grid follows default spacing.
.gx-[0-5]
[GRID_GAP_X]
Provides horizontal gap between columns..gy-[0-5]
[GRID_GAP_Y]
Provides vertical gap between columns.
Column Modifier [COL_MODIFIER]
Optionally add a modifier class to the column.