@@ -24,6 +24,10 @@ body {
24
24
overflow-x : hidden;
25
25
}
26
26
27
+ nav {
28
+ font-size : 17px ;
29
+ }
30
+
27
31
/* some of this is to reset bootstrap */
28
32
nav .navbar {
29
33
background-color : inherit;
@@ -37,6 +41,10 @@ nav.navbar {
37
41
-webkit-justify-content : center;
38
42
}
39
43
44
+ nav .container {
45
+ white-space : nowrap;
46
+ }
47
+
40
48
header {
41
49
background-color : # 607D8B ;
42
50
color : white;
@@ -51,6 +59,10 @@ header.container-fluid {
51
59
padding : 0 ;
52
60
}
53
61
62
+ header .masthead {
63
+ padding-top : 64px ;
64
+ }
65
+
54
66
.body {
55
67
margin-top : 24px ;
56
68
}
@@ -79,7 +91,7 @@ h1.title {
79
91
}
80
92
81
93
h2 {
82
- font-size : 32 px ;
94
+ font-size : 24 px ;
83
95
}
84
96
85
97
h5 {
@@ -174,7 +186,6 @@ code {
174
186
}
175
187
176
188
header h1 {
177
- margin-top : 80px ;
178
189
font-weight : 400 ;
179
190
margin-bottom : 16px ;
180
191
}
@@ -208,12 +219,6 @@ section.summary h2 {
208
219
border-bottom : 1px solid # CFD8DC ;
209
220
}
210
221
211
- section .summary dd {
212
- white-space : nowrap;
213
- overflow-x : hidden;
214
- text-overflow : ellipsis;
215
- }
216
-
217
222
/* indents wrapped lines */
218
223
section .summary dt {
219
224
margin-left : 24px ;
@@ -315,27 +320,27 @@ footer .container-fluid {
315
320
316
321
.gt-separated {
317
322
list-style : none;
318
- padding : 0 ;
319
- display : inline;
320
323
}
321
324
322
325
.gt-separated li {
323
- display : inline;
326
+ display : inline-block ;
324
327
}
325
328
326
- .gt-separated li : after {
329
+ .gt-separated li : before {
327
330
background-image : url ("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='#FFFFFF' d='M6.7,4L5.7,4.9L8.8,8l-3.1,3.1L6.7,12l4-4L6.7,4z'/></svg>" );
328
331
background-position : center;
329
- content : " " ;
330
- padding-left : 16px ;
332
+ content : "\00a0 " ;
333
+ margin : 0 16px 0 12 px ;
331
334
}
332
335
333
- .gt-separated .dark li : after {
336
+ .gt-separated .dark li : before {
334
337
background-image : url ("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='#727272' d='M6.7,4L5.7,4.9L8.8,8l-3.1,3.1L6.7,12l4-4L6.7,4z'/></svg>" );
335
338
}
336
339
337
- .gt-separated li : last -child: after {
340
+ .gt-separated li : first -child: before {
338
341
background-image : none;
342
+ content : "" ;
343
+ margin : 0 ;
339
344
}
340
345
341
346
.is-inherited {
@@ -351,12 +356,25 @@ footer .container-fluid {
351
356
padding : 0 ;
352
357
margin : 8px 0 8px 0 ;
353
358
font-size : 17px ;
359
+ white-space : nowrap;
360
+ line-height : 1 ;
354
361
}
355
362
356
- .breadcrumbs li .self-crumb {
363
+ @media screen and (max-width : 768px ) {
364
+ .breadcrumbs {
365
+ margin : 0 0 24px 0 ;
366
+ }
367
+ }
368
+
369
+ .self-crumb {
357
370
color : # CFD8DC ;
358
371
}
359
372
373
+ nav .self-name {
374
+ color : # CFD8DC ;
375
+ display : none;
376
+ }
377
+
360
378
.annotation-list {
361
379
list-style : none;
362
380
padding : 0 ;
@@ -467,46 +485,67 @@ span.top-level-variable-type {
467
485
468
486
/* sidebar styles */
469
487
470
- .sidebar-offcanvas h5 {
471
- margin-bottom : 16 px ;
488
+ .sidebar-offcanvas-left {
489
+ background-color : # f7f7f7 ;
472
490
}
473
491
474
- ol # sidebar {
492
+ ol . sidebar {
475
493
list-style : none;
476
- padding : 0 ;
494
+ padding : 16 px 0 16 px 0 ;
477
495
font-size : 14px ;
478
496
line-height : 24px ;
479
497
}
480
498
481
- ol # sidebar li {
499
+ ol . sidebar li {
482
500
text-overflow : ellipsis;
483
501
overflow : hidden;
484
502
}
485
503
486
- ol # sidebar li .section-title a {
504
+ ol . sidebar li .section-title a {
487
505
color : inherit;
488
506
}
489
507
490
- ol # sidebar li .section-title {
508
+ ol . sidebar li .section-title {
491
509
font-size : 12px ;
492
510
text-transform : uppercase;
493
511
line-height : 20px ;
494
512
margin-top : 24px ;
495
513
}
496
514
497
- ol # sidebar li : first-child {
515
+ ol . sidebar li : first-child {
498
516
padding-top : 0 ;
499
517
margin-top : 0 ;
500
518
}
501
519
502
- # sidenav-toggle {
520
+ button {
521
+ padding : 0 ;
522
+ }
523
+
524
+ # sidenav-left-toggle {
503
525
display : none;
504
526
vertical-align : text-bottom;
505
527
padding : 0 ;
506
528
}
507
529
508
- @media screen and (max-width : 767px ) {
509
- # sidenav-toggle {
530
+ # sidenav-right-toggle {
531
+ display : inline;
532
+ background : no-repeat url ("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='#FFFFFF' d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/></svg>" );
533
+ background-position : center;
534
+ width : 24px ;
535
+ height : 24px ;
536
+ border : none;
537
+ display : none;
538
+ vertical-align : text-bottom;
539
+ }
540
+
541
+ /* left-nav disappears, and can transition in from the left */
542
+ @media screen and (max-width : 768px ) {
543
+ .main-content {
544
+ padding-left : 0 ;
545
+ padding-right : 0 ;
546
+ }
547
+
548
+ # sidenav-left-toggle {
510
549
display : inline;
511
550
background : no-repeat url ("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='#FFFFFF' d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/></svg>" );
512
551
background-position : center;
@@ -515,21 +554,55 @@ ol#sidebar li:first-child {
515
554
border : none;
516
555
margin-right : 24px ;
517
556
}
518
- .row-offcanvas {
519
- position : relative;
557
+
558
+ .sidebar-offcanvas-left {
559
+ left : -100% ;
560
+ position : fixed;
520
561
-webkit-transition : all .25s ease-out;
521
562
-o-transition : all .25s ease-out;
522
563
transition : all .25s ease-out;
564
+ z-index : 2000 ;
565
+ top : 0 ;
566
+ padding-left : 15px ;
567
+ width : 280px ; /* works all the way down to an iphone 4 */
568
+ height : 100% ;
569
+ background-color : white;
570
+ overflow-y : auto; /* TODO: how to hide scroll bars? */
523
571
}
524
- .row-offcanvas-right {right : 0 ;}
525
- .row-offcanvas-left {left : 0 ;}
526
- .row-offcanvas-right
527
- .sidebar-offcanvas {right : -50% ;}
528
- .row-offcanvas-left
529
- .sidebar-offcanvas {left : -50% ; margin-left : 16px ;}
530
- .row-offcanvas-right .active {right : 50% ;}
531
- .row-offcanvas-left .active {left : 50% ;}
532
- .sidebar-offcanvas {position : absolute;top : 0 ;width : 50% ;}
572
+
573
+ .sidebar-offcanvas-left .active {
574
+ left : 0 ; /* this animates our drawer into the page */
575
+ }
576
+ }
577
+
578
+ /* the right nav disappears out of view */
579
+ /* THIS IS TOTALLY BROKEN... WILL REDO RIGHT-NAV */
580
+ @media screen and (max-width : 992px ) {
581
+ .sidebar-offcanvas-right {
582
+ right : -66% ;
583
+ position : fixed;
584
+ -webkit-transition : all .25s ease-out;
585
+ -o-transition : all .25s ease-out;
586
+ transition : all .25s ease-out;
587
+ z-index : 2000 ;
588
+ top : 0 ;
589
+ width : 50% ;
590
+ padding : 0 ;
591
+ }
592
+
593
+ /* this mumbo jumbo disables scroll bars */
594
+ .sidebar-offcanvas-right {
595
+ overflow-y : auto;
596
+ visibility : hidden;
597
+ }
598
+
599
+ .sidebar-offcanvas-right ol {
600
+ visibility : visible;
601
+ background-color : white;
602
+ }
603
+ /* /insanity */
604
+
605
+ .sidebar-offcanvas-right .active {right : 0 ;}
533
606
}
534
607
535
608
/* source code method bodies */
0 commit comments