Skip to content

Commit

Permalink
Revert normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Mar 11, 2020
1 parent 846ad6b commit 3d40a65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/assets/stylesheets/base/_typeset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ kbd {
> code {
display: block;
margin: 0;
padding: px2rem(10.5px) px2rem(16px);
padding: px2rem(10.5px) px2em(16px, 13.6px);
overflow: auto;
word-break: normal;
box-shadow: none;
Expand Down
14 changes: 12 additions & 2 deletions src/assets/stylesheets/extensions/_codehilite.scss
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ $codehilite-whitespace: transparent;
// Highlighted lines
.hll {
display: block;
margin: 0 px2rem(-16px);
padding: 0 px2rem(16px);
margin: 0 px2em(-16px, 13.6px);
padding: 0 px2em(16px, 13.6px);
background-color: transparentize($clr-yellow-500, 0.5);
}
}
Expand Down Expand Up @@ -280,6 +280,11 @@ $codehilite-whitespace: transparent;
> .codehilite {
margin: 1em px2rem(-16px);

.hll {
margin: 0 px2rem(-16px);
padding: 0 px2rem(16px);
}

// Remove rounded borders
code {
border-radius: 0;
Expand All @@ -290,6 +295,11 @@ $codehilite-whitespace: transparent;
> .codehilitetable {
margin: 1em px2rem(-16px);
border-radius: 0;

.hll {
margin: 0 px2rem(-16px);
padding: 0 px2rem(16px);
}
}
}
}

0 comments on commit 3d40a65

Please sign in to comment.