2022-11-23 17:44:02 +00:00
|
|
|
@import "../utilities/mixins";
|
|
|
|
|
2022-12-06 10:46:03 +00:00
|
|
|
$content-heading-color: getVar("text-strong") !default;
|
|
|
|
$content-heading-weight: getVar("weight-semibold") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$content-heading-line-height: 1.125 !default;
|
|
|
|
|
|
|
|
$content-block-margin-bottom: 1em !default;
|
|
|
|
|
2022-12-06 10:46:03 +00:00
|
|
|
$content-blockquote-background-color: getVar("background") !default;
|
|
|
|
$content-blockquote-border-left: 5px solid getVar("border") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$content-blockquote-padding: 1.25em 1.5em !default;
|
|
|
|
|
|
|
|
$content-pre-padding: 1.25em 1.5em !default;
|
|
|
|
|
2022-12-06 10:46:03 +00:00
|
|
|
$content-table-cell-border: 1px solid getVar("border") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$content-table-cell-border-width: 0 0 1px !default;
|
|
|
|
$content-table-cell-padding: 0.5em 0.75em !default;
|
2022-12-06 10:46:03 +00:00
|
|
|
$content-table-cell-heading-color: getVar("text-strong") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$content-table-head-cell-border-width: 0 0 2px !default;
|
2022-12-06 10:46:03 +00:00
|
|
|
$content-table-head-cell-color: getVar("text-strong") !default;
|
2022-11-23 17:44:02 +00:00
|
|
|
$content-table-body-last-row-cell-border-bottom-width: 0 !default;
|
|
|
|
$content-table-foot-cell-border-width: 2px 0 0 !default;
|
2022-12-06 10:46:03 +00:00
|
|
|
$content-table-foot-cell-color: getVar("text-strong") !default;
|
|
|
|
|
|
|
|
:root {
|
|
|
|
@include register-vars(
|
|
|
|
(
|
|
|
|
content-heading-color: #{$content-heading-color},
|
|
|
|
content-heading-weight: #{$content-heading-weight},
|
|
|
|
content-heading-line-height: #{$content-heading-line-height},
|
|
|
|
content-block-margin-bottom: #{$content-block-margin-bottom},
|
|
|
|
content-blockquote-background-color: #{$content-blockquote-background-color},
|
|
|
|
content-blockquote-border-left: #{$content-blockquote-border-left},
|
|
|
|
content-blockquote-padding: #{$content-blockquote-padding},
|
|
|
|
content-pre-padding: #{$content-pre-padding},
|
|
|
|
content-table-cell-border: #{$content-table-cell-border},
|
|
|
|
content-table-cell-border-width: #{$content-table-cell-border-width},
|
|
|
|
content-table-cell-padding: #{$content-table-cell-padding},
|
|
|
|
content-table-cell-heading-color: #{$content-table-cell-heading-color},
|
|
|
|
content-table-head-cell-border-width: #{$content-table-head-cell-border-width},
|
|
|
|
content-table-head-cell-color: #{$content-table-head-cell-color},
|
|
|
|
content-table-body-last-row-cell-border-bottom-width: #{$content-table-body-last-row-cell-border-bottom-width},
|
|
|
|
content-table-foot-cell-border-width: #{$content-table-foot-cell-border-width},
|
|
|
|
content-table-foot-cell-color: #{$content-table-foot-cell-color},
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2022-11-23 17:44:02 +00:00
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}content {
|
2022-11-23 17:44:02 +00:00
|
|
|
@extend %block;
|
|
|
|
|
|
|
|
// Inline
|
|
|
|
li + li {
|
|
|
|
margin-top: 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Block
|
|
|
|
p,
|
|
|
|
dl,
|
|
|
|
ol,
|
|
|
|
ul,
|
|
|
|
blockquote,
|
|
|
|
pre,
|
|
|
|
table {
|
|
|
|
&:not(:last-child) {
|
2022-12-06 10:46:03 +00:00
|
|
|
margin-bottom: getVar("content-block-margin-bottom");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2022-12-06 10:46:03 +00:00
|
|
|
color: getVar("content-heading-color");
|
|
|
|
font-weight: getVar("content-heading-weight");
|
|
|
|
line-height: getVar("content-heading-line-height");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 2em;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 1.75em;
|
|
|
|
margin-bottom: 0.5714em;
|
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 1.1428em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
margin-bottom: 0.6666em;
|
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 1.3333em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: 1.25em;
|
|
|
|
margin-bottom: 0.8em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
font-size: 1.125em;
|
|
|
|
margin-bottom: 0.8888em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
|
|
|
font-size: 1em;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
2022-12-06 10:46:03 +00:00
|
|
|
background-color: getVar("content-blockquote-background-color");
|
|
|
|
@include ltr-property(
|
|
|
|
"border",
|
|
|
|
getVar("content-blockquote-border-left"),
|
|
|
|
false
|
|
|
|
);
|
|
|
|
padding: getVar("content-blockquote-padding");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ol {
|
|
|
|
list-style-position: outside;
|
|
|
|
@include ltr-property("margin", 2em, false);
|
|
|
|
margin-top: 1em;
|
|
|
|
|
|
|
|
&:not([type]) {
|
|
|
|
list-style-type: decimal;
|
|
|
|
|
|
|
|
&.is-lower-alpha {
|
|
|
|
list-style-type: lower-alpha;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-lower-roman {
|
|
|
|
list-style-type: lower-roman;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-upper-alpha {
|
|
|
|
list-style-type: upper-alpha;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-upper-roman {
|
|
|
|
list-style-type: upper-roman;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: disc outside;
|
|
|
|
@include ltr-property("margin", 2em, false);
|
|
|
|
margin-top: 1em;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style-type: circle;
|
|
|
|
margin-top: 0.5em;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style-type: square;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dd {
|
|
|
|
@include ltr-property("margin", 2em, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
|
|
|
margin-left: 2em;
|
|
|
|
margin-right: 2em;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
figcaption {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
@include overflow-touch;
|
|
|
|
overflow-x: auto;
|
2022-12-06 10:46:03 +00:00
|
|
|
padding: getVar("content-pre-padding");
|
2022-11-23 17:44:02 +00:00
|
|
|
white-space: pre;
|
|
|
|
word-wrap: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
sup,
|
|
|
|
sub {
|
|
|
|
font-size: 75%;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
td,
|
|
|
|
th {
|
2022-12-06 10:46:03 +00:00
|
|
|
border: getVar("content-table-cell-border");
|
|
|
|
border-width: getVar("content-table-cell-border-width");
|
|
|
|
padding: getVar("content-table-cell-padding");
|
2022-11-23 17:44:02 +00:00
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
2022-12-06 10:46:03 +00:00
|
|
|
color: getVar("content-table-cell-heading-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
|
|
|
|
&:not([align]) {
|
|
|
|
text-align: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
thead {
|
|
|
|
td,
|
|
|
|
th {
|
2022-12-06 10:46:03 +00:00
|
|
|
border-width: getVar("content-table-head-cell-border-width");
|
|
|
|
color: getVar("content-table-head-cell-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tfoot {
|
|
|
|
td,
|
|
|
|
th {
|
2022-12-06 10:46:03 +00:00
|
|
|
border-width: getVar("content-table-foot-cell-border-width");
|
|
|
|
color: getVar("content-table-foot-cell-color");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
tr {
|
|
|
|
&:last-child {
|
|
|
|
td,
|
|
|
|
th {
|
2022-12-06 10:46:03 +00:00
|
|
|
border-bottom-width: getVar(
|
|
|
|
"content-table-body-last-row-cell-border-bottom-width"
|
|
|
|
);
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 22:53:56 +00:00
|
|
|
.#{$class-prefix}tabs {
|
2022-11-23 17:44:02 +00:00
|
|
|
li + li {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sizes
|
|
|
|
&.is-small {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("size-small");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-normal {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("size-normal");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-medium {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("size-medium");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-large {
|
2022-12-06 10:46:03 +00:00
|
|
|
font-size: getVar("size-large");
|
2022-11-23 17:44:02 +00:00
|
|
|
}
|
|
|
|
}
|