theme_overrides.css 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /* -*- coding: utf-8; mode: css -*-
  2. *
  3. * Sphinx HTML theme customization: read the doc
  4. *
  5. */
  6. /* Interim: Code-blocks with line nos - lines and line numbers don't line up.
  7. * see: https://github.com/rtfd/sphinx_rtd_theme/issues/419
  8. */
  9. div[class^="highlight"] pre {
  10. line-height: normal;
  11. }
  12. .rst-content .highlight > pre {
  13. line-height: normal;
  14. }
  15. @media screen {
  16. /* content column
  17. *
  18. * RTD theme's default is 800px as max width for the content, but we have
  19. * tables with tons of columns, which need the full width of the view-port.
  20. */
  21. .wy-nav-content{max-width: none; }
  22. /* table:
  23. *
  24. * - Sequences of whitespace should collapse into a single whitespace.
  25. * - make the overflow auto (scrollbar if needed)
  26. * - align caption "left" ("center" is unsuitable on vast tables)
  27. */
  28. .wy-table-responsive table td { white-space: normal; }
  29. .wy-table-responsive { overflow: auto; }
  30. .rst-content table.docutils caption { text-align: left; font-size: 100%; }
  31. /* captions:
  32. *
  33. * - captions should have 100% (not 85%) font size
  34. * - hide the permalink symbol as long as link is not hovered
  35. */
  36. .toc-title {
  37. font-size: 150%;
  38. font-weight: bold;
  39. }
  40. caption, .wy-table caption, .rst-content table.field-list caption {
  41. font-size: 100%;
  42. }
  43. caption a.headerlink { opacity: 0; }
  44. caption a.headerlink:hover { opacity: 1; }
  45. /* Menu selection and keystrokes */
  46. span.menuselection {
  47. color: blue;
  48. font-family: "Courier New", Courier, monospace
  49. }
  50. code.kbd, code.kbd span {
  51. color: white;
  52. background-color: darkblue;
  53. font-weight: bold;
  54. font-family: "Courier New", Courier, monospace
  55. }
  56. /* fix bottom margin of lists items */
  57. .rst-content .section ul li:last-child, .rst-content .section ul li p:last-child {
  58. margin-bottom: 12px;
  59. }
  60. /* inline literal: drop the borderbox, padding and red color */
  61. code, .rst-content tt, .rst-content code {
  62. color: inherit;
  63. border: none;
  64. padding: unset;
  65. background: inherit;
  66. font-size: 85%;
  67. }
  68. .rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal {
  69. color: inherit;
  70. }
  71. }