forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_base.sass
1769 lines (1361 loc) · 26.5 KB
/
_base.sass
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
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@import "reset"
// TEXT
$h1-font-size: 32px
$h1-line-height: 40px
$h2-font-size: 28px
$h2-line-height: 60px
$h3-font-size: 24px
$h3-line-height: 32px
$h4-font-size: 20px
$h4-line-height: 40px
$h5-font-size: 16px
$h5-line-height: 36px
$p-font-size: 14px
$p-line-height: 22px
// header
$full-width-paddingX: 20px
$main-width: 100%
$main-max-width: 100%
$header-height: 80px
$logo-width: 180px
$nav-buttons-margin-left: 30px
$hamburger-size: 50px
// main nav
$main-nav-padding: 140px 0 30px
$main-nav-h5-margin-bottom: 1em
$main-nav-h3-margin-bottom: 0.6em
$nav-box-width: 20%
$nav-box-sibling-margin-left: calc(20% / 3)
$main-nav-main-sibling-margin-top: 60px
$main-nav-left-button-size: 50px
$main-nav-left-button-font-size: 18px
// hero
$hero-padding-top: 80px
$headline-wrapper-margin-bottom: 40px
$quickstart-button-padding: 0 50px
$vendor-strip-height: 88px
$vendor-strip-font-size: 16px
// video
$video-section-height: 200px
@import "size"
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
body
background-color: white
section
position: relative
background-color: white
section, header, footer
main
position: relative
margin: auto
p
font-size: 14px
font-weight: 400
.button
display: inline-block
border-radius: 6px
padding: 0 20px
line-height: 40px
color: white
background-color: $blue
text-decoration: none
#cellophane
position: fixed
top: 0
left: 0
width: 100%
height: 100%
display: none
// HEADER
header
position: fixed
top: 0
left: 0
width: 100%
z-index: 8888
background-color: transparent
box-shadow: 0 0 0 transparent
overflow: hidden
transition: 0.3s
text-align: center
.logo
position: relative
float: left
display: block
width: 180px
height: 88px
top: 0
left: 0
transform: none
background-image: url(/images/nav_logo.svg)
background-size: contain
background-position: center center
background-repeat: no-repeat
#docs
.flyout-button
position: fixed
top: 20px
left: 20px
width: 50px
height: 50px
background-image: url(/images/toc_icon.png)
background-position: center center
background-repeat: no-repeat
background-size: auto
border-radius: 50%
transition: 0.3s
z-index: 99999
&.open-nav .flyout-button
display: none
.logo
position: absolute
top: 40px
left: 50%
transform: translate(-50%, -50%)
display: block
width: 45px
height: 44px
background-image: url(/images/favicon.png)
&.flip-nav .flyout-button
background-image: url(/images/toc_icon_grey.png)
.nav-buttons
float: right
#viewDocs, #tryKubernetes
display: none
#viewDocs
border: 2px solid white
background-color: transparent
transition: 0.3s
&:hover
background-color: white
color: $dark-grey
#tryKubernetes
width: 0
padding: 0 0
border: 1px solid transparent
background-color: transparent
text-align: center
white-space: nowrap
vertical-align: middle
overflow: hidden
transition: 0.3s
#hamburger
display: inline-block
position: relative
vertical-align: middle
padding: 0
border: 0
background: none
div, &:before, &:after
position: absolute
left: 15%
width: 70%
height: 2px
background-color: $blue
transition: 0.3s
content: ""
div
top: calc(50% - 1px)
&:before
top: 24%
&:after
bottom: 24%
&:hover
div, &:before, &:after
background-color: white
#mainNav
h5
color: $blue
font-weight: normal
main
white-space: nowrap
overflow: hidden
clear: both
.nav-box
float: left
white-space: normal
h3
a
color: $blue
text-decoration: none
// Global Nav - 12/9/2016 Update
ul.global-nav
display: none
li
display: inline-block
margin-right: 14px
a
color: #fff
font-weight: 400
padding: 0
position: relative
&.active:after
position: absolute
width: 100%
height: 2px
content: ''
bottom: -4px
left: 0
background: #fff
.ui-icon
filter: brightness(0) invert(1)
ul
display: none
position: fixed
top: 40px
text-align: left
li
display: block
height: 28px
a
background: $dark-grey
color: #fff
padding: 7px
li:last-child
a
border-radius: 7px
li:hover
ul
display: block
.flip-nav ul.global-nav li a,
.open-nav ul.global-nav li a,
color: $dark-grey
.flip-nav ul.global-nav li a .ui-icon
filter: brightness(0)
.flip-nav ul.global-nav li ul li a,
background: #fff
color: $dark-grey
.flip-nav ul.global-nav li a.active:after,
.flip-nav ul.global-nav li ul li a.active:after,
.open-nav ul.global-nav li a.active:after,
background: $blue
// FLIP NAV
.flip-nav
header
background-color: white
// OPEN NAV
.open-nav
body
overflow: hidden
#cellophane
display: block
z-index: 9998
header
background-color: #e8e8e8
z-index: 9999
#hamburger
div
opacity: 0
&:before, &:after
left: 12px
transform-origin: 0 1px
&:before
transform: rotate(45deg)
&:after
transform: rotate(-45deg)
.open-nav, .y-enough
#tryKubernetes
width: 150px
background-color: $blue
border-color: $blue
.flip-nav, .open-nav
header
box-shadow: 0 1px 2px $medium-grey
#viewDocs
border-color: $dark-grey
color: $dark-grey
&:hover
border-color: $blue
background-color: $blue
color: white
#hamburger:hover
div, &:before, &:after
background-color: $dark-grey
// HERO
#hero
background-image: url(/images/texture.png)
background-color: $dark-grey
text-align: center
padding-left: 0
padding-right: 0
margin-bottom: 0
position: relative
&.bot-bar:after
display: block
margin-bottom: -20px
height: 8px
width: 100%
background-color: transparentize(white, 0.9)
content: ''
&.no-sub
h5
display: none
h1
margin-bottom: 20px
#home #hero:after
display: none
// VENDOR STRIP
#vendorStrip
position: relative
background-color: transparentize(white, 0.9)
font-weight: 100
white-space: nowrap
text-align: center
li a
color: transparentize(white, 0.5)
&.YAH
color: white
position: relative
// FOOTER
footer
width: 100%
background-image: url(/images/texture.png)
background-color: $dark-grey
main
padding: 20px 0
nav
a
width: 100%
text-align: center
display: inline-block
margin: 10px 0
font-size: 24px
font-weight: 300
color: white
text-decoration: none
.social
margin: 20px 0
div
text-align: center
margin-bottom: 20px
div:last-child
margin: 30px 0
span
display: block
margin-bottom: 8px
input
text-align: center
#search, #wishField
background-color: transparent
padding: 10px
font-size: 16px
font-weight: 100
color: white
border: 1px solid white
transition: 0.3s
&:focus
background-color: $light-grey
color: $dark-grey
.social a
display: inline-block
background-image: url(/images/social_sprite.png)
background-repeat: no-repeat
background-size: auto
width: 50px
height: 50px
border-radius: 5px
margin-right: 10px
&:hover
background-color: #fff
span
position: absolute
display: block
height: 0
overflow: hidden
&.button
background-image: none
width: auto
height: auto
&:hover
color: $blue
a.twitter
background-position: 0 0
&:hover
background-position: 0 100%
a.stack-overflow
background-position: -50px 0
&:hover
background-position: -50px 100%
a.slack
background-position: -100px 0
&:hover
background-position: -100px 100%
a.github
background-position: -150px 0
&:hover
background-position: -150px 100%
a.mailing-list
background-position: -200px 0
&:hover
background-position: -200px 100%
a.calendar
background-position: -250px 0
&:hover
background-position: -250px 100%
#viewDocs
display: none
section
background-color: white
#hero
background-color: $dark-grey
h5
margin: 20px 0
line-height: 28px
#vendorStrip
position: relative
ul
float: left
li
display: inline-block
height: 100%
a
display: block
height: 100%
color: white
font-size: 0.75em
font-weight: bold
li + li
margin-left: 0
#docs
#vendorStrip
line-height: 44px
ul
float: none
#searchBox
float: none
display: block
width: 80%
margin: 0 auto
height: 44px
line-height: 44px
position: relative
&:before
position: absolute
width: 15px
height: 15px
content: ''
right: 8px
top: 7px
background-image: url(/images/search-icon.svg)
background-repeat: no-repeat
background-size: 100% 100%
z-index: 1
#search
width: 100%
padding: 0 10px
height: 30px
line-height: 30px
font-size: 16px
vertical-align: top
background: #fff
border: none
border-radius: 4px
position: relative
#encyclopedia
position: relative
padding: 50px 20px 20px 20px
overflow: hidden
font-size: 14px
& > div
height: 100%
#docsToc
position: fixed
background-color: white
top: 0
left: 0
width: 0
height: 100vh
overflow: hidden
padding: 50px 0
z-index: 999999
transition: 0.3s
.yah
& > .title
background-color: $light-grey
border-left: 3px solid $blue
padding: 7.5px 10px 7.5px 18px
margin-left: -3px
color: $blue
.open-toc
body
overflow: hidden
#docsToc
padding: 50px 20px
width: 400px
max-width: 100vw
overflow-y: auto
.pi-accordion
& > .container:first-child > .item:first-child > .title:first-child
padding-left: 0
font-size: 1.5em
font-weight: 700
& > .container:first-child > .item.yah:first-child > .title:first-child
margin-left: -20px !important
.item
overflow: hidden
.title
color: $dark-grey
position: relative
padding: 7.5px 10px 7.5px 18px
cursor: pointer
transition: 0.3s
&:hover
color: $blue
a.item > .title
color: black
&:hover
color: $blue
div.item > .title
&:before
content: ""
position: absolute
top: 12px
left: 2px
border-style: solid
border-width: 5px 0 5px 8px
border-color: transparent transparent transparent $blue
transform: rotate(0deg)
transition: 0.3s
.wrapper
position: relative
width: 100%
transition: height 0.3s
.content
padding-left: 20px
opacity: 0
transition: 0.3s
.item.on
& > .title:before
transform: rotate(90deg)
& > .wrapper > .content
opacity: 1
dt
margin-bottom: 8px
dd
margin-bottom: 16px
.pi-pushmenu
display: none
position: fixed
top: 0
width: 100%
height: 100%
opacity: 0
transition: opacity 0.3s
&.on
opacity: 1
.overlay
position: fixed
top: 0
left: 0
width: 100%
height: 100%
background-color: rgba(0, 0, 0, 0.4)
.sled
position: absolute
top: 0
width: 0
height: 100%
background-color: white
overflow: auto
transition: 0.3s
&.on .sled
width: 400px
max-width: 100vw
.top-bar
height: 0
line-height: 60px
background-color: #444
ul
margin-top: 25px
li
position: relative
display: block
width: 100%
min-height: 45px
padding: 0 60px 0 20px
border-bottom: 1px solid #cccccc
a
display: inline-block
width: 100%
height: 45px
line-height: 45px
font-family: "Roboto", sans-serif
font-size: 20px
color: $blue
.button
background: none
padding: 0
ul ul
padding: 0 20px
li
min-height: 40px
a
height: 40px
line-height: 40px
font-size: 18px
color: lighten(#222222, 20%)
.push-menu-close-button
position: absolute
top: 0
right: 0
width: 50px
height: 50px
&:before, &:after
content: ""
position: absolute
top: calc(50% - 1px)
left: 25%
width: 50%
height: 2px
background-color: black
&:before
transform: rotate(45deg)
&:after
transform: rotate(-45deg)
#docsContent
position: relative
float: right
width: 100%
$toc-margin: 15px
$header-clearance: $header-height + 20px
* + h2, * + h3, * + h4, * + h5, * + h6
margin-top: 30px
h1, h2, h3, h4, h5, h6
line-height: normal
font-weight: 500
margin-bottom: 30px
padding-bottom: 10px
// Make sure anchor links aren't hidden by the header
&:before
display: block
content: " "
margin-top: -$header-clearance
height: $header-clearance
visibility: hidden
h1,h2
border-bottom: 1px solid #cccccc
h1
font-size: 32px
padding-right: 60px
h2
font-size: 28px
h3
font-size: 24px
font-weight: 300
margin-bottom: 5px
h4
font-size: 20px
margin-bottom: 0px
h5, h6
font-size: 16px
font-weight: 500
p
font-size: 16px
font-weight: 300
line-height: 1.75em
p + p
margin-top: 10px
code
display: inline-block
box-sizing: border-box
background-color: $light-grey
color: $dark-grey
font-family: $mono-font
vertical-align: baseline
font-size: 14px
font-weight: bold
padding: 2px 4px
a code
color: $blue
text-decoration: underline
pre .pi, pre .s
margin: 0
padding: 0
.highlight code span, code, pre code
font-family: "Roboto Mono", monospace
code, pre code
color: #303030
pre code
padding: 0
pre
background-color: #f7f7f7
display: block
margin: 20px 0
padding: 15px
position: relative
overflow-x: auto
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code
font-family: inherit
font-size: inherit
background-color: transparent
.includecode
table-layout: fixed
.includecode, .includecode th, .includecode td
padding: 0 !important
.includecode th
text-align: right !important
padding: 10px !important
.includecode th a, .includecode th a code
color: white !important
background-color: transparent !important
.includecode pre
margin: 0 !important
ul li
list-style: disc
ol li
list-style: decimal
ul, ol
margin: 20px 0
padding-left: 30px
font-weight: 300
ul ul, ol ol, ul ol, ol ul
margin: 0.75em 0
li
margin-bottom: 0.75em
font-size: 16px
line-height: 1.75em
table
width: 100%
border: 1px solid #ccc
border-spacing: 0
margin-top: 30px
margin-bottom: 30px
thead, tr:nth-child(even)
background-color: $light-grey
thead
background-color: #555
color: white
th, td
padding: 8px
text-align: left
margin: 0
th
font-weight: normal
td
font-size: 0.85em
#editPageButton
position: absolute
top: -25px
right: 5px
width: 50px
height: 50px
line-height: 50px
border-radius: 50%
white-space: nowrap
text-indent: 50px
overflow: hidden
background: $blue url(/images/icon-pencil.svg) no-repeat
background-position: 12px 10px
background-size: 29px 29px
#markdown-toc
margin-bottom: 20px
ul, li
list-style: disc
color: $blue
ul
padding: 0 15px
margin: 0
li
padding: 0
line-height: 1.5em
margin-bottom: 0
a
position: relative
color: $blue
font-weight: 700
img
max-width: 100%