2013-12-08 12:52:51 +08:00
|
|
|
// Row
|
|
|
|
//
|
2019-07-27 14:30:39 +08:00
|
|
|
// Rows contain your columns.
|
2013-12-08 12:52:51 +08:00
|
|
|
|
2023-01-10 03:41:32 +08:00
|
|
|
:root {
|
|
|
|
@each $name, $value in $grid-breakpoints {
|
|
|
|
--#{$prefix}breakpoint-#{$name}: #{$value};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-24 13:13:58 +08:00
|
|
|
@if $enable-grid-classes {
|
|
|
|
.row {
|
|
|
|
@include make-row();
|
2019-09-28 22:13:36 +08:00
|
|
|
|
|
|
|
> * {
|
|
|
|
@include make-col-ready();
|
|
|
|
}
|
2015-08-24 13:13:58 +08:00
|
|
|
}
|
2019-09-28 22:13:36 +08:00
|
|
|
}
|
|
|
|
|
2021-06-23 10:51:16 +08:00
|
|
|
@if $enable-cssgrid {
|
|
|
|
.grid {
|
|
|
|
display: grid;
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-14 01:13:09 +08:00
|
|
|
grid-template-rows: repeat(var(--#{$prefix}rows, 1), 1fr);
|
|
|
|
grid-template-columns: repeat(var(--#{$prefix}columns, #{$grid-columns}), 1fr);
|
|
|
|
gap: var(--#{$prefix}gap, #{$grid-gutter-width});
|
2021-06-23 10:51:16 +08:00
|
|
|
|
|
|
|
@include make-cssgrid();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-27 14:59:51 +08:00
|
|
|
|
2013-12-08 12:52:51 +08:00
|
|
|
// Columns
|
|
|
|
//
|
2013-04-27 14:59:51 +08:00
|
|
|
// Common styles for small and large grid columns
|
2013-12-08 12:52:51 +08:00
|
|
|
|
2015-08-24 13:13:58 +08:00
|
|
|
@if $enable-grid-classes {
|
|
|
|
@include make-grid-columns();
|
|
|
|
}
|