mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 20:54:22 +01:00
43 lines
842 B
SCSS
43 lines
842 B
SCSS
@use "mixins/grid";
|
|
@use "variables";
|
|
|
|
// Row
|
|
//
|
|
// Rows contain your columns.
|
|
|
|
:root {
|
|
@each $name, $value in variables.$grid-breakpoints {
|
|
--#{variables.$prefix}breakpoint-#{$name}: #{$value};
|
|
}
|
|
}
|
|
|
|
@if variables.$enable-grid-classes {
|
|
.row {
|
|
@include grid.make-row();
|
|
|
|
> * {
|
|
@include grid.make-col-ready();
|
|
}
|
|
}
|
|
}
|
|
|
|
@if variables.$enable-cssgrid {
|
|
.grid {
|
|
display: grid;
|
|
grid-template-rows: repeat(var(--#{variables.$prefix}rows, 1), 1fr);
|
|
grid-template-columns: repeat(var(--#{variables.$prefix}columns, #{variables.$grid-columns}), 1fr);
|
|
gap: var(--#{variables.$prefix}gap, #{variables.$grid-gutter-width});
|
|
|
|
@include grid.make-cssgrid();
|
|
}
|
|
}
|
|
|
|
|
|
// Columns
|
|
//
|
|
// Common styles for small and large grid columns
|
|
|
|
@if variables.$enable-grid-classes {
|
|
@include grid.make-grid-columns();
|
|
}
|