Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
refactor(styles/examples): use CSS :is() (speced#3598)
Browse files Browse the repository at this point in the history
* refactor(styles/examples): use CSS is()

* Update src/styles/examples.css.js

Co-authored-by: Sid Vishnoi <[email protected]>
  • Loading branch information
marcoscaceres and sidvishnoi authored Oct 11, 2021
1 parent 21264e7 commit 7a74144
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/styles/examples.css.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 7a74144

Please sign in to comment.