|
| 1 | +/** toc.css |
| 2 | + * |
| 3 | + * Styles for Table of Contents |
| 4 | + * which also includes: |
| 5 | + * - Tools (edit on github) |
| 6 | + * |
| 7 | + * See also: is-it-helpful.css |
| 8 | + */ |
| 9 | + |
1 | 10 | .toc { |
2 | 11 | font-size: 0.875rem; |
3 | 12 | } |
|
7 | 16 | line-height: 1; |
8 | 17 | } |
9 | 18 |
|
10 | | -.sidebar-box { |
11 | | - position: fixed; /* for IE */ |
12 | | - width: inherit; /* for position: fixed */ |
13 | | - position: sticky; /* stylelint-disable-line declaration-block-no-duplicate-properties */ |
14 | | - top: var(--height-to-body); |
15 | | - max-height: var(--height-toc-sidebar); |
16 | | - overflow-y: auto; |
17 | | - -ms-overflow-style: none; |
18 | | - scrollbar-width: none; |
19 | | - padding-right: var(--base-space); |
20 | | - padding-left: var(--base-space); |
21 | | -} |
22 | 19 |
|
23 | | -.sidebar-box::-webkit-scrollbar { |
24 | | - width: 0; |
25 | | -} |
26 | 20 |
|
27 | 21 | .toc.embedded .toc-menu { |
28 | 22 | margin-top: 1rem; |
|
125 | 119 | .toc ul li[data-level="2"] a { |
126 | 120 | padding-top: 2px; |
127 | 121 | } |
| 122 | + |
| 123 | +/* Sidebar Box and Tools */ |
| 124 | + |
| 125 | +.sidebar-box { |
| 126 | + position: fixed; /* for IE */ |
| 127 | + width: inherit; /* for position: fixed */ |
| 128 | + position: sticky; /* stylelint-disable-line declaration-block-no-duplicate-properties */ |
| 129 | + top: var(--height-to-body); |
| 130 | + max-height: var(--height-toc-sidebar); |
| 131 | + overflow-y: auto; |
| 132 | + -ms-overflow-style: none; |
| 133 | + scrollbar-width: none; |
| 134 | + padding-right: var(--base-space); |
| 135 | + padding-left: var(--base-space); |
| 136 | +} |
| 137 | + |
| 138 | +.sidebar-box::-webkit-scrollbar { |
| 139 | + width: 0; |
| 140 | +} |
| 141 | + |
| 142 | +/* Tools e.g. "Edit on Github" */ |
| 143 | + |
| 144 | +.sidebar-box .tools { |
| 145 | + padding-top: 1.25rem; |
| 146 | + display: inline-block; |
| 147 | + width: 100%; |
| 148 | +} |
| 149 | + |
| 150 | +.tools ul { |
| 151 | + margin: 0; |
| 152 | + padding: 0; |
| 153 | + line-height: 1; |
| 154 | +} |
| 155 | + |
| 156 | +.tools .edit { |
| 157 | + line-height: 1; |
| 158 | + display: inline-block; |
| 159 | + width: 100%; |
| 160 | + list-style: none; |
| 161 | +} |
| 162 | + |
| 163 | +.tools .edit a { |
| 164 | + display: inline-block; |
| 165 | + white-space: nowrap; |
| 166 | + overflow: hidden; |
| 167 | + background: url(../img/edit.svg) no-repeat center left; |
| 168 | + background-size: 15px; |
| 169 | + vertical-align: top; |
| 170 | + color: #999; |
| 171 | + padding-left: 25px; |
| 172 | + padding-top: 0; |
| 173 | + padding-bottom: 0; |
| 174 | + font-family: "Source Sans Pro", sans-serif; |
| 175 | +} |
0 commit comments