|
1 |
| -@use '../../styles/colors.scss'; |
2 |
| -@use '../../styles/lengths.scss'; |
3 |
| -@use '../../styles/typography.scss'; |
4 |
| - |
5 |
| -$variants: ( |
6 |
| - 'success': colors.success(700), |
7 |
| - 'danger': colors.danger(700), |
8 |
| - 'warning': colors.warning(700), |
9 |
| - 'primary': colors.primary(700), |
10 |
| -); |
11 |
| - |
12 |
| -%column { |
13 |
| - flex: 0 0 auto; |
14 |
| - |
15 |
| - margin-inline: lengths.margin(2); |
16 |
| -} |
17 |
| - |
18 |
| -.rcx-option { |
19 |
| - @include clickable; |
20 |
| - @include typography.use-font-scale(p2); |
21 |
| - |
22 |
| - padding: lengths.padding(4) lengths.padding(16); |
23 |
| - |
24 |
| - list-style: none; |
25 |
| - |
26 |
| - color: colors.font(default); |
27 |
| - |
28 |
| - &__title { |
29 |
| - @include typography.use-font-scale(c1); |
30 |
| - |
31 |
| - padding-block-end: lengths.padding(8); |
32 |
| - padding-inline: lengths.padding(16); |
33 |
| - |
34 |
| - color: colors.font(default); |
35 |
| - } |
36 |
| - |
37 |
| - &__wrapper { |
38 |
| - display: flex; |
39 |
| - align-items: center; |
40 |
| - |
41 |
| - margin-inline: lengths.margin(-2); |
42 |
| - } |
43 |
| - |
44 |
| - &__icon { |
45 |
| - color: inherit; |
46 |
| - } |
47 |
| - |
48 |
| - &__avatar { |
49 |
| - @extend %column; |
50 |
| - } |
51 |
| - |
52 |
| - &__content { |
53 |
| - @include typography.use-text-ellipsis; |
54 |
| - @extend %column; |
55 |
| - flex: 1 1 100%; |
56 |
| - |
57 |
| - text-align: start; |
58 |
| - |
59 |
| - white-space: nowrap; |
60 |
| - } |
61 |
| - |
62 |
| - &__header { |
63 |
| - @include typography.use-font-scale(micro); |
64 |
| - |
65 |
| - padding-block: lengths.padding(8); |
66 |
| - padding-inline: lengths.padding(16); |
67 |
| - |
68 |
| - text-transform: uppercase; |
69 |
| - |
70 |
| - font-weight: 400; |
71 |
| - } |
72 |
| - |
73 |
| - &__menu-wrapper { |
74 |
| - flex-shrink: 0; |
75 |
| - |
76 |
| - width: 0; |
77 |
| - |
78 |
| - height: 100%; |
79 |
| - |
80 |
| - opacity: 0; |
81 |
| - } |
82 |
| - |
83 |
| - .rcx-option__column { |
84 |
| - @extend %column; |
85 |
| - display: flex; |
86 |
| - |
87 |
| - justify-content: center; |
88 |
| - align-items: center; |
89 |
| - |
90 |
| - min-width: lengths.size(20); |
91 |
| - min-height: lengths.size(20); |
92 |
| - } |
93 |
| - |
94 |
| - .rcx-option__description { |
95 |
| - @include typography.use-font-scale(p2); |
96 |
| - @extend %column; |
97 |
| - display: inline; |
98 |
| - |
99 |
| - color: colors.font(secondary-info); |
100 |
| - } |
101 |
| - |
102 |
| - &:hover, |
103 |
| - &--focus { |
104 |
| - background: colors.neutral(100); |
105 |
| - } |
106 |
| - |
107 |
| - &--selected { |
108 |
| - background: colors.neutral(500); |
109 |
| - } |
110 |
| - |
111 |
| - &:hover &__menu-wrapper, |
112 |
| - &.focus-within &__menu-wrapper, |
113 |
| - &:focus-within &__menu-wrapper { |
114 |
| - display: flex; |
115 |
| - align-items: center; |
116 |
| - |
117 |
| - width: lengths.size(28); |
118 |
| - |
119 |
| - opacity: 1; |
120 |
| - } |
121 |
| - |
122 |
| - @each $name, $color in $variants { |
123 |
| - &--#{$name} { |
124 |
| - color: theme('option-color-variant-#{$name}', $color); |
125 |
| - } |
126 |
| - } |
127 |
| -} |
128 |
| - |
129 | 1 | .rcx-options {
|
130 | 2 | &:hover {
|
131 | 3 | .rcx-option--focus:not(.rcx-option--selected):not(:hover) {
|
|
0 commit comments