_wiki.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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 #ccc;
  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 #eee;
  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: darken(gray, 10%);
  61. }
  62. pre {
  63. border: none;
  64. }
  65. img {
  66. margin: 5px 0;
  67. max-width: 100%;
  68. }
  69. img.emojione {
  70. margin-top: -0.3em !important;
  71. margin-bottom: 0 !important;
  72. border: none;
  73. box-shadow: none;
  74. }
  75. ul, ol {
  76. padding-left: 30px;
  77. margin: 20px 0;
  78. li {
  79. margin: 5px 0;
  80. line-height: 1.8em;
  81. }
  82. ul, ol {
  83. margin: 0;
  84. }
  85. }
  86. // borrowed from https://www.npmjs.com/package/github-markdown-css
  87. .contains-task-list {
  88. .task-list-item {
  89. list-style-type: none;
  90. }
  91. .task-list-item+.task-list-item {
  92. margin-top: 3px;
  93. }
  94. .task-list-item input {
  95. margin: 0 0.2em 0.25em -1.6em;
  96. vertical-align: middle;
  97. }
  98. }
  99. pre.hljs {
  100. position: relative;
  101. cite {
  102. position: absolute;
  103. top: 0;
  104. right: 0;
  105. padding: 0 4px;
  106. background: #ccc;
  107. color: #333;
  108. font-style: normal;
  109. font-weight: bold;
  110. opacity: 0.6;
  111. }
  112. };
  113. p code { // only inline code blocks
  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. @extend .bg-warning;
  126. }
  127. }
  128. @media (max-width: $screen-sm-max) { // {{{ tablet and iphone size
  129. .main-container .main .wiki {
  130. img {
  131. max-width: 100%;
  132. }
  133. }
  134. }