Fix <code> block and inline styles

This commit is contained in:
Eryn Wells 2023-11-18 11:15:42 -08:00
parent 703d6933f3
commit 73320e6fb3
5 changed files with 14 additions and 8 deletions

View file

@ -1,5 +1,5 @@
:root {
--highlight-background-color: rgb(var(--super-lt-gray));
--highlight-background-color: rgb(250, 250, 250);
--highlight-foreground-color: var(--foreground-body-color);
}

View file

@ -205,7 +205,7 @@
border: 1px solid var(--separator-color);
}
.highlight code {
figure.code code {
background-color: inherit;
}

View file

@ -86,6 +86,11 @@
margin: 0;
}
p code {
padding-block-start: 0.1em;
padding-inline: 0.25em;
}
code.nobg {
display: inline-block;
margin: 0;
@ -124,12 +129,13 @@
}
}
figure.code .line > .ln {
grid-column: gutter-start;
figure.code {
grid-column: content-start / content-end;
}
figure.code .line > .cl {
grid-column: content-start / content-end;
figure.code pre {
overflow: auto;
padding: 1rem;
}
figure > .container {

View file

@ -5,7 +5,7 @@
}
@layer root {
.highlight .ln a {
figure.code .ln a {
-webkit-user-select: none;
-moz-use-select: none;
-ms-user-select: none;

View file

@ -59,7 +59,7 @@
text-align: center;
}
figure .highlight .cl {
figure.code .cl {
white-space: pre-wrap;
}