mirror of
https://github.com/sern-handler/website
synced 2026-06-17 13:22:23 +00:00
116 lines
3.1 KiB
CSS
116 lines
3.1 KiB
CSS
.sl-markdown-content
|
|
:not(a, strong, em, del, span, input, code)
|
|
+ :not(a, strong, em, del, span, input, code, :where(.not-content *)) {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* Headings after non-headings have more spacing. */
|
|
.sl-markdown-content
|
|
:not(h1, h2, h3, h4, h5, h6)
|
|
+ :is(h1, h2, h3, h4, h5, h6):not(:where(.not-content *)) {
|
|
margin-top: 1.5em;
|
|
}
|
|
|
|
.sl-markdown-content li + li:not(:where(.not-content *)),
|
|
.sl-markdown-content dt + dt:not(:where(.not-content *)),
|
|
.sl-markdown-content dt + dd:not(:where(.not-content *)),
|
|
.sl-markdown-content dd + dd:not(:where(.not-content *)) {
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.sl-markdown-content
|
|
li
|
|
> :last-child:not(li, ul, ol):not(a, strong, em, del, span, input, :where(.not-content *)) {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.sl-markdown-content dt:not(:where(.not-content *)) {
|
|
font-weight: 700;
|
|
}
|
|
.sl-markdown-content dd:not(:where(.not-content *)) {
|
|
padding-inline-start: 1rem;
|
|
}
|
|
|
|
.sl-markdown-content :is(h1, h2, h3, h4, h5, h6):not(:where(.not-content *)) {
|
|
color: var(--sl-color-white);
|
|
line-height: var(--sl-line-height-headings);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sl-markdown-content :is(img, picture, video, canvas, svg, iframe):not(:where(.not-content *)) {
|
|
display: block;
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.sl-markdown-content h1:not(:where(.not-content *)) {
|
|
font-size: var(--sl-text-h1);
|
|
}
|
|
.sl-markdown-content h2:not(:where(.not-content *)) {
|
|
font-size: var(--sl-text-h2);
|
|
}
|
|
.sl-markdown-content h3:not(:where(.not-content *)) {
|
|
font-size: var(--sl-text-h3);
|
|
}
|
|
.sl-markdown-content h4:not(:where(.not-content *)) {
|
|
font-size: var(--sl-text-h4);
|
|
}
|
|
.sl-markdown-content h5:not(:where(.not-content *)) {
|
|
font-size: var(--sl-text-h5);
|
|
}
|
|
.sl-markdown-content h6:not(:where(.not-content *)) {
|
|
font-size: var(--sl-text-h6);
|
|
}
|
|
|
|
.sl-markdown-content a:not(:where(.not-content *)) {
|
|
color: var(--sl-color-text-accent);
|
|
}
|
|
.sl-markdown-content a:hover:not(:where(.not-content *)) {
|
|
color: var(--sl-color-white);
|
|
}
|
|
|
|
.sl-markdown-content code:not(:where(.not-content *)) {
|
|
background-color: var(--sl-color-bg-inline-code);
|
|
margin-block: -0.125rem;
|
|
padding: 0.125rem 0.375rem;
|
|
font-size: var(--sl-text-code-sm);
|
|
}
|
|
.sl-markdown-content :is(h1, h2, h3, h4, h5, h6) code {
|
|
font-size: inherit;
|
|
}
|
|
|
|
.sl-markdown-content pre:not(:where(.not-content *)) {
|
|
border: 1px solid var(--sl-color-gray-5);
|
|
padding: 0.75rem 1rem;
|
|
font-size: var(--sl-text-code);
|
|
tab-size: 2;
|
|
}
|
|
|
|
.sl-markdown-content pre code:not(:where(.not-content *)) {
|
|
all: unset;
|
|
font-family: var(--__sl-font-mono);
|
|
}
|
|
|
|
.sl-markdown-content blockquote:not(:where(.not-content *)) {
|
|
border-inline-start: 1px solid var(--sl-color-gray-5);
|
|
padding-inline-start: 1rem;
|
|
}
|
|
|
|
.sl-markdown-content table:not(:where(.not-content *)) {
|
|
display: block;
|
|
overflow: auto;
|
|
border-collapse: collapse;
|
|
}
|
|
.sl-markdown-content tr:nth-child(2n):not(:where(.not-content *)) {
|
|
background-color: var(--sl-color-gray-7, var(--sl-color-gray-6));
|
|
}
|
|
.sl-markdown-content :is(th, td):not(:where(.not-content *)) {
|
|
border: 1px solid var(--sl-color-hairline-light);
|
|
padding: 0.375rem 0.8125rem;
|
|
}
|
|
|
|
.sl-markdown-content hr:not(:where(.not-content *)) {
|
|
border: 0;
|
|
border-bottom: 1px solid var(--sl-color-hairline);
|
|
}
|