Skip to content

Commit

Permalink
added inline code highlighting to match multiline style (#16)
Browse files Browse the repository at this point in the history
* added inline code highlighting to match multiline style

* updated filename and imported partial

* Update _sass/_inline-code.scss

Co-authored-by: Mark Skelton <[email protected]>

Co-authored-by: Josh Lloyd <[email protected]>
Co-authored-by: Mark Skelton <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2021
1 parent 2b9874c commit 14890c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _sass/_inline-code.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//this should apply only to inline code (i.e., `code`) not multiline code blocks

code.language-plaintext.highlighter-rouge {
background-color: #afb8c133;
border-radius: 4px;
padding: 0 4px;
}
1 change: 1 addition & 0 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ $header_background_url: "{{ site.guardian.style.header_background_url }}";
@import "post";
@import "index";
@import "toc";
@import "inline-code"

0 comments on commit 14890c2

Please sign in to comment.