content.sass 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. $content-heading-color: $text-strong !default
  2. $content-heading-weight: $weight-normal !default
  3. $content-heading-line-height: 1.125 !default
  4. $content-blockquote-background-color: $background !default
  5. $content-blockquote-border-left: 5px solid $border !default
  6. $content-blockquote-padding: 1.25em 1.5em !default
  7. $content-pre-padding: 1.25em 1.5em !default
  8. $content-table-cell-border: 1px solid $border !default
  9. $content-table-cell-border-width: 0 0 1px !default
  10. $content-table-cell-padding: 0.5em 0.75em !default
  11. $content-table-cell-heading-color: $text-strong !default
  12. $content-table-row-hover-background-color: $background !default
  13. $content-table-head-cell-border-width: 0 0 2px !default
  14. $content-table-head-cell-color: $text-strong !default
  15. $content-table-foot-cell-border-width: 2px 0 0 !default
  16. $content-table-foot-cell-color: $text-strong !default
  17. .content
  18. +block
  19. // Inline
  20. li + li
  21. margin-top: 0.25em
  22. // Block
  23. p,
  24. dl,
  25. ol,
  26. ul,
  27. blockquote,
  28. pre,
  29. table
  30. &:not(:last-child)
  31. margin-bottom: 1em
  32. h1,
  33. h2,
  34. h3,
  35. h4,
  36. h5,
  37. h6
  38. color: $content-heading-color
  39. font-weight: $content-heading-weight
  40. line-height: $content-heading-line-height
  41. h1
  42. font-size: 2em
  43. margin-bottom: 0.5em
  44. &:not(:first-child)
  45. margin-top: 1em
  46. h2
  47. font-size: 1.75em
  48. margin-bottom: 0.5714em
  49. &:not(:first-child)
  50. margin-top: 1.1428em
  51. h3
  52. font-size: 1.5em
  53. margin-bottom: 0.6666em
  54. &:not(:first-child)
  55. margin-top: 1.3333em
  56. h4
  57. font-size: 1.25em
  58. margin-bottom: 0.8em
  59. h5
  60. font-size: 1.125em
  61. margin-bottom: 0.8888em
  62. h6
  63. font-size: 1em
  64. margin-bottom: 1em
  65. blockquote
  66. background-color: $content-blockquote-background-color
  67. border-left: $content-blockquote-border-left
  68. padding: $content-blockquote-padding
  69. ol
  70. list-style: decimal outside
  71. margin-left: 2em
  72. margin-top: 1em
  73. ul
  74. list-style: disc outside
  75. margin-left: 2em
  76. margin-top: 1em
  77. ul
  78. list-style-type: circle
  79. margin-top: 0.5em
  80. ul
  81. list-style-type: square
  82. dd
  83. margin-left: 2em
  84. figure
  85. margin-left: 2em
  86. margin-right: 2em
  87. text-align: center
  88. &:not(:first-child)
  89. margin-top: 2em
  90. &:not(:last-child)
  91. margin-bottom: 2em
  92. img
  93. display: inline-block
  94. figcaption
  95. font-style: italic
  96. pre
  97. +overflow-touch
  98. overflow-x: auto
  99. padding: $content-pre-padding
  100. white-space: pre
  101. word-wrap: normal
  102. sup,
  103. sub
  104. font-size: 75%
  105. table
  106. width: 100%
  107. td,
  108. th
  109. border: $content-table-cell-border
  110. border-width: $content-table-cell-border-width
  111. padding: $content-table-cell-padding
  112. vertical-align: top
  113. th
  114. color: $content-table-cell-heading-color
  115. text-align: left
  116. tr
  117. &:hover
  118. background-color: $content-table-row-hover-background-color
  119. thead
  120. td,
  121. th
  122. border-width: $content-table-head-cell-border-width
  123. color: $content-table-head-cell-color
  124. tfoot
  125. td,
  126. th
  127. border-width: $content-table-foot-cell-border-width
  128. color: $content-table-foot-cell-color
  129. tbody
  130. tr
  131. &:last-child
  132. td,
  133. th
  134. border-bottom-width: 0
  135. // Sizes
  136. &.is-small
  137. font-size: $size-small
  138. &.is-medium
  139. font-size: $size-medium
  140. &.is-large
  141. font-size: $size-large