styles.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 topic_*.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. }
  17. HTML {
  18. /* Ensure that anchor targets don't get hidden underneath the sticky header.
  19. This is the height of .topicheading plus an extra 2rem of breathing room. */
  20. scroll-padding-block-start: calc((20rem/16) * 1.5 + 8px + 2rem);
  21. }
  22. BODY {
  23. font: calc(14rem/16)/1.5 "Segoe UI", sans-serif;
  24. margin: 0;
  25. color: #282828; /* for IE */
  26. color: var(--main-fg-color);
  27. background-color: white; /* for IE */
  28. background-color: var(--main-bg-color);
  29. }
  30. PRE, TT {
  31. font: calc(13rem/16) Consolas, monospace;
  32. }
  33. P, H1, H2, H3, H4, H5, BLOCKQUOTE, PRE, FORM, OL, UL, LI, DL, DD, TABLE, .examplebox, DIV.margined {
  34. /* only the end of paragraphs etc. has a margin */
  35. margin-top: 0;
  36. margin-bottom: 1em;
  37. }
  38. UL, OL, DD {
  39. /* specify both of these for firefox compat. */
  40. margin-left: 0;
  41. padding-left: 2em;
  42. }
  43. TABLE {
  44. /* equivalent of cellspacing="0" */
  45. border-collapse: collapse;
  46. }
  47. TD {
  48. /* equivalent of cellpadding="0" */
  49. padding: 0;
  50. /* note: "baseline" is broken on IE6; it only aligns correctly when there's
  51. a single line of text, and that text is directly inside the <TD> tag
  52. (not inside a <DIV>). otherwise it behaves more like "top".
  53. (firefox 1.5 and opera 9 don't have this problem) */
  54. vertical-align: baseline;
  55. }
  56. IMG {
  57. border-style: none;
  58. }
  59. IMG.extlink {
  60. width: 16px;
  61. height: 16px;
  62. padding-left: 2px;
  63. }
  64. A:link, A:visited {
  65. color: hsl(206, 100%, 37%); /* for IE */
  66. color: var(--link-fg-color);
  67. background-color: transparent;
  68. text-decoration: none;
  69. }
  70. A[href]:hover {
  71. color: hsl(206, 100%, 27%); /* for IE */
  72. color: var(--link-hover-fg-color);
  73. text-decoration: underline;
  74. }
  75. span:target {
  76. background-color: #ffff00;
  77. color: black;
  78. }
  79. .small {
  80. font-size: calc(12rem/16);
  81. }
  82. .heading {
  83. margin-top: 1em;
  84. font-size: calc(20rem/16);
  85. font-weight: bold;
  86. }
  87. .notopmargin {
  88. margin-top: 0;
  89. }
  90. .indent {
  91. margin-left: 2em;
  92. }
  93. PRE.nomargin {
  94. margin: 0;
  95. }
  96. LI.compact {
  97. margin-bottom: calc(2rem/16);
  98. }
  99. .topicheading {
  100. background-color: #e0e0e0; /* for IE */
  101. background-color: var(--header-bg-color);
  102. color: inherit;
  103. padding: 4px 8px;
  104. margin: 0;
  105. font-size: calc(20rem/16);
  106. font-weight: bold;
  107. /* Can't allow wrapping because the scroll-padding setting expects a fixed height */
  108. white-space: nowrap;
  109. overflow: hidden;
  110. text-overflow: ellipsis;
  111. /* IE doesn't support sticky or scroll-padding */
  112. position: sticky;
  113. inset-block-start: 0;
  114. }
  115. .topicbody {
  116. padding: 8px;
  117. }
  118. TT, .examplebox {
  119. background-color: #f0f0f0; /* for IE */
  120. background-color: var(--code-bg-color);
  121. color: inherit;
  122. }
  123. TT {
  124. padding: 2px 4px;
  125. border-radius: 4px;
  126. display: inline-block;
  127. }
  128. .examplebox {
  129. padding: 10px;
  130. border-radius: 6px;
  131. overflow-x: auto;
  132. }
  133. .exampleheader {
  134. font-size: calc(12rem/16);
  135. font-weight: bold;
  136. line-height: normal;
  137. margin-bottom: 0.5em;
  138. }
  139. DT.paramlist {
  140. margin-bottom: 0.5em;
  141. }
  142. DD.paramlist {
  143. /* give a little extra spacing between items */
  144. margin-bottom: 1.5em;
  145. }
  146. DT.flaglist {
  147. font-weight: bold;
  148. }
  149. TD.cellleft {
  150. white-space: nowrap;
  151. }
  152. TD.cellright {
  153. padding-left: 2em;
  154. }
  155. TABLE.setuphdr {
  156. margin: 0;
  157. }
  158. TD.setuphdrl {
  159. font-weight: bold;
  160. white-space: nowrap;
  161. }
  162. TD.setuphdrr {
  163. padding-left: 1em;
  164. }
  165. #redirectbox {
  166. position: absolute;
  167. background-color: InfoBackground;
  168. color: InfoText;
  169. padding: 16px 24px;
  170. border: 1px solid ThreeDDarkShadow;
  171. font-size: 120%;
  172. font-weight: bold;
  173. box-shadow: #808080 0 0 12px;
  174. -moz-box-shadow: #808080 0 0 12px; /* for Firefox 3.6 */
  175. -webkit-box-shadow: #808080 0 0 12px; /* for Chrome 6.0 */
  176. }