(outfile, table_id)
| 261 | |
| 262 | |
| 263 | def print_table_css(outfile, table_id): |
| 264 | template = """ |
| 265 | .. raw:: html |
| 266 | |
| 267 | <style> |
| 268 | .wy-nav-content { |
| 269 | opacity: .99; |
| 270 | } |
| 271 | table#idx { |
| 272 | cursor: default; |
| 273 | overflow: hidden; |
| 274 | } |
| 275 | table#idx p { |
| 276 | margin: 0; |
| 277 | line-height: inherit; |
| 278 | } |
| 279 | table#idx th, table#idx td { |
| 280 | text-align: center; |
| 281 | border: solid 1px #ddd; |
| 282 | } |
| 283 | table#idx th { |
| 284 | padding: 0.5em 0; |
| 285 | } |
| 286 | table#idx th, table#idx th p { |
| 287 | font-size: 11px; |
| 288 | white-space: pre-wrap; |
| 289 | vertical-align: top; |
| 290 | min-width: 0.9em; |
| 291 | } |
| 292 | table#idx col:first-child { |
| 293 | width: 0; |
| 294 | } |
| 295 | table#idx th:first-child { |
| 296 | vertical-align: bottom; |
| 297 | } |
| 298 | table#idx td { |
| 299 | padding: 1px; |
| 300 | } |
| 301 | table#idx td, table#idx td p { |
| 302 | font-size: 11px; |
| 303 | } |
| 304 | table#idx td:first-child { |
| 305 | padding-left: 1em; |
| 306 | text-align: left; |
| 307 | } |
| 308 | table#idx tr:nth-child(2n-1) td { |
| 309 | background-color: rgba(210, 210, 210, 0.2); |
| 310 | } |
| 311 | table#idx th:not(:first-child):hover, |
| 312 | table#idx td:not(:first-child):hover { |
| 313 | position: relative; |
| 314 | } |
| 315 | table#idx th:not(:first-child):hover::after, |
| 316 | table#idx td:not(:first-child):hover::after { |
| 317 | content: ''; |
| 318 | height: 6000px; |
| 319 | top: -3000px; |
| 320 | width: 100%; |
no test coverage detected