-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy pathSplashViz.scss
More file actions
74 lines (66 loc) · 1.34 KB
/
SplashViz.scss
File metadata and controls
74 lines (66 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@use "../../styles/partials/functions" as *;
@use "../../styles/partials/vars" as *;
@use "../../styles/partials/mixins" as *;
@use "sass:map";
.splash-viz {
position: relative;
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);
font-size: getFontSize(4);
text-align: center;
font-weight: 200;
margin-top: 80px;
grid-row: 1/2;
@include break {
font-size: getFontSize(5);
margin-top: 90px;
}
}
&__modules {
position: absolute;
top: 50%;
left: 50%;
width: 60vw;
min-width: 550px;
max-width: map.get($screens, medium);
margin: 0 auto;
transform: translate(-50%, -50%);
display: none;
grid-row: 2/3;
@include break {
display: block;
}
img {
padding-top: 1rem;
width: 100%;
height: 100%;
}
}
&__cube {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
z-index: 1;
grid-row: 2/3;
}
}
@media (max-width: 1024px) {
.splash-viz {
height: clamp(30rem, calc(100vh - 80px), 35rem);
}
}
@media (max-width: 425px) {
.splash-viz {
min-height: clamp(40rem, calc(100vh - 80px), 50rem);
}
}