import { css } from "@linaria/core"; export const LoaderHost = css` @keyframes pulse { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } } @layer defaults { display: inline-flex; align-items: center; justify-content: center; &[data-size="small"] { width: 6px; height: 6px; } &[data-size="large"] { width: 12px; height: 12px; } [part="dots"] { display: flex; gap: 4px; } [part="dot"] { width: 8px; height: 8px; background-color: currentColor; border-radius: 50%; animation: pulse 1.4s infinite ease-in-out; opacity: 0.6; &:nth-of-type(2) { animation-delay: 0.2s; } &:nth-of-type(3) { animation-delay: 0.4s; } } } `;