Files
website/static/styles/documentation.css
Aaron Cox eda8f2e636 TO-DO App
2024-01-08 11:13:41 -08:00

87 lines
1.5 KiB
CSS

article section > * {
margin-block-start: var(--space-m);
}
article h1 {
line-height: var(--space-xl);
margin-block-start: var(--space-s);
}
article :is(h2, h3) {
margin-block-start: var(--space-xl);
scroll-margin-top: var(--space-l);
}
article h3 {
scroll-margin-top: var(--space-m);
}
article :is(h4, h5, h6) {
margin-block-start: var(--space-l);
}
/* Tighten headers directly following h1, h2 */
article :is(h1, h2) + section > :is(h2, h3, h4, h5, h6) {
margin-block-start: var(--space-m);
}
/* Tighten content following a subheader */
article h3 + * {
margin-block-start: var(--space-m);
}
article h4 + * {
margin-block-start: var(--space-s);
}
article :is(h5, h6) + * {
margin-block-start: var(--space-xs);
}
article li:not(:first-child) {
margin-block-start: var(--space-3xs);
}
article :is(ul, ol) {
margin-block-start: var(--space-m);
}
article img {
border-radius: var(--border-radius);
max-width: 100%;
margin-inline: auto;
margin-block: var(--space-m);
}
article tbody tr:nth-child(odd) {
background-color: var(--theme-surface2);
border-radius: var(--border-radius);
}
article td,
article th {
min-width: min-content;
max-width: 60ch;
}
article ::target > h2 {
margin-block-start: var(--space-2xl);
}
article .video {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
overflow: hidden;
}
article .video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}