feat: add navigation anchors and smooth scroll
- Link all navigation items to their corresponding sections - Add smooth scroll behavior on html element - Add scroll-margin-top on sections to compensate for fixed header - Add id="presse" to footer for press navigation link Navigation mapping: - Le Courage du Réel → #hero - Extraits → #excerpts - Les poignées → #handles - Le système → #system - L'auteur → #author - Précommander → #buy - Presse → #presse (footer) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3dc3a8c6e3
commit
53183a2445
4 changed files with 25 additions and 9 deletions
|
|
@ -1,3 +1,7 @@
|
|||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body,
|
||||
html,
|
||||
ul,
|
||||
|
|
@ -45,3 +49,7 @@ main {
|
|||
background-color: #fff;
|
||||
margin-bottom: 50rem;
|
||||
}
|
||||
|
||||
section {
|
||||
scroll-margin-top: calc(4.8125rem + 4rem);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body,
|
||||
html,
|
||||
ul,
|
||||
|
|
@ -46,6 +50,10 @@ main {
|
|||
margin-bottom: 50rem;
|
||||
}
|
||||
|
||||
section {
|
||||
scroll-margin-top: 8.8125rem;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-narrow: 'owners-xnarrow', sans-serif;
|
||||
--font-size-l: 4rem;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue