Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/components/SplashViz/SplashViz.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

.splash-viz {
position: relative;
height: calc(100vh - 56px);
min-height: 320px;
max-height: 720px;
height: clamp(35rem, calc(100vh - 80px), 45rem);
background: getColor(elephant);
display: grid;
grid-template-rows: auto 1fr;
overflow: hidden;
padding-bottom: 4rem;
padding: 1rem;

&__heading {
color: getColor(white);
Expand All @@ -23,7 +22,7 @@
grid-row: 1/2;
@include break {
font-size: getFontSize(5);
margin-top: 110px;
margin-top: 90px;
}
}

Expand All @@ -39,12 +38,10 @@
display: none;
grid-row: 2/3;
@include break {
display: block; // Get height of its child svg
display: block;
}

img {
// Padding is needed to center align
// webpack icon with the module image
padding-top: 1rem;
width: 100%;
height: 100%;
Expand All @@ -62,12 +59,15 @@
grid-row: 2/3;
}
}
@media (max-width: 768px) {

@media (max-width: 1024px) {
.splash-viz {
padding: 1rem;
&__cube {
position: relative;
grid-row: 2 / 3;
}
height: clamp(30rem, calc(100vh - 80px), 35rem);
}
}

@media (max-width: 425px) {
.splash-viz {
min-height: clamp(40rem, calc(100vh - 80px), 50rem);
}
}
Loading