@@ -8,6 +8,21 @@ $menu-small-width: $menu-width - 40px !default;
8
8
9
9
10
10
ion-menu {
11
+ position : absolute ;
12
+ top : 0 ;
13
+ right : 0 ;
14
+ bottom : 0 ;
15
+ left : 0 ;
16
+
17
+ display : none ;
18
+
19
+ & .show-menu {
20
+ display : block ;
21
+ }
22
+ }
23
+
24
+
25
+ .menu-inner {
11
26
position : absolute ;
12
27
top : 0 ;
13
28
right : auto ;
@@ -23,20 +38,22 @@ ion-menu {
23
38
transform : translate3d (-9999px , 0 , 0 );
24
39
}
25
40
26
- ion- menu > ion-header ,
27
- ion- menu > ion-content ,
28
- ion- menu > ion-footer {
41
+ . menu-inner > ion-header ,
42
+ . menu-inner > ion-content ,
43
+ . menu-inner > ion-footer {
29
44
position : relative ;
30
45
}
31
46
32
- ion-menu [side = right ] {
47
+ ion-menu [side = right ] > .menu-inner {
33
48
right : 0 ;
34
49
left : auto ;
35
50
}
36
51
37
52
ion-menu ion-backdrop {
38
53
z-index : -1 ;
39
54
display : none ;
55
+
56
+ opacity : .1 ;
40
57
}
41
58
42
59
.menu-content {
@@ -54,7 +71,7 @@ ion-menu ion-backdrop {
54
71
55
72
@media (max-width : 340px ) {
56
73
57
- ion- menu {
74
+ . menu-inner {
58
75
width : $menu-small-width ;
59
76
}
60
77
@@ -66,7 +83,11 @@ ion-menu ion-backdrop {
66
83
// The content slides over to reveal the menu underneath.
67
84
// The menu itself, which is under the content, does not move.
68
85
69
- ion-menu [type = reveal ].show-menu {
86
+ ion-menu [type = reveal ] {
87
+ z-index : 0 ;
88
+ }
89
+
90
+ ion-menu [type = reveal ].show-menu .menu-inner {
70
91
transform : translate3d (0 , 0 , 0 );
71
92
}
72
93
@@ -79,17 +100,7 @@ ion-menu[type=reveal].show-menu {
79
100
ion-menu [type = overlay ] {
80
101
z-index : $z-index-menu-overlay ;
81
102
82
- ion-backdrop {
83
- left : -3000px ;
103
+ .show-backdrop {
84
104
display : block ;
85
-
86
- width : 6000px ;
87
-
88
- opacity : .01 ;
89
- transform : translate3d (-9999px , 0 , 0 );
90
-
91
- & .show-backdrop {
92
- transform : translate3d (0 , 0 , 0 );
93
- }
94
105
}
95
106
}
0 commit comments