Update vertical spacing

This commit is contained in:
Gabriel Arazas 2023-03-06 23:17:19 +08:00
parent 2debdde5bb
commit 425ef58229
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -154,11 +154,15 @@ sup.footnote {
} }
#footnotes > :not(hr) { #footnotes > :not(hr) {
margin: 1em; margin: 1rem;
} }
[class$="block"], :is(.admonitionblock) { [class$="block"], :is(.admonitionblock) {
margin: var(--vertical-rhythm) 0; margin: 1rem 0;
.title > code {
background: unset;
}
} }
p.tableblock { p.tableblock {
@ -183,7 +187,7 @@ p.tableblock {
.listingblock { .listingblock {
position: relative; position: relative;
> *.title { > .title {
background: var(--foreground); background: var(--foreground);
color: var(--background); color: var(--background);
font-size: 0.9em; font-size: 0.9em;
@ -192,7 +196,7 @@ p.tableblock {
code { background: unset; } code { background: unset; }
} }
> *.content pre { > .content pre {
margin-top: unset; margin-top: unset;
} }
@ -226,23 +230,36 @@ p.tableblock {
} }
&:fullscreen { &:fullscreen {
pre, code { border: unset;
border: unset;
.content > pre {
max-height: 100vh; max-height: 100vh;
height: 100vh;
margin: 0;
overflow: auto;
} }
> .listingblock__btn-row { > .listingblock__btn-row {
top: 0; top: 0;
} }
&::backdrop {
--color1: var(--base09);
--color2: var(--base08);
--threshold1: 9px;
--threshold2: 24px;
background: repeating-linear-gradient(
45deg,
var(--color1) 0px,
var(--color1) var(--threshold1),
var(--color2) var(--threshold1),
var(--color2) var(--threshold2),
);
}
} }
} }
.admonitionblock { .admonitionblock {
table { table {
border: unset; border: unset;
margin: unset;
tbody { tbody {
tr + tr, tr:first-child { border-top: unset; } tr + tr, tr:first-child { border-top: unset; }