From 5a5ea45c40ede822c117998047047d60e2ae6f10 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 25 Apr 2018 13:47:14 +0300 Subject: [PATCH] refactor(aio): use the same selectors for screen and print styles (#23538) PR Close #23538 --- aio/src/styles/2-modules/_code.scss | 2 +- aio/src/styles/_print.scss | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/aio/src/styles/2-modules/_code.scss b/aio/src/styles/2-modules/_code.scss index 28396360e2..b2806bfa25 100644 --- a/aio/src/styles/2-modules/_code.scss +++ b/aio/src/styles/2-modules/_code.scss @@ -179,7 +179,7 @@ ol.linenums { /* SHELL / TERMINAL CODE BLOCKS */ code-example.code-shell, code-example[language=sh], code-example[language=bash] { - & .pnk, .blk,.pln, .otl, .kwd, .typ, .tag, .str, .atv, .atn, .com, .lit, .pun, .dec { + .pnk, .blk, .pln, .otl, .kwd, .typ, .tag, .str, .atv, .atn, .com, .lit, .pun, .dec { color: $codegreen; } } diff --git a/aio/src/styles/_print.scss b/aio/src/styles/_print.scss index 38044f59b9..f15de7d455 100644 --- a/aio/src/styles/_print.scss +++ b/aio/src/styles/_print.scss @@ -66,12 +66,10 @@ } code-example { - pre.lang-bash code span { - color: $mediumgray !important; - } - - pre.lang-sh code span { - color: $darkgray !important; + &.code-shell, &[language=sh], &[language=bash] { + .pnk, .blk, .pln, .otl, .kwd, .typ, .tag, .str, .atv, .atn, .com, .lit, .pun, .dec { + color: $darkgray; + } } header {