@@ -8,94 +8,120 @@ body {
8
8
font-size : 16px ;
9
9
font-weight : 400 ;
10
10
line-height : 1.6 ;
11
- background : # fff ;
12
11
color : # 2A2929 ;
13
12
width : 100% ;
13
+ background : # f5f5f5 ;
14
14
}
15
15
16
16
# top {
17
- background : # fff ;
17
+ background-color : # 3398DC ;
18
18
color : # fff ;
19
- color : # 2A2929 ;
20
19
font-family : 'Roboto Slab' , serif;
21
20
line-height : 80px ;
22
21
}
23
22
23
+ # content {
24
+ display : flex;
25
+ flex-direction : row;
26
+ flex-wrap : wrap;
27
+ justify-content : center;
28
+ }
29
+
24
30
.header {
25
31
display : flex;
26
32
flex-direction : row;
27
33
}
28
34
29
- .side , .page , .right-side {
30
- padding-top : 70px ;
35
+ .side , .page , .side-right {
36
+ padding : 70px 30px ;
37
+ }
38
+
39
+ .side , .side-right {
40
+ flex : 1 ;
41
+ }
42
+
43
+ .side {
44
+ order : 1 ;
45
+ display : flex;
46
+ flex-direction : column;
47
+ align-items : flex-end;
31
48
}
32
49
33
50
.page {
34
- width : 500px ;
51
+ order : 2 ;
52
+ padding : 70px ;
53
+ position : relative;
54
+ min-width : 500px ;
55
+ max-width : 900px ;
56
+ box-sizing : border-box;
57
+ flex-shrink : 0 ;
58
+ flex-grow : 1 ;
35
59
background : # fff ;
36
- padding-right : 30px ;
37
60
}
38
61
39
- # content {
62
+ .side-right {
63
+ order : 3 ;
64
+ }
65
+
66
+ .header {
40
67
display : flex;
41
68
flex-direction : row;
42
- flex-wrap : wrap ;
69
+ justify-content : center ;
43
70
}
44
71
45
- .header a , . header a : visited , . header a : hover {
46
- color : # 616161 ;
47
- text-decoration : none ;
72
+ .header . logo {
73
+ flex : 1 ;
74
+ text-align : right ;
48
75
}
49
76
50
- .header h1 {
77
+ .header . logo a {
51
78
color : # fff ;
52
- background-color : # 3398DC ;
53
79
margin : 0 ;
54
- border : 0 ;
55
80
font-size : 22px ;
56
- margin-right : 30px ;
57
- display : flex;
58
- flex-direction : row;
59
- width : 215px ;
81
+ padding : 0 50px 0 80px ;
82
+ background-image : url ('../images/logo-white.svg' );
83
+ background-repeat : no-repeat;
84
+ background-size : 40px 40px ;
85
+ background-position : 16.5px 18px ;
86
+ line-height : 80px ;
87
+ display : inline-block;
88
+ vertical-align : top;
60
89
}
61
90
62
- .header h1 a , .header h1 a : visited {
63
- box-sizing : border-box;
64
- height : 80px ;
65
- margin : 0px ;
91
+ .header .logo a : visited {
66
92
color : # fff ;
67
- padding-top : 27px ;
68
- line-height : 1 ;
69
93
}
70
94
71
- .header h1 .logo {
72
- width : 80px ;
73
- height : 80px ;
74
- background-color : # 3398DC ;
75
- background-image : url ('../images/logo-white.svg' );
76
- background-repeat : no-repeat;
77
- background-size : 40px 40px ;
78
- background-position : 16.5px 18px ;
95
+ .header .search {
96
+ flex : 1 ;
97
+ }
98
+
99
+ .header nav {
100
+ flex-grow : 1 ;
101
+ max-width : 900px ;
79
102
}
80
103
81
104
.header nav a {
82
- margin-right : 50px ;
83
105
font-size : 16px ;
106
+ text-transform : lowercase;
107
+ line-height : 80px ;
108
+ display : inline-block;
109
+ padding : 0 25px ;
84
110
}
85
111
86
- .header nav a : hover {
87
- border-bottom : 1px solid # 868585 ;
112
+ .header nav a .active {
113
+ background : # fff ;
114
+ color : # 616161 ;
115
+ text-decoration : underline;
88
116
}
89
117
90
- .header nav .tutorial-link {
91
- background : # fb8c00 ;
92
- padding : 4px 6px ;
93
- color : # fff ;
118
+ .header nav a : hover {
119
+ text-decoration : underline;
94
120
}
95
121
96
- .header nav . tutorial-link : hover {
97
- border : 0 ;
98
- opacity : 0.9 ;
122
+ .header a , . header a : visited , . header a : hover {
123
+ color : # fff ;
124
+ text-decoration : none ;
99
125
}
100
126
101
127
.page h1 {
@@ -220,10 +246,7 @@ h2, h3 {
220
246
}
221
247
222
248
.side {
223
- background : # fff ;
224
249
width : 190px ;
225
- padding-left : 35px ;
226
- padding-right : 20px ;
227
250
font-family : 'Roboto Slab' , serif;
228
251
font-size : 14px ;
229
252
color : # 7A7373 ;
@@ -246,33 +269,27 @@ h2, h3 {
246
269
position : relative;
247
270
}
248
271
249
- .page {
250
- padding-bottom : 30px ;
251
- }
252
-
253
- .side .improve-docs {
254
- background : rgba (255 , 255 , 255 , 0.75 );
272
+ .improve-docs {
255
273
position : fixed;
256
274
bottom : 0 ;
275
+ left : 0 ;
257
276
color : # 9B9B9B ;
258
277
font-size : 13px ;
259
278
list-style-type : none;
260
279
margin : 0 ;
261
- padding : 0 ;
262
- padding-top : 20px ;
263
- padding-bottom : 20px ;
280
+ padding : 30px ;
264
281
}
265
282
266
- .side . improve-docs a , . side .improve-docs a : visited {
283
+ .improve-docs a , .improve-docs a : visited {
267
284
color : # 616161 ;
268
285
}
269
286
270
- .side . improve-docs li {
271
- margin-bottom : 5px ;
287
+ .improve-docs li {
288
+ margin-top : 5px ;
272
289
margin-left : -4px ;
273
290
}
274
291
275
- .side . improve-docs img {
292
+ .improve-docs img {
276
293
width : 16px ;
277
294
height : 16px ;
278
295
margin-bottom : -4px ;
@@ -281,7 +298,7 @@ h2, h3 {
281
298
opacity : 0.5 ;
282
299
}
283
300
284
- .side . improve-docs li : hover img {
301
+ .improve-docs li : hover img {
285
302
filter : none;
286
303
opacity : 1 ;
287
304
}
@@ -290,6 +307,7 @@ h2, h3 {
290
307
position : relative;
291
308
margin-bottom : 2rem ;
292
309
margin-left : -.15rem ;
310
+ width : 200px ;
293
311
}
294
312
295
313
.side .context a {
@@ -382,11 +400,6 @@ h2, h3 {
382
400
margin-bottom : 0 ;
383
401
}
384
402
385
- .page {
386
- position : relative;
387
- flex-shrink : 0 ;
388
- }
389
-
390
403
.aside {
391
404
border-left : 2px solid # EFB198 ;
392
405
padding : 0 1em ;
@@ -396,7 +409,6 @@ h2, h3 {
396
409
font-size : 18px ;
397
410
font-style : italic;
398
411
color : # 616161 ;
399
- padding-bottom : 30px ;
400
412
}
401
413
402
414
.splash-intro h2 {
@@ -446,20 +458,6 @@ h2, h3 {
446
458
border-left : 1px solid # E6E7E8 ;
447
459
}
448
460
449
- .side-right {
450
- background : # f5f5f5 ;
451
- flex-shrink : 1 ;
452
- flex-grow : 1 ;
453
- flex-basis : 500px ;
454
- padding-left : 245px ;
455
- border-top : 1px solid # ddd ;
456
- padding-top : 20px ;
457
- }
458
-
459
- .content-right {
460
- width : 500px ;
461
- }
462
-
463
461
.side-right .example {
464
462
margin-bottom : 3em ;
465
463
}
@@ -487,20 +485,17 @@ h2, h3 {
487
485
}
488
486
489
487
@media (min-width : 1115px ) {
490
- .page .wide {
491
- width : 800px ;
492
- }
493
-
494
488
.side-by-side {
495
489
flex-direction : row;
496
490
justify-content : space-between;
497
491
}
498
492
499
493
.segment {
500
- width : 386 px ;
494
+ width : 350 px ;
501
495
}
502
496
503
497
.segment .example {
498
+ width : 385px ;
504
499
flex-shrink : 0 ;
505
500
}
506
501
@@ -509,17 +504,16 @@ h2, h3 {
509
504
}
510
505
}
511
506
507
+ .side-right .content-right {
508
+ width : 500px ;
509
+ }
510
+
512
511
@media (min-width : 1246px ) {
513
- .side-right {
514
- flex-basis : 400px ;
515
- padding-left : 30px ;
516
- border-left : 1px solid # ddd ;
512
+ .side-right : not (: empty ) {
517
513
border-top : 0 ;
518
- margin-top : -80px ;
519
- padding-top : 142px ;
520
514
}
521
515
522
- .content-right {
516
+ .side-right . content-right {
523
517
width : 400px ;
524
518
}
525
519
}
@@ -806,13 +800,12 @@ h2, h3 {
806
800
z-index : 101 ;
807
801
border : 1px solid transparent;
808
802
box-sizing : border-box;
809
- background : # cdcdcd url ('../images/search_icon.svg' ) no-repeat top 3.5px right 2.5px ;
803
+ background : rgba ( 255 , 255 , 255 , 0.25 ) url ('../images/search_icon.svg' ) no-repeat top 3.5px right 2.5px ;
810
804
padding : 5px ;
811
805
transition : all 0.25s ease-out;
812
806
position : absolute;
813
- left : 470 px ;
807
+ right : 30 px ;
814
808
top : 24px ;
815
- right : 0 ;
816
809
width : 32px ;
817
810
height : 32px ;
818
811
}
@@ -828,7 +821,7 @@ h2, h3 {
828
821
.search-input : focus , .search-input : valid {
829
822
outline : none;
830
823
position : absolute;
831
- left : 0 ;
824
+ right : 30 px ;
832
825
background : # fff ;
833
826
border-color : # ddd ;
834
827
width : 500px ;
@@ -847,6 +840,7 @@ h2, h3 {
847
840
box-sizing : border-box;
848
841
position : fixed;
849
842
top : 50px ;
843
+ right : 30px ;
850
844
bottom : 0 ;
851
845
margin : 0 ;
852
846
overflow-y : auto;
0 commit comments