From af8e703eb180e46ca65ff0c165a21f2261896548 Mon Sep 17 00:00:00 2001 From: pmikus Date: Wed, 5 Oct 2022 08:58:31 +0200 Subject: fix(cdash): Rename Signed-off-by: pmikus Change-Id: Ia6dff2674a28b42ebfbe91230587f1e175ae1137 --- .../static/sass/bootstrap/utilities/_api.scss | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 csit.infra.dash/app/cdash/static/sass/bootstrap/utilities/_api.scss (limited to 'csit.infra.dash/app/cdash/static/sass/bootstrap/utilities/_api.scss') diff --git a/csit.infra.dash/app/cdash/static/sass/bootstrap/utilities/_api.scss b/csit.infra.dash/app/cdash/static/sass/bootstrap/utilities/_api.scss new file mode 100644 index 0000000000..62e1d398e3 --- /dev/null +++ b/csit.infra.dash/app/cdash/static/sass/bootstrap/utilities/_api.scss @@ -0,0 +1,47 @@ +// Loop over each breakpoint +@each $breakpoint in map-keys($grid-breakpoints) { + + // Generate media query if needed + @include media-breakpoint-up($breakpoint) { + $infix: breakpoint-infix($breakpoint, $grid-breakpoints); + + // Loop over each utility property + @each $key, $utility in $utilities { + // The utility can be disabled with `false`, thus check if the utility is a map first + // Only proceed if responsive media queries are enabled or if it's the base media query + @if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") { + @include generate-utility($utility, $infix); + } + } + } +} + +// RFS rescaling +@media (min-width: $rfs-mq-value) { + @each $breakpoint in map-keys($grid-breakpoints) { + $infix: breakpoint-infix($breakpoint, $grid-breakpoints); + + @if (map-get($grid-breakpoints, $breakpoint) < $rfs-breakpoint) { + // Loop over each utility property + @each $key, $utility in $utilities { + // The utility can be disabled with `false`, thus check if the utility is a map first + // Only proceed if responsive media queries are enabled or if it's the base media query + @if type-of($utility) == "map" and map-get($utility, rfs) and (map-get($utility, responsive) or $infix == "") { + @include generate-utility($utility, $infix, true); + } + } + } + } +} + + +// Print utilities +@media print { + @each $key, $utility in $utilities { + // The utility can be disabled with `false`, thus check if the utility is a map first + // Then check if the utility needs print styles + @if type-of($utility) == "map" and map-get($utility, print) == true { + @include generate-utility($utility, "-print"); + } + } +} -- cgit 1.2.3-korg