Skip to content

Commit

Permalink
fix: fix theme slider responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchan32 committed Jun 3, 2024
1 parent b0709e9 commit daa86e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
5 changes: 4 additions & 1 deletion src/app/components/ThemesSlider/ThemeSlide/ThemeSlide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

padding: $slide-margin;
border: none;
min-height: 450px;

display: flex;
flex-direction: column;
justify-content: space-between;
gap: 2rem;
// max-height: 675px;
@media (min-width: $desktop-breakpoint) {
max-height: min(675px, 87%);
Expand Down Expand Up @@ -80,13 +82,14 @@
}

@media (min-width: $mobile-breakpoint) {
min-height: 525px;
padding: $slide-margin;
border: 1.5px solid $outline-gray;
}

@media (min-width: $tablet-breakpoint) {
margin: 0;
min-height: auto;
min-height: 625px;
height: 100%;
}
}
19 changes: 6 additions & 13 deletions src/app/components/ThemesSlider/ThemesSlider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@
$primary-white 100%
);

display: flex;
flex-direction: column;
justify-content: space-between;
border: 1.5px solid $outline-gray;

width: calc(100vw - 2 * $main-padding-mobile-inline);

@media ($mobile-breakpoint < width < $desktop-breakpoint) {
padding-block: 2.5rem;
height: 550px;
padding-top: 2.5rem;
}

width: calc(100vw - 2 * $main-padding-mobile-inline);

.keen-slider {
height: 100%;
}
Expand Down Expand Up @@ -73,13 +75,6 @@
position: absolute;
background: $hide-slides-gradient;
}

// .arrows {
// display: flex;
// gap: 2px;
// grid-area: 1 / 1 / 2 / 2;
// padding: 10px;
// }
}

@media ($mobile-breakpoint < width < 1400px) {
Expand All @@ -97,8 +92,6 @@
}

@media (min-width: $tablet-breakpoint) {
height: 100%;

& {
width: calc(
100vw - clamp(250px, 200px + 11vw, 470px) - 2 *
Expand Down

0 comments on commit daa86e8

Please sign in to comment.