cmake.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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. }
  104. /* Hide small screen specific items */
  105. #sidebar-toggle,
  106. #sidebar-check,
  107. #sidebar-overlay {
  108. display: none;
  109. }
  110. /* Small screen overrides */
  111. @media screen and (max-width: 760px) {
  112. /* Sticky header */
  113. div.relbar1 {
  114. position: sticky;
  115. top: 0;
  116. z-index: 10;
  117. }
  118. html {
  119. scroll-padding-top: 56px;
  120. }
  121. /* Header and footer */
  122. div.related {
  123. line-height: 28px;
  124. }
  125. div.related ul {
  126. white-space: nowrap;
  127. overflow: hidden;
  128. text-overflow: ellipsis;
  129. }
  130. div.related li.right {
  131. display: none;
  132. }
  133. div.related li.rootlink {
  134. display: block;
  135. margin-bottom: -1px;
  136. }
  137. div.related span.reldelim1 {
  138. display: none;
  139. }
  140. /* Popup sidebar */
  141. div.sphinxsidebar {
  142. background-color: #e4ece8;
  143. margin-left: 0;
  144. position: fixed;
  145. top: 0;
  146. right: 0;
  147. width: 260px;
  148. height: 100%;
  149. overflow-y: scroll;
  150. z-index: 30;
  151. visibility: hidden;
  152. transform: translateX(100%);
  153. transition: transform 0.2s ease-out, visibility 0.2s;
  154. }
  155. #sidebar-check:checked ~ div.document div.sphinxsidebar {
  156. visibility: visible;
  157. transform: none;
  158. }
  159. div.sphinxsidebarwrapper {
  160. padding-bottom: 10px;
  161. display: flex;
  162. flex-direction: column;
  163. }
  164. /* Put the search box first in the sidebar. */
  165. #searchbox {
  166. order: -1;
  167. margin-bottom: 10px;
  168. }
  169. /* Popup sidebar overlay */
  170. #sidebar-overlay {
  171. display: block;
  172. position: fixed;
  173. top: 0;
  174. width: 100%;
  175. height: 200%;
  176. background-color: #000;
  177. z-index: 20;
  178. visibility: hidden;
  179. opacity: 0;
  180. transition: opacity 0.2s ease-out, visibility 0.2s;
  181. }
  182. #sidebar-check:checked ~ #sidebar-overlay {
  183. visibility: visible;
  184. opacity: 0.5;
  185. }
  186. /* Popup sidebar button */
  187. label.sidebar-toggle {
  188. display: block;
  189. float: right;
  190. position: relative;
  191. cursor: pointer;
  192. width: 48px;
  193. height: 56px;
  194. background: no-repeat center/24px url("data:image/svg+xml,\
  195. %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath\
  196. d='M3,6H21 M3,12H21 M3,18H21' fill='none' stroke='white' stroke-width='2'\
  197. stroke-linecap='square' /%3E%3C/svg%3E");
  198. }
  199. /* Force-wrap long words */
  200. div.body span.pre {
  201. white-space: pre-wrap;
  202. }
  203. /* Disable whole page horizontal scroll, enable selectively. */
  204. div.body {
  205. min-width: auto;
  206. overflow-x: hidden;
  207. overflow-wrap: break-word;
  208. }
  209. div.body h1 {
  210. white-space: nowrap;
  211. overflow-x: auto;
  212. }
  213. table.docutils {
  214. display: block;
  215. overflow-x: auto;
  216. }
  217. /* Adjust various margins */
  218. div.bodywrapper {
  219. margin: 0;
  220. }
  221. div.body {
  222. padding: 0 12px 12px;
  223. }
  224. div.body h1,
  225. div.body h2,
  226. div.body h3,
  227. div.body h4,
  228. div.body h5,
  229. div.body h6 {
  230. margin: 20px -12px 10px;
  231. padding: 3px 0px 3px 12px;
  232. }
  233. div.body h1 {
  234. margin-top: 0;
  235. }
  236. div.body ul {
  237. padding-left: 15px;
  238. }
  239. div.body dd {
  240. margin-left: 10px;
  241. }
  242. div.sphinxsidebar h4 {
  243. margin: 0;
  244. }
  245. div.sphinxsidebar ul {
  246. margin: 5px 0 10px 10px;
  247. }
  248. div.sphinxsidebar ul ul {
  249. margin: 0 0 0 10px;
  250. }
  251. div.sphinxsidebar li {
  252. margin-top: 5px;
  253. }
  254. div.deprecated > *,
  255. div.versionadded > *,
  256. div.versionchanged > * {
  257. padding-left: 10px;
  258. }
  259. div.deprecated > :first-child,
  260. div.versionadded > :first-child,
  261. div.versionchanged > :first-child {
  262. text-indent: -10px;
  263. }
  264. a.headerlink {
  265. display: none;
  266. }
  267. /* Make index single-column. */
  268. table.indextable,
  269. table.indextable tbody,
  270. table.indextable tr,
  271. table.indextable td {
  272. display: block;
  273. }
  274. table.indextable td {
  275. width: auto !important;
  276. }
  277. }