mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 01:22:07 +01:00
c3cbe81a95
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.
27 lines
674 B
SCSS
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;
|
|
}
|
|
}
|