Skip to content

Commit

Permalink
Fix how code blocks are stylized
Browse files Browse the repository at this point in the history
The rounded corners were on the wrong elements when line numbers are
included.
  • Loading branch information
pradyunsg committed Sep 1, 2020
1 parent be7a5b0 commit 4fe9bd3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mawek/assets/styles/content/_block_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pre {
border-radius: 0.2rem;
font-size: var(--code-font-size);
background-color: var(--color-code-background);
color: var(--color-code-foreground);
}
}

Expand All @@ -95,6 +96,8 @@ pre {
color: var(--color-code-foreground);
padding: $code-spacing-vertical $code-spacing-horizontal;
padding-right: 0;
border-top-left-radius: 0.2rem;
border-bottom-left-radius: 0.2rem;
}
.linenodiv {
padding-right: 0.5rem;
Expand All @@ -107,6 +110,11 @@ pre {
display: block;
flex: 1;
overflow: hidden;

.highlight {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
}

Expand Down

0 comments on commit 4fe9bd3

Please sign in to comment.