@authduo/authduo
Version:
Free User-sovereign Authentication for the World
42 lines (33 loc) • 775 B
text/typescript
import {css} from "@benev/slate"
export default css`
[x-copy] {
user-select: none;
position: relative;
[x-text] {
cursor: copy;
&:hover { filter: brightness(120%); }
&:active { filter: brightness(80%); }
}
[x-notify] {
pointer-events: none;
transition: 250ms linear all;
position: absolute;
right: -10%;
bottom: 90%;
display: flex;
justify-content: center;
align-items: center;
padding: 0.2em;
border-radius: .5em;
font-weight: bold;
color: white;
text-shadow: .05em .10em .07em #0008;
background: transparent;
&[x-notify="good"] { background: green; }
&[x-notify="bad"] { background: red; }
}
}
[x-notify] { opacity: 0; }
[x-copy="good"] [x-notify="good"] { opacity: 1; }
[x-copy="bad"] [x-notify="bad"] { opacity: 1; }
`