v0.6.1 Fix anchor links bug, and add smooth scrolling behaviour
This commit is contained in:
parent
858b659b52
commit
5be4d10ce1
3 changed files with 19 additions and 18 deletions
|
|
@ -15,7 +15,8 @@
|
|||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 40px 0;
|
||||
padding: 1rem 0;
|
||||
scroll-margin-top: 60px; /* This ensures the section doesn't get hidden behind the fixed header */
|
||||
}
|
||||
|
||||
.content {
|
||||
|
|
@ -27,6 +28,7 @@
|
|||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
/* padding-top: 60px; */
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
|
|
@ -45,3 +47,7 @@ h6 {
|
|||
--content-width: 75%;
|
||||
--accent-color: #ff6b00;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue