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/helpers/_ratio.scss | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 csit.infra.dash/app/cdash/static/sass/bootstrap/helpers/_ratio.scss (limited to 'csit.infra.dash/app/cdash/static/sass/bootstrap/helpers/_ratio.scss') diff --git a/csit.infra.dash/app/cdash/static/sass/bootstrap/helpers/_ratio.scss b/csit.infra.dash/app/cdash/static/sass/bootstrap/helpers/_ratio.scss new file mode 100644 index 0000000000..b6a7654c52 --- /dev/null +++ b/csit.infra.dash/app/cdash/static/sass/bootstrap/helpers/_ratio.scss @@ -0,0 +1,26 @@ +// Credit: Nicolas Gallagher and SUIT CSS. + +.ratio { + position: relative; + width: 100%; + + &::before { + display: block; + padding-top: var(--#{$prefix}aspect-ratio); + content: ""; + } + + > * { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } +} + +@each $key, $ratio in $aspect-ratios { + .ratio-#{$key} { + --#{$prefix}aspect-ratio: #{$ratio}; + } +} -- cgit 1.2.3-korg