|
16 | 16 | .rst-content |
17 | 17 | // Sphinx by default applies HxW style attributes to images. This fixes that oversite. |
18 | 18 | img |
| 19 | + margin-bottom: $base-line-height |
19 | 20 | max-width: 100% |
20 | 21 | height: auto |
21 | 22 |
|
22 | | - div.figure |
| 23 | + div.figure, figure |
23 | 24 | margin-bottom: $base-line-height |
24 | 25 | p.caption |
25 | 26 | font-style: italic |
26 | 27 | p:last-child.caption |
27 | 28 | margin-bottom: 0px |
28 | | - |
29 | | - div.figure.align-center |
30 | | - text-align: center |
31 | | - |
32 | | - // Usually it's a good idea to give images some space. |
33 | | - .section > img, .section > a > img |
34 | | - margin-bottom: $base-line-height |
| 29 | + &.align-center |
| 30 | + text-align: center |
35 | 31 |
|
36 | 32 | // normalize browser styling |
37 | 33 | abbr[title] |
|
147 | 143 | td, th |
148 | 144 | background: transparent !important |
149 | 145 | 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 |
| 146 | + |
| 147 | + .section, section |
| 148 | + ul, .toctree-wrapper ul |
| 149 | + @extend .wy-plain-list-disc |
| 150 | + ol.loweralpha, ol.loweralpha > li |
| 151 | + list-style: lower-alpha |
| 152 | + ol.upperalpha, ol.upperalpha > li |
| 153 | + list-style: upper-alpha |
| 154 | + ol, ol.arabic |
| 155 | + @extend .wy-plain-list-decimal |
| 156 | + // Complex bullet lists, they have more item margins than simple lists |
| 157 | + ol li, ul li |
| 158 | + > * |
| 159 | + margin-top: $base-line-height / 2 |
| 160 | + margin-bottom: $base-line-height / 2 |
| 161 | + &:first-child |
| 162 | + margin-top: 0rem |
| 163 | + > p |
| 164 | + &, &:last-child |
| 165 | + margin-bottom: $base-line-height / 2 |
| 166 | + &:only-child, &:only-child:last-child |
| 167 | + margin-bottom: 0rem |
| 168 | + > ul, > ol |
167 | 169 | margin-bottom: $base-line-height / 2 |
168 | | - &:only-child, &:only-child:last-child |
| 170 | + // Simple lists, no item margins |
| 171 | + ol.simple li, ul.simple li |
| 172 | + > * |
| 173 | + margin-top: 0rem |
169 | 174 | 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 |
| 175 | + ul, ol |
| 176 | + margin-top: 0rem |
| 177 | + margin-bottom: 0rem |
| 178 | + |
180 | 179 | .line-block |
181 | 180 | margin-left: 0px |
182 | 181 | margin-bottom: $base-line-height |
|
0 commit comments