-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move disclosure styles to it's own partial, add fix for safari double…
… marker
- Loading branch information
Showing
4 changed files
with
43 additions
and
34 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// The Details disclosure element | ||
// ------------------------------ | ||
|
||
details { | ||
--link: var(--fgcolor); | ||
--link-focus: var(--fgcolor); | ||
|
||
background-color: var(--status-result-bg, var(--bgcolor)); | ||
border-radius: var(--border-radius); | ||
color: var(--status-result-fg, var(--fgcolor)); | ||
} | ||
|
||
summary { | ||
cursor: pointer; | ||
font-weight: bold; | ||
|
||
// Hides marker some browsers add | ||
&::marker { | ||
content: none; | ||
} | ||
|
||
// Hides marker webkit adds | ||
&::-webkit-details-marker { | ||
display: none; | ||
} | ||
|
||
&::before { | ||
border-color: transparent transparent transparent currentColor; | ||
border-style: solid; | ||
border-width: var(--triangle-width) 0 var(--triangle-width) | ||
var(--triangle-height); | ||
content: ''; | ||
grid-column: 2; | ||
grid-row: 1; | ||
transform: rotate(0deg); | ||
transition: all 1s ease-out 100ms; | ||
|
||
[open] & { | ||
transform: rotate(90deg); | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ | |
@forward 'buttons'; | ||
@forward 'icons'; | ||
@forward 'lists'; | ||
@forward 'disclosure'; | ||
@forward 'themes'; |
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