From 7a741445dbde6f254265e6204ed00ba4dcf3a54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Mon, 11 Oct 2021 22:56:03 +1100 Subject: [PATCH] refactor(styles/examples): use CSS :is() (#3598) * refactor(styles/examples): use CSS is() * Update src/styles/examples.css.js Co-authored-by: Sid Vishnoi <8426945+sidvishnoi@users.noreply.github.com> --- src/styles/examples.css.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/styles/examples.css.js b/src/styles/examples.css.js index 78c397a2e8..07ecd2e444 100644 --- a/src/styles/examples.css.js +++ b/src/styles/examples.css.js @@ -8,8 +8,7 @@ span.example-title { text-transform: none; } -aside.example, -div.example, +:is(aside,div).example, div.illegal-example { padding: 0.5em; margin: 1em 0; @@ -25,9 +24,7 @@ div.illegal-example p { color: black; } -aside.example, -div.example { - padding: 0.5em; +:is(aside,div).example { border-left-width: 0.5em; border-left-style: solid; border-color: #e0cb52; @@ -39,9 +36,7 @@ aside.example div.example { border-color: #999; background: #fff; } -aside.example div.example span.example-title { - color: #999; -} + .example pre { background-color: rgba(0, 0, 0, 0.03);