Skip to content

Commit dadc7c4

Browse files
committed
Menu fixes GP
1 parent a7f5b25 commit dadc7c4

2 files changed

Lines changed: 37 additions & 18 deletions

File tree

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ <h3>Boopathi R</h3>
405405
<div class="container">
406406
<div class="footer-grid">
407407
<div class="footer-brand">
408-
<div class="logo"><i class="fas fa-cube" style="color: var(--geist-success);"
408+
<div class="logo"><i class="fas fa-cube" style="color: var(--geist-success-green);"
409409
aria-hidden="true"></i> WBPG</div>
410410
<p>The premium bulk content engine for WordPress creators. Open-source, accessible, and
411411
high-performance.</p>

docs/style.css

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
--geist-success: #0070f3;
2020
/* Primary Blue */
21-
--geist-success-green: #00e074;
21+
--geist-success-green: #00cc66;
2222
/* Standard Success Green */
2323
--geist-success-light: #3291ff;
2424
--geist-error: #ee0000;
@@ -28,6 +28,7 @@
2828

2929
--link-color: var(--geist-success);
3030
--selection: var(--geist-cyan);
31+
--background-rgb: 255, 255, 255;
3132

3233
/* High-End Elevation */
3334
--shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.02);
@@ -65,6 +66,7 @@
6566
--shadow-md: 0 12px 40px rgba(0, 0, 0, 0.6);
6667
--shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.8);
6768
--geist-success: #0070f3;
69+
--background-rgb: 0, 0, 0;
6870
}
6971

7072
/* Master Reset */
@@ -132,16 +134,24 @@ body::before {
132134

133135
header {
134136
height: var(--header-height);
135-
background: rgba(var(--background), 0.8);
136-
backdrop-filter: blur(20px) saturate(180%);
137+
background: var(--background);
138+
/* Keep header solid on mobile for better stacking */
137139
border-bottom: 1px solid var(--accents-2);
138140
position: sticky;
139141
top: 0;
140-
z-index: 1000;
142+
z-index: 2000;
143+
/* Higher than menu to keep toggle visible if needed */
141144
display: flex;
142145
align-items: center;
143146
}
144147

148+
@media (min-width: 769px) {
149+
header {
150+
background: rgba(var(--background-rgb), 0.8);
151+
backdrop-filter: blur(20px) saturate(180%);
152+
}
153+
}
154+
145155
.header-inner {
146156
width: 100%;
147157
display: flex;
@@ -153,7 +163,7 @@ header {
153163
font-family: var(--font-heading);
154164
font-weight: 800;
155165
font-size: 24px;
156-
letter-spacing: -0.05em;
166+
letter-spacing: -0.02em;
157167
color: var(--foreground);
158168
text-decoration: none;
159169
display: flex;
@@ -192,6 +202,8 @@ header {
192202
font-size: 14px;
193203
color: var(--accents-5);
194204
transition: color 0.2s ease;
205+
white-space: nowrap;
206+
/* Prevent nav links from wrapping on smaller desktops */
195207
}
196208

197209
.nav-link:hover {
@@ -216,29 +228,33 @@ header {
216228
.nav-links {
217229
position: fixed;
218230
top: 0;
219-
right: -100%;
231+
right: 0;
220232
width: 100%;
221233
height: 100vh;
222234
background: var(--background);
223235
flex-direction: column;
224236
justify-content: center;
225237
align-items: center;
226238
gap: 40px;
227-
transition: right 0.4s var(--ease), visibility 0.4s var(--ease);
228-
z-index: 1000;
239+
z-index: 3000;
240+
/* Higher than header (2000) */
241+
transform: translateX(100%);
242+
transition: transform 0.4s var(--ease), visibility 0.4s var(--ease);
229243
visibility: hidden;
230-
display: none;
231-
/* Force hide to prevent overflow contribution */
244+
padding: 40px;
245+
pointer-events: none;
246+
/* Disable interaction when hidden */
232247
}
233248

234249
.nav-links.active {
235-
right: 0;
250+
transform: translateX(0);
236251
visibility: visible;
237-
display: flex;
252+
pointer-events: auto;
238253
}
239254

240255
.nav-link {
241-
font-size: 24px;
256+
font-size: 28px;
257+
font-weight: 700;
242258
color: var(--foreground);
243259
}
244260
}
@@ -391,7 +407,7 @@ header {
391407
font-family: var(--font-heading);
392408
font-size: clamp(38px, 10vw, 88px);
393409
font-weight: 900;
394-
letter-spacing: -0.06em;
410+
letter-spacing: -0.04em;
395411
line-height: 1;
396412
margin-bottom: 32px;
397413
background: linear-gradient(to bottom, var(--foreground) 60%, var(--accents-5));
@@ -428,7 +444,8 @@ header {
428444
font-weight: 800;
429445
letter-spacing: 0.15em;
430446
text-transform: uppercase;
431-
color: var(--geist-success);
447+
color: var(--geist-success-green);
448+
/* Consistency with Masterpiece Green */
432449
margin-bottom: 24px;
433450
display: block;
434451
}
@@ -437,9 +454,9 @@ header {
437454
font-family: var(--font-heading);
438455
font-size: 48px;
439456
font-weight: 800;
440-
letter-spacing: -0.05em;
457+
letter-spacing: -0.02em;
441458
margin-bottom: 64px;
442-
line-height: 1.1;
459+
line-height: 1.2;
443460
}
444461

445462
/* --- Comparison Logic (Pain Points) --- */
@@ -541,6 +558,8 @@ header {
541558
align-items: center;
542559
justify-content: center;
543560
border: 1px solid var(--accents-2);
561+
overflow: hidden;
562+
/* Ensure content stays inside */
544563
}
545564

546565
.author-content h3 {

0 commit comments

Comments
 (0)