summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2019-04-28 21:40:16 -0400
committerYury German <blueknight@gentoo.org>2019-04-28 21:40:16 -0400
commitf74389cedb2f722a6247735c19c986a63977c8c8 (patch)
treeb1e9522d59551f05a8c85be9460d508909eaf1e0 /themes/twentynineteen/sass/mixins/_utilities.scss
parentUpdating the themes (diff)
downloadblogs-gentoo-f74389cedb2f722a6247735c19c986a63977c8c8.tar.gz
blogs-gentoo-f74389cedb2f722a6247735c19c986a63977c8c8.tar.bz2
blogs-gentoo-f74389cedb2f722a6247735c19c986a63977c8c8.zip
Adding Twentyninetten
Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'themes/twentynineteen/sass/mixins/_utilities.scss')
-rw-r--r--themes/twentynineteen/sass/mixins/_utilities.scss51
1 files changed, 51 insertions, 0 deletions
diff --git a/themes/twentynineteen/sass/mixins/_utilities.scss b/themes/twentynineteen/sass/mixins/_utilities.scss
new file mode 100644
index 00000000..c753fe27
--- /dev/null
+++ b/themes/twentynineteen/sass/mixins/_utilities.scss
@@ -0,0 +1,51 @@
+
+@mixin media( $res ) {
+ @if mobile == $res {
+ @media only screen and (min-width: $mobile_width) {
+ @content;
+ }
+ }
+
+ @if tablet == $res {
+ @media only screen and (min-width: $tablet_width) {
+ @content;
+ }
+ }
+
+ @if desktop == $res {
+ @media only screen and (min-width: $desktop_width) {
+ @content;
+ }
+ }
+
+ @if wide == $res {
+ @media only screen and (min-width: $wide_width) {
+ @content;
+ }
+ }
+}
+
+@mixin link-transition( $attr: color ) {
+ transition: $attr $link_transition ease-in-out;
+}
+
+@mixin button-transition() {
+ transition: background $button_transition ease-in-out;
+}
+
+@mixin button-all-transition() {
+ transition: all $button_transition ease-in-out;
+}
+
+@mixin background-transition() {
+ transition: background $background_transition ease-in-out;
+}
+
+@mixin selection {
+ ::-moz-selection {
+ @content;
+ }
+ ::selection {
+ @content;
+ }
+}