0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
wagtail/client/scss/components/_dismissible.scss
Sage Abdullah c3cbe81a95 Rename pulse-warning animation to ping-warning and extract to its own file
Tailwind has a similarly-named 'pulse' animation that behaves differently:
it makes the element fade in and out.

Meanwhile, it has a 'ping' animation that behaves similarly to our 'pulse'
animation: https://tailwindcss.com/docs/animation

Follow the Tailwind names to avoid confusion. In the future, we might
want to implement a similar 'pulse' animation. Or, perhaps we can reuse
Tailwind's animations as-is.
2024-07-19 13:14:30 +01:00

27 lines
674 B
SCSS

.w-dismissible-badge {
border-radius: theme('borderRadius.full');
background-color: theme('colors.warning.100');
flex-shrink: 0;
min-width: theme('spacing.[2.5]');
height: theme('spacing.[2.5]');
@media (forced-colors: active) {
border: 3px solid transparent;
box-sizing: content-box;
}
}
.w-dismissible-badge--count {
color: theme('colors.surface-menus');
text-align: center;
font-size: 0.625rem;
font-weight: theme('fontWeight.bold');
min-width: theme('spacing.[3.5]');
height: theme('spacing.[3.5]');
line-height: theme('lineHeight.tight');
@media (prefers-reduced-motion: no-preference) {
animation: ping-warning 5s 5;
}
}