adding z-index mixin and implimenting

This commit is contained in:
Alex Windett 2016-10-27 17:01:34 +01:00
parent 5eb2b15227
commit c6b6e362ab
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,5 @@
@import '../../util/mixins.css';
.tab {
display: inline;
@ -20,7 +22,7 @@
opacity: 0;
position: fixed;
width: 1px;
z-index: -1;
@add-mixin move-z -1;
}
& .panel {
@ -49,7 +51,7 @@
background: white;
border-bottom-width: 0;
padding-bottom: remCalc(11);
z-index: 1;
@add-mixin move-z 1;
}
& .input[type="radio"]:checked ~ .panel {

View File

@ -16,3 +16,8 @@
@mixin-content;
}
}
@define-mixin move-z $amount:0 {
position: relative;
z-index: $amount;
}