2
0

_whats-new.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .w-whats-new {
  2. margin-bottom: theme('spacing.16');
  3. &.w-dismissible--dismissed {
  4. display: none;
  5. }
  6. &__banner {
  7. position: relative;
  8. display: flex;
  9. align-items: center;
  10. border-radius: theme('borderRadius.md');
  11. padding: theme('spacing.6');
  12. color: theme('colors.grey.600');
  13. background-color: theme('colors.warning.50');
  14. border: 5px solid transparent;
  15. }
  16. &__main-icon {
  17. .icon {
  18. color: theme('colors.warning.100');
  19. width: theme('spacing.10');
  20. height: theme('spacing.10');
  21. margin-inline-end: theme('spacing.4');
  22. border-radius: theme('borderRadius.full');
  23. @media (prefers-reduced-motion: no-preference) {
  24. animation: pulse-warning 5s 5;
  25. }
  26. }
  27. }
  28. &__heading {
  29. @apply w-h3;
  30. color: theme('colors.grey.600');
  31. margin-top: 0;
  32. margin-bottom: theme('spacing.2');
  33. }
  34. &__details {
  35. @apply w-body-text-large;
  36. margin-bottom: 0;
  37. }
  38. &__link {
  39. font-weight: theme('fontWeight.bold');
  40. color: theme('colors.secondary.400');
  41. text-decoration: underline;
  42. text-decoration-thickness: 2px;
  43. text-underline-offset: 3px;
  44. &:hover {
  45. color: theme('colors.secondary.600');
  46. }
  47. }
  48. &__dismiss {
  49. @apply -w-top-3 -w-right-3;
  50. position: absolute;
  51. padding: 0;
  52. background-color: transparent;
  53. .icon {
  54. border-radius: theme('borderRadius.full');
  55. width: theme('spacing.6');
  56. height: theme('spacing.6');
  57. background-color: theme('colors.surface-page');
  58. color: theme('colors.icon-primary');
  59. @media (forced-colors: active) {
  60. background-color: Canvas;
  61. color: CanvasText;
  62. }
  63. }
  64. }
  65. }