Skip to content

Commit

Permalink
Use consistent font size for highlighted control keywords
Browse files Browse the repository at this point in the history
.control is currently styled with a font-size of 1rem; in code blocks,
inherit the size from pre instead.
  • Loading branch information
cfa authored and coke committed Mar 17, 2023
1 parent 045bb72 commit 999f0d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Website/plugins/ogdenwebb/css/main.css
Expand Up @@ -585,6 +585,9 @@ h1.error-title {
font-family: monospace;
padding: 0.75rem 1.25rem;
}
.raku-code .control {
font-size: inherit;
}
.raku-code .code-output-title {
font-size: 1rem;
font-weight: 500;
Expand Down
4 changes: 4 additions & 0 deletions Website/plugins/ogdenwebb/scss/code/_highlighting.scss
Expand Up @@ -24,6 +24,10 @@
padding: $size-7 $size-5;
}

.control {
font-size: inherit;
}

.code-output-title {
font-size: $size-6;
font-weight: $weight-medium;
Expand Down

0 comments on commit 999f0d2

Please sign in to comment.