@tolokoban/ui
Version:
React components with theme
45 lines (39 loc) • 790 B
CSS
div.error {
margin: 0;
padding: 1rem;
background-color: var(--theme-color-error);
color: var(--theme-color-on-error);
max-width: 320px;
overflow-x: auto;
}
div.error pre {
white-space: pre-wrap;
}
.wait {
padding: 1rem;
background-color: var(--theme-color-neutral-5-9);
color: var(--theme-color-on-neutral-5);
display: inline-flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
max-width: 480px;
gap: 1rem;
}
.wait > * {
flex: 1 1 auto;
}
.wait > svg {
flex: 0 0 3rem;
animation: rotation-anim 1s linear infinite;
width: 3rem;
height: 3rem;
}
@keyframes rotation-anim {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(-360deg);
}
}