|
6 | 6 | } |
7 | 7 |
|
8 | 8 | .array-field__header { |
9 | | - display: flex; |
10 | | - flex-direction: column; |
11 | | - gap: var(--spacer-2); |
12 | | - } |
13 | | - |
14 | | - .array-field__header__header-content { |
15 | 9 | display: flex; |
16 | 10 | flex-direction: column; |
17 | 11 | gap: var(--spacer-1); |
18 | 12 | } |
19 | 13 |
|
20 | | - .array-field--has-no-error > .array-field__header .array-field__header-content { |
21 | | - color: var(--text-default); |
22 | | - } |
23 | | - |
24 | | - .array-field--has-error > .array-field__header .array-field__header-content { |
25 | | - color: var(--text-danger-default); |
26 | | - } |
27 | | - |
28 | | - .array-field__header-content { |
| 14 | + .array-field__header-wrap { |
29 | 15 | display: flex; |
30 | 16 | align-items: center; |
31 | | - gap: 0.625rem; |
| 17 | + justify-content: space-between; |
| 18 | + width: 100%; |
| 19 | + gap: var(--spacer-2); |
32 | 20 | } |
33 | 21 |
|
34 | | - .array-field__header-wrap { |
| 22 | + .array-field__header-content { |
35 | 23 | display: flex; |
36 | | - align-items: flex-end; |
37 | | - width: 100%; |
38 | | - justify-content: space-between; |
| 24 | + align-items: center; |
| 25 | + gap: var(--spacer-2); |
39 | 26 | } |
40 | 27 |
|
41 | 28 | .array-field__header-actions { |
42 | 29 | list-style: none; |
43 | 30 | margin: 0; |
44 | 31 | padding: 0; |
45 | 32 | display: flex; |
46 | | - color: var(--text-default); |
| 33 | + align-items: center; |
| 34 | + flex-shrink: 0; |
| 35 | + color: var(--text-default-default); |
| 36 | + gap: var(--spacer-1); |
| 37 | + |
| 38 | + & > li:last-child .array-field__header-action { |
| 39 | + padding: 0; |
| 40 | + } |
| 41 | + |
| 42 | + @media (max-width: 768px) { |
| 43 | + & > li:not(:last-child) { |
| 44 | + display: none; |
| 45 | + } |
| 46 | + } |
47 | 47 | } |
48 | 48 |
|
49 | 49 | .array-field__header-action { |
50 | 50 | cursor: pointer; |
51 | | - margin-left: 0.625rem; |
| 51 | + padding: var(--spacer-1) var(--spacer-2); |
| 52 | + border-radius: var(--radius-medium); |
52 | 53 |
|
53 | 54 | &:hover, |
54 | 55 | &:focus-visible { |
55 | | - text-decoration: underline; |
56 | | - color: var(--text-secondary); |
| 56 | + background: var(--bg-transparent-hover); |
| 57 | + } |
| 58 | + |
| 59 | + &:active { |
| 60 | + background: var(--bg-transparent-pressed); |
57 | 61 | } |
58 | 62 | } |
59 | 63 |
|
60 | 64 | .array-field__row-header { |
61 | 65 | display: flex; |
62 | 66 | align-items: center; |
63 | | - gap: 0.625rem; |
| 67 | + gap: var(--spacer-2); |
64 | 68 | pointer-events: none; |
65 | 69 | } |
66 | 70 |
|
|
76 | 80 |
|
77 | 81 | .array-field__add-row.btn { |
78 | 82 | align-self: flex-start; |
79 | | - margin: 2px 0; |
80 | | - color: var(--text-tertiary); |
81 | | - |
82 | | - &:hover:not(:disabled) { |
83 | | - color: var(--text-default); |
84 | | - } |
85 | | - |
86 | | - &:disabled { |
87 | | - color: var(--text-disabled-default); |
88 | | - } |
89 | | - |
90 | | - .btn__icon { |
91 | | - border-color: currentColor; |
92 | | - |
93 | | - path { |
94 | | - stroke: currentColor; |
95 | | - } |
96 | | - } |
| 83 | + margin: 0; |
97 | 84 | } |
98 | 85 | } |
0 commit comments