cmake.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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. Don't
  65. de-indent footnotes, because the brackets are rendered as floating elements
  66. that ignore the padding, while the de-indenting will cause the following
  67. text to overlap the footnote brackets. */
  68. div.deprecated > *,
  69. div.versionadded > *,
  70. div.versionchanged > * {
  71. padding-left: 2em;
  72. }
  73. :not(.footnote) > div.deprecated > :first-child,
  74. :not(.footnote) > div.versionadded > :first-child,
  75. :not(.footnote) > div.versionchanged > :first-child {
  76. text-indent: -2em;
  77. }
  78. /* Remove unwanted margin in case list item contains a div-wrapping
  79. directive like `.. versionadded` or `.. deprecated`. */
  80. dd > :first-child > p {
  81. margin-top: 0px;
  82. }
  83. div.outdated {
  84. background-color: #f0f0c0;
  85. color: black;
  86. font-size: 90%;
  87. padding-bottom: 5px;
  88. padding-left: 2px;
  89. padding-right: 2px;
  90. padding-top: 5px;
  91. text-align: center;
  92. }
  93. /* Revert style to the inherited (normal text) for `:guide:` links */
  94. code.xref.cmake-guide {
  95. font-size: inherit;
  96. font-family: inherit;
  97. font-weight: inherit;
  98. padding: inherit;
  99. }
  100. code.xref.cmake-guide span.pre {
  101. white-space: inherit;
  102. }
  103. /* Ensure top border for header-less tables. */
  104. table.docutils td {
  105. border-top: 1px solid #aaa;
  106. }
  107. /* Hide small screen specific items */
  108. #sidebar-toggle,
  109. #sidebar-check,
  110. #sidebar-overlay {
  111. display: none;
  112. }
  113. /* Small screen overrides */
  114. @media screen and (max-width: 760px) {
  115. /* Sticky header */
  116. div.relbar1 {
  117. position: sticky;
  118. top: 0;
  119. z-index: 10;
  120. }
  121. html {
  122. scroll-padding-top: 56px;
  123. }
  124. /* Header and footer */
  125. div.related {
  126. line-height: 28px;
  127. }
  128. div.related ul {
  129. white-space: nowrap;
  130. overflow: hidden;
  131. text-overflow: ellipsis;
  132. }
  133. div.related li.right {
  134. display: none;
  135. }
  136. div.related li.rootlink {
  137. display: block;
  138. margin-bottom: -1px;
  139. }
  140. div.related span.reldelim1 {
  141. display: none;
  142. }
  143. /* Popup sidebar */
  144. div.sphinxsidebar {
  145. background-color: #e4ece8;
  146. margin-left: 0;
  147. position: fixed;
  148. top: 0;
  149. right: 0;
  150. width: 260px;
  151. height: 100%;
  152. overflow-y: scroll;
  153. z-index: 30;
  154. visibility: hidden;
  155. transform: translateX(100%);
  156. transition: transform 0.2s ease-out, visibility 0.2s;
  157. }
  158. #sidebar-check:checked ~ div.document div.sphinxsidebar {
  159. visibility: visible;
  160. transform: none;
  161. }
  162. div.sphinxsidebarwrapper {
  163. padding-bottom: 10px;
  164. display: flex;
  165. flex-direction: column;
  166. }
  167. /* Put the search box first in the sidebar. */
  168. #searchbox {
  169. order: -1;
  170. margin-bottom: 10px;
  171. }
  172. /* Popup sidebar overlay */
  173. #sidebar-overlay {
  174. display: block;
  175. position: fixed;
  176. top: 0;
  177. width: 100%;
  178. height: 200%;
  179. background-color: #000;
  180. z-index: 20;
  181. visibility: hidden;
  182. opacity: 0;
  183. transition: opacity 0.2s ease-out, visibility 0.2s;
  184. }
  185. #sidebar-check:checked ~ #sidebar-overlay {
  186. visibility: visible;
  187. opacity: 0.5;
  188. }
  189. /* Popup sidebar button */
  190. label.sidebar-toggle {
  191. display: block;
  192. float: right;
  193. position: relative;
  194. cursor: pointer;
  195. width: 48px;
  196. height: 56px;
  197. background: no-repeat center/24px url("data:image/svg+xml,\
  198. %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath\
  199. d='M3,6H21 M3,12H21 M3,18H21' fill='none' stroke='white' stroke-width='2'\
  200. stroke-linecap='square' /%3E%3C/svg%3E");
  201. }
  202. /* Force-wrap long words */
  203. div.body span.pre {
  204. white-space: pre-wrap;
  205. }
  206. /* Disable whole page horizontal scroll, enable selectively. */
  207. div.body {
  208. min-width: auto;
  209. overflow-x: hidden;
  210. overflow-wrap: break-word;
  211. }
  212. div.body h1 {
  213. white-space: nowrap;
  214. overflow-x: auto;
  215. }
  216. table.docutils {
  217. display: block;
  218. overflow-x: auto;
  219. }
  220. /* Adjust various margins */
  221. div.bodywrapper {
  222. margin: 0;
  223. }
  224. div.body {
  225. padding: 0 12px 12px;
  226. }
  227. div.body h1,
  228. div.body h2,
  229. div.body h3,
  230. div.body h4,
  231. div.body h5,
  232. div.body h6 {
  233. margin: 20px -12px 10px;
  234. padding: 3px 0px 3px 12px;
  235. }
  236. div.body h1 {
  237. margin-top: 0;
  238. }
  239. div.body ul {
  240. padding-left: 15px;
  241. }
  242. div.body dd {
  243. margin-left: 10px;
  244. }
  245. div.sphinxsidebar h4 {
  246. margin: 0;
  247. }
  248. div.sphinxsidebar ul {
  249. margin: 5px 0 10px 10px;
  250. }
  251. div.sphinxsidebar ul ul {
  252. margin: 0 0 0 10px;
  253. }
  254. div.sphinxsidebar li {
  255. margin-top: 5px;
  256. }
  257. div.deprecated > *,
  258. div.versionadded > *,
  259. div.versionchanged > * {
  260. padding-left: 10px;
  261. }
  262. div.deprecated > :first-child,
  263. div.versionadded > :first-child,
  264. div.versionchanged > :first-child {
  265. text-indent: -10px;
  266. }
  267. a.headerlink {
  268. display: none;
  269. }
  270. /* Make index single-column. */
  271. table.indextable,
  272. table.indextable tbody,
  273. table.indextable tr,
  274. table.indextable td {
  275. display: block;
  276. }
  277. table.indextable td {
  278. width: auto !important;
  279. }
  280. }