From 4c03f55498a7103111c960435f4b706ea461873a Mon Sep 17 00:00:00 2001 From: Alex Windett Date: Thu, 27 Oct 2016 17:05:01 +0100 Subject: [PATCH] adding positional arguement to mixin with default setting or relative --- ui/src/components/tab/style.css | 3 +-- ui/src/util/mixins.css | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/src/components/tab/style.css b/ui/src/components/tab/style.css index 6a70a80b..a699a6b7 100644 --- a/ui/src/components/tab/style.css +++ b/ui/src/components/tab/style.css @@ -20,9 +20,8 @@ clip: rect(0 0 0 0); height: 1px; opacity: 0; - position: fixed; width: 1px; - @add-mixin move-z -1; + @add-mixin move-z -1, fixed; } & .panel { diff --git a/ui/src/util/mixins.css b/ui/src/util/mixins.css index 6c63fd38..51bcb34d 100644 --- a/ui/src/util/mixins.css +++ b/ui/src/util/mixins.css @@ -17,7 +17,7 @@ } } -@define-mixin move-z $amount:0 { - position: relative; +@define-mixin move-z $amount:0, $position:relative { + position: $position; z-index: $amount; }