|
25 | 25 |
|
26 | 26 | /* Pagination */ |
27 | 27 | h1, h2, h3, h4, h5, h6 { page-break-after: avoid } |
28 | | -div.figure, div.sidefigure, pre, table.propdef, table.propdef-extra, |
| 28 | +figure, div.figure, div.sidefigure, pre, table.propdef, table.propdef-extra, |
29 | 29 | div.example { page-break-inside: avoid } |
30 | 30 | dt { page-break-after: avoid } |
31 | 31 |
|
@@ -215,36 +215,37 @@ ul.index { |
215 | 215 | s, del {text-decoration: line-through; color: red} |
216 | 216 | u, ins {text-decoration: underline; background: #bfa} |
217 | 217 |
|
218 | | -div.figure, div.sidefigure { |
| 218 | +div.figure, div.sidefigure, figure { |
219 | 219 | text-align: center; |
220 | 220 | margin: 2.5em 0; |
221 | 221 | } |
222 | | -div.sidefigure { |
| 222 | +div.sidefigure, figure.sidefigure { |
223 | 223 | float: right; |
224 | 224 | width: 50%; |
225 | 225 | margin: 0 0 0.5em 0.5em |
226 | 226 | } |
227 | | -div.figure img, div.sidefigure img { |
| 227 | +div.figure img, div.sidefigure img, figure img, |
| 228 | +div.figure object, div.sidefigure object, figure object { |
228 | 229 | display: block; |
229 | 230 | margin: auto; |
230 | 231 | max-width: 100% |
231 | 232 | } |
232 | | -p.caption, caption { |
| 233 | +p.caption, figcaption, caption { |
233 | 234 | text-align: center; |
234 | 235 | font-style: italic; |
235 | 236 | font-size: 90%; |
236 | 237 | } |
237 | | -p.caption:before { |
| 238 | +p.caption:before, figcaption:before { |
238 | 239 | content: "Figure " counter(figure) ". "; |
239 | 240 | font-weight: bold; |
240 | 241 | } |
241 | | -p.caption { |
| 242 | +p.caption, figcaption { |
242 | 243 | counter-increment: figure; |
243 | 244 | } |
244 | 245 |
|
245 | 246 | /* DL list is indented, but figure inside it is not */ |
246 | 247 | dd { margin-left: 2em } |
247 | | -dd div.figure { margin-left: -2em } |
| 248 | +dd div.figure, dd figure { margin-left: -2em } |
248 | 249 |
|
249 | 250 | sup { |
250 | 251 | vertical-align: super; |
|
0 commit comments