contents.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /*
  2. Inno Setup
  3. Copyright (C) 1997-2025 Jordan Russell
  4. Portions by Martijn Laan
  5. For conditions of distribution and use, see LICENSE.TXT.
  6. Style sheet used by contents.htm
  7. */
  8. :root {
  9. color-scheme: light dark;
  10. --main-fg-color: light-dark(#282828, #d6d6d6);
  11. --main-bg-color: light-dark(white, #1f1f1f);
  12. --link-fg-color: light-dark(hsl(206, 100%, 37%), hsl(206, 100%, 50%));
  13. --link-hover-fg-color: light-dark(hsl(206, 100%, 27%), hsl(206, 100%, 43%));
  14. --header-bg-color: light-dark(#e0e0e0, #403e41);
  15. --code-bg-color: light-dark(#f0f0f0, #353135);
  16. --selected-bg-color: var(--header-bg-color);
  17. }
  18. BODY {
  19. font: calc(12rem/16) "Segoe UI", sans-serif;
  20. margin: 0;
  21. color: var(--main-fg-color);
  22. background-color: var(--main-bg-color);
  23. display: grid;
  24. grid-template-rows: max-content auto;
  25. height: 100vh;
  26. }
  27. INPUT {
  28. font: inherit;
  29. }
  30. #tabbar {
  31. background-color: var(--header-bg-color);
  32. padding-block-start: 8px;
  33. padding-inline-start: 8px;
  34. display: flex;
  35. overflow-x: hidden;
  36. & > A {
  37. /* Height of tabs should match topic heading */
  38. line-height: calc((20rem/16) * 1.5 - 2px);
  39. font-size: calc(14rem/16);
  40. color: inherit;
  41. background-color: transparent;
  42. text-decoration: none;
  43. padding-inline: calc(10rem/16);
  44. user-select: none;
  45. &[aria-selected="true"] {
  46. font-weight: 600; /* semibold */
  47. border-block-end: 2px solid var(--link-fg-color);
  48. cursor: default;
  49. }
  50. &:not([aria-selected="true"]):hover {
  51. color: var(--link-fg-color);
  52. }
  53. }
  54. }
  55. #tabbody-contents {
  56. overflow: auto;
  57. & > ul {
  58. /* A's margin-block-end collapses with this margin */
  59. margin: 4px;
  60. padding: 0;
  61. & ul {
  62. margin: 0;
  63. padding: 0;
  64. padding-inline-start: 20px;
  65. }
  66. }
  67. & li {
  68. display: block;
  69. }
  70. & a:any-link {
  71. display: flex;
  72. inline-size: fit-content;
  73. align-items: center;
  74. gap: 2px;
  75. margin-block-end: calc(2rem/16);
  76. color: inherit;
  77. background-color: transparent;
  78. text-decoration: none;
  79. &:hover {
  80. color: var(--link-hover-fg-color);
  81. text-decoration: underline;
  82. }
  83. &.selectedlink, &.focusedlink {
  84. color: inherit;
  85. text-decoration: none;
  86. & > span {
  87. background-color: var(--selected-bg-color);
  88. border-radius: 4px;
  89. }
  90. }
  91. & > img {
  92. /* The images are 16x16, but using "min-" in case the alt text is shown and it's larger */
  93. min-width: 16px;
  94. min-height: 16px;
  95. /* If the alt text is wider than 16px, don't allow the element to be shrunk down to min-width */
  96. flex-shrink: 0;
  97. }
  98. & > span {
  99. padding-inline: 2px;
  100. padding-block: 1px;
  101. }
  102. }
  103. }
  104. #tabbody-index {
  105. overflow: auto;
  106. padding: 4px;
  107. white-space: nowrap;
  108. }
  109. #tabbody-index A {
  110. display: inline-block;
  111. padding-inline: 2px;
  112. box-sizing: border-box;
  113. min-width: 100%;
  114. }
  115. #tabbody-index A:link,
  116. #tabbody-index A:visited {
  117. color: inherit;
  118. background-color: transparent;
  119. text-decoration: none;
  120. }
  121. #tabbody-index A:hover {
  122. color: var(--link-hover-fg-color);
  123. text-decoration: underline;
  124. }
  125. #tabbody-index A:focus {
  126. color: inherit;
  127. background-color: var(--selected-bg-color);
  128. text-decoration: none;
  129. border-radius: 4px;
  130. }