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