mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 10:46:14 -04:00
Modale: Close button
This commit is contained in:
parent
41ef519d32
commit
9baef943d9
23 changed files with 213 additions and 117 deletions
|
@ -44,6 +44,31 @@ dialog {
|
|||
&:not([open]) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.close {
|
||||
display: block;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
margin-left: auto;
|
||||
background-image: var(--icon-close);
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 1rem auto;
|
||||
opacity: .5;
|
||||
margin-bottom: var(--typography-spacing-vertical);
|
||||
margin-right: -0.5rem;
|
||||
margin-top: -0.5rem;
|
||||
|
||||
@if $enable-transitions {
|
||||
transition: opacity var(--transition);
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-is-open {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue