Skip to content

Commit

Permalink
Style <details> and <summary> as display: block;
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
javan committed Nov 5, 2018
1 parent 1d17534 commit 1cd5037
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/styles.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export default `
details, summary {
display: block;
}
details:not([open]) > *:not(summary) {
display: none;
}
details > summary {
display: block;
}
details > summary::before {
content: "►";
padding-right: 0.3rem;
Expand Down

0 comments on commit 1cd5037

Please sign in to comment.