wiki.less 4.9 KB

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