This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3762 from stephaniehobson/1189515-details-bottom-…
…margin Bug 1189515: Details and summary
- Loading branch information
Showing
2 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
/* The .no-details styles will get applied only if JavaScript is enabled and | ||
<details> is not natively supported. Add focus styles (for keyboard | ||
accessibility) */ | ||
<details> is not natively supported. */ | ||
.no-details { | ||
summary { | ||
cursor: pointer; | ||
bidi-style(padding-right, -15px, padding-left, 0); | ||
} | ||
summary:before { | ||
set-font-size(1.25em); | ||
bidi-value(float, left, right); | ||
summary:after { | ||
content: '+'; | ||
bidi-value(float, right, left); | ||
margin-top: -.15em; | ||
bidi-style(margin-left, -15px, margin-right, 0); | ||
bidi-style(margin-right, -15px, margin-left, 0); | ||
set-font-size(1.25em); | ||
font-weight: bold; | ||
} | ||
&.open summary:before { | ||
&.open summary:after { | ||
content: '–'; | ||
margin-top: -.2em; | ||
bidi-style(margin-left, -13px, margin-right, 0); | ||
bidi-style(margin-right, -13px, margin-left, 0); | ||
} | ||
} |