Skip to content

Commit e80c877

Browse files
committed
Nave Bar Sticky
1 parent baee144 commit e80c877

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

assets/css/modern-glass-theme.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444

4545
/* ── Header & nav (chrome tier) ── */
4646
[data-theme="glass"] body > header.nav-shell {
47-
position: relative;
47+
position: sticky;
48+
top: 0;
4849
isolation: isolate;
4950
border-color: var(--glass-border);
5051
background-color: var(--glass-chrome-bg);

assets/css/modern-light-theme.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636

3737
/* ── Header & nav ── */
3838
[data-theme="light"] body > header.nav-shell {
39-
position: relative;
39+
position: sticky;
40+
top: 0;
4041
background-color: rgba(255, 255, 255, 0.97) !important;
4142
border-color: var(--light-border) !important;
4243
box-shadow: inset 0 1px 0 var(--light-highlight), var(--light-shadow-sm), 0 4px 20px rgba(15, 23, 42, 0.04);

static/css/modern-glass-theme.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444

4545
/* ── Header & nav (chrome tier) ── */
4646
[data-theme="glass"] body > header.nav-shell {
47-
position: relative;
47+
position: sticky;
48+
top: 0;
4849
isolation: isolate;
4950
border-color: var(--glass-border);
5051
background-color: var(--glass-chrome-bg);

static/css/modern-light-theme.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636

3737
/* ── Header & nav ── */
3838
[data-theme="light"] body > header.nav-shell {
39-
position: relative;
39+
position: sticky;
40+
top: 0;
4041
background-color: rgba(255, 255, 255, 0.97) !important;
4142
border-color: var(--light-border) !important;
4243
box-shadow: inset 0 1px 0 var(--light-highlight), var(--light-shadow-sm), 0 4px 20px rgba(15, 23, 42, 0.04);

0 commit comments

Comments
 (0)