]>
Commit | Line | Data |
---|---|---|
05873be1 MT |
1 | @import "../../scss/variables"; |
2 | ||
3 | @import "../../bootstrap/scss/functions"; | |
4 | @import "../../bootstrap/scss/variables"; | |
5 | ||
4075b583 | 6 | @import "../../scss/_fonts.scss"; |
05873be1 MT |
7 | |
8 | // Use font sizes in px | |
9 | $font-size-base: 18px; | |
10 | $small-font-size: 12px; | |
11 | ||
12 | $h1-font-size: 48px; | |
13 | $h2-font-size: 40px; | |
14 | $h3-font-size: 36px; | |
15 | $h4-font-size: 32px; | |
16 | $headings-margin-bottom: 20px; | |
17 | ||
18 | $paragraph-margin-bottom: 14px; | |
19 | ||
20 | // Resets | |
21 | img { | |
22 | border: none; | |
23 | -ms-interpolation-mode: bicubic; | |
24 | max-width: 100%; | |
25 | } | |
26 | ||
27 | body { | |
28 | background-color: $body-bg; | |
29 | font-family: $font-family-sans-serif; | |
30 | -webkit-font-smoothing: antialiased; | |
31 | font-size: $font-size-base; | |
32 | line-height: $line-height-base; | |
33 | margin: 0; | |
34 | padding: 0; | |
35 | -ms-text-size-adjust: 100%; | |
36 | -webkit-text-size-adjust: 100%; | |
37 | } | |
38 | ||
39 | table { | |
40 | border-collapse: separate; | |
41 | mso-table-lspace: 0pt; | |
42 | mso-table-rspace: 0pt; | |
43 | width: 100%; | |
44 | ||
45 | td { | |
46 | font-family: $font-family-sans-serif; | |
47 | font-size: $font-size-base; | |
48 | vertical-align: top; | |
49 | } | |
50 | } | |
51 | ||
52 | // Basic Styling | |
53 | ||
54 | .body { | |
55 | background-color: $body-bg; | |
56 | width: 100%; | |
57 | } | |
58 | ||
59 | /* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */ | |
60 | .container { | |
61 | display: block; | |
62 | margin: 0 auto !important; | |
63 | ||
64 | // Center the container | |
65 | max-width: 580px; | |
66 | padding: 10px; | |
67 | width: 580px; | |
68 | } | |
69 | ||
70 | /* This should also be a block element, so that it will fill 100% of the .container */ | |
71 | .content { | |
72 | box-sizing: border-box; | |
73 | display: block; | |
74 | margin: 0 auto; | |
75 | max-width: 580px; | |
76 | padding: 10px; | |
77 | } | |
78 | ||
79 | // Headers, Footers, Containers | |
80 | ||
81 | .main { | |
82 | background: $white; | |
83 | color: $dark; | |
84 | border-radius: $card-border-radius; | |
85 | width: 100%; | |
86 | ||
87 | .logo { | |
88 | text-align: center; | |
89 | ||
90 | img { | |
91 | height: 196px; | |
92 | padding: 24px 0 12px 0; | |
93 | } | |
94 | } | |
95 | } | |
96 | ||
97 | .wrapper { | |
98 | box-sizing: border-box; | |
99 | padding: 20px; | |
100 | } | |
101 | ||
102 | .content-block { | |
103 | padding-bottom: 10px; | |
104 | padding-top: 10px; | |
105 | } | |
106 | ||
107 | .footer { | |
108 | clear: both; | |
109 | margin-top: 10px; | |
110 | text-align: center; | |
111 | width: 100%; | |
112 | ||
113 | td, p, span, a { | |
114 | color: $light; | |
115 | font-size: $small-font-size; | |
116 | text-align: center; | |
117 | } | |
118 | } | |
119 | ||
120 | // Typography | |
121 | ||
122 | h1, h2, h3, h4 { | |
123 | color: $dark; | |
124 | font-family: $font-family-sans-serif; | |
125 | font-weight: $headings-font-weight; | |
126 | line-height: $headings-line-height; | |
127 | margin: 0; | |
128 | margin-bottom: $headings-margin-bottom; | |
129 | } | |
130 | ||
131 | h1 { | |
132 | font-size: $h1-font-size; | |
133 | text-align: center; | |
134 | text-transform: capitalize; | |
135 | } | |
136 | ||
137 | p, ul, ol { | |
138 | font-family: $font-family-sans-serif; | |
139 | font-size: $font-size-base; | |
140 | font-weight: normal; | |
141 | margin: 0; | |
142 | margin-bottom: $paragraph-margin-bottom; | |
143 | } | |
144 | ||
145 | a { | |
146 | color: $link-color; | |
147 | text-decoration: underline; | |
148 | } | |
149 | ||
150 | // Buttons | |
151 | ||
152 | .btn { | |
153 | box-sizing: border-box; | |
154 | width: 100%; | |
155 | ||
156 | > tbody > tr > td { | |
157 | padding-bottom: 15px; | |
158 | } | |
159 | ||
160 | table { | |
161 | width: 100%; | |
162 | ||
163 | td { | |
164 | background-color: #ffffff; | |
165 | border-radius: $btn-border-radius; | |
166 | text-align: center; | |
167 | } | |
168 | } | |
169 | ||
170 | a { | |
171 | width: 100%; | |
172 | background-color: #ffffff; | |
173 | border: 1px solid $link-color; | |
174 | border-radius: $btn-border-radius; | |
175 | box-sizing: border-box; | |
176 | color: $link-color; | |
177 | cursor: pointer; | |
178 | display: inline-block; | |
179 | font-size: $font-size-base; | |
180 | font-weight: $btn-font-weight; | |
181 | margin: 0; | |
182 | padding: $btn-padding-y $btn-padding-x; | |
183 | text-decoration: none; | |
184 | text-transform: uppercase; | |
185 | } | |
186 | } | |
187 | ||
188 | .btn-primary { | |
189 | table td { | |
190 | background-color: $link-color; | |
191 | } | |
192 | ||
193 | a { | |
194 | background-color: $link-color; | |
195 | border-color: $link-color; | |
196 | color: #ffffff; | |
197 | } | |
198 | } | |
199 | ||
200 | // Other | |
201 | ||
202 | .align-center { | |
203 | text-align: center; | |
204 | } | |
205 | ||
206 | .align-right { | |
207 | text-align: right; | |
208 | } | |
209 | ||
210 | .align-left { | |
211 | text-align: left; | |
212 | } | |
213 | ||
214 | .clear { | |
215 | clear: both; | |
216 | } | |
217 | ||
218 | .mt-0 { | |
219 | margin-top: 0; | |
220 | } | |
221 | ||
222 | .mb-0 { | |
223 | margin-bottom: 0; | |
224 | } | |
225 | ||
226 | .preheader { | |
227 | color: transparent; | |
228 | display: none; | |
229 | height: 0; | |
230 | max-height: 0; | |
231 | max-width: 0; | |
232 | opacity: 0; | |
233 | overflow: hidden; | |
234 | mso-hide: all; | |
235 | visibility: hidden; | |
236 | width: 0; | |
237 | } | |
238 | ||
239 | .powered-by a { | |
240 | text-decoration: none; | |
241 | } | |
242 | ||
243 | hr { | |
244 | border: 0; | |
245 | border-bottom: $hr-border-width solid $hr-border-color; | |
246 | margin: 20px 0; | |
247 | } | |
248 | ||
249 | // Make this all mobile-friendly | |
250 | ||
251 | @media only screen and (max-width: 620px) { | |
252 | table[class=body] { | |
253 | h1 { | |
254 | font-size: $h1-font-size !important; | |
255 | margin-bottom: $headings-margin-bottom !important; | |
256 | } | |
257 | ||
258 | p, ul, ol, td, span, a { | |
259 | font-size: $font-size-base !important; | |
260 | } | |
261 | ||
262 | .wrapper, .article { | |
263 | padding: 10px !important; | |
264 | } | |
265 | ||
266 | .content { | |
267 | padding: 0 !important; | |
268 | } | |
269 | ||
270 | .container { | |
271 | padding: 0 !important; | |
272 | width: 100% !important; | |
273 | } | |
274 | ||
275 | .main { | |
276 | border-left-width: 0 !important; | |
277 | border-radius: 0 !important; | |
278 | border-right-width: 0 !important; | |
279 | } | |
280 | ||
281 | .img-responsive { | |
282 | height: auto !important; | |
283 | max-width: 100% !important; | |
284 | width: auto !important; | |
285 | } | |
286 | } | |
287 | } | |
288 | ||
289 | // Hack for Dark Mode | |
290 | ||
291 | @media (prefers-dark-interface) { | |
292 | .body { | |
293 | background-color: none; | |
294 | } | |
295 | ||
296 | .main { | |
297 | background: $white !important; | |
298 | color: $dark !important; | |
299 | } | |
300 | } | |
301 | ||
302 | // Hack for Outlook | |
303 | ||
304 | @media all { | |
305 | .ExternalClass { | |
306 | width: 100%; | |
307 | ||
308 | &, p, span, font, td, div { | |
309 | line-height: 100%; | |
310 | } | |
311 | } | |
312 | ||
313 | .apple-link a { | |
314 | color: inherit !important; | |
315 | font-family: inherit !important; | |
316 | font-size: inherit !important; | |
317 | font-weight: inherit !important; | |
318 | line-height: inherit !important; | |
319 | text-decoration: none !important; | |
320 | } | |
321 | ||
322 | #MessageViewBody a { | |
323 | color: inherit; | |
324 | text-decoration: none; | |
325 | font-size: inherit; | |
326 | font-family: inherit; | |
327 | font-weight: inherit; | |
328 | line-height: inherit; | |
329 | } | |
330 | ||
331 | .btn-primary { | |
332 | table td:hover { | |
333 | background-color: $link-hover-color !important; | |
334 | } | |
335 | ||
336 | a:hover { | |
337 | background-color: $link-hover-color !important; | |
338 | border-color: $link-hover-color !important; | |
339 | } | |
340 | } | |
341 | } |