mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 09:26:14 -04:00
feat: include the close icon styles in classless
This commit is contained in:
parent
a88ad874c5
commit
d85d2f177c
11 changed files with 63 additions and 30 deletions
|
@ -1801,7 +1801,7 @@ dialog article > header,
|
|||
dialog article > footer {
|
||||
padding: calc(var(--block-spacing-vertical) * 0.5) var(--block-spacing-horizontal);
|
||||
}
|
||||
dialog article > header .close {
|
||||
dialog article > header a[rel=prev] {
|
||||
margin: 0;
|
||||
margin-left: var(--spacing);
|
||||
float: right;
|
||||
|
@ -1818,6 +1818,23 @@ dialog article > footer [role=button]:not(:first-of-type) {
|
|||
dialog article p:last-of-type {
|
||||
margin: 0;
|
||||
}
|
||||
dialog article a[rel=prev] {
|
||||
display: block;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
margin-top: calc(var(--block-spacing-vertical) * -0.5);
|
||||
margin-bottom: var(--typography-spacing-vertical);
|
||||
margin-left: auto;
|
||||
background-image: var(--icon-close);
|
||||
background-position: center;
|
||||
background-size: auto 1rem;
|
||||
background-repeat: no-repeat;
|
||||
opacity: 0.5;
|
||||
transition: opacity var(--transition);
|
||||
}
|
||||
dialog article a[rel=prev]:is([aria-current], :hover, :active, :focus) {
|
||||
opacity: 1;
|
||||
}
|
||||
dialog:not([open]), dialog[open=false] {
|
||||
display: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue