-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.css
More file actions
372 lines (302 loc) · 6.54 KB
/
Copy pathmenu.css
File metadata and controls
372 lines (302 loc) · 6.54 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
/* ===============================
MOBILE FIRST BASE
=============================== */
.cm-wrapper {
max-width: 1200px;
margin: 40px auto;
padding: 16px;
}
/* ===============================
TOP MENU
=============================== */
.cm-top {
display: grid;
grid-template-columns: 1fr;
gap: 14px;
margin-bottom: 24px;
background: #fff;
border-radius: 16px;
padding: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.cm-tabs {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.cm-tab {
width: 100%;
text-align: center;
padding: 12px;
border-radius: 12px;
border: 1px solid #ddd;
text-decoration: none;
font-size: 14px;
font-weight: 500;
color: #222;
background: #fafafa;
}
.cm-tab.active {
background: linear-gradient(135deg, #d4af37, #c89b3c);
color: #fff;
border-color: transparent;
}
.cm-download {
width: 100%;
padding: 14px;
background: #c62828;
color: #fff;
text-align: center;
border-radius: 14px;
text-decoration: none;
font-size: 14px;
font-weight: 600;
}
/* ===============================
HEADER
=============================== */
.cm-header {
text-align: center;
margin-bottom: 24px;
}
.cm-header h2 {
color: #c89b3c;
font-size: 22px;
margin-bottom: 6px;
}
.cm-header p {
font-size: 14px;
line-height: 1.6;
}
/* ===============================
SUBMENU / CATEGORIES
=============================== */
.cm-sidebar {
background: linear-gradient(180deg,#9b2c2c,#c2410c);
padding: 20px; /* ✅ more breathable */
border-radius: 18px;
}
.cm-cat {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 16px;
margin-bottom: 12px;
border-radius: 14px;
background: rgba(255,255,255,0.14);
color: #fff;
font-size: 14px;
font-weight: 500;
text-decoration: none; /* ✅ no underline */
transition: all 0.25s ease;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.cm-cat:hover {
background: rgba(255,255,255,0.22);
}
.cm-cat.active {
background: rgba(255,255,255,0.85);
color: #9b2c2c;
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* ===============================
CONTENT
=============================== */
.cm-content {
margin-top: 24px;
}
.cm-title {
background: #fff7e6;
color: #c89b3c;
border: 2px dashed #c89b3c;
border-radius: 10px;
padding: 12px 14px;
margin-bottom: 16px;
font-size: 15px;
}
/* ===============================
MENU ITEMS – 2 COLUMN LIST
=============================== */
.cm-items {
list-style: none;
padding: 0;
margin: 0;
display: grid; /* ✅ 2 column list */
grid-template-columns: repeat(2, 1fr);
gap: 8px 16px;
}
.cm-item {
padding: 10px 0;
border-bottom: 1px dashed #ddd;
display: flex;
align-items: center;
gap: 10px;
font-size: 14px;
}
.cm-item .dashicons {
color: #c89b3c;
font-size: 16px;
}
.cm-item:last-child {
border-bottom: none;
}
/* ===============================
EMPTY STATE
=============================== */
.cm-empty {
padding: 24px;
background: #faf7f0;
border: 1px dashed #c89b3c;
text-align: center;
font-size: 14px;
color: #555;
}
/* ===============================
DESKTOP ENHANCEMENT
=============================== */
@media (min-width: 992px) {
.cm-top {
display: flex;
justify-content: space-between;
align-items: center;
}
.cm-tabs {
display: flex;
}
.cm-box {
display: grid;
grid-template-columns: 260px 1fr;
gap: 40px;
}
.cm-sidebar {
position: sticky;
top: 120px;
}
.cm-items {
grid-template-columns: repeat(3, 1fr); /* desktop stays richer */
}
}
/* ===============================
FIX 1: REMOVE UNDERLINE FROM SUBMENU TEXT
=============================== */
.cm-cat,
.cm-cat:hover,
.cm-cat:focus,
.cm-cat:active {
text-decoration: none !important;
}
/* ===============================
FIX 2: ADD BREATHING SPACE TO RED SUBMENU CONTAINER
=============================== */
.cm-sidebar {
padding: 24px; /* increased from 14/16 */
}
/* ===============================
DESKTOP REFINEMENT ONLY
=============================== */
@media (min-width: 992px) {
/* ---------- TOP MENU (DESKTOP) ---------- */
.cm-top {
display: grid;
grid-template-columns: 1fr auto; /* tabs | download */
align-items: center;
gap: 24px;
padding: 20px 24px;
}
.cm-tabs {
display: flex;
gap: 12px;
}
.cm-tab {
min-width: 110px;
padding: 10px 18px;
font-size: 14px;
}
.cm-download {
padding: 12px 22px;
font-size: 14px;
white-space: nowrap;
}
/* ---------- MAIN LAYOUT ---------- */
.cm-box {
grid-template-columns: 280px minmax(0, 1fr);
}
.cm-content {
max-width: 820px; /* prevent over-stretch */
}
/* ---------- ITEM GRID (DESKTOP ONLY) ---------- */
.cm-items {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px 28px;
}
.cm-item {
padding: 10px 0;
border-bottom: 1px dashed #e0e0e0;
}
/* ---------- SECTION TITLE ---------- */
.cm-title {
max-width: 820px;
}
}
/* ===============================
DESKTOP MASTER CONTAINER
=============================== */
@media (min-width: 992px) {
.cm-wrapper {
background: #ffffff;
border-radius: 18px;
padding: 32px 36px;
box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}
}
/* ===============================
DESKTOP HEADER HIGHLIGHT
=============================== */
@media (min-width: 992px) {
.cm-header {
background: #fff7e6; /* light warm tone */
border-radius: 14px;
padding: 24px 28px;
margin-bottom: 40px;
}
}
/* ===============================
REMOVE UNDERLINES FROM TOP MENU
=============================== */
.cm-tab,
.cm-tab:hover,
.cm-tab:focus,
.cm-tab:active {
text-decoration: none !important;
}
/* ===============================
TOP MENU – CLEAN LINKS + HOVER
=============================== */
/* Remove underline from download button */
.cm-download,
.cm-download:hover,
.cm-download:focus,
.cm-download:active {
text-decoration: none !important;
}
/* Shared hover transition */
.cm-tab,
.cm-download {
transition:
transform 0.2s ease,
box-shadow 0.2s ease,
background-color 0.2s ease,
color 0.2s ease;
}
/* Hover effect for top menu tabs */
.cm-tab:hover {
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
/* Hover effect for download button */
.cm-download:hover {
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(198,40,40,0.35);
}