Showing
1 changed file
with
5 additions
and
9 deletions
1 | .side-nav { | 1 | .side-nav { |
2 | - // display: none; | ||
3 | background: #fff; | 2 | background: #fff; |
4 | position: fixed; | 3 | position: fixed; |
5 | top: 0; | 4 | top: 0; |
6 | - right: 100rem / $pxConvertRem; | 5 | + right: 640rem / $pxConvertRem; |
7 | bottom: 0; | 6 | bottom: 0; |
8 | left: 0; | 7 | left: 0; |
9 | - z-index: 1; | 8 | + z-index: -1; |
10 | overflow: hidden; | 9 | overflow: hidden; |
11 | - @include transform(translateX(-540rem / $pxConvertRem)); | ||
12 | - @include transition(all .3s ease-out); | 10 | + @include transition(right .3s); |
13 | 11 | ||
14 | ul { | 12 | ul { |
15 | background: #f0f0f0; | 13 | background: #f0f0f0; |
@@ -107,8 +105,8 @@ | @@ -107,8 +105,8 @@ | ||
107 | } | 105 | } |
108 | 106 | ||
109 | .side-nav.on { | 107 | .side-nav.on { |
110 | - // display: block; | ||
111 | - @include transform(translateX(0rem / $pxConvertRem)); | 108 | + right: 100rem / $pxConvertRem; |
109 | + z-index: 3; | ||
112 | } | 110 | } |
113 | 111 | ||
114 | .sub-nav { | 112 | .sub-nav { |
@@ -117,10 +115,8 @@ | @@ -117,10 +115,8 @@ | ||
117 | bottom: 0; | 115 | bottom: 0; |
118 | top: 0; | 116 | top: 0; |
119 | left: 0; | 117 | left: 0; |
120 | - // right: 100rem / $pxConvertRem; | ||
121 | width: 100%; | 118 | width: 100%; |
122 | background: #fff !important; | 119 | background: #fff !important; |
123 | - // z-index: 2; | ||
124 | 120 | ||
125 | @include transform(translateX(540rem / $pxConvertRem)); | 121 | @include transform(translateX(540rem / $pxConvertRem)); |
126 | @include transition(transform 0.3s); | 122 | @include transition(transform 0.3s); |
-
Please register or login to post a comment