|
40 | 40 | .logo-img--light { display: none; } |
41 | 41 |
|
42 | 42 | .theme-toggle { |
43 | | - background: none; |
44 | | - border: 1px solid $dark-border; |
45 | | - border-radius: 8px; |
46 | | - width: 36px; |
47 | | - height: 36px; |
| 43 | + background: rgba(255, 210, 40, 0.08); |
| 44 | + border: 1px solid rgba(255, 210, 40, 0.3); |
| 45 | + border-radius: 50%; |
| 46 | + width: 40px; |
| 47 | + height: 40px; |
48 | 48 | display: flex; |
49 | 49 | align-items: center; |
50 | 50 | justify-content: center; |
51 | 51 | cursor: pointer; |
52 | | - color: $muted; |
53 | | - transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; |
| 52 | + color: #ffd028; |
| 53 | + transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease; |
54 | 54 | flex-shrink: 0; |
55 | 55 | padding: 0; |
| 56 | + position: relative; |
| 57 | + |
| 58 | + // Glow effect in dark mode — wide, soft |
| 59 | + box-shadow: |
| 60 | + 0 0 10px rgba(255, 210, 40, 0.2), |
| 61 | + 0 0 40px rgba(255, 210, 40, 0.1), |
| 62 | + 0 0 80px rgba(255, 210, 40, 0.05); |
| 63 | + |
| 64 | + // Radial light spill behind the button |
| 65 | + &::before { |
| 66 | + content: ''; |
| 67 | + position: absolute; |
| 68 | + inset: -40px; |
| 69 | + border-radius: 50%; |
| 70 | + background: radial-gradient(circle, rgba(255, 210, 40, 0.07) 0%, transparent 70%); |
| 71 | + pointer-events: none; |
| 72 | + z-index: -1; |
| 73 | + } |
56 | 74 |
|
57 | 75 | &:hover { |
58 | | - border-color: rgba($accent, 0.4); |
59 | | - color: $accent; |
60 | | - background: $accent-glow; |
| 76 | + background: rgba(255, 210, 40, 0.12); |
| 77 | + border-color: rgba(255, 210, 40, 0.5); |
| 78 | + box-shadow: |
| 79 | + 0 0 14px rgba(255, 210, 40, 0.3), |
| 80 | + 0 0 60px rgba(255, 210, 40, 0.15), |
| 81 | + 0 0 120px rgba(255, 210, 40, 0.06); |
61 | 82 | } |
62 | | - |
63 | | - .icon-moon { display: none; } |
64 | | - svg { display: flex; } |
65 | 83 | } |
66 | 84 |
|
67 | 85 | .header-right { |
68 | 86 | display: flex; |
69 | 87 | align-items: center; |
70 | 88 | gap: 0.5rem; |
71 | 89 | margin-left: auto; |
| 90 | + |
| 91 | + @media (max-width: $break-md) { |
| 92 | + gap: 1rem; |
| 93 | + } |
72 | 94 | } |
73 | 95 |
|
74 | 96 | .site-nav { |
|
0 commit comments