|
14 | 14 | // -------------------------------------------------------------------------------------------------------------------- |
15 | 15 |
|
16 | 16 | .rst-content |
| 17 | + // Some browsers like to give arbituary margins :( make them all consistent. |
| 18 | + h1, h2, h3, h4, h5, h6 |
| 19 | + margin-bottom: $base-line-height |
| 20 | + |
17 | 21 | // Sphinx by default applies HxW style attributes to images. This fixes that oversite. |
18 | 22 | img |
19 | 23 | max-width: 100% |
20 | 24 | height: auto |
21 | 25 |
|
22 | | - div.figure |
| 26 | + div.figure, figure |
23 | 27 | margin-bottom: $base-line-height |
24 | | - p.caption |
| 28 | + .caption-text |
25 | 29 | font-style: italic |
26 | 30 | p:last-child.caption |
27 | 31 | margin-bottom: 0px |
28 | | - |
29 | | - div.figure.align-center |
30 | | - text-align: center |
| 32 | + &.align-center |
| 33 | + text-align: center |
31 | 34 |
|
32 | 35 | // Usually it's a good idea to give images some space. |
33 | | - .section > img, .section > a > img |
34 | | - margin-bottom: $base-line-height |
| 36 | + .section, section > |
| 37 | + img, a > img |
| 38 | + margin-bottom: $base-line-height |
35 | 39 |
|
36 | 40 | // normalize browser styling |
37 | 41 | abbr[title] |
|
147 | 151 | td, th |
148 | 152 | background: transparent !important |
149 | 153 | border-color: rgba(0, 0, 0, 0.1) !important |
150 | | - .section ul, .toctree-wrapper ul |
151 | | - @extend .wy-plain-list-disc |
152 | | - .section ol.loweralpha, .section ol.loweralpha > li |
153 | | - list-style: lower-alpha |
154 | | - .section ol.upperalpha, .section ol.upperalpha > li |
155 | | - list-style: upper-alpha |
156 | | - .section ol, ol.arabic |
157 | | - @extend .wy-plain-list-decimal |
158 | | - // Complex bullet lists, they have more item margins than simple lists |
159 | | - .section ol li, .section ul li |
160 | | - > * |
161 | | - margin-top: $base-line-height / 2 |
162 | | - margin-bottom: $base-line-height / 2 |
163 | | - &:first-child |
164 | | - margin-top: 0rem |
165 | | - > p |
166 | | - &, &:last-child |
| 154 | + |
| 155 | + .section, section |
| 156 | + ul, .toctree-wrapper ul |
| 157 | + @extend .wy-plain-list-disc |
| 158 | + ol.loweralpha, ol.loweralpha > li |
| 159 | + list-style: lower-alpha |
| 160 | + ol.upperalpha, ol.upperalpha > li |
| 161 | + list-style: upper-alpha |
| 162 | + ol, ol.arabic |
| 163 | + @extend .wy-plain-list-decimal |
| 164 | + // Complex bullet lists, they have more item margins than simple lists |
| 165 | + ol li, ul li |
| 166 | + > * |
| 167 | + margin-top: $base-line-height / 2 |
| 168 | + margin-bottom: $base-line-height / 2 |
| 169 | + &:first-child |
| 170 | + margin-top: 0rem |
| 171 | + > p |
| 172 | + &, &:last-child |
| 173 | + margin-bottom: $base-line-height / 2 |
| 174 | + &:only-child, &:only-child:last-child |
| 175 | + margin-bottom: 0rem |
| 176 | + > ul, > ol |
167 | 177 | margin-bottom: $base-line-height / 2 |
168 | | - &:only-child, &:only-child:last-child |
| 178 | + // Simple lists, no item margins |
| 179 | + ol.simple li, ul.simple li |
| 180 | + > * |
| 181 | + margin-top: 0rem |
169 | 182 | margin-bottom: 0rem |
170 | | - > ul, > ol |
171 | | - margin-bottom: $base-line-height / 2 |
172 | | - // Simple lists, no item margins |
173 | | - .section ol.simple li, .section ul.simple li |
174 | | - > * |
175 | | - margin-top: 0rem |
176 | | - margin-bottom: 0rem |
177 | | - ul, ol |
178 | | - margin-top: 0rem |
179 | | - margin-bottom: 0rem |
| 183 | + ul, ol |
| 184 | + margin-top: 0rem |
| 185 | + margin-bottom: 0rem |
| 186 | + |
180 | 187 | .line-block |
181 | 188 | margin-left: 0px |
182 | 189 | margin-bottom: $base-line-height |
|
206 | 213 | @extend h2 |
207 | 214 |
|
208 | 215 | // This is the #href that shows up on hover. Sphinx's is terrible so I hack it away. |
209 | | - h1, h2, h3, h4, h5, h6, dl dt, p.caption, table > caption, .code-block-caption, .eqno |
| 216 | + h1, h2, h3, h4, h5, h6, dl dt, p, p.caption, table > caption, .code-block-caption, .eqno |
210 | 217 | .headerlink |
211 | 218 | opacity: 0 |
212 | 219 | font-size: 14px |
|
0 commit comments