Fixed Snap Scroll Starting point

This commit is contained in:
2026-01-30 19:34:26 +01:00
parent 8a2682dc02
commit 6ec8a56307
3 changed files with 9 additions and 8 deletions
+8 -7
View File
@@ -5,11 +5,6 @@
box-sizing: border-box;
}
html {
scroll-snap-type: y mandatory;
scroll-behavior: smooth;
}
:root {
--primary-color: #003366;
--primary-dark: #002244;
@@ -28,6 +23,8 @@ html {
html {
scroll-behavior: smooth;
scroll-snap-type: y mandatory;
overflow-y: scroll;
}
body {
@@ -286,6 +283,7 @@ img {
flex-direction: column;
background-color: var(--bg-color);
scroll-snap-align: start;
scroll-margin-top: 0;
}
.section-header {
@@ -301,8 +299,10 @@ img {
/* Segment 1: Hero Carousel */
.segment-hero {
padding: 0;
margin-top: var(--navbar-height);
min-height: calc(100vh - var(--navbar-height));
margin-top: 0;
padding-top: var(--navbar-height);
min-height: 100vh;
scroll-snap-align: start;
}
.carousel {
@@ -310,6 +310,7 @@ img {
width: 100%;
height: calc(100vh - var(--navbar-height));
overflow: hidden;
margin-top: 0;
}
.carousel-slide {