_a11y-result.scss 2.8 KB

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