wiki.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. img {
  16. height: auto;
  17. max-width: 100%;
  18. }
  19. .page-header {
  20. a {
  21. font-size: 0.8em;
  22. line-height: 1;
  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: (@line-height-computed / 4) (@line-height-computed / 2);
  43. border-bottom: 1px solid @gray-lighter;
  44. }
  45. th {
  46. font-weight: 700;
  47. text-align: left;
  48. font-family: @font-family-serif;
  49. }
  50. margin-bottom: @line-height-computed / 2;
  51. }
  52. .table-no-borders {
  53. th,
  54. td {
  55. border: 0px;
  56. }
  57. }
  58. .example {
  59. max-width: 100%;
  60. .code {
  61. pre {
  62. background-color: @gray-lightest;
  63. border-radius: 6px;
  64. padding: (@line-height-computed / 2);
  65. white-space: pre-wrap;
  66. margin: 0;
  67. }
  68. }
  69. .output {
  70. text-align: center;
  71. padding-top: 10px;
  72. img {
  73. width: auto;
  74. height: auto;
  75. max-width: 100%;
  76. box-shadow: 0 1px 3px @gray-light;
  77. border-radius: 6px;
  78. }
  79. }
  80. }
  81. @media (min-width: 1360px) {
  82. .example {
  83. margin-right: -200px;
  84. }
  85. }
  86. @media (max-width: @screen-sm) {
  87. .contents {
  88. margin-top: @margin-lg;
  89. }
  90. }
  91. /*<![CDATA[*/
  92. .source-latex {
  93. line-height: normal;
  94. }
  95. .source-latex li,
  96. .source-latex pre {
  97. line-height: normal;
  98. border: 0px none white;
  99. }
  100. /**
  101. * GeSHi Dynamically Generated Stylesheet
  102. * --------------------------------------
  103. * Dynamically generated stylesheet for latex
  104. * CSS class: source-latex, CSS id:
  105. * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
  106. * (http://qbnz.com/highlighter/ and http://geshi.org/)
  107. * --------------------------------------
  108. */
  109. .latex.source-latex .imp {
  110. font-weight: bold;
  111. color: red;
  112. }
  113. .latex.source-latex li,
  114. .latex.source-latex .li1 {
  115. font-weight: normal;
  116. vertical-align: top;
  117. }
  118. .latex.source-latex .ln {
  119. width: 1px;
  120. text-align: right;
  121. margin: 0;
  122. padding: 0 2px;
  123. vertical-align: top;
  124. }
  125. .latex.source-latex .li2 {
  126. font-weight: bold;
  127. vertical-align: top;
  128. }
  129. .latex.source-latex .kw1 {
  130. color: #800000;
  131. }
  132. .latex.source-latex .co1 {
  133. color: #2c922c;
  134. font-style: italic;
  135. }
  136. .latex.source-latex .es0 {
  137. color: #000000;
  138. font-weight: bold;
  139. }
  140. .latex.source-latex .sy0 {
  141. color: #e02020;
  142. }
  143. .latex.source-latex .st0 {
  144. color: #000000;
  145. }
  146. .latex.source-latex .re1 {
  147. color: #8020e0;
  148. font-weight: normal;
  149. }
  150. .latex.source-latex .re2 {
  151. color: #c08020;
  152. font-weight: normal;
  153. }
  154. .latex.source-latex .re3 {
  155. color: #8020e0;
  156. font-weight: normal;
  157. }
  158. .latex.source-latex .re4 {
  159. color: #800000;
  160. font-weight: normal;
  161. }
  162. .latex.source-latex .re5 {
  163. color: #00008b;
  164. font-weight: bold;
  165. }
  166. .latex.source-latex .re6 {
  167. color: #800000;
  168. font-weight: normal;
  169. }
  170. .latex.source-latex .re7 {
  171. color: #0000d0;
  172. font-weight: normal;
  173. }
  174. .latex.source-latex .re8 {
  175. color: #c00000;
  176. font-weight: normal;
  177. }
  178. .latex.source-latex .re9 {
  179. color: #2020c0;
  180. font-weight: normal;
  181. }
  182. .latex.source-latex .re10 {
  183. color: #800000;
  184. font-weight: normal;
  185. }
  186. .latex.source-latex .re11 {
  187. color: #e00000;
  188. font-weight: normal;
  189. }
  190. .latex.source-latex .re12 {
  191. color: #800000;
  192. font-weight: normal;
  193. }
  194. .latex.source-latex .ln-xtra,
  195. .latex.source-latex li.ln-xtra,
  196. .latex.source-latex div.ln-xtra {
  197. background-color: #ffc;
  198. }
  199. .latex.source-latex span.xtra {
  200. display: block;
  201. }
  202. /*]]>*/
  203. a.search-result {
  204. display: block;
  205. margin-top: @line-height-computed / 2;
  206. .search-result-content {
  207. margin-top: @line-height-computed / 4;
  208. white-space: pre-wrap;
  209. font-size: 0.8em;
  210. color: @gray-dark;
  211. em {
  212. font-weight: bold;
  213. }
  214. }
  215. &:hover,
  216. &:active,
  217. &:focus {
  218. text-decoration: none;
  219. .search-result-content {
  220. color: @gray-darker;
  221. }
  222. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  223. }
  224. }
  225. }