@e280/authlocal
Version:
User-sovereign login system for everybody
58 lines (46 loc) • 768 B
text/typescript
import {css} from "@benev/slate"
export default css`
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:host {
display: contents;
--icon-size: var(--auth-user-icon-size, 3em);
--label-max-width: var(--auth-user-label-max-width, 4em);
}
[part="shell"] {
display: flex;
justify-content: center;
align-items: center;
gap: 0.5em;
padding: 1em;
border-radius: 0.5em;
background: #333;
}
.icon {
svg {
width: var(--icon-size);
height: var(--icon-size);
}
}
.box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: start;
gap: 0.2em;
}
[part="label"] {
font-size: 1.2em;
width: 100%;
max-width: 20em;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
[part="id"] {
font-size: 0.8em;
}
`