0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/scss/_grid.scss

34 lines
575 B
SCSS
Raw Normal View History

// Row
//
2019-07-27 08:30:39 +02:00
// Rows contain your columns.
@if $enable-grid-classes {
.row {
@include make-row();
2019-09-28 16:13:36 +02:00
> * {
@include make-col-ready();
}
}
2019-09-28 16:13:36 +02:00
}
2021-06-23 04:51:16 +02:00
@if $enable-cssgrid {
.grid {
display: grid;
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 04:51:16 +02:00
@include make-cssgrid();
}
}
// Columns
//
// Common styles for small and large grid columns
@if $enable-grid-classes {
@include make-grid-columns();
}