Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uicardiodev/hugo-sodium-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scss/utilities/_sizing.scss')
-rwxr-xr-xscss/utilities/_sizing.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/scss/utilities/_sizing.scss b/scss/utilities/_sizing.scss
new file mode 100755
index 0000000..e95a4db
--- /dev/null
+++ b/scss/utilities/_sizing.scss
@@ -0,0 +1,12 @@
+// stylelint-disable declaration-no-important
+
+// Width and height
+
+@each $prop, $abbrev in (width: w, height: h) {
+ @each $size, $length in $sizes {
+ .#{$abbrev}-#{$size} { #{$prop}: $length !important; }
+ }
+}
+
+.mw-100 { max-width: 100% !important; }
+.mh-100 { max-height: 100% !important; }