Skip to content

Commit

Permalink
shift down text on desktop
Browse files Browse the repository at this point in the history
also pause carousel on hover because why not
  • Loading branch information
SheepTester committed Dec 10, 2024
1 parent 7cb93ec commit 8df6897
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/Carousel/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
}
}

&:hover .carousel {
animation-play-state: paused;
}

&::before {
content: '';
position: absolute;
Expand Down
3 changes: 2 additions & 1 deletion src/sections/Hero/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'text peekers'
'text display';
grid-template-columns: auto 1fr;
gap: 0 1rem;
align-items: flex-start;
padding: 0 vars.$side-padding;
margin: 0 calc(vars.$side-padding * -1);
Expand All @@ -21,6 +20,7 @@
.text {
grid-area: text;
max-height: min(60rem, 100vh);
margin-top: 10rem;
}

@media screen and (max-width: vars.$breakpoint-lg) {
Expand All @@ -32,6 +32,7 @@

.text {
max-height: unset;
margin-top: 0;
}
}

Expand Down

0 comments on commit 8df6897

Please sign in to comment.