Skip to content

Commit a638b4a

Browse files
committed
Homepage: fix Open Editor button color via class
1 parent 14c066d commit a638b4a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

assets/nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
body.dark-mode .hero-link { color:#89b4fa !important; border-color:#89b4fa !important; }
115115
body.dark-mode .hero-link:hover { border-color:#cdd6f4 !important; color:#cdd6f4 !important; }
116116
body.dark-mode .hero-btn-download { background:#e8b400 !important; color:#111 !important; }
117-
body.dark-mode a[href='/editor'], body.dark-mode a[href='/editor/'] { background:#4b9cd3 !important; color:#fff !important; }
117+
body.dark-mode .hero-btn-editor { background:#4b9cd3 !important; color:#fff !important; }
118118
`;
119119
document.head.appendChild(style);
120120
}

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@
149149
transition: transform 0.15s ease, box-shadow 0.15s ease;
150150
}
151151
.hero-btn-download:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(232,180,0,0.35); }
152+
.hero-btn-editor { background:#4b9cd3; color:#fff; }
153+
.hero-btn-editor:hover { box-shadow: 0 4px 10px rgba(75,156,211,0.35); }
152154

153155
@media (max-width: 768px) {
154156
.hero-actions { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
@@ -197,7 +199,7 @@ <h1 style="font-family:'Space Grotesk',sans-serif;font-size:2rem;font-weight:600
197199
<div class="hero-actions">
198200
<a class="hero-link" href="/reference">Reference</a>
199201
<a class="hero-btn-download" href="/downloads">Download</a>
200-
<a class="hero-btn-download" href="/editor" style="background:#4b9cd3;color:#fff;">Open Editor</a>
202+
<a class="hero-btn-download hero-btn-editor" href="/editor">Open Editor</a>
201203
</div>
202204
<textarea id="hero-editor" style="display:none;"></textarea>
203205

0 commit comments

Comments
 (0)