_wiki.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. p {
  41. font-weight: normal;
  42. margin: 15px 0;
  43. }
  44. blockquote {
  45. font-size: .9em;
  46. margin: 0 0 30px 0;
  47. padding: 0 20px;
  48. color: lighten($gray-dark, 35%);
  49. }
  50. pre {
  51. border: none;
  52. border-radius: 3px;
  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. visibility: hidden;
  123. font-size: 0.6em;
  124. }
  125. &:hover .revision-head-link,
  126. &:hover .revision-head-edit-button {
  127. visibility: unset;
  128. margin-left: 0.5em;
  129. }
  130. }
  131. }
  132. @media (max-width: $screen-sm-max) { // {{{ tablet and iphone size
  133. .main-container .main .wiki {
  134. img {
  135. max-width: 100%;
  136. }
  137. }
  138. }