cmake.css 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 version-{added,changed} content. */
  42. div .versionadded > *,
  43. div .versionchanged > * {
  44. padding-left: 2em;
  45. }
  46. div.versionadded > :first-child,
  47. div.versionchanged > :first-child {
  48. text-indent: -2em;
  49. }
  50. /* Remove unwanted margin in case list item contains a div-wrapping
  51. directive like `.. versionadded` or `.. deprecated`. */
  52. dd > :first-child > p {
  53. margin-top: 0px;
  54. }
  55. div.outdated {
  56. background-color: #f0f0c0;
  57. color: black;
  58. font-size: 90%;
  59. padding-bottom: 5px;
  60. padding-left: 2px;
  61. padding-right: 2px;
  62. padding-top: 5px;
  63. text-align: center;
  64. width: 100%;
  65. }
  66. /* Revert style to the inherited (normal text) for `:guide:` links */
  67. code.xref.cmake-guide {
  68. font-size: inherit;
  69. font-family: inherit;
  70. font-weight: inherit;
  71. padding: inherit;
  72. }
  73. code.xref.cmake-guide span.pre {
  74. white-space: inherit;
  75. }