|
66 | 66 | } |
67 | 67 |
|
68 | 68 | /* ---------- Navbar ---------- */ |
69 | | -.dark .VPNav { |
| 69 | +/* backdrop-filter goes on VPNavBar, NOT VPNav — putting it on VPNav |
| 70 | + turns it into a containing block and breaks VPNavScreen (position:fixed) */ |
| 71 | +.dark .VPNavBar { |
70 | 72 | backdrop-filter: blur(20px) saturate(180%); |
71 | 73 | -webkit-backdrop-filter: blur(20px) saturate(180%); |
72 | | -} |
73 | | - |
74 | | -.dark .VPNavBar { |
75 | 74 | border-bottom-color: rgba(255, 255, 255, 0.06) !important; |
76 | 75 | } |
77 | 76 |
|
78 | | -/* Ensure nav (incl. hamburger + mobile menu) sits above hero animation */ |
79 | | -.VPNav { |
80 | | - z-index: 100 !important; |
81 | | -} |
82 | | - |
83 | 77 | /* ---------- Ambient Glow Behind Hero ---------- */ |
84 | 78 | .dark .VPHome { |
85 | 79 | position: relative; |
| 80 | + overflow: hidden; |
86 | 81 | } |
87 | 82 |
|
88 | 83 | .dark .VPHome::before { |
89 | 84 | content: ''; |
90 | 85 | position: absolute; |
91 | 86 | top: -120px; |
92 | | - left: 50%; |
93 | | - transform: translateX(-50%); |
| 87 | + left: -20%; |
94 | 88 | width: 140%; |
95 | 89 | height: 700px; |
96 | 90 | background: |
|
115 | 109 | } |
116 | 110 |
|
117 | 111 | /* ---------- Feature Card Icons ---------- */ |
| 112 | +.VPFeatures .VPFeature .icon { |
| 113 | + display: flex; |
| 114 | + align-items: center; |
| 115 | + justify-content: center; |
| 116 | + width: 40px; |
| 117 | + height: 40px; |
| 118 | + border-radius: 10px; |
| 119 | + margin-bottom: 4px; |
| 120 | +} |
| 121 | + |
| 122 | +.dark .VPFeatures .VPFeature .icon { |
| 123 | + background: rgba(255, 255, 255, 0.05); |
| 124 | + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); |
| 125 | +} |
| 126 | + |
| 127 | +.dark .VPFeatures .VPFeature .icon img { |
| 128 | + filter: brightness(1.8); |
| 129 | + opacity: 0.5; |
| 130 | +} |
| 131 | + |
| 132 | +:root:not(.dark) .VPFeatures .VPFeature .icon { |
| 133 | + background: rgba(0, 0, 0, 0.03); |
| 134 | +} |
| 135 | + |
| 136 | +:root:not(.dark) .VPFeatures .VPFeature .icon img { |
| 137 | + opacity: 0.45; |
| 138 | +} |
| 139 | + |
118 | 140 | .VPFeatures .VPFeature .icon img { |
119 | | - width: 48px; |
120 | | - height: 48px; |
| 141 | + width: 20px; |
| 142 | + height: 20px; |
121 | 143 | } |
122 | 144 |
|
123 | 145 | /* ---------- Feature Cards ---------- */ |
|
164 | 186 | line-height: 1.6; |
165 | 187 | } |
166 | 188 |
|
167 | | -/* Color-code each feature card's top stripe on hover */ |
168 | | -.dark .VPFeatures .items .item:nth-child(1) .VPFeature:hover::before { |
169 | | - background: #ec3f4a; |
170 | | -} |
171 | | -.dark .VPFeatures .items .item:nth-child(2) .VPFeature:hover::before { |
172 | | - background: #ff8a1d; |
173 | | -} |
174 | | -.dark .VPFeatures .items .item:nth-child(3) .VPFeature:hover::before { |
175 | | - background: #5ec72d; |
176 | | -} |
177 | | -.dark .VPFeatures .items .item:nth-child(4) .VPFeature:hover::before { |
178 | | - background: #42c3f7; |
179 | | -} |
180 | | -.dark .VPFeatures .items .item:nth-child(5) .VPFeature:hover::before { |
181 | | - background: linear-gradient(90deg, #ec3f4a, #ff8a1d); |
182 | | -} |
183 | | -.dark .VPFeatures .items .item:nth-child(6) .VPFeature:hover::before { |
184 | | - background: linear-gradient(90deg, #5ec72d, #42c3f7); |
185 | | -} |
| 189 | +/* Consistent brand gradient stripe on all cards */ |
186 | 190 |
|
187 | 191 | /* ---------- Homepage Content Sections (Dark) ---------- */ |
188 | 192 | .dark .VPHome .vp-doc em { |
|
335 | 339 | /* Light mode top stripe */ |
336 | 340 | :root:not(.dark) .VPHome { |
337 | 341 | position: relative; |
| 342 | + overflow: hidden; |
338 | 343 | } |
339 | 344 |
|
340 | 345 | :root:not(.dark) .VPHome::after { |
|
382 | 387 | opacity: 1; |
383 | 388 | } |
384 | 389 |
|
385 | | -/* Light mode color-coded card stripes */ |
386 | | -:root:not(.dark) .VPFeatures .items .item:nth-child(1) .VPFeature:hover::before { background: #ec3f4a; } |
387 | | -:root:not(.dark) .VPFeatures .items .item:nth-child(2) .VPFeature:hover::before { background: #ff8a1d; } |
388 | | -:root:not(.dark) .VPFeatures .items .item:nth-child(3) .VPFeature:hover::before { background: #5ec72d; } |
389 | | -:root:not(.dark) .VPFeatures .items .item:nth-child(4) .VPFeature:hover::before { background: #42c3f7; } |
390 | | -:root:not(.dark) .VPFeatures .items .item:nth-child(5) .VPFeature:hover::before { background: linear-gradient(90deg, #ec3f4a, #ff8a1d); } |
391 | | -:root:not(.dark) .VPFeatures .items .item:nth-child(6) .VPFeature:hover::before { background: linear-gradient(90deg, #5ec72d, #42c3f7); } |
| 390 | +/* Consistent brand gradient stripe on all light mode cards */ |
392 | 391 |
|
393 | 392 | /* Light content sections */ |
394 | 393 | .VPHome .vp-doc h2 { |
|
0 commit comments