2020-05-30 20:50:08 +02:00
|
|
|
@import "variables";
|
2018-09-05 16:22:04 +02:00
|
|
|
|
|
|
|
.markdown {
|
2020-05-30 20:50:08 +02:00
|
|
|
line-height: 1.6;
|
2018-09-24 17:03:23 +02:00
|
|
|
|
2019-11-19 22:50:00 +01:00
|
|
|
// remove padding at the beginning of page
|
|
|
|
> :first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2020-05-30 20:50:08 +02:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2019-06-12 17:27:46 +02:00
|
|
|
font-weight: normal;
|
2020-05-30 20:50:08 +02:00
|
|
|
line-height: 1;
|
2019-06-13 11:34:34 +02:00
|
|
|
margin-top: 1.5em;
|
|
|
|
margin-bottom: $padding-16;
|
2020-05-30 20:50:08 +02:00
|
|
|
|
|
|
|
a.anchor {
|
2020-07-07 23:06:21 +02:00
|
|
|
opacity: 0;
|
2020-09-14 00:02:55 +02:00
|
|
|
font-size: 0.75em;
|
2020-05-30 20:50:08 +02:00
|
|
|
vertical-align: middle;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2020-09-14 00:02:55 +02:00
|
|
|
&:hover a.anchor,
|
|
|
|
a.anchor:focus {
|
2020-07-07 23:06:21 +02:00
|
|
|
opacity: initial;
|
2020-05-30 20:50:08 +02:00
|
|
|
}
|
2019-05-23 16:30:26 +02:00
|
|
|
}
|
2019-04-22 19:17:39 +02:00
|
|
|
|
2020-05-30 20:50:08 +02:00
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2019-11-19 22:50:00 +01:00
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
2020-05-30 20:50:08 +02:00
|
|
|
font-size: 0.875em;
|
2019-11-19 22:50:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
2020-05-30 20:50:08 +02:00
|
|
|
font-size: 0.75em;
|
2018-09-17 15:09:51 +02:00
|
|
|
}
|
2018-09-18 01:35:54 +02:00
|
|
|
|
2020-05-30 20:50:08 +02:00
|
|
|
b,
|
|
|
|
optgroup,
|
|
|
|
strong {
|
2019-06-10 17:09:43 +02:00
|
|
|
font-weight: bolder;
|
2018-09-18 01:35:54 +02:00
|
|
|
}
|
2020-03-07 18:51:24 +01:00
|
|
|
|
2018-09-05 16:22:04 +02:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2020-04-06 11:26:35 +02:00
|
|
|
&:visited {
|
2020-09-14 00:02:55 +02:00
|
|
|
color: var(--color-visited-link);
|
2020-04-06 11:26:35 +02:00
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2019-06-11 13:40:50 +02:00
|
|
|
img {
|
|
|
|
max-width: 100%;
|
2021-08-30 14:15:57 +02:00
|
|
|
height: auto;
|
2019-06-11 13:40:50 +02:00
|
|
|
}
|
|
|
|
|
2018-09-05 16:22:04 +02:00
|
|
|
code {
|
2024-04-13 11:19:59 +02:00
|
|
|
direction: ltr;
|
|
|
|
unicode-bidi: embed;
|
2018-09-13 14:54:04 +02:00
|
|
|
padding: 0 $padding-4;
|
2020-09-14 00:02:55 +02:00
|
|
|
background: var(--gray-200);
|
2019-06-19 13:58:46 +02:00
|
|
|
border-radius: $border-radius;
|
2020-05-30 20:50:08 +02:00
|
|
|
font-size: 0.875em;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
2024-04-13 11:19:59 +02:00
|
|
|
direction: ltr;
|
|
|
|
unicode-bidi: embed;
|
2018-09-05 16:22:04 +02:00
|
|
|
padding: $padding-16;
|
2020-09-14 00:02:55 +02:00
|
|
|
background: var(--gray-100);
|
2019-06-19 13:58:46 +02:00
|
|
|
border-radius: $border-radius;
|
2018-09-26 00:12:56 +02:00
|
|
|
overflow-x: auto;
|
2019-05-05 02:24:25 +02:00
|
|
|
|
|
|
|
code {
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2022-01-13 16:52:03 +01:00
|
|
|
p {
|
2023-04-24 13:06:20 +02:00
|
|
|
word-wrap: break-word;
|
2022-01-13 16:52:03 +01:00
|
|
|
}
|
|
|
|
|
2018-09-05 16:22:04 +02:00
|
|
|
blockquote {
|
2019-06-12 17:27:46 +02:00
|
|
|
margin: $padding-16 0;
|
2019-10-03 18:15:24 +02:00
|
|
|
padding: $padding-8 $padding-16 $padding-8 ($padding-16 - $padding-4); //to keep total left space 16dp
|
2019-06-19 13:58:46 +02:00
|
|
|
|
2020-09-14 00:02:55 +02:00
|
|
|
border-inline-start: $padding-4 solid var(--gray-200);
|
2019-06-19 13:58:46 +02:00
|
|
|
border-radius: $border-radius;
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2020-05-30 20:50:08 +02:00
|
|
|
:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
2018-09-24 17:03:23 +02:00
|
|
|
|
2019-03-25 19:47:21 +01:00
|
|
|
table {
|
2019-08-05 03:58:57 +02:00
|
|
|
overflow: auto;
|
|
|
|
display: block;
|
2019-03-25 19:47:21 +01:00
|
|
|
border-spacing: 0;
|
|
|
|
border-collapse: collapse;
|
2019-06-12 17:27:46 +02:00
|
|
|
margin-top: $padding-16;
|
|
|
|
margin-bottom: $padding-16;
|
2020-03-07 18:51:24 +01:00
|
|
|
|
2020-05-30 20:50:08 +02:00
|
|
|
tr th,
|
|
|
|
tr td {
|
2019-03-25 19:47:21 +01:00
|
|
|
padding: $padding-8 $padding-16;
|
2020-09-14 00:02:55 +02:00
|
|
|
border: $padding-1 solid var(--gray-200);
|
2019-03-25 19:47:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tr:nth-child(2n) {
|
2020-09-14 00:02:55 +02:00
|
|
|
background: var(--gray-100);
|
2019-03-25 19:47:21 +01:00
|
|
|
}
|
2018-09-24 17:03:23 +02:00
|
|
|
}
|
2019-05-23 16:30:26 +02:00
|
|
|
|
|
|
|
hr {
|
|
|
|
height: $padding-1;
|
|
|
|
border: none;
|
2020-09-14 00:02:55 +02:00
|
|
|
background: var(--gray-200);
|
2019-05-23 16:30:26 +02:00
|
|
|
}
|
2019-06-18 22:56:43 +02:00
|
|
|
|
2020-05-30 20:50:08 +02:00
|
|
|
ul,
|
|
|
|
ol {
|
2020-05-17 13:09:48 +02:00
|
|
|
padding-inline-start: $padding-16 * 2;
|
2023-04-24 13:07:08 +02:00
|
|
|
word-wrap: break-word;
|
2019-06-18 22:56:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dl {
|
|
|
|
dt {
|
|
|
|
font-weight: bolder;
|
|
|
|
margin-top: $padding-16;
|
|
|
|
}
|
|
|
|
|
|
|
|
dd {
|
2021-05-03 22:59:33 +02:00
|
|
|
margin-inline-start: 0;
|
2020-05-31 00:18:25 +02:00
|
|
|
margin-bottom: $padding-16;
|
2019-06-18 22:56:43 +02:00
|
|
|
}
|
|
|
|
}
|
2019-10-27 13:05:43 +01:00
|
|
|
|
|
|
|
// Special case for highlighted code with line numbers
|
2024-04-13 11:19:59 +02:00
|
|
|
.highlight {
|
|
|
|
direction: ltr;
|
|
|
|
unicode-bidi: embed;
|
|
|
|
}
|
|
|
|
|
2019-10-27 13:05:43 +01:00
|
|
|
.highlight table tr {
|
|
|
|
td:nth-child(1) pre {
|
|
|
|
margin: 0;
|
2020-05-17 13:09:48 +02:00
|
|
|
padding-inline-end: 0;
|
2019-10-27 13:05:43 +01:00
|
|
|
}
|
|
|
|
td:nth-child(2) pre {
|
|
|
|
margin: 0;
|
2020-05-17 13:09:48 +02:00
|
|
|
padding-inline-start: 0;
|
2019-10-27 13:05:43 +01:00
|
|
|
}
|
|
|
|
}
|
2020-01-24 00:22:23 +01:00
|
|
|
|
|
|
|
details {
|
|
|
|
padding: $padding-16;
|
2020-09-14 00:02:55 +02:00
|
|
|
border: $padding-1 solid var(--gray-200);
|
2020-01-24 00:22:23 +01:00
|
|
|
border-radius: $border-radius;
|
|
|
|
|
|
|
|
summary {
|
|
|
|
line-height: 1;
|
2020-04-21 22:30:00 +02:00
|
|
|
padding: $padding-16;
|
|
|
|
margin: -$padding-16;
|
2020-01-24 00:22:23 +01:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2020-04-21 22:30:00 +02:00
|
|
|
|
|
|
|
&[open] summary {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2020-01-24 00:22:23 +01:00
|
|
|
}
|
2020-06-16 23:24:40 +02:00
|
|
|
|
|
|
|
figure {
|
|
|
|
margin: $padding-16 0;
|
|
|
|
figcaption p {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-05-04 15:57:37 +02:00
|
|
|
}
|
2020-04-06 11:26:35 +02:00
|
|
|
|
|
|
|
.markdown-inner {
|
|
|
|
// Util class to remove extra margin in nested markdown content
|
|
|
|
> :first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
> :last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|