Sticky nav: position sticky + scroll-padding-top 64px
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
78ba4afdf5
commit
f0ddb107db
11
index.html
11
index.html
@ -118,7 +118,7 @@ html {
|
||||
body {
|
||||
overflow-y: scroll;
|
||||
scroll-snap-type: y mandatory;
|
||||
scroll-padding-top: 0;
|
||||
scroll-padding-top: 64px; /* высота nav */
|
||||
}
|
||||
|
||||
/* PRESENTATION MODE: каждая секция = ровно 1 экран */
|
||||
@ -150,8 +150,13 @@ section.section,
|
||||
nav { max-width: 1280px; }
|
||||
}
|
||||
|
||||
/* Прячем sticky-нав в slide-режиме — мешает фиксации экранов */
|
||||
nav { position: static !important; scroll-snap-align: none; }
|
||||
/* Sticky nav поверх слайдов */
|
||||
nav {
|
||||
position: sticky !important;
|
||||
top: 0 !important;
|
||||
z-index: 100;
|
||||
scroll-snap-align: none;
|
||||
}
|
||||
|
||||
/* ──────────────────────────────────────────────────────────
|
||||
EDITORIAL / NYT REDESIGN — кремовый фон, serif, флэт
|
||||
|
||||
Reference in New Issue
Block a user