aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/sass/_mixins.scss
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2017-11-03 16:13:59 +0100
committerMarius Halden <marius.h@lden.org>2017-11-03 16:13:59 +0100
commit42d874db498d0fabae92d0c87acf99054d92391b (patch)
treed0cf5afdee3d244c4e5da6fe1ab9acba620634df /web/cobrands/sass/_mixins.scss
parent19a7c5dda85a47a68040c742791e9cd9d3e52be6 (diff)
parentdc7613329c275cd158fdde8faf1c0e301f5b7202 (diff)
Merge tag 'v2.2' into fiksgatami-dev
Diffstat (limited to 'web/cobrands/sass/_mixins.scss')
-rw-r--r--web/cobrands/sass/_mixins.scss34
1 files changed, 34 insertions, 0 deletions
diff --git a/web/cobrands/sass/_mixins.scss b/web/cobrands/sass/_mixins.scss
index 8b6114aec..08e36e86a 100644
--- a/web/cobrands/sass/_mixins.scss
+++ b/web/cobrands/sass/_mixins.scss
@@ -172,6 +172,40 @@ $right: right;
align-items: $alignment;
}
+@mixin flex-direction($direction) {
+ @if ($direction == column) {
+ -webkit-box-orient: vertical;
+ } @elseif ($direction == row) {
+ -webkit-box-orient: horizontal;
+ }
+ -moz-flex-direction: $direction;
+ -ms-flex-direction: $direction;
+ -webkit-flex-direction: $direction;
+ flex-direction: $direction;
+}
+
+@mixin justify-content($alignment) {
+ -webkit-justify-content: $alignment;
+ -moz-justify-content: $alignment;
+ -ms-justify-content: $alignment;
+ justify-content: $alignment;
+}
+
+@mixin flex-order($order) {
+ // 2009 syntax
+ -webkit-box-ordinal-group: $order;
+ -moz-box-ordinal-group: $order;
+
+ // 2011 syntax https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-order
+ -ms-flex-order: $order;
+ flex-order: $order;
+
+ // Modern syntax
+ -webkit-order: $order;
+ -ms-order: $order;
+ order: $order;
+}
+
@mixin high-dpi-background-image($path) {
background-image: url("#{$path}.png");