1
0
mirror of https://github.com/yldio/copilot.git synced 2024-09-21 05:43:52 +03:00

adding positional arguement to mixin with default setting or relative

This commit is contained in:
Alex Windett 2016-10-27 17:05:01 +01:00
parent c6b6e362ab
commit 4c03f55498
2 changed files with 3 additions and 4 deletions

View File

@ -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 {

View File

@ -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;
}