cmake.css 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* Import the Sphinx theme style. */
  2. @import url("default.css");
  3. /* Wrap sidebar content even within words so that long
  4. document names do not escape sidebar borders. */
  5. div.sphinxsidebarwrapper {
  6. word-wrap: break-word;
  7. }
  8. /* Make links inside parsed-literal blocks more obvious
  9. by using a background color and increased line spacing
  10. to make them look boxed. */
  11. .literal-block {
  12. line-height: 1.4;
  13. }
  14. .literal-block a.reference.internal {
  15. background-color: #dfdfdf;
  16. }
  17. /* Apply <pre> style (from classic.css) to signature directive argument. */
  18. .signature .sig {
  19. padding: 5px;
  20. background-color: #eeeeee;
  21. color: #333333;
  22. line-height: 120%;
  23. border: 1px solid #ac9;
  24. border-left: none;
  25. border-right: none;
  26. }
  27. /* Add additional styling to signature directive argument. */
  28. .signature .sig {
  29. margin-bottom: 5px;
  30. padding-left: calc(5px + 3em);
  31. text-indent: -3em;
  32. font-family: monospace;
  33. }
  34. .signature .sig .code.sig-name {
  35. font-weight: normal;
  36. }
  37. /* Implement non-breaking spaces in signatures. */
  38. .nbsp {
  39. white-space: nowrap;
  40. }
  41. /* Add hanging indent to deprecated and version-{added,changed} content. */
  42. div.deprecated > *,
  43. div.versionadded > *,
  44. div.versionchanged > * {
  45. padding-left: 2em;
  46. }
  47. div.deprecated > :first-child,
  48. div.versionadded > :first-child,
  49. div.versionchanged > :first-child {
  50. text-indent: -2em;
  51. }
  52. /* Remove unwanted margin in case list item contains a div-wrapping
  53. directive like `.. versionadded` or `.. deprecated`. */
  54. dd > :first-child > p {
  55. margin-top: 0px;
  56. }
  57. div.outdated {
  58. background-color: #f0f0c0;
  59. color: black;
  60. font-size: 90%;
  61. padding-bottom: 5px;
  62. padding-left: 2px;
  63. padding-right: 2px;
  64. padding-top: 5px;
  65. text-align: center;
  66. width: 100%;
  67. }
  68. /* Revert style to the inherited (normal text) for `:guide:` links */
  69. code.xref.cmake-guide {
  70. font-size: inherit;
  71. font-family: inherit;
  72. font-weight: inherit;
  73. padding: inherit;
  74. }
  75. code.xref.cmake-guide span.pre {
  76. white-space: inherit;
  77. }