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
397 lines (386 loc) · 7.53 KB
/
Copy pathelements.sass
File metadata and controls
397 lines (386 loc) · 7.53 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
.button
background: $link
border-radius: 3px
display: block
color: white
cursor: pointer
font-weight: 300
padding: 1em 2em
position: relative
text-align: center
vertical-align: top
em
display: block
font-size: 0.6em
font-style: normal
letter-spacing: 0.2em
opacity: 0.5
text-transform: uppercase
strong
color: inherit
&:hover
background: $black !important
.chapters
margin-top: 2rem
ul
font-family: $serif
text-align: left
li
display: inline
a
background: $web
border-radius: 3px
color: rgba(white, 0.5)
display: block
margin-top: 1rem
padding: 1rem 1.25rem 2rem
position: relative
&:hover
background: $black
.fa
float: right
font-size: 28px
strong
color: white
& > strong
display: block
font-size: 1.2rem
font-weight: 700
em
font-size: $small
display: block
margin-bottom: 1rem
strong
font-style: normal
font-weight: 400
span
display: block
font-family: $sans-serif
strong
font-weight: 400
&:nth-child(2) a
background: $html5
&:hover
background: $black
&:nth-child(3) a
background: $css3
&:hover
background: $black
&:nth-child(4) a
background: $sass
&:hover
background: $black
+on($laptop)
ul
+display(flex)
li
+display(flex)
+flex(3)
margin-right: 1px
min-width: 10rem
&:nth-child(2)
+flex(13)
&:nth-child(3)
+flex(29)
&:nth-child(4)
+flex(5)
margin-right: 0
a
+flex(1)
margin: 0
.content
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: $medium
font-size: $small
dt
font-weight: bold
padding: 1rem
padding-bottom: 0
dd
padding: 1rem
padding-top: 0
& + dt
border-top: 1px solid white
h3
color: $medium
font-size: 1.25rem
font-weight: 700
margin: 1rem 0
padding-top: 2rem
position: relative
top: 1px
a
font-weight: 400
margin-right: 0.5em
position: absolute
right: 100%
text-decoration: none
top: 2rem
&:visited
color: $blue
&:hover
color: $blue
h4
color: $medium
font-size: 1.125rem
font-weight: 700
margin: 2rem 0 1rem
p
margin: 1em 0
&:first-child
margin-top: 0
&:last-child
margin-bottom: 0
pre
line-height: 1.25
position: relative
ul
list-style: disc outside
margin: 1rem 0
padding-left: 1.5em
ul
list-style-type: circle
ul
list-style-type: square
&.files
font-family: $monospace
&.software
+clear
list-style: none
padding-left: 0
text-align: center
li
float: left
margin-bottom: 1rem
width: 50%
img
max-height: 64px
strong
display: block
line-height: 1
margin-top: 5px
+on($laptop)
margin: 0
width: 20%
div.highlight
margin: 2rem -2rem
overflow: auto
pre code
+label
background: inherit
color: inherit
display: block
padding: 2rem
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)
+on($laptop)
margin: 2rem 0
.answer,
.important,
.info
background: rgba($blue, 0.1)
border-left: 0.25em solid $blue
color: rgba(black, 0.5)
font-size: $small
padding: 1rem
.answer
background: rgba($green, 0.1)
border-left-color: $green
.question
color: $dark
display: block
font-weight: bold
+ br
display: none
.important
background: rgba($red, 0.1)
border-left-color: $red
.result
+label("Result")
border: 1px solid $yellow
color: black
margin: 2rem 0
padding: 1rem
&:before
top: -1rem
// +on($laptop)
// dl,
// p,
// ol,
// ul
// max-width: 50%
.table
margin: 2rem -2rem
overflow: auto
table
background: $background
border-radius: 3px
font-size: $small
width: 100%
th,
td
border-top: 1px solid $lighter
color: $medium
padding: 0.5em 1em
vertical-align: top
&.empty
background: white
border-top: none
&.no
color: $red
&.yes span
background: $green
color: white
padding: 2px 5px
th
background: $light-yellow
border-top-color: $yellow
color: $dark-yellow
font-weight: 400
text-align: left
white-space: nowrap
strong
display: block
tr:nth-child(2n)
background: #fafafa
code
display: inline-block
margin-bottom: 5px
vertical-align: top
pre
margin: 0
padding: 0
&:before
display: none
+on($laptop)
margin: 2rem 0
.dots
+overlay
position: fixed
text-align: center
.fa
font-size: 14px
vertical-align: top
.footnotes
border: 1px solid $lighter
border-width: 1px 0
color: $light
font-size: 0.8em
margin-top: 2rem
padding: 1rem 0
li:hover
color: $medium
a
color: inherit
em
color: inherit
.heading
line-height: 1.125
margin-bottom: 2rem
img
margin-bottom: 2rem
max-width: 160px
h1
color: $dark
font-size: 1.2rem
font-style: italic
font-weight: 400
letter-spacing: -0.04em
position: relative
em
font-style: normal
opacity: 0.5
&.type
+replace(url("/images/marksheet-type.png"), 41px, 217px)
margin: 0 auto
+on($laptop)
padding-top: 5px
h2
color: $black
font-size: 2.4rem
font-weight: 700
letter-spacing: -0.04em
margin-top: 1rem
&.tagline
+replace(url("/images/marksheet-tagline.png"), 25px, 323px)
background-size: 100%
margin: 1rem auto 2rem
max-width: 100%
+on($laptop)
margin-top: 2rem
&.tagline
background-size: 323px 25px
// +on($laptop)
// max-width: 50%
.hello
height: 20px
opacity: 0
position: relative
.like,
.tweet
color: white
display: inline-block
height: 20px
font-size: 12px
line-height: 20px
margin: 0 0.5rem
position: absolute
top: 0
vertical-align: top
.like
left: 50%
.tweet
right: 50%
.intro
font-size: 1.2rem
strong
display: block
.pagination
margin-top: 2rem
a
@extend .button
+on($laptop)
width: 21rem
.table-of-contents
+label("Table of Contents")
background: $background
font-size: $small
line-height: 1.25
margin: 3rem 0 2rem
padding: 0.75rem 1rem 0.75rem 1.5rem
position: relative
&:before
background: $light
color: white
top: -1rem
ul
list-style: disc outside
li
margin: 1em
a:visited
color: $light
a:hover
text-decoration: underline
+on($laptop)
float: right
margin: 0 0 2rem 2rem
max-width: 20rem
min-width: 12rem