File tree 2 files changed +33
-15
lines changed
2 files changed +33
-15
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ function SideMenu({
44
44
onClick = { toggle }
45
45
/>
46
46
< div
47
- className = { styles . sideMenu + " " + ( className || "" ) }
47
+ className = { styles . sideMenuContainer }
48
48
style = { { display : visible ? "flex" : "none" } }
49
49
>
50
- { children }
50
+ < div className = { styles . sideMenu + " " + ( className || "" ) } >
51
+ { children }
52
+ </ div >
51
53
</ div >
52
54
</ >
53
55
) ;
Original file line number Diff line number Diff line change 117
117
align-items : center ;
118
118
}
119
119
120
- .sideMenu {
121
- @extend .glass ;
122
-
123
- position : absolute ;
124
- flex-direction : column ;
125
- width : 60vw ;
120
+ .sideMenuContainer {
121
+ position : fixed ;
122
+ justify-content : end ;
123
+ width : 100vw ;
126
124
height : 100vh ;
127
125
128
126
right : 0 ;
129
127
top : 3em ;
130
128
bottom : 0 ;
131
- padding : 1em ;
132
- border-radius : 5px ;
133
129
134
- .sidemenuItem {
135
- margin : 0.5em 0em 0.5em 1em ;
136
- }
130
+ pointer-events : none ;
131
+
132
+ .sideMenu {
133
+ @extend .glass ;
134
+
135
+ display : flex ;
136
+ flex-direction : column ;
137
+ width : 60% ;
138
+
139
+ padding : 1em ;
140
+ border-radius : 5px ;
141
+
142
+ float : right ;
143
+
144
+ .sidemenuItem {
145
+ margin : 0.5em 0em 0.5em 1em ;
146
+ }
147
+
148
+ .sidemenuHead {
149
+ align-self : flex-end ;
150
+ }
137
151
138
- .sidemenuHead {
139
- align-self : flex-end ;
152
+ @media (min-width : 50rem ) {
153
+ display : none !important ;
154
+ position : absolute !important ;
155
+ }
140
156
}
141
157
}
142
158
}
You can’t perform that action at this time.
0 commit comments