|
| 1 | +/*! |
| 2 | + * Bootstrap Table of Contents v0.4.1 (http://afeld.github.io/bootstrap-toc/) |
| 3 | + * Copyright 2015 Aidan Feldman |
| 4 | + * Licensed under MIT (https://github.com/afeld/bootstrap-toc/blob/gh-pages/LICENSE.md) */ |
| 5 | + |
| 6 | +/* modified from https://github.com/twbs/bootstrap/blob/94b4076dd2efba9af71f0b18d4ee4b163aa9e0dd/docs/assets/css/src/docs.css#L548-L601 */ |
| 7 | + |
| 8 | +/* All levels of nav */ |
| 9 | +nav[data-toggle='toc'] .nav > li > a { |
| 10 | + display: block; |
| 11 | + padding: 4px 20px; |
| 12 | + font-size: 13px; |
| 13 | + font-weight: 500; |
| 14 | + color: #767676; |
| 15 | +} |
| 16 | +nav[data-toggle='toc'] .nav > li > a:hover, |
| 17 | +nav[data-toggle='toc'] .nav > li > a:focus { |
| 18 | + padding-left: 19px; |
| 19 | + color: #563d7c; |
| 20 | + text-decoration: none; |
| 21 | + background-color: transparent; |
| 22 | + border-left: 1px solid #563d7c; |
| 23 | +} |
| 24 | +nav[data-toggle='toc'] .nav > .active > a, |
| 25 | +nav[data-toggle='toc'] .nav > .active:hover > a, |
| 26 | +nav[data-toggle='toc'] .nav > .active:focus > a { |
| 27 | + padding-left: 18px; |
| 28 | + font-weight: bold; |
| 29 | + color: #563d7c; |
| 30 | + background-color: transparent; |
| 31 | + border-left: 2px solid #563d7c; |
| 32 | +} |
| 33 | + |
| 34 | +/* Nav: second level (shown on .active) */ |
| 35 | +nav[data-toggle='toc'] .nav .nav { |
| 36 | + display: none; /* Hide by default, but at >768px, show it */ |
| 37 | + padding-bottom: 10px; |
| 38 | +} |
| 39 | +nav[data-toggle='toc'] .nav .nav > li > a { |
| 40 | + padding-top: 1px; |
| 41 | + padding-bottom: 1px; |
| 42 | + padding-left: 30px; |
| 43 | + font-size: 12px; |
| 44 | + font-weight: normal; |
| 45 | +} |
| 46 | +nav[data-toggle='toc'] .nav .nav > li > a:hover, |
| 47 | +nav[data-toggle='toc'] .nav .nav > li > a:focus { |
| 48 | + padding-left: 29px; |
| 49 | +} |
| 50 | +nav[data-toggle='toc'] .nav .nav > .active > a, |
| 51 | +nav[data-toggle='toc'] .nav .nav > .active:hover > a, |
| 52 | +nav[data-toggle='toc'] .nav .nav > .active:focus > a { |
| 53 | + padding-left: 28px; |
| 54 | + font-weight: 500; |
| 55 | +} |
| 56 | + |
| 57 | +/* from https://github.com/twbs/bootstrap/blob/e38f066d8c203c3e032da0ff23cd2d6098ee2dd6/docs/assets/css/src/docs.css#L631-L634 */ |
| 58 | +nav[data-toggle='toc'] .nav > .active > ul { |
| 59 | + display: block; |
| 60 | +} |
0 commit comments