This repository was archived by the owner on Oct 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path_header.scss
More file actions
194 lines (168 loc) · 4.08 KB
/
_header.scss
File metadata and controls
194 lines (168 loc) · 4.08 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
// Wrapper for the campaign title, call to action
// scholarship info., etc.
div.meta {
position: relative;
width: 90%;
margin: 230px auto 0;
@include media($tablet) {
position: absolute;
width: 100%;
left: 0;
bottom: 1.5rem;
margin: 0;
@include span-columns(12);
@include shift(2);
}
}
// Campaign header containing that campaign's
// metadata sourced from the node fields that
// has the hero image applied to it
header.header {
position: relative;
overflow: hidden;
min-height: 465px;
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: cover;
background-color: $purple;
@include media($tablet) {
min-height: 620px;
}
h1.title {
color: #fff;
font-size: 2rem;
line-height: 2rem;
text-align: center;
margin: 0 0 0.5rem;
@include media($tablet) {
font-size: $font-hero;
text-align: left;
margin: 0 0 1.5rem;
}
}
p.cta {
color: #fff !important;
font-size: $font-regular;
text-align: center;
margin: 0 0 0.5rem;
@include media($tablet) {
font-size: $font-medium;
text-align: left;
margin: 0;
}
}
// Campaign date not selected with a *-wrapper
// element because it can exist either in the
// sponsor section or on its own
p.date {
color: #fff !important;
font-size: $font-small;
text-align: center;
margin: 0 0 1.5rem;
@include media($tablet) {
font-size: $font-regular;
text-align: left;
}
}
// Target both "button" states for auth'd
// and un-auth'd users alike
a.btn,
input.btn {
margin: 0 auto;
display: block;
width: 135px;
color: #fff;
font-size: $font-medium;
@include media($tablet) {
float: left;
width: 150px;
font-size: 1.5rem; // @TODO Should we bump the button size for .btn.large?
}
}
div.sponsor-wrapper {
margin: 1rem auto;
float: none;
clear: both; // Accounts for floating scholarship callout above div.sponsor-wrapper
@include media($tablet) {
margin: 0;
width: auto;
position: absolute;
right: 0;
bottom: 0;
}
img {
display: block;
height: 50px;
margin: 0 auto;
@include media($tablet) {
float: right;
margin: 0;
}
}
p.copy {
margin: 0 0 1rem 0;
padding: 0;
float: none;
font-size: $font-small;
font-weight: $weight-bold;
text-align: center;
text-transform: uppercase;
@include rgba(color, #fff, 0.7);
@include media($tablet) {
margin: 0;
padding: 0 0.5rem 0 0;
position: relative;
bottom: -1.8rem;
float: left;
}
}
}
div.scholarship-wrapper {
width: 200px;
margin: 20px auto 0;
padding: 0 0 2rem 0;
position: relative;
@include media($tablet) {
width: 130px;
margin: -10px 0 0 15px;
padding: 0;
float: left;
@include transform(rotate(-6deg));
}
.copy {
text-align: center;
color: #fff;
color: rgba(255, 255, 255, 0.9); // Random opacity to match opacity of arrow on mock
font-family: Engineer;
font-size: 1.5rem; // Some pixel fucking was required here
line-height: 1.6rem; // Tighten up leading when scholarship copy stacks
float: right;
position: relative;
right: -40px;
margin: 0;
@include media($tablet) {
float: none;
right: 0;
}
// Hand-drawn arrows pointing to the call to action
// Left-pointing arrow to display on all "desktop" resolutions
&:before {
content: "";
width: 25px;
height: 38px;
display: block;
background: image-url("campaign-arrow-up.png") 50% 50% / 25px no-repeat transparent;
position: absolute;
top: -40px;
right: 30px;
@include media($tablet) {
width: 40px;
height: 60px;
float: left;
position: static;
background: image-url("campaign-arrow-left.png") 50% 50% / 35px no-repeat transparent;
}
}
}
}
}