Skip to content

Commit 7702cf0

Browse files
authored
fix: remove shadow hack and perfectly align sticky header gap (#46)
1 parent cc59de2 commit 7702cf0

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

frontend/styles/main.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
}
3333

3434
html, body {
35-
overflow-x: hidden;
3635
width: 100%;
3736
max-width: 100vw;
3837
}
@@ -463,6 +462,7 @@ body::after {
463462
color: var(--text);
464463
padding: 2rem 1rem;
465464
animation: fadeIn 0.4s ease-out;
465+
overflow-x: clip;
466466
}
467467

468468
.page-title {
@@ -678,12 +678,12 @@ body::after {
678678
color: var(--bg);
679679
}
680680

681-
/* ── Leaderboard ── */
681+
/* --- Leaderboard --- */
682682
.leaderboard {
683683
background: var(--bg-surface);
684684
border: 1px solid var(--border-bright);
685685
border-radius: 6px;
686-
overflow: hidden;
686+
overflow: visible;
687687
box-shadow: 0 0 30px rgba(0, 255, 65, 0.03);
688688
}
689689

@@ -698,6 +698,9 @@ body::after {
698698
letter-spacing: 1px;
699699
color: var(--green-dim);
700700
border-bottom: 1px solid var(--border-bright);
701+
position: sticky;
702+
top: 52px;
703+
z-index: 99;
701704
}
702705

703706
.leaderboard-row {

0 commit comments

Comments
 (0)