_wiki.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. div.body {
  2. padding: 10px;
  3. }
  4. .wiki {
  5. line-height: 1.8em;
  6. font-size: 15px;
  7. h1, h2, h3, h4, h5, h6 {
  8. margin-top: 1.6em;
  9. margin-bottom: .8em;
  10. &:first-child {
  11. margin-top: 0;
  12. }
  13. }
  14. h1 {
  15. margin-top: 2em;
  16. padding-bottom: 0.3em;
  17. font-size: 1.8em;
  18. line-height: 1.1em;
  19. border-bottom: solid 1px transparent;
  20. }
  21. h2 {
  22. padding-bottom: 0.5em;
  23. font-size: 1.4em;
  24. line-height: 1.225;
  25. font-weight: bold;
  26. border-bottom: 1px solid transparent;
  27. }
  28. h3 {
  29. font-size: 1.2em;
  30. font-weight: bold;
  31. }
  32. h4 {
  33. font-size: 1.1em;
  34. font-weight: normal;
  35. }
  36. h5 {
  37. font-size: 1.05em;
  38. font-weight: normal;
  39. }
  40. h6 {
  41. font-size: 1.00em;
  42. font-weight: normal;
  43. }
  44. p {
  45. font-weight: normal;
  46. margin: 15px 0;
  47. }
  48. blockquote {
  49. font-size: .9em;
  50. margin: 0 0 30px 0;
  51. padding: 0 20px;
  52. color: lighten($gray-dark, 35%);
  53. }
  54. img {
  55. margin: 5px 0;
  56. max-width: 100%;
  57. }
  58. img.emojione {
  59. margin-top: -0.3em !important;
  60. margin-bottom: 0 !important;
  61. border: none;
  62. box-shadow: none;
  63. }
  64. ul, ol {
  65. padding-left: 30px;
  66. margin: 20px 0;
  67. li {
  68. margin: 5px 0;
  69. line-height: 1.8em;
  70. }
  71. ul, ol {
  72. margin: 0;
  73. }
  74. }
  75. // borrowed from https://www.npmjs.com/package/github-markdown-css
  76. .contains-task-list {
  77. .task-list-item {
  78. list-style-type: none;
  79. }
  80. .task-list-item+.task-list-item {
  81. margin-top: 3px;
  82. }
  83. .task-list-item input {
  84. margin: 0 0.2em 0.25em -1.6em;
  85. vertical-align: middle;
  86. }
  87. }
  88. pre.hljs {
  89. position: relative;
  90. cite {
  91. position: absolute;
  92. top: 0;
  93. right: 0;
  94. padding: 0 4px;
  95. background: #ccc;
  96. color: #333;
  97. font-style: normal;
  98. font-weight: bold;
  99. opacity: 0.6;
  100. }
  101. };
  102. p code { // only inline code blocks
  103. font-family: $font-family-monospace-not-strictly;
  104. }
  105. .page-template-builder {
  106. position: relative;
  107. .template-create-button {
  108. position: absolute;
  109. top: 8px;
  110. right: 8px;
  111. }
  112. }
  113. .highlighted {
  114. background-color: $brand-warning;
  115. }
  116. .revision-head {
  117. a {
  118. text-decoration: none;
  119. }
  120. .revision-head-link,
  121. .revision-head-edit-button {
  122. margin-left: 0.5em;
  123. font-size: 0.6em;
  124. opacity: 0;
  125. }
  126. &:hover .revision-head-link,
  127. &:hover .revision-head-edit-button {
  128. opacity: 1 !important;
  129. }
  130. }
  131. }
  132. .comment {
  133. line-height: 1.5em;
  134. font-size: 14px;
  135. h1, h2, h3, h4, h5, h6 {
  136. margin-top: 1.6em * 0.95;
  137. margin-bottom: .8em * 0.95;
  138. &:first-child {
  139. margin-top: 0;
  140. }
  141. }
  142. h1 {
  143. margin-top: 2em * 0.95;
  144. padding-bottom: 0.3em * 0.95;
  145. font-size: 1.8em * 0.95;
  146. line-height: 1.1em * 0.95;
  147. font-weight: bold;
  148. border-bottom: solid 1px transparent;
  149. }
  150. h2 {
  151. padding-bottom: 0.5em * 0.95;
  152. font-size: 1.4em * 0.95;
  153. line-height: 1.225 * 0.95;
  154. font-weight: bold;
  155. border-bottom: 1px solid transparent;
  156. }
  157. h3 {
  158. font-size: 1.2em * 0.95;
  159. font-weight: bold;
  160. }
  161. h4 {
  162. font-size: 1.1em;
  163. font-weight: normal;
  164. }
  165. h5 {
  166. font-size: 1.05em;
  167. font-weight: normal;
  168. }
  169. h6 {
  170. font-size: 1.00em;
  171. font-weight: normal;
  172. }
  173. p {
  174. font-weight: normal;
  175. margin: 15px 0;
  176. }
  177. blockquote {
  178. font-size: .9em;
  179. margin: 0 0 30px 0;
  180. padding: 0 20px;
  181. color: lighten($gray-dark, 35%);
  182. }
  183. img {
  184. margin: 5px 0;
  185. max-width: 100%;
  186. }
  187. img.emojione {
  188. margin-top: -0.3em !important;
  189. margin-bottom: 0 !important;
  190. border: none;
  191. box-shadow: none;
  192. }
  193. ul, ol {
  194. padding-left: 30px;
  195. margin: 20px 0;
  196. li {
  197. margin: 5px 0;
  198. line-height: 1.8em;
  199. }
  200. ul, ol {
  201. margin: 0;
  202. }
  203. }
  204. // borrowed from https://www.npmjs.com/package/github-markdown-css
  205. .contains-task-list {
  206. .task-list-item {
  207. list-style-type: none;
  208. }
  209. .task-list-item+.task-list-item {
  210. margin-top: 3px;
  211. }
  212. .task-list-item input {
  213. margin: 0 0.2em 0.25em -1.6em;
  214. vertical-align: middle;
  215. }
  216. }
  217. pre.hljs {
  218. position: relative;
  219. cite {
  220. position: absolute;
  221. top: 0;
  222. right: 0;
  223. padding: 0 4px;
  224. background: #ccc;
  225. color: #333;
  226. font-style: normal;
  227. font-weight: bold;
  228. opacity: 0.6;
  229. }
  230. };
  231. p code { // only inline code blocks
  232. font-family: $font-family-monospace-not-strictly;
  233. }
  234. .page-template-builder {
  235. position: relative;
  236. .template-create-button {
  237. position: absolute;
  238. top: 8px;
  239. right: 8px;
  240. }
  241. }
  242. .highlighted {
  243. background-color: $brand-warning;
  244. }
  245. .revision-head {
  246. a {
  247. text-decoration: none;
  248. }
  249. .revision-head-link,
  250. .revision-head-edit-button {
  251. margin-left: 0.5em;
  252. font-size: 0.6em;
  253. opacity: 0;
  254. }
  255. &:hover .revision-head-link,
  256. &:hover .revision-head-edit-button {
  257. opacity: 1 !important;
  258. }
  259. }
  260. }
  261. // mobile
  262. .page-mobile .wiki .revision-head {
  263. .revision-head-link,
  264. .revision-head-edit-button {
  265. opacity: 0.3;
  266. }
  267. }
  268. @media (max-width: $screen-sm-max) { // {{{ tablet and iphone size
  269. .main-container .main .wiki {
  270. img {
  271. max-width: 100%;
  272. }
  273. }
  274. }