forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.scss
More file actions
106 lines (76 loc) · 1.75 KB
/
menu.scss
File metadata and controls
106 lines (76 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
@import "../../themes/ionic.globals";
// Menu
// --------------------------------------------------
$menu-width: 304px !default;
$menu-small-width: $menu-width - 40px !default;
ion-menu {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: none;
}
ion-menu.show-menu {
display: block;
}
.menu-inner {
position: absolute;
top: 0;
right: auto;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
width: $menu-width;
transform: translate3d(-9999px, 0, 0);
}
.menu-inner > ion-header,
.menu-inner > ion-content,
.menu-inner > ion-footer {
position: relative;
}
ion-menu[side=right] > .menu-inner {
right: 0;
left: auto;
}
ion-menu ion-backdrop {
z-index: -1;
display: none;
opacity: .1;
}
.menu-content {
transform: translate3d(0, 0, 0);
}
.menu-content-open ion-pane,
.menu-content-open ion-content,
.menu-content-open .toolbar {
// the containing element itself should be clickable but
// everything inside of it should not clickable when menu is open
pointer-events: none;
}
@media (max-width: 340px) {
.menu-inner {
width: $menu-small-width;
}
}
// Menu Reveal
// --------------------------------------------------
// The content slides over to reveal the menu underneath.
// The menu itself, which is under the content, does not move.
ion-menu[type=reveal] {
z-index: 0;
}
ion-menu[type=reveal].show-menu .menu-inner {
transform: translate3d(0, 0, 0);
}
// Menu Overlay
// --------------------------------------------------
// The menu slides over the content. The content
// itself, which is under the menu, does not move.
ion-menu[type=overlay] {
z-index: $z-index-menu-overlay;
}
ion-menu[type=overlay] .show-backdrop {
display: block;
}