forked from chimpanzees/styleguide
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.styl
More file actions
484 lines (375 loc) · 9.04 KB
/
Copy pathmain.styl
File metadata and controls
484 lines (375 loc) · 9.04 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
.auth0-styleguide
opacity: 0
&.loaded
opacity: 1
@import '../../lib/vars/index'
@import '../../lib/mixins/index'
@import 'inc/playground'
$aside_width = 250px;
body
color: $color-text-light
p,
h1, h2, h3, h4, h5, h6
code
display: inline-block;
[data-group]
// padding-bottom: 100px;
min-height: 100vh;
display: none;
&.active
display: block;
// container styleguide
.container-styleguide
width 100%
min-width 320px
// content styleguide
.main-content-styleguide
background-color: #fff;
+breakpoint("tablet")
margin-left: $aside_width;
&.alt
background-color: #fafafa;
// aside styleguide
.aside-styleguide
overflow-y: auto;
background-color: #e3e5e7;
+breakpoint("tablet")
width: $aside_width;
position: fixed;
height:100vh;
.header
background-color: #fff;
overflow: hidden;
text-align: center;
position: relative;
.navbar-toggle
position: absolute;
top: 5px;
right: -5px;
.icon-bar
background: #5c666f;
h1
margin: 15px 0 14px 0;
a, img
display: block;
margin: 0 auto;
img
width: 30px;
.footer
background-color: rgba(0, 0, 0, .05);
padding: 5px 0;
text-align: center;
+breakpoint('tablet')
position: absolute;
bottom: 0;
width: 100%;
left: 0;
span
color: rgba(0, 0, 0, .4);
font-size: 11px;
font-weight: $font-weight-bold;
letter-spacing: 1px;
line-height: normal;
#menu.collapse
+breakpoint("tablet")
display: block !important;
height: auto !important;
.nav-styleguide
overflow-y: auto
.nav-styleguide > ul
color: #5c666f;
font-size: 11px;
font-weight: $font-weight-bold;
letter-spacing: 1px;
list-style: none;
line-height: normal;
margin: 0;
padding: 0;
text-transform: uppercase;
z-index: 200;
position: relative;
background: #e3e5e7;
.active
color: #333 !important;
background: darken(#e3e5e7, 4%);
> li
margin: 0;
&:first-child
display: none;
> a
border-bottom: 1px solid rgba(0, 0, 0, .08);
color: inherit;
display: block;
padding: 20px 20px 20px 20px;
> .icon
margin-right: 10px;
top: 1px;
position: relative;
min-width: 14px;
display: inline-block
.nav-styleguide > ul > li > ul
list-style: none;
margin: 0;
padding: 0;
display: none;
+breakpoint("tablet")
display: inherit;
.active
background: rgba(255,255,255,0.05);
li
background-color: rgba(255, 255, 255, .3);
margin: 1px 0 0 0;
&:first-child
margin-top: 0;
a
background-color: rgba(255, 255, 255, .3);
color: inherit;
display: block;
padding: 10px 0 10px 40px;
text-transform: none;
letter-spacing: 0;
.icon
margin-right: 5px;
position: relative;
top: 3px;
// content styleguide
.content-styleguide
section > h2
margin-top: 0;
.type-box
background-color: #e3e5e7;
margin-bottom: 30px;
overflow: hidden;
> section
padding: $padding-base-vertical*4 $padding-base-horizontal*2
border-bottom: 1px solid $bg-color-gray;
+breakpoint("tablet")
padding: $padding-large-vertical*4 $padding-large-horizontal*3;
hr
margin: ($padding-base-vertical * 10) 0;
// Typography Section
// -------------------------
.typography-section
.font-family
font-size: 60px;
font-weight: normal;
line-height: 82px;
margin: 40px 0;
// box
.type-box-container
display: flex;
flex-wrap: wrap;
+breakpoint("desktop")
flex-wrap: nowrap;
.column
flex-basis: 100%
margin: 0 15px;
display: flex;
.type-box
flex-basis: 100%;
+breakpoint("desktop")
flex-basis: 50%;
.type-box
padding: 10px 40px;
&.box-table
padding: 20px 40px;
a
display: block;
margin: 20px 0;
h5
line-height: 1.8
.theme-dark &
background-color: #222228;
h1, h2, h3, h4, h5,
.body-2, .body-1
color: #fff;
p.caption
color: $color-text-lighter;
// typography table
.box-table
overflow-x: scroll;
max-width: 100%;
.typography-table
min-width: 600px;
width: 100%;
overflow: scroll;
+breakpoint("desktop")
min-width: none;
.variable
width: 35%;
.opacity
width: 5%;
text-align: right;
.color
width: 8%;
td
color: $color-text;
font-size: 13px;
padding: 15px 0;
.big
font-size: 16px;
.opacity-87
color: $color-text;
.opacity-54
color: $color-text-light;
.opacity-26
color: $color-text-lighter;
.rowspan
line-height: 20px;
vertical-align: bottom;
#splash
background: $bg-color-black
padding: 0;
.splash
background: $bg-color-black
height:100vh;
display: flex;
align-items: center;
flex:1;
padding: 20px;
+breakpoint("tablet")
padding-left: 100px;
.splash-intro
h1
font-size: 40px;
margin: 30px 0;
p
font-size: 16px;
color: $color-text-contrast-light;
margin-bottom: 50px;
.lettering-js
span
animation-fill-mode: forwards;
opacity: 0;
display: inline-block;
h1.lettering-js
span
animation-name: title
animation-duration: .4s
for i in (1..100)
span:nth-child({i})
animation-delay: .1s * i
p.lettering-js
span
animation-name: tagline
min-width: 3px;
animation-duration: .2s
span:nth-child(1)
animation-delay: 1.2s
for i in (2..100)
span:nth-child({i})
animation-delay: 1.2s + (i * 0.025)
@keyframes title
0%
-webkit-filter: blur(30px);
-webkit-transform: scale(2);
opacity: 0
100%
opacity: 1
-webkit-transform: scale(1);
-webkit-filter: blur(0);
@keyframes tagline
0%
-webkit-filter: blur(10px);
opacity: 0
transform: translate(0,0);
100%
transform: scale(1);
opacity: 1
-webkit-filter: blur(0);
.btn
margin-right: 30px;
margin-bottom: $padding-large-horizontal;
display: block
animation-name: btns
animation-duration: .4s
animation-delay: 3.5s
animation-play-state: running;
animation-fill-mode: forwards;
opacity: 0;
&.btn-default
background: white;
animation-delay: 3.6s
+breakpoint('tablet')
display: inline-block;
.btn-icon
svg, img
width: 18px;
position: absolute
top: 15px;
left: 16px;
z-index: 10000;
&::before
color: transparent;
img
top: 14px;
width: 24px;
left: 13px
@keyframes btns
from
transform: scale(.8)
// -webkit-filter: blur(10px);
opacity: 0
to
transform: scale(1);
opacity: 1
-webkit-filter: blur(0);
.lines
margin-bottom: $padding-base-horizontal * 2;
span
height: 4px;
background: $color-red;
display: inline-block;
width: 47px;
margin-right: 2px;
animation-name: lines
animation-duration: .8s
animation-play-state: running;
animation-fill-mode: forwards;
opacity: 0;
&.blue
background-color: $color-blue;
animation-delay .2s
&.blue-light
background-color: $color-blue-light;
animation-delay .4s
&.gray
background-color: $color-gray
animation-delay .6s
@keyframes lines
from
transform: scale(4)
-webkit-filter: blur(10px);
opacity: 0
to
transform: scale(1);
opacity: 1
-webkit-filter: blur(0);
.jumbotron
margin-bottom: 0;
// typography table box black
.theme-dark
.type-box
background-color: $bg-color-dark;
.typography-table
td
color: $color-text-contrast
.opacity-100
color: $color-text-contrast
.opacity-70
color: $color-text-contrast-light
.opacity-30
color: $color-text-contrast-lighter
#header-component
padding: 0;
.css-mapping.glyphs
li
background: $bg-color-gray
padding: 10px;
min-width: 220px;
border-radius: $border-radius-base;
i
float: left;
strong
display: block;
height: 20px;