_a11y-result.scss 2.6 KB

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