cmake.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /* Import the Sphinx theme style. */
  2. @import url("default.css");
  3. /* Navbar logo */
  4. li.rootlink > img {
  5. vertical-align: middle;
  6. margin-top: -5px;
  7. }
  8. /* Push the footer to the bottom of the page. */
  9. body {
  10. display: flex;
  11. flex-direction: column;
  12. min-height: 100svh;
  13. }
  14. div.document {
  15. flex-grow: 1;
  16. }
  17. div.bodywrapper,
  18. div.body {
  19. height: 100%;
  20. }
  21. /* Wrap sidebar content even within words so that long
  22. document names do not escape sidebar borders. */
  23. div.sphinxsidebarwrapper {
  24. word-wrap: break-word;
  25. }
  26. /* Make links inside parsed-literal blocks more obvious
  27. by using a background color and increased line spacing
  28. to make them look boxed. */
  29. .literal-block {
  30. line-height: 1.4;
  31. }
  32. .literal-block a.reference.internal {
  33. background-color: #dfdfdf;
  34. }
  35. /* Un-justify some elements. */
  36. div.body table.docutils p,
  37. div.body nav.contents p {
  38. text-align: left;
  39. }
  40. /* Apply <pre> style (from classic.css) to signature directive argument. */
  41. .signature .sig {
  42. padding: 5px;
  43. background-color: #eeeeee;
  44. color: #333333;
  45. line-height: 120%;
  46. border: 1px solid #ac9;
  47. border-left: none;
  48. border-right: none;
  49. }
  50. /* Add additional styling to signature directive argument. */
  51. .signature .sig {
  52. margin-bottom: 5px;
  53. padding-left: calc(5px + 3em);
  54. text-indent: -3em;
  55. font-family: monospace;
  56. }
  57. .signature .sig .code.sig-name {
  58. font-weight: normal;
  59. }
  60. /* Implement non-breaking spaces in signatures. */
  61. .nbsp {
  62. white-space: nowrap;
  63. }
  64. /* Add hanging indent to deprecated and version-{added,changed} content. */
  65. div.deprecated > *,
  66. div.versionadded > *,
  67. div.versionchanged > * {
  68. padding-left: 2em;
  69. }
  70. div.deprecated > :first-child,
  71. div.versionadded > :first-child,
  72. div.versionchanged > :first-child {
  73. text-indent: -2em;
  74. }
  75. /* Remove unwanted margin in case list item contains a div-wrapping
  76. directive like `.. versionadded` or `.. deprecated`. */
  77. dd > :first-child > p {
  78. margin-top: 0px;
  79. }
  80. div.outdated {
  81. background-color: #f0f0c0;
  82. color: black;
  83. font-size: 90%;
  84. padding-bottom: 5px;
  85. padding-left: 2px;
  86. padding-right: 2px;
  87. padding-top: 5px;
  88. text-align: center;
  89. }
  90. /* Revert style to the inherited (normal text) for `:guide:` links */
  91. code.xref.cmake-guide {
  92. font-size: inherit;
  93. font-family: inherit;
  94. font-weight: inherit;
  95. padding: inherit;
  96. }
  97. code.xref.cmake-guide span.pre {
  98. white-space: inherit;
  99. }
  100. /* Ensure top border for header-less tables. */
  101. table.docutils td {
  102. border-top: 1px solid #aaa;
  103. }