From 86bb29b4d378314bd906248e08198c1952d2f0a4 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 16 Sep 2024 17:12:15 +0100 Subject: Upgrade to bootstrap 5.3 --- pyblackbird_cc/static/scss/_grid.scss | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pyblackbird_cc/static/scss/_grid.scss (limited to 'pyblackbird_cc/static/scss/_grid.scss') diff --git a/pyblackbird_cc/static/scss/_grid.scss b/pyblackbird_cc/static/scss/_grid.scss new file mode 100644 index 0000000..048f800 --- /dev/null +++ b/pyblackbird_cc/static/scss/_grid.scss @@ -0,0 +1,39 @@ +// Row +// +// Rows contain your columns. + +:root { + @each $name, $value in $grid-breakpoints { + --#{$prefix}breakpoint-#{$name}: #{$value}; + } +} + +@if $enable-grid-classes { + .row { + @include make-row(); + + > * { + @include make-col-ready(); + } + } +} + +@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}); + + @include make-cssgrid(); + } +} + + +// Columns +// +// Common styles for small and large grid columns + +@if $enable-grid-classes { + @include make-grid-columns(); +} -- cgit v1.2.3