wiki.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. .wiki {
  2. --link-color: var(--link-web);
  3. --link-hover-color: var(--link-web-hover);
  4. --link-visited-color: var(--link-web-visited);
  5. --link-text-decoration: none;
  6. --link-hover-text-decoration: underline;
  7. .contents {
  8. ul {
  9. padding: 0;
  10. li {
  11. font-size: var(--font-size-02);
  12. list-style: none;
  13. margin-bottom: var(--spacing-03);
  14. }
  15. }
  16. h2 {
  17. font-size: 18px;
  18. }
  19. }
  20. .page-header {
  21. a {
  22. @include body-xs;
  23. }
  24. }
  25. .editsection {
  26. display: none;
  27. }
  28. .toctogglespan {
  29. display: none;
  30. }
  31. .toc {
  32. ul {
  33. list-style: none;
  34. .tocnumber::after {
  35. content: '.';
  36. }
  37. }
  38. }
  39. table {
  40. th,
  41. td {
  42. padding: var(--spacing-03) var(--spacing-05);
  43. border-bottom: 1px solid var(--neutral-30);
  44. }
  45. th {
  46. font-weight: 700;
  47. text-align: left;
  48. font-family: $font-family-serif;
  49. }
  50. margin-bottom: var(--spacing-03);
  51. }
  52. .table-no-borders {
  53. th,
  54. td {
  55. border: 0;
  56. }
  57. }
  58. .example {
  59. max-width: 100%;
  60. .code {
  61. pre {
  62. background-color: var(--neutral-10);
  63. border-radius: var(--border-radius-base);
  64. padding: var(--spacing-03);
  65. white-space: pre-wrap;
  66. margin: 0;
  67. }
  68. }
  69. .output {
  70. text-align: center;
  71. padding-top: var(--spacing-05);
  72. img {
  73. width: auto;
  74. height: auto;
  75. max-width: 100%;
  76. box-shadow: 0 1px 3px var(--neutral-30);
  77. border-radius: var(--border-radius-base);
  78. }
  79. }
  80. }
  81. @include media-breakpoint-up(xxl) {
  82. .example {
  83. margin-right: -200px;
  84. }
  85. }
  86. @include media-breakpoint-down(md) {
  87. .contents {
  88. margin-top: var(--spacing-09);
  89. }
  90. }
  91. /* stylelint-disable */
  92. /*<![CDATA[*/
  93. .source-latex {
  94. line-height: normal;
  95. }
  96. .source-latex li,
  97. .source-latex pre {
  98. line-height: normal;
  99. border: 0px none white;
  100. }
  101. /**
  102. * GeSHi Dynamically Generated Stylesheet
  103. * --------------------------------------
  104. * Dynamically generated stylesheet for latex
  105. * CSS class: source-latex, CSS id:
  106. * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
  107. * (http://qbnz.com/highlighter/ and http://geshi.org/)
  108. * --------------------------------------
  109. */
  110. .latex.source-latex .imp {
  111. font-weight: bold;
  112. color: red;
  113. }
  114. .latex.source-latex li,
  115. .latex.source-latex .li1 {
  116. font-weight: normal;
  117. vertical-align: top;
  118. }
  119. .latex.source-latex .ln {
  120. width: 1px;
  121. text-align: right;
  122. margin: 0;
  123. padding: 0 2px;
  124. vertical-align: top;
  125. }
  126. .latex.source-latex .li2 {
  127. font-weight: bold;
  128. vertical-align: top;
  129. }
  130. .latex.source-latex .kw1 {
  131. color: #800000;
  132. }
  133. .latex.source-latex .co1 {
  134. color: #2c922c;
  135. font-style: italic;
  136. }
  137. .latex.source-latex .es0 {
  138. color: #000000;
  139. font-weight: bold;
  140. }
  141. .latex.source-latex .sy0 {
  142. color: #e02020;
  143. }
  144. .latex.source-latex .st0 {
  145. color: #000000;
  146. }
  147. .latex.source-latex .re1 {
  148. color: #8020e0;
  149. font-weight: normal;
  150. }
  151. .latex.source-latex .re2 {
  152. color: #c08020;
  153. font-weight: normal;
  154. }
  155. .latex.source-latex .re3 {
  156. color: #8020e0;
  157. font-weight: normal;
  158. }
  159. .latex.source-latex .re4 {
  160. color: #800000;
  161. font-weight: normal;
  162. }
  163. .latex.source-latex .re5 {
  164. color: #00008b;
  165. font-weight: bold;
  166. }
  167. .latex.source-latex .re6 {
  168. color: #800000;
  169. font-weight: normal;
  170. }
  171. .latex.source-latex .re7 {
  172. color: #0000d0;
  173. font-weight: normal;
  174. }
  175. .latex.source-latex .re8 {
  176. color: #c00000;
  177. font-weight: normal;
  178. }
  179. .latex.source-latex .re9 {
  180. color: #2020c0;
  181. font-weight: normal;
  182. }
  183. .latex.source-latex .re10 {
  184. color: #800000;
  185. font-weight: normal;
  186. }
  187. .latex.source-latex .re11 {
  188. color: #e00000;
  189. font-weight: normal;
  190. }
  191. .latex.source-latex .re12 {
  192. color: #800000;
  193. font-weight: normal;
  194. }
  195. .latex.source-latex .ln-xtra,
  196. .latex.source-latex li.ln-xtra,
  197. .latex.source-latex div.ln-xtra {
  198. background-color: #ffc;
  199. }
  200. .latex.source-latex span.xtra {
  201. display: block;
  202. }
  203. /*]]>*/
  204. /* stylelint-enable */
  205. a.search-result {
  206. display: block;
  207. margin-top: var(--spacing-05);
  208. text-decoration: none;
  209. .search-result-header {
  210. color: var(--link-color);
  211. }
  212. .search-result-content {
  213. margin-top: var(--spacing-05);
  214. white-space: pre-wrap;
  215. font-size: 0.8em;
  216. color: var(--neutral-70);
  217. em {
  218. font-weight: bold;
  219. }
  220. }
  221. &:hover,
  222. &:active,
  223. &:focus {
  224. text-decoration: none;
  225. .search-result-content {
  226. color: var(--neutral-90);
  227. }
  228. box-shadow: 0 2px 4px rgb(0 0 0 / 35%);
  229. }
  230. }
  231. /* Keep the below rules in sync with the wiki pages */
  232. img {
  233. height: auto;
  234. max-width: 100%;
  235. }
  236. img.add-vertical-space {
  237. padding-bottom: 20px;
  238. padding-top: 20px;
  239. }
  240. th.no-wrap {
  241. white-space: nowrap;
  242. text-align: left;
  243. }
  244. /* stylelint-disable selector-class-pattern */
  245. /* LATEX and TEX artwork */
  246. span.TEX {
  247. letter-spacing: -0.125em;
  248. padding-right: 0.5ex;
  249. }
  250. span.TEX span.E {
  251. position: relative;
  252. top: 0.5ex;
  253. padding-right: 0.1ex;
  254. }
  255. a span.TEX span.E {
  256. text-decoration: none;
  257. }
  258. span.LATEX span.A {
  259. position: relative;
  260. top: -0.5ex;
  261. left: -0.4em;
  262. font-size: 75%;
  263. }
  264. span.LATEX span.TEX {
  265. position: relative;
  266. left: -0.4em;
  267. margin-right: -0.5ex;
  268. }
  269. /* stylelint-enable selector-class-pattern */
  270. }