-
Notifications
You must be signed in to change notification settings - Fork 1
/
_header.scss
116 lines (92 loc) · 2.06 KB
/
_header.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
116
///
/// Stellar by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///
/* Header */
#header {
@include padding(5em, 5em, (0, 0, -2em, 0));
text-align: center;
h1 {
margin: 0 0 (_size(element-margin) * 0.125) 0;
}
p {
font-size: 1.25em;
letter-spacing: _font(letter-spacing);
}
&.alt {
@include padding(6em, 5em, (1em, 0, 0, 0));
h1 {
font-size: 3.25em;
}
> * {
@include vendor('transition', 'opacity 3s ease');
@include vendor('transition-delay', '0.5s');
opacity: 1;
}
.logo {
@include vendor('transition', (
'opacity 1.25s ease',
'transform 0.5s ease'
));
@include vendor('transition-delay', '0s');
display: block;
margin: 0 0 (_size(element-margin) * 0.75) 0;
img {
display: block;
margin: 0 auto;
max-width: 75%;
}
}
}
@include breakpoint('<=large') {
@include padding(4em, 4em, (0, 0, -2em, 0));
&.alt {
@include padding(5em, 4em, (1em, 0, 0, 0));
}
}
@include breakpoint('<=medium') {
@include padding(4em, 3em, (0, 0, -2em, 0));
&.alt {
@include padding(4em, 3em, (1em, 0, 0, 0));
}
}
@include breakpoint('<=small') {
@include padding(3em, 2em, (0, 0, -1em, 0));
p {
font-size: 1em;
letter-spacing: 0;
br {
display: none;
}
}
&.alt {
@include padding(3em, 2em, (1em, 0, 0, 0));
h1 {
font-size: 2.5em;
}
}
}
@include breakpoint('<=xsmall') {
@include padding(3em, 1.5em, (0, 0, -1em, 0));
&.alt {
@include padding(3em, 1.5em, (1em, 0, 0, 0));
}
}
@include breakpoint('<=xxsmall') {
@include padding(2.5em, 1em, (0, 0, -1em, 0));
&.alt {
@include padding(2.5em, 1em, (1em, 0, 0, 0));
}
}
body.is-preload & {
&.alt {
> * {
opacity: 0;
}
.logo {
@include vendor('transform', 'scale(0.8) rotate(-30deg)');
}
}
}
}