_wiki.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. @import 'layout_variable';
  2. div.body {
  3. padding: 10px;
  4. }
  5. // hljs
  6. .wiki {
  7. @import 'hljs';
  8. }
  9. .wiki {
  10. font-size: 15px;
  11. line-height: 1.8em;
  12. h1,
  13. h2,
  14. h3,
  15. h4,
  16. h5,
  17. h6 {
  18. margin-top: 1.6em;
  19. margin-bottom: 0.8em;
  20. &:first-child {
  21. margin-top: 0;
  22. }
  23. }
  24. h1 {
  25. padding: 0.5em 0;
  26. margin-top: 2em;
  27. font-size: 1.8em;
  28. line-height: 1.1em;
  29. border-bottom: solid 1px $grw-line-light-gray;
  30. }
  31. h2 {
  32. padding-bottom: 0.5em;
  33. font-size: 1.4em;
  34. font-weight: bold;
  35. line-height: 1.225;
  36. border-bottom: 1px solid transparent;
  37. }
  38. h3 {
  39. font-size: 1.2em;
  40. font-weight: bold;
  41. }
  42. h4 {
  43. font-size: 1.1em;
  44. font-weight: normal;
  45. }
  46. h5 {
  47. font-size: 1.05em;
  48. font-weight: normal;
  49. }
  50. p {
  51. margin: 15px 0;
  52. font-weight: normal;
  53. }
  54. blockquote {
  55. padding: 0 20px;
  56. margin: 0 0 30px 0;
  57. font-size: 0.9em;
  58. color: lighten($gray-800, 35%);
  59. }
  60. img {
  61. max-width: 100%;
  62. margin: 5px 0;
  63. }
  64. img.emojione {
  65. margin-top: -0.3em !important;
  66. margin-bottom: 0 !important;
  67. border: none;
  68. box-shadow: none;
  69. }
  70. ul,
  71. ol {
  72. padding-left: 30px;
  73. margin: 20px 0;
  74. li {
  75. margin: 5px 0;
  76. line-height: 1.8em;
  77. }
  78. ul,
  79. ol {
  80. margin: 0;
  81. }
  82. }
  83. .task-list {
  84. .task-list-item {
  85. margin: 0 0.2em 0.25em -1.6em;
  86. list-style-type: none;
  87. }
  88. .task-list-item > .task-list {
  89. margin-left: 30px;
  90. }
  91. // use awesome-bootstrap-checkbox
  92. .task-list-item .checkbox input[type='checkbox'] {
  93. // layout
  94. + label {
  95. padding-left: 0.3em;
  96. &:before {
  97. margin-top: 0.4em;
  98. }
  99. }
  100. // styles
  101. cursor: default;
  102. + label {
  103. cursor: default;
  104. opacity: 1;
  105. &:before,
  106. &:after {
  107. cursor: default;
  108. }
  109. }
  110. }
  111. }
  112. // only inline code blocks
  113. p code {
  114. font-family: $font-family-monospace-not-strictly;
  115. }
  116. .page-template-builder {
  117. position: relative;
  118. .template-create-button {
  119. position: absolute;
  120. top: 8px;
  121. right: 8px;
  122. }
  123. }
  124. .highlighted {
  125. background-color: $warning;
  126. }
  127. .revision-head {
  128. a {
  129. text-decoration: none;
  130. }
  131. .revision-head-link,
  132. .revision-head-edit-button {
  133. margin-left: 0.5em;
  134. font-size: 0.6em;
  135. opacity: 0;
  136. }
  137. &:hover .revision-head-link,
  138. &:hover .revision-head-edit-button {
  139. opacity: 1 !important;
  140. }
  141. }
  142. $ratio: 0.95;
  143. &.comment {
  144. font-size: 14px;
  145. line-height: 1.5em;
  146. h1,
  147. h2,
  148. h3,
  149. h4,
  150. h5,
  151. h6 {
  152. margin-top: 1.6em * $ratio;
  153. margin-bottom: 0.8em * $ratio;
  154. &:first-child {
  155. margin-top: 15px;
  156. }
  157. }
  158. h1 {
  159. padding-bottom: 0.3em * $ratio;
  160. margin-top: 2em * $ratio;
  161. font-size: 1.8em * $ratio;
  162. line-height: 1.1em * $ratio;
  163. }
  164. h2 {
  165. padding-bottom: 0.5em * $ratio;
  166. font-size: 1.4em * $ratio;
  167. line-height: 1.225 * $ratio;
  168. }
  169. h3 {
  170. font-size: 1.2em * $ratio;
  171. }
  172. blockquote {
  173. font-size: 0.9em * $ratio;
  174. }
  175. img.emojione {
  176. margin-top: -0.3em * $ratio !important;
  177. }
  178. ul,
  179. ol {
  180. padding-left: 15px;
  181. margin: 10px 0;
  182. li {
  183. line-height: 1.1em;
  184. }
  185. }
  186. .revision-head {
  187. .revision-head-link,
  188. .revision-head-edit-button {
  189. margin-left: 0.5em * $ratio;
  190. font-size: 0.6em * $ratio;
  191. }
  192. }
  193. }
  194. }
  195. // mobile
  196. .page-mobile .wiki .revision-head {
  197. .revision-head-link,
  198. .revision-head-edit-button {
  199. opacity: 0.3;
  200. }
  201. }
  202. @include media-breakpoint-down(sm) {
  203. .main .wiki {
  204. img {
  205. max-width: 100%;
  206. }
  207. }
  208. }