Skip to content

Commit

Permalink
fix: default theme summary and detail (#4156)
Browse files Browse the repository at this point in the history
Fix incorrect styling with detail/summary elements when nested together.
  • Loading branch information
n1xx1 committed Oct 9, 2021
1 parent 12aef93 commit e8d56c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/themes/default/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@
padding-left: 0;
}

summary {
> summary {
border-radius: 7px;
background-color: mc('grey', '50');
cursor: pointer;
Expand Down Expand Up @@ -835,7 +835,7 @@
&[open] {
padding: 1rem;

summary {
> summary {
background-color: mc('grey', '100');
border-bottom: 1px solid mc('grey', '300');
border-bottom-left-radius: 0;
Expand All @@ -848,12 +848,12 @@
background-color: mc('grey', '900');
border-color: mc('grey', '700');

summary {
> summary {
background-color: mc('grey', '900');
border-color: mc('grey', '700');
}

&[open] summary {
&[open] > summary {
background-color: lighten(mc('grey', '900'), 5%);
}
}
Expand Down

0 comments on commit e8d56c2

Please sign in to comment.