Fix <code> block and inline styles
This commit is contained in:
parent
703d6933f3
commit
73320e6fb3
5 changed files with 14 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
:root {
|
:root {
|
||||||
--highlight-background-color: rgb(var(--super-lt-gray));
|
--highlight-background-color: rgb(250, 250, 250);
|
||||||
--highlight-foreground-color: var(--foreground-body-color);
|
--highlight-foreground-color: var(--foreground-body-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@
|
||||||
border: 1px solid var(--separator-color);
|
border: 1px solid var(--separator-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight code {
|
figure.code code {
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,11 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p code {
|
||||||
|
padding-block-start: 0.1em;
|
||||||
|
padding-inline: 0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
code.nobg {
|
code.nobg {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -124,12 +129,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
figure.code .line > .ln {
|
figure.code {
|
||||||
grid-column: gutter-start;
|
grid-column: content-start / content-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
figure.code .line > .cl {
|
figure.code pre {
|
||||||
grid-column: content-start / content-end;
|
overflow: auto;
|
||||||
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
figure > .container {
|
figure > .container {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer root {
|
@layer root {
|
||||||
.highlight .ln a {
|
figure.code .ln a {
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-moz-use-select: none;
|
-moz-use-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
figure .highlight .cl {
|
figure.code .cl {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue