1
0

template.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. /** from ghwikipp.css */
  2. :root {
  3. color-scheme: dark light; /* both supported */
  4. }
  5. body {
  6. background-color: white;
  7. padding: 2vw;
  8. color: #333;
  9. max-width: 1200px;
  10. margin: 0 auto;
  11. font-size: 16px;
  12. line-height: 1.5;
  13. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
  14. Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  15. overflow-wrap: break-word;
  16. }
  17. a {
  18. color: #0969da;
  19. /* text-decoration: none; */
  20. }
  21. a:visited {
  22. color: #064998;
  23. }
  24. h1 {
  25. border-bottom: 2px solid #efefef;
  26. }
  27. h2 {
  28. border-bottom: 1px solid #efefef;
  29. }
  30. p {
  31. max-width: 85ch;
  32. }
  33. li {
  34. max-width: 85ch;
  35. }
  36. div.sourceCode {
  37. background-color: #f6f8fa;
  38. max-width: 100%;
  39. padding: 16px;
  40. }
  41. code {
  42. background-color: #f6f8fa;
  43. padding: 0px;
  44. font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
  45. "Liberation Mono", monospace;
  46. }
  47. table {
  48. border: 1px solid #808080;
  49. border-collapse: collapse;
  50. }
  51. td {
  52. border: 1px solid #808080;
  53. padding: 5px;
  54. }
  55. tr:nth-child(even) {
  56. background-color: #f6f8fa;
  57. }
  58. .wikitopbanner {
  59. background-color: #efefef;
  60. padding: 10px;
  61. margin-bottom: 10px;
  62. width: auto;
  63. }
  64. .wikibottombanner {
  65. background-color: #efefef;
  66. padding: 10px;
  67. margin-top: 10px;
  68. width: auto;
  69. }
  70. .alertBox {
  71. background-color: #f8d7da;
  72. border: 1px solid #f5c6cb;
  73. max-width: 60%;
  74. padding: 10;
  75. margin: auto;
  76. }
  77. .anchorImage {
  78. visibility: hidden;
  79. padding-left: 0.2em;
  80. color: #fff;
  81. }
  82. .anchorText:hover .anchorImage {
  83. visibility: visible;
  84. }
  85. hr {
  86. display: block;
  87. height: 1px;
  88. border: 0;
  89. border-top: 1px solid #efefef;
  90. margin: 1em 0;
  91. padding: 0;
  92. }
  93. /* Text and background color for dark mode */
  94. @media (prefers-color-scheme: dark) {
  95. body {
  96. color: #e6edf3;
  97. background-color: #0d1117;
  98. }
  99. h1 {
  100. border-color: rgba(48, 54, 61, 0.7);
  101. }
  102. h2 {
  103. border-color: rgba(48, 54, 61, 0.7);
  104. }
  105. hr {
  106. border-color: rgba(48, 54, 61, 0.7);
  107. }
  108. div.sourceCode {
  109. background-color: #161b22;
  110. }
  111. code {
  112. background-color: #161b22;
  113. }
  114. a {
  115. color: #4493f8;
  116. }
  117. a:visited {
  118. color: #2f66ad;
  119. }
  120. table {
  121. border-color: rgba(48, 54, 61, 0.7);
  122. }
  123. td {
  124. border-color: rgba(48, 54, 61, 0.7);
  125. }
  126. tr:nth-child(even) {
  127. background-color: #161b22;
  128. }
  129. .wikitopbanner {
  130. background-color: #263040;
  131. }
  132. .wikibottombanner {
  133. background-color: #263040;
  134. }
  135. .anchorText:hover .anchorImage {
  136. filter: invert(100%);
  137. }
  138. }
  139. @media print {
  140. body {
  141. font-size: 12px;
  142. }
  143. table {
  144. font-size: inherit;
  145. }
  146. a:visited {
  147. color: #0969da;
  148. }
  149. .wikitopbanner,
  150. .anchorText,
  151. .wikibottombanner {
  152. display: none;
  153. }
  154. }
  155. /** additional (& overrides) for examples */
  156. header {
  157. background-color: #efefef;
  158. padding: 10px;
  159. font-size: 2rem;
  160. }
  161. header > a,
  162. header > a:hover,
  163. header > a:visited {
  164. color: inherit;
  165. text-decoration: none;
  166. }
  167. .breadcrumb {
  168. padding: 0.75rem 0.75rem;
  169. }
  170. .breadcrumb ul {
  171. display: flex;
  172. flex-wrap: wrap;
  173. list-style: none;
  174. margin: 0;
  175. padding: 0;
  176. }
  177. .breadcrumb li:not(:last-child)::after {
  178. display: inline-block;
  179. margin: 0 0.25rem;
  180. content: "»";
  181. }
  182. .list {
  183. display: flex;
  184. flex-flow: row wrap;
  185. gap: 24px;
  186. }
  187. .list > a > div {
  188. width: 200px;
  189. border: 5px solid #efefef;
  190. border-radius: 5px;
  191. background: #efefef;
  192. display: flex;
  193. flex-flow: column nowrap;
  194. transition: border 0.25s;
  195. }
  196. .list > a > div:hover {
  197. border-color: #064998;
  198. }
  199. .list > a > div > img {
  200. width: 100%;
  201. border-radius: 5px;
  202. }
  203. .list > a > div > div {
  204. text-align: center;
  205. }
  206. .list > a,
  207. .list > a:visited {
  208. display: block;
  209. color: inherit;
  210. text-decoration: none;
  211. }
  212. .list > a:hover {
  213. color: #0969da;
  214. }
  215. @media (prefers-color-scheme: dark) {
  216. header {
  217. background-color: #263040;
  218. }
  219. .breadcrumb li:not(:last-child)::after {
  220. color: #efefef;
  221. }
  222. .list > a > div {
  223. border-color: #333;
  224. background: #333;
  225. }
  226. }
  227. @media only screen and (max-width: 992px) {
  228. .list > a > div {
  229. width: 150px;
  230. }
  231. }