2023-06-06 23:37:58 +02:00
|
|
|
.markdown {
|
|
|
|
> h1 {
|
|
|
|
font-size: 2.227em;
|
|
|
|
}
|
2023-04-07 01:11:08 +02:00
|
|
|
|
2023-06-06 23:37:58 +02:00
|
|
|
> h2 {
|
|
|
|
font-size: 1.802em;
|
|
|
|
}
|
|
|
|
|
|
|
|
> h3 {
|
|
|
|
font-size: 1.602em;
|
|
|
|
}
|
|
|
|
|
|
|
|
> h4, > h5, > h6 {
|
|
|
|
font-size: 1.424em;
|
2023-04-07 01:11:08 +02:00
|
|
|
}
|
|
|
|
|
2023-06-06 23:37:58 +02:00
|
|
|
> p {
|
|
|
|
margin: 0.5em 0;
|
|
|
|
line-height: 1.5em;
|
2023-06-10 02:00:47 +02:00
|
|
|
hyphens: auto;
|
|
|
|
text-align: justify;
|
2023-06-06 23:37:58 +02:00
|
|
|
|
|
|
|
> a {
|
|
|
|
color: var(--c-primary);
|
2023-04-07 01:11:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> h1, > h2, > h3, > h4, > h5, > h6 {
|
2023-06-10 02:00:47 +02:00
|
|
|
margin-bottom: 0.5em;
|
2023-06-06 23:37:58 +02:00
|
|
|
font-family: var(--serif);
|
|
|
|
font-weight: 500;
|
2023-06-10 02:00:47 +02:00
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
2023-04-07 01:11:08 +02:00
|
|
|
}
|
|
|
|
|
2023-06-10 21:34:22 +02:00
|
|
|
> ul, ol {
|
|
|
|
padding-left: 1em;
|
|
|
|
|
|
|
|
ul, ol {
|
|
|
|
padding-left: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-06 23:37:58 +02:00
|
|
|
blockquote {
|
|
|
|
position: relative;
|
|
|
|
margin: 1em 2em;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: -1em;
|
|
|
|
width: 4px;
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--c-secondary);
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
}
|
2023-04-07 01:11:08 +02:00
|
|
|
|
|
|
|
> table {
|
|
|
|
margin: 1em auto 1em auto;
|
|
|
|
border-collapse: collapse;
|
2023-06-10 21:34:22 +02:00
|
|
|
overflow-x: auto;
|
2023-06-06 23:37:58 +02:00
|
|
|
|
2023-04-07 01:11:08 +02:00
|
|
|
th, td {
|
|
|
|
padding: 0.2em 0.5em;
|
|
|
|
border: 1px solid #dbdbdb;
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
|
|
|
background-color: #f3f3f3;
|
|
|
|
}
|
|
|
|
|
2023-06-06 23:37:58 +02:00
|
|
|
p {
|
|
|
|
white-space: pre-line;
|
2023-04-07 01:11:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
font-family: var(--monospace);
|
|
|
|
}
|
2023-06-06 23:37:58 +02:00
|
|
|
|
|
|
|
:not(pre) > code {
|
|
|
|
padding-inline: 0.25em;
|
|
|
|
background-color: white;
|
|
|
|
border-radius: 0.33em;
|
|
|
|
border: 1px dashed lightgray;
|
2023-04-07 01:11:08 +02:00
|
|
|
}
|
2023-06-06 23:37:58 +02:00
|
|
|
|
|
|
|
> :is(pre:has(> code)),
|
|
|
|
> pre.astro-code {
|
|
|
|
margin: 1em 0.5em;
|
|
|
|
padding: 0.5em;
|
|
|
|
max-width: 100%;
|
|
|
|
border-radius: 0.5em;
|
|
|
|
overflow-x: auto;
|
|
|
|
border: 1px dashed lightgray;
|
|
|
|
|
|
|
|
> code {
|
|
|
|
display: block;
|
|
|
|
line-height: 1.5em;
|
2023-04-07 01:11:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-06 23:37:58 +02:00
|
|
|
.math-display {
|
|
|
|
margin-block: 1em;
|
|
|
|
font-size: 1.1em;
|
2023-06-10 21:34:22 +02:00
|
|
|
overflow-x: auto;
|
2023-06-12 00:41:08 +02:00
|
|
|
overflow-y: hidden;
|
2023-06-10 21:34:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.marginnote {
|
|
|
|
display: block;
|
|
|
|
margin: 1em 1.5em;
|
|
|
|
padding-block: 0.5em;
|
|
|
|
border-block: 1px dashed gray;
|
|
|
|
color: gray;
|
|
|
|
|
|
|
|
@media (min-width: 38em) {
|
|
|
|
float: right;
|
|
|
|
clear: right;
|
|
|
|
max-width: 14rem;
|
|
|
|
margin-right: 0;
|
|
|
|
text-align: justify;
|
|
|
|
hyphens: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 80em) {
|
|
|
|
margin: 2em -17rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--c-primary);
|
|
|
|
}
|
2023-04-07 01:11:08 +02:00
|
|
|
}
|
2023-04-16 00:23:14 +02:00
|
|
|
|
2023-06-06 23:37:58 +02:00
|
|
|
// TODO: clean this
|
|
|
|
.md-icon {
|
|
|
|
display: inline-block;
|
|
|
|
height: 1.2em;
|
|
|
|
width: auto;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin: 0.1em 0;
|
|
|
|
|
|
|
|
&.big {
|
|
|
|
height: 4em;
|
|
|
|
}
|
2023-04-16 00:23:14 +02:00
|
|
|
}
|
|
|
|
}
|