Authored by ccbikai

侧边栏 划出

@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 position: relative; 10 position: relative;
11 z-index: 2; 11 z-index: 2;
12 background: #f0f0f0; 12 background: #f0f0f0;
13 - @include transition(transform .3s ease-out); 13 + @include transition(transform .3s);
14 } 14 }
15 15
16 .mobile-wrap.menu-open { 16 .mobile-wrap.menu-open {
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 bottom: 0; 27 bottom: 0;
28 background: #000; 28 background: #000;
29 opacity: 0; 29 opacity: 0;
30 - z-index: 99; 30 + z-index: 2;
31 @include transition(opacity 1s); 31 @include transition(opacity 1s);
32 } 32 }
33 33
1 .side-nav { 1 .side-nav {
2 - display: block; 2 + display: none;
3 background: #fff; 3 background: #fff;
4 position: fixed; 4 position: fixed;
5 top: 0; 5 top: 0;
6 bottom: 0; 6 bottom: 0;
7 - left: -540rem / $pxConvertRem;  
8 - right: 640rem / $pxConvertRem; 7 + left: 0;
  8 + right: 100rem / $pxConvertRem;
9 width: 540rem / $pxConvertRem; 9 width: 540rem / $pxConvertRem;
10 - z-index: -1; 10 + z-index: 1;
11 overflow: hidden; 11 overflow: hidden;
12 @include transition(all .3s); 12 @include transition(all .3s);
13 13
@@ -107,9 +107,7 @@ @@ -107,9 +107,7 @@
107 } 107 }
108 108
109 .side-nav.on { 109 .side-nav.on {
110 - left: 0;  
111 - right: 100rem / $pxConvertRem;  
112 - z-index: 3; 110 + display: block;
113 } 111 }
114 112
115 .sub-nav { 113 .sub-nav {