@layer seed-components { .seed-skeleton { box-sizing: border-box; --seed-box-width-base: auto; --seed-box-width-sm: var(--seed-box-width-base, initial); --seed-box-width-md: var(--seed-box-width-sm, initial); --seed-box-width-lg: var(--seed-box-width-md, initial); --seed-box-width-xl: var(--seed-box-width-lg, initial); --seed-box-width: var(--seed-box-width-base, initial); --seed-box-height-base: auto; --seed-box-height-sm: var(--seed-box-height-base, initial); --seed-box-height-md: var(--seed-box-height-sm, initial); --seed-box-height-lg: var(--seed-box-height-md, initial); --seed-box-height-xl: var(--seed-box-height-lg, initial); --seed-box-height: var(--seed-box-height-base, initial); width: var(--seed-box-width); height: var(--seed-box-height); display: inline-block; overflow: hidden; } .seed-skeleton:after { content: ""; width: 100%; height: 100%; animation-name: slide-x; animation-duration: 1.5s; animation-fill-mode: forwards; animation-timing-function: var(--seed-timing-function-easing); background-repeat: no-repeat; animation-iteration-count: infinite; display: block; } .seed-skeleton--radius_0 { border-radius: 0; } .seed-skeleton--radius_8 { border-radius: 8px; } .seed-skeleton--radius_16 { border-radius: 16px; } .seed-skeleton--radius_full { border-radius: var(--seed-radius-full); } .seed-skeleton--tone_neutral { background: var(--seed-color-palette-gray-200); } .seed-skeleton--tone_neutral:after { background-image: linear-gradient(90deg, var(--seed-gradient-shimmer-neutral)); } .seed-skeleton--tone_magic { background: var(--seed-color-bg-magic-weak); } .seed-skeleton--tone_magic:after { background-image: linear-gradient(90deg, var(--seed-gradient-shimmer-magic)); } @media (min-width: 480px) { .seed-skeleton { --seed-box-width: var(--seed-box-width-sm, initial); --seed-box-height: var(--seed-box-height-sm, initial); } } @media (min-width: 768px) { .seed-skeleton { --seed-box-width: var(--seed-box-width-md, initial); --seed-box-height: var(--seed-box-height-md, initial); } } @media (min-width: 1280px) { .seed-skeleton { --seed-box-width: var(--seed-box-width-lg, initial); --seed-box-height: var(--seed-box-height-lg, initial); } } @media (min-width: 1440px) { .seed-skeleton { --seed-box-width: var(--seed-box-width-xl, initial); --seed-box-height: var(--seed-box-height-xl, initial); } } }