|
3 | 3 | position: fixed; |
4 | 4 | top:0; |
5 | 5 | right:0; |
6 | | -width:100%; |
7 | | -height:80vh; |
| 6 | +width:100vw; |
| 7 | +height:90vh; |
8 | 8 | transform:translateY(calc(-100%-2em)); |
9 | 9 | user-select: none; |
10 | 10 | z-index:var(--z-index-menu); |
|
26 | 26 | border-radius:var(--theme-radius); |
27 | 27 | width:100%; |
28 | 28 | max-height:100%; |
| 29 | +display: grid; |
| 30 | +grid-template-rows: auto 1fr; |
| 31 | +grid-template-columns:1fr auto; |
| 32 | +justify-items: stretch; |
| 33 | +align-items: stretch; |
29 | 34 | overflow-y: auto; |
30 | 35 | pointer-events: all; |
31 | 36 | transition: box-shadow var(--layout-timing-extra-fast); |
|
42 | 47 | .menu-nav{ |
43 | 48 | display: flex; |
44 | 49 | flex-direction: row; |
| 50 | +flex-wrap: wrap; |
| 51 | +} |
| 52 | + |
| 53 | +.menu-nav-item{ |
| 54 | +flex-grow:1; |
| 55 | +flex-basis:33.33333333%; |
| 56 | +} |
| 57 | + |
| 58 | +.menu-nav-tab{ |
| 59 | +background-color: transparent; |
| 60 | +margin:0; |
| 61 | +padding-top:0; |
| 62 | +padding-bottom:0; |
| 63 | +border-radius:0; |
| 64 | +height:3.25em; |
| 65 | +width:100%; |
| 66 | +line-height:1; |
| 67 | +} |
| 68 | + |
| 69 | +.menu-nav-tab:after, |
| 70 | +.menu-nav-tab:after{ |
| 71 | +background-color: transparent; |
| 72 | +border-radius:0; |
| 73 | +} |
| 74 | + |
| 75 | +.menu-nav-body{ |
| 76 | +display: none; |
45 | 77 | } |
46 | 78 |
|
47 | 79 | .menu-nav-area-tab{ |
|
59 | 91 | align-items: flex-start; |
60 | 92 | } |
61 | 93 |
|
62 | | -.menu-nav:not(:last-child){ |
63 | | -margin:0; |
| 94 | +.menu-list{ |
| 95 | +display: none; |
64 | 96 | } |
65 | 97 |
|
66 | 98 | .menu-content{ |
67 | 99 | padding:0calc(var(--menu-space) *3); |
| 100 | +grid-column-start:1; |
| 101 | +grid-column-end:3; |
68 | 102 | } |
69 | 103 |
|
70 | | -.menu-content-area{ |
71 | | -display: grid; |
72 | | -grid-template-columns:1fr; |
73 | | -} |
74 | | - |
75 | | -.menu-item{ |
| 104 | +.menu-content-item{ |
| 105 | +padding-top:calc(var(--menu-space) *2); |
| 106 | +padding-bottom:calc(var(--menu-space) *2); |
76 | 107 | position: relative; |
77 | 108 | z-index:1; |
78 | 109 | } |
79 | 110 |
|
80 | | -.menu-item:not(:last-child){ |
| 111 | +.menu-content-item:not(:last-child){ |
81 | 112 | border-bottom:var(--horizontal-rule); |
82 | 113 | } |
83 | 114 |
|
84 | 115 | .menu-item-header{ |
85 | | -padding:calc(var(--menu-space) *2)0; |
| 116 | +margin-bottom:calc(var(--menu-space) *2); |
86 | 117 | } |
87 | 118 |
|
88 | 119 | .menu-item-header-text{ |
89 | 120 | margin-bottom:0; |
90 | 121 | } |
91 | 122 |
|
92 | 123 | .menu-item-form{ |
93 | | -padding:00calc(var(--menu-space) *3) calc(var(--menu-space) *3); |
| 124 | +margin:00calc(var(--menu-space) *2) calc(var(--menu-space) *2); |
94 | 125 | z-index:1; |
95 | 126 | } |
96 | 127 |
|
97 | | -.menu-nav-button{ |
98 | | -background-color: transparent; |
99 | | -margin:0; |
100 | | -padding-top:0; |
101 | | -padding-bottom:0; |
102 | | -border-radius:0; |
103 | | -height:3.25em; |
104 | | -line-height:1; |
105 | | -flex-grow:1; |
106 | | -} |
107 | | - |
108 | | -.menu-nav-button:after, |
109 | | -.menu-nav-button:after{ |
110 | | -background-color: transparent; |
111 | | -border-radius:0; |
112 | | -} |
113 | | - |
114 | | -.menu-nav-area-tab .menu-nav-button:first-child{ |
115 | | -border-radius:var(--theme-radius) 000; |
116 | | -} |
117 | | - |
118 | | -.menu-nav-area-close .menu-nav-button{ |
119 | | -border-radius:0var(--theme-radius) 00; |
120 | | -} |
121 | | - |
122 | 128 | @media (min-width:550px){ |
123 | 129 | .menu{ |
124 | | -width:80vw; |
125 | | - } |
126 | | - |
127 | | - .menu-nav-area-tab .menu-nav-button{ |
128 | | -flex-basis:33.3333333333%; |
129 | | -max-width:33.3333333333%; |
| 130 | +width:90vw; |
130 | 131 | } |
131 | 132 | } |
132 | 133 |
|
133 | 134 | @media (min-width:700px){ |
134 | 135 | .menu{ |
135 | | -width:70vw; |
| 136 | +width:100%; |
136 | 137 | height:100%; |
137 | 138 | max-height: initial; |
138 | 139 | } |
139 | 140 |
|
140 | 141 | .menu-area{ |
141 | | -overflow-y: initial; |
142 | | -display: grid; |
143 | | -grid-template-columns:1fr; |
144 | | -grid-template-rows: auto 1fr; |
145 | | -justify-items: stretch; |
| 142 | +max-height:100%; |
| 143 | +grid-template-rows:1fr; |
| 144 | +grid-template-columns:2fr4fr auto; |
| 145 | +overflow: hidden; |
| 146 | + } |
| 147 | + |
| 148 | + .menu-nav{ |
| 149 | +grid-column-start:1; |
| 150 | +grid-column-end:2; |
| 151 | +grid-row-start:1; |
| 152 | +grid-row-end:2; |
| 153 | +flex-direction: column; |
146 | 154 | align-items: stretch; |
| 155 | +flex-wrap: nowrap; |
| 156 | +overflow-y: auto; |
| 157 | + } |
| 158 | + |
| 159 | + .menu-nav-item{ |
| 160 | +flex-grow:0; |
| 161 | +flex-basis: auto; |
| 162 | + } |
| 163 | + |
| 164 | + .menu-nav .menu-nav-tab{ |
| 165 | +padding-left:calc(var(--menu-space) *2); |
| 166 | +padding-right:calc(var(--menu-space) *2); |
| 167 | +justify-content: flex-start; |
| 168 | + } |
| 169 | + |
| 170 | + .menu-nav-body{ |
| 171 | +background-color:rgb(var(--theme-color-02)); |
| 172 | +display: flex; |
| 173 | +flex-direction: column; |
| 174 | +flex-wrap: nowrap; |
| 175 | + } |
| 176 | + |
| 177 | + .menu-close{ |
| 178 | +grid-column-start:3; |
| 179 | +grid-column-end:4; |
| 180 | +grid-row-start:1; |
| 181 | +grid-row-end:2; |
147 | 182 | } |
148 | 183 |
|
149 | 184 | .menu-content{ |
150 | 185 | padding:0calc(var(--menu-space) *4); |
| 186 | +grid-column-start:2; |
| 187 | +grid-column-end:3; |
| 188 | +grid-row-start:1; |
| 189 | +grid-row-end:2; |
151 | 190 | overflow-y: auto; |
| 191 | +scroll-behavior: smooth; |
152 | 192 | } |
153 | 193 |
|
154 | | - .menu-item{ |
155 | | -display: grid; |
156 | | -grid-template-columns:2fr3fr; |
157 | | -grid-template-rows:1fr; |
158 | | -align-items: flex-start; |
159 | | -grid-gap:2em; |
| 194 | + .menu-content-overscroll{ |
| 195 | +padding-bottom:calc(var(--menu-space) *30); |
| 196 | + } |
| 197 | + |
| 198 | + .menu-content-item{ |
| 199 | +padding-top:calc(var(--menu-space) *3); |
| 200 | +padding-bottom:calc(var(--menu-space) *3); |
160 | 201 | } |
161 | 202 |
|
162 | | - .menu-item-header{ |
163 | | -padding:calc(var(--menu-space) *1.75) 0; |
164 | | -position: sticky; |
165 | | -top:0; |
166 | | -z-index:3; |
| 203 | + .menu-nav-sub{ |
| 204 | +background-color: transparent; |
| 205 | +margin:0; |
| 206 | +padding-top:0; |
| 207 | +padding-bottom:0; |
| 208 | +padding-left:calc(var(--menu-space) *5); |
| 209 | +border-radius:0; |
| 210 | +height:3em; |
| 211 | +width:100%; |
| 212 | +line-height:1; |
| 213 | +justify-content: flex-start; |
167 | 214 | } |
168 | 215 |
|
169 | | - .menu-nav-area-tab .menu-nav-button{ |
170 | | -flex-basis:50%; |
171 | | -max-width:50%; |
| 216 | + .menu-nav-sub:after, |
| 217 | + .menu-nav-sub:after{ |
| 218 | +background-color: transparent; |
| 219 | +border-radius:0; |
172 | 220 | } |
173 | 221 |
|
174 | 222 | .menu-item-form{ |
175 | | -padding:calc(var(--menu-space) *2.5) 0; |
176 | | -z-index:2; |
| 223 | +margin:000calc(var(--menu-space) *3); |
177 | 224 | } |
178 | 225 | } |
179 | 226 |
|
180 | 227 | @media (min-width:900px){ |
181 | 228 | .menu{ |
182 | | -width:70vw; |
183 | | - } |
184 | | - |
185 | | - .menu-item{ |
186 | | -grid-template-columns:1fr2fr; |
187 | | - } |
188 | | - |
189 | | - .menu-nav-area-tab .menu-nav-button{ |
190 | | -flex-basis:33.3333333333%; |
191 | | -max-width:33.3333333333%; |
| 229 | +width:80vw; |
192 | 230 | } |
193 | 231 | } |
194 | 232 |
|
195 | 233 | @media (min-width:1100px){ |
196 | | - .menu-nav-area-tab .menu-nav-button{ |
197 | | -padding-left:0.25em; |
198 | | -padding-right:0.25em; |
199 | | -flex-basis: auto; |
200 | | -max-width: inherit; |
| 234 | + .menu{ |
| 235 | +width:70vw; |
201 | 236 | } |
202 | 237 | } |
203 | 238 |
|
204 | 239 | @media (min-width:1600px){ |
205 | 240 | .menu{ |
206 | | -width:50vw; |
| 241 | +width:60vw; |
| 242 | +max-width:60em; |
| 243 | +max-height:60em; |
207 | 244 | } |
208 | 245 | } |
0 commit comments