hswro_org/_sass/bootstrap/_grid.scss

40 lines
683 B
SCSS
Raw Permalink Normal View History

2023-11-26 06:34:29 +00:00
// Row
2018-12-09 07:21:01 +00:00
//
2023-11-26 06:34:29 +00:00
// Rows contain your columns.
2021-10-06 02:09:23 +00:00
2023-11-26 06:34:29 +00:00
:root {
@each $name, $value in $grid-breakpoints {
--#{$prefix}breakpoint-#{$name}: #{$value};
2020-08-23 10:01:06 +00:00
}
2018-12-09 07:21:01 +00:00
}
@if $enable-grid-classes {
.row {
@include make-row();
2023-11-26 06:34:29 +00:00
> * {
@include make-col-ready();
}
2018-12-09 07:21:01 +00:00
}
2023-11-26 06:34:29 +00:00
}
2018-12-09 07:21:01 +00:00
2023-11-26 06:34:29 +00: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});
2018-12-09 07:21:01 +00:00
2023-11-26 06:34:29 +00:00
@include make-cssgrid();
2018-12-09 07:21:01 +00:00
}
}
2023-11-26 06:34:29 +00:00
2018-12-09 07:21:01 +00:00
// Columns
//
// Common styles for small and large grid columns
@if $enable-grid-classes {
@include make-grid-columns();
}