fix small code issues
This commit is contained in:
parent
0c5792cbe6
commit
062f068d74
2 changed files with 11 additions and 5 deletions
|
|
@ -12,16 +12,17 @@ code,
|
||||||
pre {
|
pre {
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: var(--size-step-min-1);
|
font-size: var(--size-step-min-1);
|
||||||
line-height: 1.4;
|
background-color: var(--color-code-bg);
|
||||||
background: var(--color-code-bg);
|
|
||||||
padding: 0.1em 0.4em;
|
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
text-align: left;
|
}
|
||||||
|
|
||||||
|
code[class*='language-'],
|
||||||
|
pre[class*='language-'] {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
word-spacing: normal;
|
word-spacing: normal;
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
color: var(--color-text-accent);
|
|
||||||
hyphens: none;
|
hyphens: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -36,6 +37,7 @@ pre {
|
||||||
:where(:not(pre)) > code {
|
:where(:not(pre)) > code {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -0.05em;
|
top: -0.05em;
|
||||||
|
padding: 0.1em 0.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre[class*='language-'] {
|
pre[class*='language-'] {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,10 @@
|
||||||
font-size: var(--size-step-min-2);
|
font-size: var(--size-step-min-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.styleguide li p:has(code) {
|
||||||
|
line-height: var(--leading-flat);
|
||||||
|
}
|
||||||
|
|
||||||
.styleguide section {
|
.styleguide section {
|
||||||
--region-space-bottom: var(--space-l-xl);
|
--region-space-bottom: var(--space-l-xl);
|
||||||
--region-space-top: var(--space-l-xl);
|
--region-space-top: var(--space-l-xl);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue