From 14890c20bb96655551221f1476a9539cbd649409 Mon Sep 17 00:00:00 2001 From: jlloyd-widen <82222659+jlloyd-widen@users.noreply.github.com> Date: Fri, 15 Oct 2021 13:49:04 -0600 Subject: [PATCH] added inline code highlighting to match multiline style (#16) * added inline code highlighting to match multiline style * updated filename and imported partial * Update _sass/_inline-code.scss Co-authored-by: Mark Skelton Co-authored-by: Josh Lloyd Co-authored-by: Mark Skelton --- _sass/_inline-code.scss | 7 +++++++ assets/css/app.scss | 1 + 2 files changed, 8 insertions(+) create mode 100644 _sass/_inline-code.scss diff --git a/_sass/_inline-code.scss b/_sass/_inline-code.scss new file mode 100644 index 0000000..21da088 --- /dev/null +++ b/_sass/_inline-code.scss @@ -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; +} \ No newline at end of file diff --git a/assets/css/app.scss b/assets/css/app.scss index 9070006..f34e7af 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -21,3 +21,4 @@ $header_background_url: "{{ site.guardian.style.header_background_url }}"; @import "post"; @import "index"; @import "toc"; +@import "inline-code"