_a11y-result.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @use '../tools' as *;
  2. .w-a11y-result__row {
  3. display: flex;
  4. justify-content: space-between;
  5. background-color: theme('colors.surface-page');
  6. padding: theme('spacing.4');
  7. border-radius: theme('borderRadius.DEFAULT');
  8. color: theme('colors.text-context');
  9. border: 1px solid theme('colors.border-furniture');
  10. // Shows additional details within the CMS only.
  11. .form-side--checks & {
  12. display: block;
  13. }
  14. @include more-contrast() {
  15. border-color: theme('colors.border-furniture-more-contrast');
  16. }
  17. }
  18. .w-a11y-result__header {
  19. margin: 0 0 theme('spacing.[0.5]');
  20. width: 100%;
  21. display: flex;
  22. justify-content: space-between;
  23. gap: theme('spacing.2');
  24. font-size: theme('fontSize.14');
  25. .w-dialog--userbar & {
  26. font-size: theme('fontSize.16');
  27. }
  28. }
  29. .w-a11y-result__name {
  30. color: theme('colors.text-context');
  31. font-weight: theme('fontWeight.semibold');
  32. }
  33. .w-a11y-result__help {
  34. color: theme('colors.text-placeholder');
  35. font-size: theme('fontSize.14');
  36. .w-dialog--userbar & {
  37. font-size: theme('fontSize.16');
  38. }
  39. }
  40. .w-a11y-result__selector {
  41. display: flex;
  42. align-items: center;
  43. justify-content: center;
  44. background: theme('colors.surface-page');
  45. border-radius: theme('borderRadius.DEFAULT');
  46. margin-top: calc(theme('spacing.[2.5]') * -1);
  47. margin-inline-end: calc(theme('spacing.[2.5]') * -1);
  48. height: theme('spacing.[7.5]');
  49. width: theme('spacing.[7.5]');
  50. .form-side--checks & {
  51. background-color: theme('colors.surface-button-outline-hover');
  52. margin-top: theme('spacing.[2.5]');
  53. margin-inline-end: 0;
  54. padding: theme('spacing.1');
  55. gap: theme('spacing.[1.5]');
  56. width: auto;
  57. max-width: 100%;
  58. }
  59. &:hover,
  60. &:focus {
  61. background: theme('colors.surface-header');
  62. .w-a11y-result__icon {
  63. @apply w-scale-110;
  64. fill: theme('colors.text-context');
  65. }
  66. }
  67. @media (forced-colors: active) {
  68. border: theme('spacing.px') solid ButtonText;
  69. }
  70. }
  71. .w-a11y-result__selector-text {
  72. text-overflow: ellipsis;
  73. overflow: hidden;
  74. white-space: nowrap;
  75. }
  76. .w-a11y-result__icon {
  77. @apply w-transition hover:w-transform;
  78. flex-shrink: 0;
  79. fill: theme('colors.surface-button-default');
  80. height: theme('spacing.[3.5]');
  81. width: theme('spacing.[3.5]');
  82. }
  83. .w-a11y-result__count {
  84. display: flex;
  85. flex-shrink: 0;
  86. justify-content: center;
  87. align-items: center;
  88. background-color: theme('colors.positive.100');
  89. border-radius: theme('borderRadius.full');
  90. font-size: theme('fontSize.11');
  91. height: theme('spacing.4');
  92. width: theme('spacing.4');
  93. color: theme('colors.text-button');
  94. &.has-errors {
  95. background-color: theme('colors.critical.200');
  96. }
  97. @media (forced-colors: active) {
  98. border: theme('spacing.px') solid ButtonText;
  99. }
  100. .w-userbar & {
  101. line-height: theme('lineHeight.none');
  102. }
  103. }