summaryrefslogtreecommitdiffstats
path: root/assets/sass/_mixins.scss
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-11 23:38:02 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-11 23:38:09 +0200
commit7f46ad58ba76f96dc99eb99fd631e8dfbd9da979 (patch)
treeb79a70619ae2d79fc1e933590aa3e85d6edd09ad /assets/sass/_mixins.scss
parent965129144fc528482279cf91f64797fd651050f4 (diff)
downloadgohugo-theme-ed-7f46ad58ba76f96dc99eb99fd631e8dfbd9da979.tar.gz
Amend scss mixins
Diffstat (limited to 'assets/sass/_mixins.scss')
-rw-r--r--assets/sass/_mixins.scss33
1 files changed, 33 insertions, 0 deletions
diff --git a/assets/sass/_mixins.scss b/assets/sass/_mixins.scss
index 6261654..2c0ca95 100644
--- a/assets/sass/_mixins.scss
+++ b/assets/sass/_mixins.scss
@@ -40,6 +40,39 @@ $break-desktop: 1600px;
}
}
+// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text-size-adjust
+// Controls the text inflation algorithm used on some smartphones and tablets.
+// Other browsers will ignore this property.
+//
+// Usage: @include text-size-adjust(none);
+
+@mixin text-size-adjust($value) {
+ -webkit-text-size-adjust: $value;
+ -moz-text-size-adjust: $value;
+ -ms-text-size-adjust: $value;
+ text-size-adjust: $value;
+}
+
+// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Transform
+// Usage: @include transform(
+// rotate(90deg),
+// scale(0.5),
+// // ... add more transforms if you need
+// );
+//
+
+@mixin transform($transforms...) {
+ // combine the passed transforms into a space separated list
+ $transform-list: join($transforms, null, space);
+
+ // print out the transforms
+ -webkit-transform: $transform-list;
+ -moz-transform: $transform-list;
+ -ms-transform: $transform-list;
+ -o-transform: $transform-list;
+ transform: $transform-list;
+}
+
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Transitions
// Usage: @include transition(color .3s ease);