diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-02-27 14:37:08 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-03-13 20:22:59 +0300 |
commit | 6a82a2ebe8cfa018558c5d6b0b2745db3f123ab1 (patch) | |
tree | 800898372c0b5121bd86fd5570602bf21d944abc /site | |
parent | 6e16720b125d1303e51131e7734898bc041160f4 (diff) |
Fix the chroma fix and use Sass more.
Diffstat (limited to 'site')
-rw-r--r-- | site/static/docs/4.3/assets/scss/_syntax.scss | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/site/static/docs/4.3/assets/scss/_syntax.scss b/site/static/docs/4.3/assets/scss/_syntax.scss index 7024b6941b..c6e7e60462 100644 --- a/site/static/docs/4.3/assets/scss/_syntax.scss +++ b/site/static/docs/4.3/assets/scss/_syntax.scss @@ -70,20 +70,25 @@ /* LiteralStringOther */ .chroma .sx { color: #c30; } /* TextWhitespace */ .chroma .w { color: #bbb; } -.chroma .language-bash::before, -.chroma .language-sh::before { - color: #009; - content: "$ "; - user-select: none; -} +.chroma { + .language-bash, + .language-sh { + &::before { + color: #009; + content: "$ "; + user-select: none; + } -.chroma .language-bash .m, -.chroma .language-sh .m { - color: initial; -} + // This is just to work around a Chroma bug; + // should be removed when fixed upstream + .m { + color: inherit; + } + } -.chroma .language-powershell::before { - color: #009; - content: "PM> "; - user-select: none; + .language-powershell::before { + color: #009; + content: "PM> "; + user-select: none; + } } |