@agorapulse/ui-theme 22.0.3-beta.1 → 22.0.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agorapulse-ui-theme-22.0.5-beta.1.tgz +0 -0
- package/assets/desktop_variables.css +624 -460
- package/assets/mobile_variables.css +624 -460
- package/assets/style/_button-mixins.scss +33 -92
- package/assets/style/_input.scss +4 -0
- package/assets/style/_link.scss +31 -35
- package/assets/style/_select.scss +67 -44
- package/assets/style/_table.scss +52 -20
- package/assets/style/_tooltip.scss +6 -7
- package/assets/style/components-custom-style/_input.scss +22 -28
- package/assets/style/components-custom-style/_ng-select.scss +15 -7
- package/assets/style/css-ui/_action-dropdown.scss +39 -27
- package/assets/style/css-ui/_badge.scss +2 -5
- package/assets/style/css-ui/_button.scss +141 -96
- package/assets/style/css-ui/_checkbox.scss +6 -11
- package/assets/style/css-ui/_counter.scss +7 -15
- package/assets/style/css-ui/_icon-button.scss +24 -68
- package/assets/style/css-ui/_infobox.scss +25 -68
- package/assets/style/css-ui/_input.scss +31 -38
- package/assets/style/css-ui/_label.scss +10 -8
- package/assets/style/css-ui/_link.scss +31 -36
- package/assets/style/css-ui/_list-panel.scss +33 -15
- package/assets/style/css-ui/_radio-card.scss +37 -31
- package/assets/style/css-ui/_radio.scss +17 -27
- package/assets/style/css-ui/_select.scss +53 -50
- package/assets/style/css-ui/_selection-dropdown.scss +25 -35
- package/assets/style/css-ui/_snackbar.scss +2 -2
- package/assets/style/css-ui/_split-button.scss +4 -14
- package/assets/style/css-ui/_status.scss +26 -29
- package/assets/style/css-ui/_table.scss +52 -20
- package/assets/style/css-ui/_tabs.scss +15 -31
- package/assets/style/css-ui/_tag.scss +25 -65
- package/assets/style/css-ui/_textarea.scss +25 -30
- package/assets/style/css-ui/_toggle.scss +12 -11
- package/assets/style/css-ui/_tooltip.scss +10 -7
- package/assets/style/css-ui/index.css +525 -638
- package/assets/style/css-ui/index.css.map +1 -1
- package/package.json +1 -1
- package/src/build.js +1 -3
- package/src/desktop_config.js +1 -2
- package/src/mobile_config.js +1 -2
- package/src/tokens/components/button.json +225 -11
- package/src/tokens/components/icon-button.json +11 -1
- package/src/tokens/components/input.json +64 -145
- package/src/tokens/components/link.json +132 -0
- package/src/tokens/components/select.json +14 -14
- package/src/tokens/components/status.json +129 -0
- package/src/tokens/reference/v3.json +242 -0
- package/src/tokens/system/color-border.json +50 -43
- package/src/tokens/system/color-data.json +58 -0
- package/src/tokens/system/color-icon.json +62 -45
- package/src/tokens/system/color-link.json +15 -9
- package/src/tokens/system/color-surface.json +87 -77
- package/src/tokens/system/color-text.json +63 -52
- package/src/tokens/system/height.json +12 -3
- package/src/tokens/system/motion.json +10 -0
- package/src/tokens/system/radius.json +18 -2
- package/src/tokens/system/spacing.json +13 -13
- package/agorapulse-ui-theme-22.0.3-beta.1.tgz +0 -0
- package/src/formats.js +0 -36
- package/src/tokens/components/action-dropdown.json +0 -93
- package/src/tokens/components/close-button.json +0 -22
- package/src/tokens/components/infobox.json +0 -156
- package/src/tokens/components/radio.json +0 -11
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
border-radius: var(--ref-border-radius-md);
|
|
12
12
|
border-collapse: separate;
|
|
13
13
|
border-spacing: 0;
|
|
14
|
-
background-color: var(--
|
|
14
|
+
background-color: var(--sys-color-surface-default);
|
|
15
15
|
|
|
16
16
|
tbody {
|
|
17
17
|
height: calc(100% - var(--ap-table-cell-height));
|
|
@@ -41,22 +41,38 @@
|
|
|
41
41
|
|
|
42
42
|
// Outer border variant
|
|
43
43
|
&.outer-border {
|
|
44
|
-
border: 1px solid var(--
|
|
44
|
+
border: 1px solid var(--sys-color-border-default);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// Header background variant
|
|
48
48
|
&.header-background th {
|
|
49
|
-
background-color: var(--
|
|
49
|
+
background-color: var(--sys-color-surface-tertiary);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// Striped variant
|
|
53
53
|
&.striped tbody {
|
|
54
54
|
tr:nth-child(even) {
|
|
55
|
-
background-color: var(--
|
|
55
|
+
background-color: var(--sys-color-surface-secondary);
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
background-color: var(--sys-color-surface-interactive-hovered);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:active {
|
|
62
|
+
background-color: var(--sys-color-surface-interactive-clicked);
|
|
63
|
+
}
|
|
56
64
|
}
|
|
57
65
|
|
|
58
66
|
tr.selected {
|
|
59
|
-
background-color: var(--
|
|
67
|
+
background-color: var(--sys-color-surface-interactive-active);
|
|
68
|
+
|
|
69
|
+
&:hover {
|
|
70
|
+
background-color: var(--sys-color-surface-interactive-active-hovered);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:active {
|
|
74
|
+
background-color: var(--sys-color-surface-interactive-active-clicked);
|
|
75
|
+
}
|
|
60
76
|
}
|
|
61
77
|
}
|
|
62
78
|
|
|
@@ -96,10 +112,26 @@
|
|
|
96
112
|
|
|
97
113
|
// === Row styles — implicit tr ===
|
|
98
114
|
tbody tr {
|
|
99
|
-
background-color: var(--
|
|
115
|
+
background-color: var(--sys-color-surface-interactive-default);
|
|
116
|
+
|
|
117
|
+
&:hover {
|
|
118
|
+
background-color: var(--sys-color-surface-interactive-hovered);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:active {
|
|
122
|
+
background-color: var(--sys-color-surface-interactive-clicked);
|
|
123
|
+
}
|
|
100
124
|
|
|
101
125
|
&.selected {
|
|
102
|
-
background-color: var(--
|
|
126
|
+
background-color: var(--sys-color-surface-interactive-active);
|
|
127
|
+
|
|
128
|
+
&:hover {
|
|
129
|
+
background-color: var(--sys-color-surface-interactive-active-hovered);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&:active {
|
|
133
|
+
background-color: var(--sys-color-surface-interactive-active-clicked);
|
|
134
|
+
}
|
|
103
135
|
}
|
|
104
136
|
|
|
105
137
|
&:last-child td {
|
|
@@ -114,10 +146,10 @@
|
|
|
114
146
|
text-align: left;
|
|
115
147
|
font-size: var(--ref-font-size-xs);
|
|
116
148
|
font-weight: var(--ref-font-weight-bold);
|
|
117
|
-
color: var(--
|
|
149
|
+
color: var(--sys-color-text-default);
|
|
118
150
|
border: none;
|
|
119
|
-
border-bottom: 1px solid var(--
|
|
120
|
-
background-color: var(--
|
|
151
|
+
border-bottom: 1px solid var(--sys-color-border-default);
|
|
152
|
+
background-color: var(--sys-color-surface-default);
|
|
121
153
|
position: sticky;
|
|
122
154
|
top: 0;
|
|
123
155
|
z-index: 1;
|
|
@@ -148,7 +180,7 @@
|
|
|
148
180
|
}
|
|
149
181
|
|
|
150
182
|
&.sorted {
|
|
151
|
-
color: var(--
|
|
183
|
+
color: var(--sys-color-text-interactive-active);
|
|
152
184
|
|
|
153
185
|
> i {
|
|
154
186
|
opacity: 1;
|
|
@@ -185,9 +217,9 @@
|
|
|
185
217
|
td {
|
|
186
218
|
padding: 0 var(--ref-spacing-xs);
|
|
187
219
|
font-size: var(--ref-font-size-sm);
|
|
188
|
-
color: var(--
|
|
220
|
+
color: var(--sys-color-text-default);
|
|
189
221
|
border: none;
|
|
190
|
-
border-bottom: 1px solid var(--
|
|
222
|
+
border-bottom: 1px solid var(--sys-color-border-default);
|
|
191
223
|
height: var(--ap-table-cell-height);
|
|
192
224
|
vertical-align: middle;
|
|
193
225
|
font-family: var(--ref-font-family);
|
|
@@ -216,16 +248,16 @@
|
|
|
216
248
|
tfoot td {
|
|
217
249
|
padding: 0 var(--ref-spacing-xs);
|
|
218
250
|
font-size: var(--ref-font-size-sm);
|
|
219
|
-
color: var(--
|
|
251
|
+
color: var(--sys-color-text-default);
|
|
220
252
|
border: none;
|
|
221
|
-
border-top: 1px solid var(--
|
|
253
|
+
border-top: 1px solid var(--sys-color-border-default);
|
|
222
254
|
height: var(--ap-table-cell-height);
|
|
223
255
|
vertical-align: middle;
|
|
224
256
|
font-family: var(--ref-font-family);
|
|
225
257
|
position: sticky;
|
|
226
258
|
bottom: 0;
|
|
227
259
|
z-index: 1;
|
|
228
|
-
background-color: var(--
|
|
260
|
+
background-color: var(--sys-color-surface-default);
|
|
229
261
|
|
|
230
262
|
&.right {
|
|
231
263
|
text-align: right;
|
|
@@ -266,7 +298,7 @@
|
|
|
266
298
|
|
|
267
299
|
// Cell text
|
|
268
300
|
.ap-table-cell-text {
|
|
269
|
-
color: var(--
|
|
301
|
+
color: var(--sys-color-text-default);
|
|
270
302
|
font-size: var(--ref-font-size-sm);
|
|
271
303
|
line-height: var(--ref-line-height-sm);
|
|
272
304
|
|
|
@@ -277,7 +309,7 @@
|
|
|
277
309
|
|
|
278
310
|
// Cell description
|
|
279
311
|
.ap-table-cell-description {
|
|
280
|
-
color: var(--
|
|
312
|
+
color: var(--sys-color-text-secondary);
|
|
281
313
|
font-size: var(--ref-font-size-xs);
|
|
282
314
|
line-height: var(--ref-line-height-xs);
|
|
283
315
|
}
|
|
@@ -293,14 +325,14 @@
|
|
|
293
325
|
// Drag handle
|
|
294
326
|
.ap-table-drag-handle {
|
|
295
327
|
cursor: move;
|
|
296
|
-
color: var(--
|
|
328
|
+
color: var(--sys-color-icon-subtle);
|
|
297
329
|
}
|
|
298
330
|
|
|
299
331
|
// Empty state
|
|
300
332
|
.ap-table-empty {
|
|
301
333
|
padding: var(--ref-spacing-xl);
|
|
302
334
|
text-align: center;
|
|
303
|
-
color: var(--
|
|
335
|
+
color: var(--sys-color-text-subtle);
|
|
304
336
|
font-size: var(--ref-font-size-sm);
|
|
305
337
|
}
|
|
306
338
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// Agorapulse Tabs Styles
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// bottom border, not a tinted background — the design binds no surface for them.
|
|
3
|
+
// Per the spec frame, state is carried by the bottom border alone: 1px transparent at rest,
|
|
4
|
+
// 2px on hover and press, 4px when active. No tab ever has a background.
|
|
6
5
|
|
|
7
6
|
.ap-tabs {
|
|
8
7
|
display: flex;
|
|
@@ -46,7 +45,7 @@
|
|
|
46
45
|
display: flex;
|
|
47
46
|
align-items: center;
|
|
48
47
|
justify-content: center;
|
|
49
|
-
gap: var(--sys-spacing-
|
|
48
|
+
gap: var(--sys-spacing-inline-icon-default);
|
|
50
49
|
background: transparent;
|
|
51
50
|
border: none;
|
|
52
51
|
cursor: pointer;
|
|
@@ -54,11 +53,10 @@
|
|
|
54
53
|
text-align: center;
|
|
55
54
|
position: relative;
|
|
56
55
|
white-space: nowrap;
|
|
57
|
-
|
|
58
|
-
min-height: 48px;
|
|
59
|
-
padding: var(--sys-spacing-container-md) var(--sys-spacing-container-lg);
|
|
56
|
+
padding: 0 var(--ref-spacing-sm);
|
|
60
57
|
font-size: var(--sys-text-style-body-size);
|
|
61
58
|
line-height: var(--sys-text-style-body-line-height);
|
|
59
|
+
min-height: 48px;
|
|
62
60
|
color: var(--sys-color-text-interactive-default);
|
|
63
61
|
font-weight: var(--sys-text-style-body-weight);
|
|
64
62
|
|
|
@@ -67,27 +65,26 @@
|
|
|
67
65
|
width: 16px;
|
|
68
66
|
height: 16px;
|
|
69
67
|
flex-shrink: 0;
|
|
70
|
-
color: var(--sys-color-icon-interactive-default);
|
|
71
68
|
}
|
|
72
69
|
|
|
73
|
-
//
|
|
70
|
+
// Underline carrying the state
|
|
74
71
|
&::after {
|
|
75
72
|
content: '';
|
|
76
73
|
position: absolute;
|
|
77
74
|
bottom: -1px;
|
|
78
75
|
left: 0;
|
|
79
76
|
right: 0;
|
|
80
|
-
height:
|
|
77
|
+
height: 0;
|
|
81
78
|
background-color: transparent;
|
|
82
79
|
}
|
|
83
80
|
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
&:hover:not(:disabled):not(.disabled):not(.active)::after {
|
|
82
|
+
height: 2px;
|
|
86
83
|
background-color: var(--sys-color-border-interactive-hovered);
|
|
87
84
|
}
|
|
88
85
|
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
&:active:not(:disabled):not(.disabled):not(.active)::after {
|
|
87
|
+
height: 2px;
|
|
91
88
|
background-color: var(--sys-color-border-interactive-clicked);
|
|
92
89
|
}
|
|
93
90
|
|
|
@@ -96,9 +93,7 @@
|
|
|
96
93
|
outline: none;
|
|
97
94
|
}
|
|
98
95
|
|
|
99
|
-
|
|
100
|
-
// was — minus the tinted background, whose colour the design dropped.
|
|
101
|
-
&:focus-visible:not(.active) {
|
|
96
|
+
&:focus-visible {
|
|
102
97
|
outline: none;
|
|
103
98
|
box-shadow: inset 0 0 0 2px var(--sys-color-border-interactive-active);
|
|
104
99
|
border-radius: var(--sys-radius-inner);
|
|
@@ -118,9 +113,7 @@
|
|
|
118
113
|
// Active tab
|
|
119
114
|
&.active {
|
|
120
115
|
color: var(--sys-color-text-interactive-active);
|
|
121
|
-
|
|
122
|
-
// `Body - Bold` here.
|
|
123
|
-
text-shadow: 0.5px 0 0 currentColor;
|
|
116
|
+
font-weight: var(--sys-text-style-body-bold-weight);
|
|
124
117
|
|
|
125
118
|
> i {
|
|
126
119
|
color: var(--sys-color-icon-interactive-active);
|
|
@@ -130,16 +123,9 @@
|
|
|
130
123
|
height: 4px;
|
|
131
124
|
background-color: var(--sys-color-border-interactive-active);
|
|
132
125
|
}
|
|
133
|
-
|
|
134
|
-
&:focus-visible {
|
|
135
|
-
outline: none;
|
|
136
|
-
box-shadow: inset 0 0 0 2px var(--sys-color-border-interactive-active);
|
|
137
|
-
border-radius: var(--sys-radius-inner);
|
|
138
|
-
}
|
|
139
126
|
}
|
|
140
127
|
|
|
141
|
-
// Feature locked tab
|
|
142
|
-
// Hover and pressed reuse the shared grey borders above.
|
|
128
|
+
// Feature locked tab
|
|
143
129
|
&.feature-locked {
|
|
144
130
|
// Only the lock icon (last <i>) gets feature-lock color;
|
|
145
131
|
// start icon inherits text color like in Angular
|
|
@@ -149,9 +135,8 @@
|
|
|
149
135
|
|
|
150
136
|
&.active {
|
|
151
137
|
color: var(--sys-color-text-featurelock);
|
|
152
|
-
text-shadow: 0.5px 0 0 currentColor;
|
|
153
138
|
|
|
154
|
-
> i
|
|
139
|
+
> i {
|
|
155
140
|
color: var(--sys-color-icon-featurelock);
|
|
156
141
|
}
|
|
157
142
|
|
|
@@ -188,7 +173,6 @@
|
|
|
188
173
|
// Tab panel
|
|
189
174
|
.ap-tabs-panel {
|
|
190
175
|
display: none;
|
|
191
|
-
// 24px: no sys spacing token covers it (the container scale stops at 16px).
|
|
192
176
|
padding: var(--ref-spacing-md) 0;
|
|
193
177
|
|
|
194
178
|
&.active {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
padding: 0 2px 0 var(--ref-spacing-xxxs);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// Mini size
|
|
27
|
+
// Mini size — 18px has no height token
|
|
28
28
|
&.mini {
|
|
29
29
|
height: 18px;
|
|
30
30
|
padding: 0 2px;
|
|
@@ -42,25 +42,24 @@
|
|
|
42
42
|
height: 12px;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
// Close button with <i class="ap-icon-close"> inside
|
|
45
|
+
// Close button with <i class="ap-icon-close"> inside — the close-button helper's spec
|
|
46
46
|
> button {
|
|
47
|
-
// Action icon, deliberately neutral rather than tinted (Figma: color/icon/secondary)
|
|
48
|
-
color: var(--sys-color-icon-secondary);
|
|
49
47
|
display: flex;
|
|
50
48
|
justify-content: center;
|
|
51
49
|
align-items: center;
|
|
52
50
|
flex-shrink: 0;
|
|
53
|
-
width:
|
|
54
|
-
max-width:
|
|
55
|
-
height:
|
|
56
|
-
max-height:
|
|
51
|
+
width: 20px;
|
|
52
|
+
max-width: 20px;
|
|
53
|
+
height: 20px;
|
|
54
|
+
max-height: 20px;
|
|
57
55
|
border-radius: 50%;
|
|
58
56
|
background: transparent;
|
|
59
57
|
border: none;
|
|
60
|
-
padding:
|
|
58
|
+
padding: 0;
|
|
61
59
|
outline: none;
|
|
62
60
|
cursor: pointer;
|
|
63
61
|
transition: background-color 0.25s;
|
|
62
|
+
color: var(--sys-color-icon-default);
|
|
64
63
|
|
|
65
64
|
> i {
|
|
66
65
|
width: 12px;
|
|
@@ -74,11 +73,11 @@
|
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
&:hover {
|
|
77
|
-
background: var(--
|
|
76
|
+
background: var(--sys-color-surface-interactive-hovered);
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
&:active {
|
|
81
|
-
background: var(--
|
|
80
|
+
background: var(--sys-color-surface-interactive-clicked);
|
|
82
81
|
outline: none;
|
|
83
82
|
}
|
|
84
83
|
}
|
|
@@ -94,64 +93,25 @@
|
|
|
94
93
|
}
|
|
95
94
|
}
|
|
96
95
|
|
|
97
|
-
// Color variants
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
> i {
|
|
104
|
-
color: var(--sys-color-icon-category-blue);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&.grey {
|
|
109
|
-
background-color: var(--sys-color-surface-category-grey);
|
|
110
|
-
color: var(--sys-color-text-category-grey);
|
|
111
|
-
|
|
112
|
-
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
113
|
-
> i {
|
|
114
|
-
color: var(--sys-color-icon-category-grey);
|
|
96
|
+
// Color variants. The leading icon inherits the text colour; the close button does not —
|
|
97
|
+
// it keeps the helper's neutral glyph, which is what the spec draws.
|
|
98
|
+
@each $hue in ('blue', 'grey', 'menthol', 'green', 'yellow', 'red') {
|
|
99
|
+
&.#{$hue} {
|
|
100
|
+
background-color: var(--sys-color-surface-category-#{$hue});
|
|
101
|
+
color: var(--sys-color-text-category-#{$hue});
|
|
115
102
|
}
|
|
116
103
|
}
|
|
117
104
|
|
|
105
|
+
// V3 dropped the orange category in favour of yellow. Left on the V2 ramps, border
|
|
106
|
+
// included, so existing tagOrange tags render exactly as before.
|
|
118
107
|
&.tagOrange {
|
|
119
|
-
background-color: var(--
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
123
|
-
> i {
|
|
124
|
-
color: var(--sys-color-icon-category-orange);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&.menthol {
|
|
129
|
-
background-color: var(--sys-color-surface-category-menthol);
|
|
130
|
-
color: var(--sys-color-text-category-menthol);
|
|
108
|
+
background-color: var(--ref-color-tag-orange-10);
|
|
109
|
+
border: 1px solid var(--ref-color-tag-orange-20);
|
|
110
|
+
color: var(--ref-color-tag-orange-150);
|
|
131
111
|
|
|
132
|
-
//
|
|
133
|
-
>
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&.green {
|
|
139
|
-
background-color: var(--sys-color-surface-category-green);
|
|
140
|
-
color: var(--sys-color-text-category-green);
|
|
141
|
-
|
|
142
|
-
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
143
|
-
> i {
|
|
144
|
-
color: var(--sys-color-icon-category-green);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&.red {
|
|
149
|
-
background-color: var(--sys-color-surface-category-red);
|
|
150
|
-
color: var(--sys-color-text-category-red);
|
|
151
|
-
|
|
152
|
-
// Leading content icon carries the category colour (Figma: color/icon/category/*)
|
|
153
|
-
> i {
|
|
154
|
-
color: var(--sys-color-icon-category-red);
|
|
112
|
+
// Keeps the border compensation the other hues no longer need.
|
|
113
|
+
&:has(> button) {
|
|
114
|
+
padding-right: 1px;
|
|
155
115
|
}
|
|
156
116
|
}
|
|
157
117
|
}
|
|
@@ -175,5 +135,5 @@
|
|
|
175
135
|
.ap-tag-list {
|
|
176
136
|
display: flex;
|
|
177
137
|
flex-wrap: wrap;
|
|
178
|
-
gap: var(--
|
|
138
|
+
gap: var(--ref-spacing-xxs);
|
|
179
139
|
}
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
@use 'mixins' as m;
|
|
3
3
|
|
|
4
4
|
// Textarea field container
|
|
5
|
-
//
|
|
6
|
-
// Same treatment as the input (V2 Style Guide - Tokens, node 1207:11220): the field
|
|
7
|
-
// is an input, so it reads the semantic `input/*` state matrix. The
|
|
8
|
-
// `--comp-forms-*` metrics stay — that tier is shared with select and the legacy
|
|
9
|
-
// input, which the frame does not cover.
|
|
10
5
|
.ap-textarea-field {
|
|
11
6
|
display: flex;
|
|
12
7
|
flex-direction: column;
|
|
@@ -21,7 +16,7 @@
|
|
|
21
16
|
font-weight: var(--comp-forms-label-font-weight);
|
|
22
17
|
line-height: var(--comp-forms-label-line-height);
|
|
23
18
|
font-family: var(--comp-forms-label-font-family);
|
|
24
|
-
color: var(--
|
|
19
|
+
color: var(--comp-forms-label-text-color);
|
|
25
20
|
|
|
26
21
|
// Description — implicit > label > small
|
|
27
22
|
> small {
|
|
@@ -29,7 +24,7 @@
|
|
|
29
24
|
font-weight: var(--comp-forms-label-description-text-font-weight);
|
|
30
25
|
line-height: var(--comp-forms-label-description-text-line-height);
|
|
31
26
|
font-family: var(--comp-forms-label-description-text-font-family);
|
|
32
|
-
color: var(--
|
|
27
|
+
color: var(--comp-forms-label-description-text-color);
|
|
33
28
|
}
|
|
34
29
|
}
|
|
35
30
|
|
|
@@ -38,52 +33,53 @@
|
|
|
38
33
|
resize: none;
|
|
39
34
|
width: 100%;
|
|
40
35
|
min-width: 256px;
|
|
41
|
-
border: 1px solid var(--
|
|
42
|
-
background-color: var(--
|
|
36
|
+
border: 1px solid var(--comp-input-border-default-color);
|
|
37
|
+
background-color: var(--comp-input-fill-color);
|
|
43
38
|
padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
|
|
44
|
-
border-radius: var(--
|
|
39
|
+
border-radius: var(--comp-input-border-radius);
|
|
45
40
|
font-family: var(--comp-input-text-font-family);
|
|
46
41
|
font-size: var(--comp-input-text-size);
|
|
47
42
|
font-weight: var(--comp-input-text-font-weight);
|
|
48
|
-
color: var(--
|
|
43
|
+
color: var(--comp-input-text-default-color);
|
|
49
44
|
box-sizing: border-box;
|
|
50
45
|
outline: none;
|
|
51
46
|
|
|
52
47
|
&::placeholder {
|
|
53
|
-
color: var(--
|
|
48
|
+
color: var(--comp-input-text-placeholder-color);
|
|
54
49
|
}
|
|
55
50
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
// interacted with — the message underneath keeps the red or green.
|
|
59
|
-
&:hover:not(:disabled) {
|
|
60
|
-
border-color: var(--sys-color-border-input-hovered);
|
|
51
|
+
&:hover:not(:focus):not(:disabled) {
|
|
52
|
+
border-color: var(--comp-input-border-hover-color);
|
|
61
53
|
}
|
|
62
54
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
&:focus:not(:disabled):not(:active) {
|
|
68
|
-
border-color: var(--sys-color-border-input-active);
|
|
55
|
+
// Pressed is its own shade now, distinct from focus
|
|
56
|
+
&:active:not(:focus):not(:disabled) {
|
|
57
|
+
border-color: var(--comp-input-border-clicked-color);
|
|
69
58
|
}
|
|
70
59
|
|
|
71
60
|
&:disabled {
|
|
72
|
-
background-color: var(--
|
|
73
|
-
|
|
74
|
-
color: var(--sys-color-text-interactive-disabled);
|
|
61
|
+
background-color: var(--comp-input-fill-disabled-color);
|
|
62
|
+
color: var(--comp-input-text-disabled-color);
|
|
75
63
|
cursor: default;
|
|
76
64
|
}
|
|
77
65
|
}
|
|
78
66
|
|
|
79
67
|
// Invalid state — on container
|
|
80
68
|
&.invalid > textarea {
|
|
81
|
-
border-color: var(--
|
|
69
|
+
border-color: var(--comp-input-border-error-color);
|
|
70
|
+
|
|
71
|
+
&:hover:not(:focus):not(:disabled) {
|
|
72
|
+
border-color: var(--comp-input-border-error-color);
|
|
73
|
+
}
|
|
82
74
|
}
|
|
83
75
|
|
|
84
76
|
// Valid state — on container
|
|
85
77
|
&.valid > textarea {
|
|
86
|
-
border-color: var(--
|
|
78
|
+
border-color: var(--comp-input-border-success-color);
|
|
79
|
+
|
|
80
|
+
&:hover:not(:focus):not(:disabled) {
|
|
81
|
+
border-color: var(--comp-input-border-success-color);
|
|
82
|
+
}
|
|
87
83
|
}
|
|
88
84
|
|
|
89
85
|
// Resize variants — on container
|
|
@@ -112,9 +108,8 @@
|
|
|
112
108
|
color: var(--sys-color-text-secondary);
|
|
113
109
|
text-align: right;
|
|
114
110
|
|
|
115
|
-
// `warning` has no counterpart in the frame and keeps its own orange.
|
|
116
111
|
&.warning {
|
|
117
|
-
color: var(--
|
|
112
|
+
color: var(--sys-color-text-warning);
|
|
118
113
|
}
|
|
119
114
|
|
|
120
115
|
&.error {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Agorapulse Toggle Styles
|
|
2
2
|
@use 'mixins' as m;
|
|
3
3
|
|
|
4
|
+
// The track takes the border/input/* family, not a surface — that is what the spec binds.
|
|
4
5
|
.ap-toggle-container {
|
|
5
6
|
display: flex;
|
|
6
7
|
align-items: center;
|
|
@@ -61,22 +62,22 @@
|
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
// Hover
|
|
65
|
-
&:hover:not(:has(input:disabled)) > i
|
|
66
|
-
&:has(input:focus-visible):not(:has(input:disabled)) > i {
|
|
65
|
+
// Hover state (unchecked)
|
|
66
|
+
&:hover:not(:has(input:disabled)) > i {
|
|
67
67
|
background: var(--sys-color-border-input-hovered);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
&:has(input:focus-visible):not(:has(input:disabled)):has(input:checked) > i {
|
|
72
|
-
background: var(--sys-color-border-input-active-hovered);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Pressed — a distinct shade the unchecked side did not carry before.
|
|
70
|
+
// Active state (unchecked)
|
|
76
71
|
&:active:not(:has(input:disabled)) > i {
|
|
77
72
|
background: var(--sys-color-border-input-clicked);
|
|
78
73
|
}
|
|
79
74
|
|
|
75
|
+
// Hover state (checked)
|
|
76
|
+
&:hover:not(:has(input:disabled)):has(input:checked) > i {
|
|
77
|
+
background: var(--sys-color-border-input-active-hovered);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Active state (checked)
|
|
80
81
|
&:active:not(:has(input:disabled)):has(input:checked) > i {
|
|
81
82
|
background: var(--sys-color-border-input-active-clicked);
|
|
82
83
|
}
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
// Disabled + checked
|
|
114
|
+
// Disabled + checked — the spec tints this pale blue rather than greying it out
|
|
114
115
|
&:has(input:disabled:checked) > i {
|
|
115
116
|
background: var(--sys-color-border-input-active-disabled);
|
|
116
117
|
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
display: flex;
|
|
125
126
|
align-items: center;
|
|
126
127
|
@include m.text-style('body');
|
|
127
|
-
color: var(--
|
|
128
|
+
color: var(--sys-color-text-interactive-default);
|
|
128
129
|
user-select: none;
|
|
129
130
|
cursor: pointer;
|
|
130
131
|
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
max-width: 350px;
|
|
19
19
|
background: var(--sys-color-surface-default);
|
|
20
20
|
border-radius: var(--sys-radius-inner);
|
|
21
|
-
//
|
|
22
|
-
box-shadow
|
|
23
|
-
|
|
24
|
-
0 4px 25px -2px rgba(52, 69, 99, 0.15);
|
|
21
|
+
// drop-shadow, not box-shadow: the arrow is a clipped ::after outside the box and a
|
|
22
|
+
// box-shadow would skip it. drop-shadow has no spread, so the spec's -2px is dropped.
|
|
23
|
+
filter: drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15));
|
|
25
24
|
// Viewport-relative, so a positioned host body (e.g. an Intercom banner margin) can't shift it.
|
|
26
25
|
position: fixed;
|
|
27
26
|
z-index: 9999999;
|
|
@@ -36,7 +35,7 @@
|
|
|
36
35
|
&.bottom-right,
|
|
37
36
|
&.left,
|
|
38
37
|
&.right {
|
|
39
|
-
padding: var(--
|
|
38
|
+
padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
|
|
40
39
|
color: var(--sys-color-text-default);
|
|
41
40
|
font-family: var(--sys-text-style-body-font-family);
|
|
42
41
|
font-size: var(--sys-text-style-body-size);
|
|
@@ -125,9 +124,13 @@
|
|
|
125
124
|
transform: translateX(calc(-100% + var(--ap-arrow-height) / 2)) translateY(-50%) rotate(90deg);
|
|
126
125
|
}
|
|
127
126
|
|
|
128
|
-
// Custom template tooltip (rich content)
|
|
129
|
-
// tooltip now — the design no longer distinguishes them by colour.
|
|
127
|
+
// Custom template tooltip (rich content) — same surface as the simple one now
|
|
130
128
|
&.custom {
|
|
129
|
+
background-color: var(--sys-color-surface-default);
|
|
131
130
|
color: var(--sys-color-text-default);
|
|
131
|
+
|
|
132
|
+
&::after {
|
|
133
|
+
background-color: var(--sys-color-surface-default);
|
|
134
|
+
}
|
|
132
135
|
}
|
|
133
136
|
}
|