forked from jgthms/marksheet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponents.sass
More file actions
457 lines (421 loc) · 8.17 KB
/
Copy pathcomponents.sass
File metadata and controls
457 lines (421 loc) · 8.17 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
.page-hero
+overlay
background-color: $hero-3
background-image: linear-gradient(142deg, $hero-1, $hero-2 31%, $hero-3 65%, $hero-4)
position: fixed
transform: translateZ(0)
.page-hero-pattern
+overlay
background: rgba(black, .1)
content: ""
display: block
mix-blend-mode: multiply
opacity: 0
+from(700px)
background: url("/images/pattern.png") repeat
mix-blend-mode: multiply
.page-body
position: relative
.page-header
left: 0
position: absolute
top: 0
width: 100%
.container
border-bottom: 1px solid rgba(black, .1)
box-shadow: 0 1px 0 rgba(white, .1)
height: $height-header
.share-buttons
position: absolute
right: 20px
top: 24px
%share-button
position: static
margin: 0 0 0 18px
+desktop
.share-buttons
right: 0
.page-header-icons
padding: 18px 0
text-align: center
text-shadow: 0 2px 3px rgba(black, .3)
a
color: $yellow
display: inline-block
height: 32px
margin: 0 5px
vertical-align: top
width: 32px
&:hover
color: white
+transform(scale(1.2))
&:active
text-shadow: none
+transform(scale(1.1))
.fa
+fa(21px, 32px)
+mobile
display: none
.page-container
padding-top: $height-header
.page-content
.container
background: white
+desktop
border-radius: 3px 3px 0 0
box-shadow: 0 30px 60px rgba(black, .3)
.page-newsletter
background-color: $red
background-image: linear-gradient(142deg, adjust-hue($red, -20deg), adjust-hue($red, -10deg) 31%, $red 65%, adjust-hue($red, 10deg))
color: $yellow
padding: 30px
position: relative
strong
color: inherit
+desktop
padding: 60px 40px 80px
.page-newsletter-heading
position: relative
text-align: center
text-shadow: 0 1px 2px rgba(black, .2)
.icons
display: block
height: 120px
margin: 0 auto
position: relative
width: 120px
.fa
+fa(42px, 120px)
+overlay
.fa-television
font-size: 84px
.fa-play-circle
color: white
left: -3px
top: -6px
h3
color: white
font-size: 32px
line-height: 1
position: relative
p
font-size: 18px
+desktop
h3
font-size: 40px
p
font-size: 20px
margin-top: 5px
.page-newsletter-form
margin: 30px auto 0
max-width: 480px
.page-newsletter-group
position: relative
.fa
color: $light
font-size: 14px
pointer-events: none
position: absolute
left: 10px
top: 10px
label.error
cursor: default
display: block
font-size: 14px
margin: 5px 0 10px
+desktop
padding-right: 100px
.page-newsletter-input
border: none
border-radius: $radius
display: block
outline: none
padding: 6px 12px 8px 32px
width: 100%
+mobile
margin-bottom: 10px
.page-newsletter-button
@extend %button--dark
&.loading
background: $dark
border-color: transparent
box-shadow: none
color: rgba(white, 0.3)
cursor: progress
+desktop
position: absolute
right: 0
top: 0
.page-footer
background: $dark
position: relative
text-shadow: 0 1px 2px rgba(black, .2)
.container
padding: 30px
a
color: $link
&:hover
text-decoration: underline
strong
color: white
form
color: white
font-size: 16px
margin-bottom: 30px
strong
color: #89ff6b
&:first-child
color: white
em
display: block
font-size: 14px
font-style: normal
margin-bottom: 10px
p
margin-top: 0
+mobile
form
text-align: center
p
margin-top: 1em
.share-buttons
margin: 30px 0
+desktop
.container
padding: 60px 0
.share-buttons
position: absolute
right: 0
top: 60px
%share-button
position: static
margin: 0 0 0 18px
.page-overlay
+overlay
background: rgba(black, .7)
display: none
position: fixed
.page-menu
+overlay
-webkit-overflow-scrolling: touch
bottom: 78px
display: none
min-height: calc(100vh - 30px)
overflow: scroll
overflow-x: hidden
position: fixed
+desktop
bottom: 0
box-shadow: 0 30px 60px rgba(black, .86)
left: 50%
margin-left: -480px
right: auto
position: fixed
width: 960px
+from(1100px)
margin-left: -540px
width: 1080px
+from(1200px)
margin-left: -570px
width: 1140px
.page-close
+overlay
background: $background
box-shadow: inset 0 2px 3px rgba(black, .05), inset 0 1px 0 rgba(black, .05)
display: none
padding: 15px
position: fixed
top: auto
+desktop
display: none
.page-close-button
@extend %button--primary
display: block
padding: 15px
text-align: center
html.has-menu-open
overflow: hidden
.page-overlay,
.page-menu,
.page-close
display: block
+desktop
.page-close
display: none
.share-buttons
height: 20px
overflow: hidden
position: relative
.twitter-share-button
position: absolute
&,
&:visited
color: transparent
%share-button
color: transparent
display: inline-block
font-size: 14px
line-height: 20px
margin: 0 10px
position: absolute
text-shadow: none
top: 0
vertical-align: top
a
&,
&:visited
color: transparent
.share-button--twitter
@extend %share-button
right: 50%
.share-button--facebook
@extend %share-button
left: 50%
.fb_iframe_widget
display: inline-block
vertical-align: top
span
display: inline-block
vertical-align: top !important
.toc-head
height: 40px
margin-top: -40px
.container
background-color: rgba(black, .2)
background-image: linear-gradient(rgba(black, 0), rgba(black, .2))
border-radius: 3px 3px 0 0
box-shadow: inset 0 -3px 3px rgba(black, .1), 0 -1px 0 rgba(white, .1)
height: 40px
+mobile
display: none
.toc-column
+replace(url("/images/toc-head.png"), 240px, 40px)
position: absolute
top: 0
width: 80px
.toc-column--sections
@extend .toc-column
background-position: 0 0
left: 20px
.toc-column--chapters
@extend .toc-column
background-position: -80px 0
left: 265px
.toc-column--lessons
@extend .toc-column
background-position: -160px 0
left: 480px
.toc-component
position: relative
.container
background: white
+desktop
.container
box-shadow: 0 20px 40px rgba(black, .2)
.toc-section
min-height: 120px
position: relative
.toc-heading
background: $dark
padding: 25px
.fa
+fa(21px, 25px)
left: 15px
position: absolute
h3
color: white
font-size: 1.2rem
font-weight: 700
line-height: 1
a
color: white
&:hover
text-decoration: underline
small
color: $light
display: block
em
display: block
font-style: normal
line-height: 1.2
margin-top: 10px
strong
color: $light
+mobile
.fa
display: none
+desktop
+overlay
border-bottom: 1px solid lighten($dark, 10%)
padding-left: 50px
right: auto
width: 240px
.toc-content
padding: 15px
position: relative
li
display: block
a
border: 1px solid transparent
border-radius: 3px
display: block
padding: 5px 10px 7px
strong
font-weight: 400
&:visited
color: $visited
strong
color: $visited
&:hover
background: linear-gradient(white, $background)
border-color: $border-dark
box-shadow: 0 1px 2px rgba(black, .07)
&:active,
&:focus
background: $background
box-shadow: none
.toc-month
a
&,
&:hover
color: $strong
font-weight: 700
em
font-style: normal
+desktop
border-bottom: 1px solid $border
margin-left: 240px
padding: 20px 10px
li
a
padding-left: 230px
.toc-month
left: 10px
position: absolute
width: 220px
z-index: 1
a
padding-left: 10px
.toc-section--web
.fa,
.toc-heading small span,
.toc-content .toc-month em
color: $web
.toc-section--html5
.fa,
.toc-heading small span,
.toc-content .toc-month em
color: $html5
.toc-section--css3
.fa,
.toc-heading small span,
.toc-content .toc-month em
color: $css3
.toc-section--sass
.fa,
.toc-heading small span,
.toc-content .toc-month em
color: $sass
.toc-heading,
.toc-content
border-bottom: none