Skip to content

Commit a71ba5c

Browse files
authored
fix: fix docs website dark theme promoton and team btn not show font bug (#390)
Signed-off-by: yuluo-yx <[email protected]>
1 parent ccacb9d commit a71ba5c

File tree

2 files changed

+44
-5
lines changed

2 files changed

+44
-5
lines changed

website/src/pages/community/promotion.module.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@
351351
font-size: 1.1rem;
352352
transition: all 0.3s ease;
353353
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
354+
border: 2px solid var(--ifm-color-primary);
354355
}
355356

356357
.actionButton:hover {
@@ -359,6 +360,22 @@
359360
text-decoration: none;
360361
transform: translateY(-3px);
361362
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
363+
border-color: var(--ifm-color-primary-dark);
364+
}
365+
366+
/* Dark mode enhancement */
367+
[data-theme='dark'] .actionButton {
368+
background: var(--ifm-color-primary);
369+
color: var(--ifm-color-gray-100);
370+
border: 2px solid var(--ifm-color-primary-light);
371+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
372+
}
373+
374+
[data-theme='dark'] .actionButton:hover {
375+
background: var(--ifm-color-primary-light);
376+
color: white;
377+
border-color: var(--ifm-color-primary-lighter);
378+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
362379
}
363380

364381
/* Responsive Design */

website/src/pages/community/team.module.css

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,21 +316,43 @@
316316
}
317317

318318
.actionButton {
319-
display: inline-block;
319+
display: inline-flex;
320+
align-items: center;
321+
gap: 0.75rem;
322+
padding: 1rem 2rem;
320323
background: var(--ifm-color-primary);
321324
color: white;
322-
padding: 0.75rem 1.5rem;
323-
border-radius: 8px;
324325
text-decoration: none;
325-
font-weight: 600;
326+
border-radius: 12px;
327+
font-weight: 700;
328+
font-size: 1.1rem;
326329
transition: all 0.3s ease;
330+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
331+
border: 2px solid var(--ifm-color-primary);
327332
}
328333

329334
.actionButton:hover {
330335
background: var(--ifm-color-primary-dark);
331336
color: white;
332337
text-decoration: none;
333-
transform: translateY(-2px);
338+
transform: translateY(-3px);
339+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
340+
border-color: var(--ifm-color-primary-dark);
341+
}
342+
343+
/* Dark mode enhancement */
344+
[data-theme='dark'] .actionButton {
345+
background: var(--ifm-color-primary);
346+
color: var(--ifm-color-gray-100);
347+
border: 2px solid var(--ifm-color-primary-light);
348+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
349+
}
350+
351+
[data-theme='dark'] .actionButton:hover {
352+
background: var(--ifm-color-primary-light);
353+
color: white;
354+
border-color: var(--ifm-color-primary-lighter);
355+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
334356
}
335357

336358
/* Responsive design */

0 commit comments

Comments
 (0)