_wiki.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. div.body {
  2. padding: 10px;
  3. }
  4. .revision-head {
  5. .revision-head-link,
  6. .revision-head-edit-button {
  7. visibility: hidden;
  8. font-size: 0.6em;
  9. }
  10. &:hover .revision-head-link,
  11. &:hover .revision-head-edit-button {
  12. visibility: unset;
  13. margin-left: 0.5em;
  14. }
  15. }
  16. .wiki {
  17. line-height: 1.8em;
  18. font-size: 15px;
  19. h1, h2, h3, h4, h5, h6 {
  20. margin-top: 1.6em;
  21. margin-bottom: .8em;
  22. &:first-child {
  23. margin-top: 0;
  24. }
  25. }
  26. h1 {
  27. margin-top: 2em;
  28. padding-bottom: 0.3em;
  29. font-size: 1.8em;
  30. line-height: 1.1em;
  31. border-bottom: solid 1px transparent;
  32. }
  33. h2 {
  34. padding-bottom: 0.5em;
  35. font-size: 1.4em;
  36. line-height: 1.225;
  37. font-weight: bold;
  38. border-bottom: 1px solid transparent;
  39. }
  40. h3 {
  41. font-size: 1.2em;
  42. font-weight: bold;
  43. }
  44. h4 {
  45. font-size: 1.1em;
  46. font-weight: normal;
  47. }
  48. h5 {
  49. font-size: 1.05em;
  50. font-weight: normal;
  51. }
  52. p {
  53. font-weight: normal;
  54. margin: 15px 0;
  55. }
  56. blockquote {
  57. font-size: .9em;
  58. margin: 0 0 30px 0;
  59. padding: 0 20px;
  60. color: lighten($gray-dark, 35%);
  61. }
  62. pre {
  63. border: none;
  64. border-radius: 3px;
  65. }
  66. img {
  67. margin: 5px 0;
  68. max-width: 100%;
  69. }
  70. img.emojione {
  71. margin-top: -0.3em !important;
  72. margin-bottom: 0 !important;
  73. border: none;
  74. box-shadow: none;
  75. }
  76. ul, ol {
  77. padding-left: 30px;
  78. margin: 20px 0;
  79. li {
  80. margin: 5px 0;
  81. line-height: 1.8em;
  82. }
  83. ul, ol {
  84. margin: 0;
  85. }
  86. }
  87. // borrowed from https://www.npmjs.com/package/github-markdown-css
  88. .contains-task-list {
  89. .task-list-item {
  90. list-style-type: none;
  91. }
  92. .task-list-item+.task-list-item {
  93. margin-top: 3px;
  94. }
  95. .task-list-item input {
  96. margin: 0 0.2em 0.25em -1.6em;
  97. vertical-align: middle;
  98. }
  99. }
  100. pre.hljs {
  101. position: relative;
  102. cite {
  103. position: absolute;
  104. top: 0;
  105. right: 0;
  106. padding: 0 4px;
  107. background: #ccc;
  108. color: #333;
  109. font-style: normal;
  110. font-weight: bold;
  111. opacity: 0.6;
  112. }
  113. };
  114. p code { // only inline code blocks
  115. font-family: $font-family-monospace-not-strictly;
  116. }
  117. .page-template-builder {
  118. position: relative;
  119. .template-create-button {
  120. position: absolute;
  121. top: 8px;
  122. right: 8px;
  123. }
  124. }
  125. .highlighted {
  126. background-color: $brand-warning;
  127. }
  128. }
  129. @media (max-width: $screen-sm-max) { // {{{ tablet and iphone size
  130. .main-container .main .wiki {
  131. img {
  132. max-width: 100%;
  133. }
  134. }
  135. }