Skip to content

Commit

Permalink
fix small code issues
Browse files Browse the repository at this point in the history
  • Loading branch information
madrilene committed Jun 4, 2024
1 parent 0c5792c commit 062f068
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/assets/css/global/blocks/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ code,
pre {
font-family: var(--font-mono);
font-size: var(--size-step-min-1);
line-height: 1.4;
background: var(--color-code-bg);
padding: 0.1em 0.4em;
background-color: var(--color-code-bg);

border-radius: var(--border-radius);
text-align: left;
}

code[class*='language-'],
pre[class*='language-'] {
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
color: var(--color-text-accent);
hyphens: none;
}

Expand All @@ -36,6 +37,7 @@ pre {
:where(:not(pre)) > code {
position: relative;
top: -0.05em;
padding: 0.1em 0.4em;
}

pre[class*='language-'] {
Expand Down
4 changes: 4 additions & 0 deletions src/assets/css/global/blocks/styleguide.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
font-size: var(--size-step-min-2);
}

.styleguide li p:has(code) {
line-height: var(--leading-flat);
}

.styleguide section {
--region-space-bottom: var(--space-l-xl);
--region-space-top: var(--space-l-xl);
Expand Down

0 comments on commit 062f068

Please sign in to comment.