Fix responsive stuff
All checks were successful
continuous-integration/drone/push Build is passing

- Globe is now using vws with min and max height
- Photos list and Carousel
This commit is contained in:
2020-04-21 20:23:53 +02:00
parent b8b4d55409
commit fc930d9362
5 changed files with 19 additions and 8 deletions

View File

@@ -3,19 +3,21 @@
position: relative; position: relative;
z-index: 2; z-index: 2;
width: 100vw; width: 100vw;
height: 800px; height: 180vw;
min-height: 700px;
max-height: 1536px;
overflow: hidden; overflow: hidden;
cursor: grab; cursor: grab;
user-select: none; user-select: none;
@include breakpoint (sm) { @include breakpoint (sm) {
height: 1280px; height: 130vw;
} }
@include breakpoint (md) { @include breakpoint (md) {
height: 1340px; height: 112vw;
} }
@include breakpoint (xl) { @include breakpoint (xl) {
height: 1670px; height: 100vw;
} }
// DEBUG // // DEBUG //

View File

@@ -59,7 +59,10 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
@media (min-aspect-ratio: 16/9) { @media (min-aspect-ratio: 16/8) {
max-width: 944px;
}
@media (min-aspect-ratio: 16/10) {
max-width: 1000px; max-width: 1000px;
} }
} }

View File

@@ -12,13 +12,13 @@
padding: 0; padding: 0;
@include breakpoint (sm) { @include breakpoint (sm) {
max-width: 85%; max-width: 80%;
} }
@include breakpoint (1680px) { @include breakpoint (1680px) {
max-width: 1424px; max-width: 1424px;
} }
@media (min-aspect-ratio: 16/9) { @media (min-aspect-ratio: 16/10) {
max-width: 1200px; max-width: 68%;
} }
} }

View File

@@ -60,6 +60,9 @@
@include breakpoint (xxl) { @include breakpoint (xxl) {
height: 820px; height: 820px;
} }
@media (min-aspect-ratio: 16/10) {
height: 36vw;
}
} }
// Photos // Photos

View File

@@ -29,6 +29,9 @@
@include breakpoint (sm) { @include breakpoint (sm) {
justify-content: center; justify-content: center;
margin-bottom: 24px;
}
@include breakpoint (lg) {
margin-top: 24px; margin-top: 24px;
margin-bottom: 48px; margin-bottom: 48px;
} }