Skip to content

Commit dca75ab

Browse files
committed
web: fix dark/light on header
1 parent 8e90d8c commit dca75ab

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

docs/styles.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ body {
9797
padding: var(--spacing-md) 0;
9898
}
9999

100+
[data-theme="light"] .navbar {
101+
background: rgba(255, 255, 255, 0.85);
102+
}
103+
100104
.navbar .container {
101105
display: flex;
102106
justify-content: space-between;
@@ -122,10 +126,44 @@ body {
122126
font-weight: 500;
123127
}
124128

129+
[data-theme="light"] .nav-links a {
130+
color: #1e293b;
131+
}
132+
125133
.nav-links a:hover {
126134
color: var(--accent-bright);
127135
}
128136

137+
/* GitHub Nav Button */
138+
.btn-github-nav {
139+
background: #24292f;
140+
color: white;
141+
padding: var(--spacing-xs) var(--spacing-md);
142+
border-radius: var(--radius-sm);
143+
text-decoration: none;
144+
display: inline-flex;
145+
align-items: center;
146+
gap: 6px;
147+
font-weight: 600;
148+
font-size: 0.875rem;
149+
transition: all 0.2s;
150+
}
151+
152+
.btn-github-nav:hover {
153+
background: #32383f;
154+
transform: translateY(-1px);
155+
}
156+
157+
[data-theme="light"] .btn-github-nav {
158+
background: transparent;
159+
color: #24292f;
160+
border: 1px solid #24292f;
161+
}
162+
163+
[data-theme="light"] .btn-github-nav:hover {
164+
background: rgba(36, 41, 47, 0.05);
165+
}
166+
129167
/* Theme Toggle */
130168
.theme-toggle {
131169
background: var(--surface);

0 commit comments

Comments
 (0)