forked from jgthms/marksheet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.sass
More file actions
558 lines (532 loc) · 10.3 KB
/
Copy pathelements.sass
File metadata and controls
558 lines (532 loc) · 10.3 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
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
.container
+clearfix
margin: 0 auto
max-width: 960px
position: relative
+from(1100px)
max-width: 1080px
+from(1200px)
max-width: 1140px
.banner
background-color: $red
background-image: linear-gradient(142deg, adjust-hue($red, -20deg), adjust-hue($red, -10deg) 31%, $red 65%, adjust-hue($red, 10deg))
display: block
color: $yellow
padding: 15px
position: relative
text-align: center
&:before
+overlay
background: black
content: ""
display: block
opacity: 0
transition: opacity 86ms ease-out
.fa,
strong,
em
color: $yellow
display: inline-block
line-height: 20px
margin: 0 5px
position: relative
transition: color 86ms ease-out
vertical-align: top
.fa
font-size: 14px
position: relative
top: 1px
strong
color: white
em
font-style: normal
&:hover
&:before
opacity: 0.1
.fa,
strong,
em
color: white
.hello
+replace(url("/images/marksheet-hello.png"), 210px, 192px)
margin: 0 auto
+from(600px)
+replace(url("/images/marksheet-hello.png"), 420px, 384px)
.logo
+replace(url("/images/marksheet-logo.png"), 230px, 48px)
float: left
left: 10px
position: absolute
top: 10px
+mobile
background-position: left center
width: 48px
+desktop
left: 0
.start
+replace(url("/images/button-start-reading.png"), 243px, 64px)
background-position: 0 0
margin: 60px auto 0
.heading
color: white
line-height: 1.2
text-align: center
text-shadow: 0 2px 3px rgba(black, .3)
.container
padding: 60px 30px
strong
color: inherit
h1,
h2
font-weight: 300
h1
color: $yellow
font-size: 20px
em
font-style: normal
font-weight: 300
h2
font-size: 48px
margin-bottom: 20px
margin-top: 20px
+desktop
h1
font-size: 32px
h2
font-size: 60px
.container
padding: 120px
.breadcrumb-holder
height: 40px
position: relative
.breadcrumb
background-color: $yellow
background-image: linear-gradient(#fffde9, $yellow)
box-shadow: inset 0 1px 0 white, inset 0 -3px 5px rgba(black, .05)
height: 40px
text-shadow: 0 1px 0 white
will-change: scroll-position
&.affix
box-shadow: 0 3px 5px rgba(black, .1), 0 1px 0 rgba(black, .1)
position: fixed
top: 0
width: 100%
+desktop
width: 960px
+from(1100px)
width: 1080px
+from(1200px)
width: 1140px
+desktop
border-radius: 3px 3px 0 0
&.affix
border-radius: 0
.breadcrumb-toggle
display: block
float: left
height: 40px
padding: 15px 13px 0 12px
position: relative
width: 41px
&:before,
&:after
+overlay
background: linear-gradient(rgba(black, 0), rgba(black, .1))
content: ""
display: block
left: auto
width: 1px
&:before
right: 1px
&:after
background: linear-gradient(rgba(white, 0), white)
span
background: #b5b188
box-shadow: 0 1px 0 white
display: block
height: 1px
& + span
margin-top: 4px
.breadcrumb-section
color: #b5b188
float: left
height: 40px
line-height: 30px
padding: 5px 10px
text-transform: capitalize
.fa
+fa(21px, 30px)
float: left
margin: 1px 5px 0 0
.fa-globe
color: $web
.fa-html5
color: $html5
.fa-css3
color: $css3
.fa-rocket
color: $sass
.breadcrumb-next
display: block
float: right
height: 40px
overflow: hidden
padding-left: 1px
position: relative
text-align: center
width: 41px
span
display: block
position: absolute
text-indent: -290486px
.fa
+fa(21px, 40px)
color: #b5b188
&:before,
&:after
+overlay
background: linear-gradient(rgba(black, 0), rgba(black, .1))
content: ""
display: block
right: auto
width: 1px
&:after
background: linear-gradient(rgba(white, 0), white)
left: 1px
.breadcrumb-previous
@extend .breadcrumb-next
.menu
background: $background
display: none
li
display: block
a
display: block
.pagination
+clearfix
background: $background
box-shadow: inset 0 2px 3px rgba(black, .05), inset 0 1px 0 rgba(black, .05)
padding: 30px
%pagination-link
display: block
font-size: 20px
height: auto
padding: 15px 20px 18px
text-align: left
em
color: inherit
display: block
font-size: .75em
opacity: .5
& > strong
display: block
margin-top: 2px
.pagination-start
@extend %button--grey
@extend %pagination-link
border: none
box-shadow: inset 0 1px 0 0 rgba(white, .3), 0 3px 5px rgba(black, .2)
font-size: 20px
padding: 20px 25px
strong
padding-bottom: 3px
+desktop
border-radius: 5px
font-size: 24px
padding: 25px 30px
strong
margin-top: 5px
.pagination-previous
@extend %button--secondary
@extend %pagination-link
+mobile
display: none
+desktop
float: left
width: 33.3333%
.pagination-next
@extend %button--primary
@extend %pagination-link
+desktop
float: right
width: 33.3333%
.elevator
@extend %button--dark
display: block
font-size: 16px
height: auto
line-height: 24px
margin: 15px
padding: 20px
text-align: center
+desktop
bottom: 0
position: fixed
right: 0
.fa
left: 50%
margin-left: -12px
span
display: none
.notification,
.mm-message
border-radius: $radius
color: white
margin-top: 10px
padding: 10px 15px
&.is-danger
background: $dark
&.is-success
background: $green
.mm-message
background: $green
&:before
content: "Thank you!"
display: block
font-weight: bold
.content
padding: 30px
+desktop
font-size: 20px
padding: 60px
a
text-decoration: underline
code
background-color: #222
border-radius: 3px
color: #66d9ef
font-size: $small
padding: 3px 5px 3px
position: relative
top: -1px
& > dl
background: $background
color: $text
font-size: $small
dt
font-weight: 700
padding: 15px
padding-bottom: 0
dd
padding: 15px
padding-top: 0
& + dt
border-top: 1px solid white
h3
color: $strong
font-size: 32px
font-weight: 300
line-height: 1
margin: 30px 0
padding-top: 30px
position: relative
top: 1px
a
font-weight: 300
display: block
height: 30px
line-height: 30px
position: absolute
right: 100%
text-align: center
text-decoration: none
top: 30px
width: 30px
&:hover
color: $strong
&:first-child
margin-top: 0
padding-top: 0
a
top: 0
+desktop
a
background: rgba(white, 0.86)
border-radius: 25px
box-shadow: 0 1px 2px rgba(black, .2)
height: 50px
line-height: 50px
margin-right: 35px
top: 25px
width: 50px
&:hover
background: white
&:first-child
a
top: -5px
h4
color: $text
font-size: 20px
font-weight: 700
line-height: 1
margin: 30px 0 15px
p
margin: 1em 0
&:first-child
margin-top: 0
&:last-child
margin-bottom: 0
pre
line-height: 1.25
position: relative
li + li
margin-top: 5px
ul
list-style: disc outside
margin: 15px 0
padding-left: 1.5em
ul
list-style-type: circle
ul
list-style-type: square
&.files
font-family: $family-monospace
font-weight: 400
&.software
+clear
list-style: none
padding-left: 0
text-align: center
li
float: left
margin-bottom: 15px
width: 50%
img
max-height: 64px
strong
display: block
line-height: 1
margin-top: 5px
+desktop
margin: 0
width: 20%
figure.highlight
margin: 30px -30px
overflow: auto
pre code
+label
background: inherit
color: inherit
display: block
padding: 30px
top: 0
&.language-html
+label("HTML", $html5, white)
&.language-css
+label("CSS", $css3, white)
&.language-scss
+label("SCSS", $sass, white)
&.language-css
+label("SCSS CSS", $sass, white)
+desktop
padding: 30px 60px
+desktop
margin: 30px -60px
.answer,
.important,
.info
background: rgba($blue, 0.1)
border-left: 0.25em solid $blue
color: rgba(black, 0.5)
font-size: $small
padding: 15px
+desktop
padding: 30px
.answer
background: rgba($green, 0.1)
border-left-color: $green
.question
color: $dark
display: block
font-weight: 700
+ br
display: none
.important
background: rgba($red, 0.1)
border-left-color: $red
.result
+label("Result")
border: 1px solid $yellow
color: black
margin: 30px 0
padding: 15px
&:before
top: -15px
.table
margin: 30px -30px
overflow: auto
table
background: #fafafa
font-size: $small
width: 100%
th,
td
border: 1px solid #ccc
padding: 0.5em 1em
vertical-align: top
&.empty
background: white
border: none
&.no
color: $red
&.yes span
background: $green
color: white
padding: 2px 5px
th
background: #eee
font-weight: 400
text-align: left
white-space: nowrap
strong
display: block
code
display: inline-block
margin-bottom: 5px
vertical-align: top
pre
margin: 0
padding: 0
&:before
display: none
+desktop
margin: 30px 0
.footnotes
border-top: 1px solid $border
font-size: $small
margin-top: 1em
padding: 1em 1em 0
$carbon-space: 15px
#carbon
background: white
border-radius: 5px
box-shadow: 0 10px 20px rgba(black, .2)
margin-left: auto
margin-right: auto
max-width: 340px
min-height: 100px + ($carbon-space * 2)
min-width: 300px
padding: $carbon-space
+from(400px)
width: 340px
#carbonads
text-align: left
text-shadow: none
a:hover
text-decoration: underline
span
display: block
.carbon-img
float: left
height: 100px
width: 130px
img
display: block
.carbon-text
display: block
color: $strong
margin-bottom: 5px
margin-left: 130px + $carbon-space
.carbon-poweredby
font-size: $small
margin-left: $carbon-space