-
Notifications
You must be signed in to change notification settings - Fork 0
/
_intro.scss
115 lines (98 loc) · 2.21 KB
/
_intro.scss
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
///
/// Massively by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///
/* Intro */
#intro {
@include color-typography(invert);
@include color-button(invert);
@include padding(_size(padding) * 4, _size(padding) * 2);
@include vendor('align-items', 'center');
@include vendor('display', 'flex');
@include vendor('flex-direction', 'column');
@include vendor('justify-content', 'flex-end');
@include vendor('transition', (
'opacity 1s ease',
'transform 1s ease'
));
position: relative;
cursor: default;
text-align: center;
z-index: 1;
min-height: 100vh;
h1 {
font-size: 5rem;
line-height: 1;
}
p {
font-size: 1.25rem;
font-style: italic;
margin-top: -0.25rem;
text-align: center;
}
& + #header {
margin-top: -20rem;
.logo {
@include vendor('transform', 'translateY(2rem)');
opacity: 0;
visibility: hidden;
}
}
&.hidden {
@include vendor('pointer-events', 'none');
@include vendor('transform', 'translateY(2rem)');
@include vendor('transition', (
'opacity 0.5s ease',
'transform 0.5s ease',
'visibility 0.5s'
));
opacity: 0;
visibility: hidden;
& + #header {
.logo {
@include vendor('transform', 'translateY(0)');
opacity: 1;
visibility: visible;
}
}
}
body.is-preload & {
@include vendor('transform', 'translateY(2rem)');
opacity: 0;
&:not(.hidden) {
& + #header + #nav {
@include vendor('transform', 'translateY(4rem)');
opacity: 0;
}
}
}
@include breakpoint('<=medium') {
@include padding(_size(padding) * 2, _size(padding) * 2);
min-height: 90vh;
p {
br {
display: none;
}
}
& + #header {
margin-top: -14rem;
}
}
@include breakpoint('<=small') {
@include padding(_size(padding) * 1.5, _size(padding) * 1);
min-height: 80vh;
h1 {
font-size: 3.25rem;
line-height: 1.1;
margin-bottom: _size(element-margin) * 0.5;
}
p {
font-size: 1rem;
margin-top: 0rem;
}
.actions {
display: none;
}
}
}