styles.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. width: 16px;
  58. height: 16px;
  59. border-style: none;
  60. padding-left: 2px;
  61. }
  62. A:link, A:visited {
  63. color: hsl(206, 100%, 37%); /* for IE */
  64. color: var(--link-fg-color);
  65. background-color: transparent;
  66. text-decoration: none;
  67. }
  68. A[href]:hover {
  69. color: hsl(206, 100%, 27%); /* for IE */
  70. color: var(--link-hover-fg-color);
  71. text-decoration: underline;
  72. }
  73. span:target {
  74. background-color: #ffff00;
  75. color: black;
  76. }
  77. .small {
  78. font-size: calc(12rem/16);
  79. }
  80. .heading {
  81. margin-top: 1em;
  82. font-size: calc(20rem/16);
  83. font-weight: bold;
  84. }
  85. .notopmargin {
  86. margin-top: 0;
  87. }
  88. .indent {
  89. margin-left: 2em;
  90. }
  91. PRE.nomargin {
  92. margin: 0;
  93. }
  94. LI.compact {
  95. margin-bottom: calc(2rem/16);
  96. }
  97. .topicheading {
  98. background-color: #e0e0e0; /* for IE */
  99. background-color: var(--header-bg-color);
  100. color: inherit;
  101. padding: 4px 8px;
  102. margin: 0;
  103. font-size: calc(20rem/16);
  104. font-weight: bold;
  105. /* Can't allow wrapping because the scroll-padding setting expects a fixed height */
  106. white-space: nowrap;
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. /* IE doesn't support sticky or scroll-padding */
  110. position: sticky;
  111. inset-block-start: 0;
  112. }
  113. .topicbody {
  114. padding: 8px;
  115. }
  116. TT, .examplebox {
  117. background-color: #f0f0f0; /* for IE */
  118. background-color: var(--code-bg-color);
  119. color: inherit;
  120. }
  121. TT {
  122. padding: 2px 4px;
  123. border-radius: 4px;
  124. display: inline-block;
  125. }
  126. .examplebox {
  127. padding: 10px;
  128. border-radius: 6px;
  129. overflow-x: auto;
  130. }
  131. .exampleheader {
  132. font-size: calc(12rem/16);
  133. font-weight: bold;
  134. line-height: normal;
  135. margin-bottom: 0.5em;
  136. }
  137. DT.paramlist {
  138. margin-bottom: 0.5em;
  139. }
  140. DD.paramlist {
  141. /* give a little extra spacing between items */
  142. margin-bottom: 1.5em;
  143. }
  144. DT.flaglist {
  145. font-weight: bold;
  146. }
  147. TD.cellleft {
  148. white-space: nowrap;
  149. }
  150. TD.cellright {
  151. padding-left: 2em;
  152. }
  153. TABLE.setuphdr {
  154. margin: 0;
  155. }
  156. TD.setuphdrl {
  157. font-weight: bold;
  158. white-space: nowrap;
  159. }
  160. TD.setuphdrr {
  161. padding-left: 1em;
  162. }
  163. #redirectbox {
  164. position: absolute;
  165. background-color: InfoBackground;
  166. color: InfoText;
  167. padding: 16px 24px;
  168. border: 1px solid ThreeDDarkShadow;
  169. font-size: 120%;
  170. font-weight: bold;
  171. box-shadow: #808080 0 0 12px;
  172. -moz-box-shadow: #808080 0 0 12px; /* for Firefox 3.6 */
  173. -webkit-box-shadow: #808080 0 0 12px; /* for Chrome 6.0 */
  174. }