|
| 1 | +body { |
| 2 | + padding-top: 70px; |
| 3 | +} |
| 4 | + |
| 5 | +h1[id]:before, h2[id]:before, h3[id]:before, h4[id]:before, h5[id]:before, h6[id]:before { |
| 6 | + content: ""; |
| 7 | + display: block; |
| 8 | + margin-top: -75px; |
| 9 | + height: 75px; |
| 10 | +} |
| 11 | + |
| 12 | +ul.nav li.main { |
| 13 | + font-weight: bold; |
| 14 | +} |
| 15 | + |
| 16 | +div.col-md-3 { |
| 17 | + padding-left: 0; |
| 18 | +} |
| 19 | + |
| 20 | +div.col-md-9 { |
| 21 | + padding-bottom: 100px; |
| 22 | +} |
| 23 | + |
| 24 | +div.source-links { |
| 25 | + float: right; |
| 26 | +} |
| 27 | + |
| 28 | +/* |
| 29 | + * Side navigation |
| 30 | + * |
| 31 | + * Scrollspy and affixed enhanced navigation to highlight sections and secondary |
| 32 | + * sections of docs content. |
| 33 | + */ |
| 34 | + |
| 35 | +/* By default it's not affixed in mobile views, so undo that */ |
| 36 | +.bs-sidebar.affix { |
| 37 | + position: static; |
| 38 | +} |
| 39 | + |
| 40 | +.bs-sidebar.well { |
| 41 | + padding: 0; |
| 42 | +} |
| 43 | + |
| 44 | +/* First level of nav */ |
| 45 | +.bs-sidenav { |
| 46 | + margin-top: 30px; |
| 47 | + margin-bottom: 30px; |
| 48 | + padding-top: 10px; |
| 49 | + padding-bottom: 10px; |
| 50 | + border-radius: 5px; |
| 51 | +} |
| 52 | + |
| 53 | +/* All levels of nav */ |
| 54 | +.bs-sidebar .nav > li > a { |
| 55 | + display: block; |
| 56 | + padding: 5px 20px; |
| 57 | + z-index: 1; |
| 58 | +} |
| 59 | +.bs-sidebar .nav > li > a:hover, |
| 60 | +.bs-sidebar .nav > li > a:focus { |
| 61 | + text-decoration: none; |
| 62 | + border-right: 1px solid; |
| 63 | +} |
| 64 | +.bs-sidebar .nav > .active > a, |
| 65 | +.bs-sidebar .nav > .active:hover > a, |
| 66 | +.bs-sidebar .nav > .active:focus > a { |
| 67 | + font-weight: bold; |
| 68 | + background-color: transparent; |
| 69 | + border-right: 1px solid; |
| 70 | +} |
| 71 | + |
| 72 | +/* Nav: second level (shown on .active) */ |
| 73 | +.bs-sidebar .nav .nav { |
| 74 | + display: none; /* Hide by default, but at >768px, show it */ |
| 75 | + margin-bottom: 8px; |
| 76 | +} |
| 77 | +.bs-sidebar .nav .nav > li > a { |
| 78 | + padding-top: 3px; |
| 79 | + padding-bottom: 3px; |
| 80 | + padding-left: 30px; |
| 81 | + font-size: 90%; |
| 82 | +} |
| 83 | + |
| 84 | +/* Show and affix the side nav when space allows it */ |
| 85 | +@media (min-width: 992px) { |
| 86 | + .bs-sidebar .nav > .active > ul { |
| 87 | + display: block; |
| 88 | + } |
| 89 | + /* Widen the fixed sidebar */ |
| 90 | + .bs-sidebar.affix, |
| 91 | + .bs-sidebar.affix-bottom { |
| 92 | + width: 213px; |
| 93 | + } |
| 94 | + .bs-sidebar.affix { |
| 95 | + position: fixed; /* Undo the static from mobile first approach */ |
| 96 | + top: 80px; |
| 97 | + } |
| 98 | + .bs-sidebar.affix-bottom { |
| 99 | + position: absolute; /* Undo the static from mobile first approach */ |
| 100 | + } |
| 101 | + .bs-sidebar.affix-bottom .bs-sidenav, |
| 102 | + .bs-sidebar.affix .bs-sidenav { |
| 103 | + margin-top: 0; |
| 104 | + margin-bottom: 0; |
| 105 | + } |
| 106 | +} |
| 107 | +@media (min-width: 1200px) { |
| 108 | + /* Widen the fixed sidebar again */ |
| 109 | + .bs-sidebar.affix-bottom, |
| 110 | + .bs-sidebar.affix { |
| 111 | + width: 263px; |
| 112 | + } |
| 113 | +} |
0 commit comments