|
2 | 2 | @use 'src/styles/spacings';
|
3 | 3 |
|
4 | 4 | .popupContainer {
|
5 |
| - border-radius: 8px; |
6 |
| - padding: spacings.$sp-16; |
| 5 | + border-radius: 12px; |
| 6 | + padding: spacings.$sp-24; |
7 | 7 | width: auto;
|
| 8 | + min-width: 320px; |
8 | 9 | z-index: 1300;
|
9 | 10 | box-shadow: colors.$box-shadow-color;
|
10 | 11 | border: 2px solid colors.$background-color-btn-primary;
|
| 12 | + transform-origin: top left; |
| 13 | + opacity: 0; |
| 14 | + transform: scale(0.95); |
| 15 | + pointer-events: none; |
| 16 | + |
| 17 | + &.open { |
| 18 | + opacity: 1; |
| 19 | + transform: scale(1); |
| 20 | + pointer-events: auto; |
| 21 | + } |
11 | 22 |
|
12 | 23 | & .closeIcon {
|
13 | 24 | cursor: pointer;
|
| 25 | + position: absolute; |
| 26 | + top: 12px; |
| 27 | + right: 12px; |
| 28 | + transition: transform 0.2s ease; |
| 29 | + |
| 30 | + &:hover { |
| 31 | + transform: scale(1.1); |
| 32 | + } |
14 | 33 | }
|
15 | 34 |
|
16 | 35 | & .fieldsContainer {
|
17 | 36 | display: flex;
|
18 | 37 | flex-direction: column;
|
19 |
| - gap: 1rem; |
| 38 | + gap: 1.5rem; |
20 | 39 | justify-content: center;
|
21 | 40 | align-items: center;
|
22 |
| - margin-top: 1rem !important; |
| 41 | + margin-top: 1.5rem !important; |
| 42 | + padding: 0.5rem; |
23 | 43 |
|
24 | 44 | & .title {
|
25 |
| - font-size: 1.3rem; |
26 |
| - font-weight: bold; |
| 45 | + font-size: 1.2rem; |
| 46 | + font-weight: 600; |
27 | 47 | display: flex;
|
28 | 48 | justify-content: space-between;
|
29 |
| - align-items: start; |
| 49 | + align-items: center; |
30 | 50 | width: 100%;
|
| 51 | + padding-bottom: 0.5rem; |
| 52 | + border-bottom: 1px solid rgba(colors.$background-color-btn-primary, 0.1); |
31 | 53 | }
|
32 | 54 |
|
33 | 55 | & .hidden {
|
34 | 56 | visibility: hidden;
|
35 | 57 | }
|
36 | 58 |
|
| 59 | + & .removeFilterButton { |
| 60 | + cursor: pointer; |
| 61 | + transition: transform 0.2s ease; |
| 62 | + |
| 63 | + &:hover { |
| 64 | + transform: scale(1.1); |
| 65 | + } |
| 66 | + } |
| 67 | + |
37 | 68 | :global {
|
38 | 69 | .MuiInputLabel-root {
|
39 | 70 | color: colors.$background-color-btn-primary;
|
| 71 | + font-size: 0.9rem; |
| 72 | + transform: translate(0, -1.5px) scale(0.85); |
40 | 73 | }
|
41 | 74 |
|
42 | 75 | .MuiInput-underline::before {
|
|
55 | 88 | & .MuiInput-underline::before {
|
56 | 89 | border-bottom-style: solid;
|
57 | 90 | border-bottom-color: colors.$background-color-btn-primary;
|
| 91 | + opacity: 0.6; |
58 | 92 | }
|
59 | 93 | }
|
| 94 | + |
| 95 | + .MuiSelect-select { |
| 96 | + padding: 8px 0; |
| 97 | + } |
| 98 | + |
| 99 | + .MuiFormControl-root { |
| 100 | + margin: 8px 0; |
| 101 | + } |
| 102 | + } |
| 103 | + } |
| 104 | + |
| 105 | + & .buttonsSection { |
| 106 | + display: flex; |
| 107 | + justify-content: space-between; |
| 108 | + margin-top: spacings.$sp-24; |
| 109 | + padding-top: spacings.$sp-16; |
| 110 | + border-top: 1px solid rgba(colors.$background-color-btn-primary, 0.1); |
| 111 | + |
| 112 | + button { |
| 113 | + min-width: 120px; |
| 114 | + padding: 8px 16px; |
| 115 | + border-radius: 6px; |
| 116 | + transition: all 0.2s ease; |
| 117 | + |
| 118 | + &:hover:not(:disabled) { |
| 119 | + transform: translateY(-1px); |
| 120 | + } |
| 121 | + |
| 122 | + &:disabled { |
| 123 | + opacity: 0.6; |
| 124 | + cursor: not-allowed; |
| 125 | + } |
60 | 126 | }
|
61 | 127 | }
|
62 | 128 |
|
63 | 129 | & .removeAllFilters {
|
64 | 130 | color: colors.$primary-red;
|
| 131 | + |
| 132 | + &:hover { |
| 133 | + background-color: rgba(colors.$primary-red, 0.1); |
| 134 | + } |
| 135 | + } |
| 136 | + |
| 137 | + & .addFilter { |
| 138 | + background-color: rgba(colors.$background-color-btn-primary, 0.1); |
| 139 | + |
| 140 | + &:hover:not(:disabled) { |
| 141 | + background-color: rgba(colors.$background-color-btn-primary, 0.2); |
| 142 | + } |
65 | 143 | }
|
66 | 144 |
|
67 | 145 | &.lightTheme {
|
68 |
| - background-color: colors.$light-base-color-100; |
69 |
| - color: colors.$light-text-color; |
| 146 | + background-color: colors.$white-color; |
| 147 | + color: colors.$primary-dark-grey-color; |
70 | 148 |
|
71 | 149 | :global {
|
| 150 | + .MuiInputBase-input { |
| 151 | + color: colors.$primary-dark-grey-color !important; |
| 152 | + } |
| 153 | + |
72 | 154 | .MuiInputBase-input.Mui-disabled {
|
73 |
| - -webkit-text-fill-color: colors.$light-text-color !important; |
74 |
| - color: colors.$light-text-color !important; |
| 155 | + -webkit-text-fill-color: colors.$primary-dark-grey-color !important; |
| 156 | + color: colors.$primary-dark-grey-color !important; |
| 157 | + opacity: 0.7; |
| 158 | + } |
| 159 | + |
| 160 | + .MuiInputLabel-root { |
| 161 | + color: colors.$primary-dark-grey-color; |
| 162 | + } |
| 163 | + |
| 164 | + .MuiInput-underline::before { |
| 165 | + border-bottom-color: colors.$light-base-color-500; |
| 166 | + } |
| 167 | + |
| 168 | + .MuiInput-underline:hover::before { |
| 169 | + border-bottom-color: colors.$primary-blue; |
| 170 | + } |
| 171 | + |
| 172 | + .MuiInput-underline::after { |
| 173 | + border-bottom-color: colors.$primary-blue; |
75 | 174 | }
|
76 | 175 | }
|
77 | 176 |
|
78 | 177 | & .addFilter {
|
79 |
| - color: colors.$light-text-color; |
| 178 | + color: colors.$primary-dark-grey-color; |
| 179 | + background-color: colors.$light-base-color-200; |
| 180 | + |
| 181 | + &:hover:not(:disabled) { |
| 182 | + background-color: colors.$light-base-color-300; |
| 183 | + } |
80 | 184 |
|
81 | 185 | &:disabled {
|
82 |
| - opacity: 0.6; |
| 186 | + opacity: 0.5; |
| 187 | + background-color: colors.$light-base-color-200; |
83 | 188 | }
|
84 | 189 | }
|
85 | 190 |
|
86 | 191 | .MuiSvgIcon-root {
|
87 |
| - color: colors.$light-text-color; |
| 192 | + color: colors.$primary-dark-grey-color; |
88 | 193 | }
|
89 | 194 |
|
90 | 195 | .option {
|
91 |
| - color: colors.$light-text-color; |
92 |
| - background-color: colors.$light-base-color-400; |
| 196 | + color: colors.$primary-dark-grey-color; |
| 197 | + background-color: colors.$white-color; |
93 | 198 |
|
94 | 199 | &:hover,
|
95 | 200 | &[aria-selected='true'] {
|
96 | 201 | background-color: colors.$light-base-color-200 !important;
|
97 | 202 | }
|
98 | 203 | }
|
| 204 | + |
| 205 | + & .title { |
| 206 | + color: colors.$primary-dark-grey-color; |
| 207 | + border-bottom-color: colors.$light-base-color-300; |
| 208 | + } |
| 209 | + |
| 210 | + & .buttonsSection { |
| 211 | + border-top-color: colors.$light-base-color-300; |
| 212 | + } |
99 | 213 | }
|
100 | 214 |
|
101 | 215 | &.darkTheme {
|
|
133 | 247 | }
|
134 | 248 | }
|
135 | 249 |
|
136 |
| -.buttonsSection { |
137 |
| - display: flex; |
138 |
| - justify-content: space-between; |
139 |
| - margin-top: spacings.$sp-16; |
140 |
| -} |
141 |
| - |
142 |
| -.lightTextField { |
143 |
| - :global { |
144 |
| - .MuiOutlinedInput-root { |
145 |
| - & .MuiOutlinedInput-notchedOutline { |
146 |
| - border-color: colors.$light-base-color-100 !important; |
147 |
| - } |
148 |
| - |
149 |
| - & input { |
150 |
| - color: colors.$light-text-color !important; |
151 |
| - } |
152 |
| - } |
153 |
| - } |
154 |
| -} |
155 |
| - |
156 |
| -.darkTextField { |
157 |
| - :global { |
158 |
| - .MuiOutlinedInput-root { |
159 |
| - & .MuiOutlinedInput-notchedOutline { |
160 |
| - border-color: colors.$dark-text-color !important; |
161 |
| - } |
162 |
| - |
163 |
| - & input { |
164 |
| - color: colors.$dark-text-color !important; |
165 |
| - } |
166 |
| - } |
167 |
| - } |
168 |
| -} |
169 |
| - |
170 | 250 | .divider {
|
171 | 251 | border: 0;
|
172 | 252 | height: 1px;
|
173 | 253 | width: 100%;
|
174 |
| - background-color: colors.$background-color-btn-primary !important; |
| 254 | + background-color: rgba(colors.$background-color-btn-primary, 0.1) !important; |
175 | 255 | border-radius: 1rem;
|
| 256 | + margin: 16px 0; |
176 | 257 | }
|
177 | 258 |
|
178 | 259 | .input {
|
|
181 | 262 |
|
182 | 263 | .textField {
|
183 | 264 | width: 100%;
|
| 265 | + margin: 8px 0; |
184 | 266 | }
|
0 commit comments