@agorapulse/ui-theme 22.0.3-beta.1 → 22.0.6-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.6-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
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// The closed field takes the input's treatment and the panel takes the dropdown's
|
|
2
|
-
// (V2 Style Guide - Tokens, nodes 1207:11220 and 1204:10802). No pressed shade on the
|
|
3
|
-
// field: clicking it opens the panel, so `.ng-select-opened` takes over immediately and
|
|
4
|
-
// a separate `:active` colour would never be seen.
|
|
5
1
|
.ng-select.ap-select {
|
|
6
2
|
font-family: var(--sys-text-style-body-font-family);
|
|
7
3
|
.ng-select-container {
|
|
@@ -37,13 +33,13 @@
|
|
|
37
33
|
|
|
38
34
|
&.valid {
|
|
39
35
|
.ng-select-container {
|
|
40
|
-
border-color: var(--
|
|
36
|
+
border-color: var(--comp-input-border-success-color);
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
&.ng-invalid.ng-dirty.ng-touched {
|
|
45
41
|
.ng-select-container {
|
|
46
|
-
border-color: var(--
|
|
42
|
+
border-color: var(--comp-input-border-error-color);
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
45
|
|
|
@@ -51,13 +47,13 @@
|
|
|
51
47
|
&.ng-select-bottom,
|
|
52
48
|
&.ng-select-top {
|
|
53
49
|
.ng-select-container {
|
|
54
|
-
border-radius: var(--
|
|
50
|
+
border-radius: var(--ref-border-radius-sm);
|
|
55
51
|
border-color: var(--sys-color-border-input-default);
|
|
56
52
|
}
|
|
57
53
|
}
|
|
58
54
|
|
|
59
55
|
.ng-arrow {
|
|
60
|
-
border-color: transparent transparent var(--sys-color-
|
|
56
|
+
border-color: transparent transparent var(--sys-color-border-input-active);
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
.ng-select-container {
|
|
@@ -120,17 +116,17 @@
|
|
|
120
116
|
&.ng-select-disabled {
|
|
121
117
|
.ng-select-container {
|
|
122
118
|
background-color: var(--sys-color-surface-input-disabled);
|
|
123
|
-
border-color: var(--sys-color-border-input-
|
|
124
|
-
color: var(--sys-color-text-interactive-
|
|
119
|
+
border-color: var(--sys-color-border-input-default);
|
|
120
|
+
color: var(--sys-color-text-interactive-default);
|
|
125
121
|
|
|
126
122
|
&:hover {
|
|
127
123
|
cursor: default !important;
|
|
128
124
|
background-color: var(--sys-color-surface-input-disabled) !important;
|
|
129
|
-
border-color: var(--sys-color-border-input-
|
|
125
|
+
border-color: var(--sys-color-border-input-default) !important;
|
|
130
126
|
}
|
|
131
127
|
|
|
132
128
|
.ng-placeholder {
|
|
133
|
-
color: var(--sys-color-text-
|
|
129
|
+
color: var(--sys-color-text-subtle) !important;
|
|
134
130
|
}
|
|
135
131
|
|
|
136
132
|
.ng-value-container {
|
|
@@ -144,7 +140,7 @@
|
|
|
144
140
|
.inline-label {
|
|
145
141
|
padding-right: var(--ref-spacing-xxs);
|
|
146
142
|
border-right: 1px solid var(--comp-select-inline-separator-color);
|
|
147
|
-
color: var(--
|
|
143
|
+
color: var(--comp-select-inline-label-text-color);
|
|
148
144
|
}
|
|
149
145
|
|
|
150
146
|
ap-symbol.inline-symbol {
|
|
@@ -154,7 +150,7 @@
|
|
|
154
150
|
min-width: var(--comp-input-icon-size);
|
|
155
151
|
max-height: var(--comp-input-icon-size);
|
|
156
152
|
max-width: var(--comp-input-icon-size);
|
|
157
|
-
color: var(--
|
|
153
|
+
color: var(--comp-input-icon-color);
|
|
158
154
|
pointer-events: none;
|
|
159
155
|
box-sizing: content-box;
|
|
160
156
|
|
|
@@ -186,7 +182,7 @@
|
|
|
186
182
|
}
|
|
187
183
|
|
|
188
184
|
.text-item {
|
|
189
|
-
color: var(--sys-color-text-default);
|
|
185
|
+
color: var(--sys-color-text-interactive-default);
|
|
190
186
|
font-size: var(--ref-font-size-sm);
|
|
191
187
|
line-height: var(--ref-font-line-height-sm);
|
|
192
188
|
}
|
|
@@ -200,7 +196,7 @@
|
|
|
200
196
|
|
|
201
197
|
.ng-value {
|
|
202
198
|
margin: 0 !important;
|
|
203
|
-
color: var(--sys-color-text-default);
|
|
199
|
+
color: var(--sys-color-text-interactive-default);
|
|
204
200
|
font-weight: var(--sys-text-style-body-weight);
|
|
205
201
|
font-size: var(--sys-text-style-body-size);
|
|
206
202
|
line-height: var(--sys-text-style-body-line-height);
|
|
@@ -213,8 +209,8 @@
|
|
|
213
209
|
|
|
214
210
|
input {
|
|
215
211
|
height: 100%;
|
|
216
|
-
color: var(--sys-color-text-default) !important;
|
|
217
|
-
caret-color: var(--sys-color-text-default) !important;
|
|
212
|
+
color: var(--sys-color-text-interactive-default) !important;
|
|
213
|
+
caret-color: var(--sys-color-text-interactive-default) !important;
|
|
218
214
|
border-radius: unset;
|
|
219
215
|
}
|
|
220
216
|
}
|
|
@@ -232,13 +228,13 @@
|
|
|
232
228
|
|
|
233
229
|
&.with-error {
|
|
234
230
|
.ng-select-container {
|
|
235
|
-
border-color: var(--
|
|
231
|
+
border-color: var(--comp-input-border-error-color);
|
|
236
232
|
}
|
|
237
233
|
}
|
|
238
234
|
|
|
239
235
|
&.with-success {
|
|
240
236
|
.ng-select-container {
|
|
241
|
-
border-color: var(--
|
|
237
|
+
border-color: var(--comp-input-border-success-color);
|
|
242
238
|
}
|
|
243
239
|
}
|
|
244
240
|
}
|
|
@@ -249,11 +245,11 @@
|
|
|
249
245
|
border: none;
|
|
250
246
|
box-shadow: var(--comp-select-shadow);
|
|
251
247
|
padding: var(--comp-select-padding-vertical) 0;
|
|
252
|
-
background-color: var(--
|
|
248
|
+
background-color: var(--comp-select-background-color);
|
|
253
249
|
|
|
254
250
|
&.ng-select-bottom {
|
|
255
251
|
margin-top: var(--ref-spacing-xxxs);
|
|
256
|
-
border-radius: var(--
|
|
252
|
+
border-radius: var(--ref-border-radius-sm);
|
|
257
253
|
}
|
|
258
254
|
|
|
259
255
|
.ng-dropdown-panel-items {
|
|
@@ -271,7 +267,10 @@
|
|
|
271
267
|
padding-left: 0;
|
|
272
268
|
}
|
|
273
269
|
|
|
274
|
-
|
|
270
|
+
// Highlight comes from `.ng-option-marked` only. `:hover` would add a second, stale
|
|
271
|
+
// source: the browser keeps it on the element it was last resolved against, so a
|
|
272
|
+
// keyboard-driven scroll leaves a phantom background behind, and JS cannot clear it.
|
|
273
|
+
// ng-select marks on `mouseover`, so real hovering still highlights.
|
|
275
274
|
&.ng-option-marked:not(.ng-option-disabled) {
|
|
276
275
|
.option {
|
|
277
276
|
background-color: var(--sys-color-surface-interactive-hovered);
|
|
@@ -292,10 +291,10 @@
|
|
|
292
291
|
|
|
293
292
|
&:focus:not(.ng-option-disabled) {
|
|
294
293
|
.option {
|
|
295
|
-
background-color: var(--sys-color-surface-interactive-
|
|
294
|
+
background-color: var(--sys-color-surface-interactive-clicked);
|
|
296
295
|
}
|
|
297
296
|
.feature-locked-option {
|
|
298
|
-
background-color: var(--sys-color-surface-interactive-featurelock-active-
|
|
297
|
+
background-color: var(--sys-color-surface-interactive-featurelock-active-clicked);
|
|
299
298
|
}
|
|
300
299
|
}
|
|
301
300
|
|
|
@@ -310,8 +309,18 @@
|
|
|
310
309
|
font-weight: var(--comp-select-one-line-selected-text-font-weight);
|
|
311
310
|
}
|
|
312
311
|
&.multiple {
|
|
312
|
+
background-color: var(--sys-color-surface-interactive-active);
|
|
313
|
+
|
|
313
314
|
.option-item {
|
|
314
|
-
color: var(--sys-color-text-interactive-
|
|
315
|
+
color: var(--sys-color-text-interactive-active);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.label {
|
|
319
|
+
color: var(--sys-color-text-interactive-active);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.caption {
|
|
323
|
+
color: var(--sys-color-text-interactive-active);
|
|
315
324
|
}
|
|
316
325
|
}
|
|
317
326
|
|
|
@@ -319,7 +328,7 @@
|
|
|
319
328
|
background-color: var(--sys-color-surface-interactive-active);
|
|
320
329
|
color: var(--sys-color-text-interactive-active);
|
|
321
330
|
ap-symbol:not(.option-selected) .svg {
|
|
322
|
-
color: var(--sys-color-
|
|
331
|
+
color: var(--sys-color-text-interactive-active);
|
|
323
332
|
}
|
|
324
333
|
ap-avatar ap-symbol:not(.option-selected) .svg {
|
|
325
334
|
color: inherit;
|
|
@@ -334,6 +343,20 @@
|
|
|
334
343
|
}
|
|
335
344
|
}
|
|
336
345
|
|
|
346
|
+
// A selected row reacts on its own ramp. ng-select marks the selected option when
|
|
347
|
+
// the panel opens, so marked alone must not read as a hover here.
|
|
348
|
+
&.ng-option-selected.ng-option-marked:not(.ng-option-disabled):hover .option {
|
|
349
|
+
background-color: var(--sys-color-surface-interactive-active-hovered);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
&.ng-option-selected:active:not(.ng-option-disabled) .option {
|
|
353
|
+
background-color: var(--sys-color-surface-interactive-active-clicked);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
&.ng-option-selected.ng-option-disabled .option {
|
|
357
|
+
color: var(--sys-color-text-interactive-active-disabled);
|
|
358
|
+
}
|
|
359
|
+
|
|
337
360
|
&.ng-option-marked:not(.ng-option-selected) {
|
|
338
361
|
background-color: transparent;
|
|
339
362
|
&:hover {
|
|
@@ -355,7 +378,7 @@
|
|
|
355
378
|
}
|
|
356
379
|
|
|
357
380
|
.caption {
|
|
358
|
-
color: var(--sys-color-text-secondary);
|
|
381
|
+
color: var(--sys-color-text-interactive-secondary);
|
|
359
382
|
}
|
|
360
383
|
|
|
361
384
|
&.multiple {
|
|
@@ -364,7 +387,7 @@
|
|
|
364
387
|
}
|
|
365
388
|
|
|
366
389
|
.caption {
|
|
367
|
-
color: var(--sys-color-text-secondary);
|
|
390
|
+
color: var(--sys-color-text-interactive-secondary);
|
|
368
391
|
}
|
|
369
392
|
}
|
|
370
393
|
}
|
|
@@ -380,7 +403,7 @@
|
|
|
380
403
|
position: absolute;
|
|
381
404
|
inset: 0;
|
|
382
405
|
opacity: 0.6;
|
|
383
|
-
background-color: var(--sys-color-surface-default);
|
|
406
|
+
background-color: var(--sys-color-surface-interactive-default);
|
|
384
407
|
cursor: default;
|
|
385
408
|
width: 100%;
|
|
386
409
|
height: 100%;
|
|
@@ -389,7 +412,7 @@
|
|
|
389
412
|
|
|
390
413
|
&:not(.ng-optgroup):not(:has(.option)) {
|
|
391
414
|
padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
|
|
392
|
-
color: var(--sys-color-text-secondary);
|
|
415
|
+
color: var(--sys-color-text-interactive-secondary);
|
|
393
416
|
font-family: var(--comp-select-one-line-text-font-family);
|
|
394
417
|
font-size: var(--comp-select-one-line-text-size);
|
|
395
418
|
font-weight: var(--comp-select-one-line-text-font-weight);
|
|
@@ -415,7 +438,7 @@
|
|
|
415
438
|
line-height: var(--ref-font-line-height-sm);
|
|
416
439
|
font-style: italic;
|
|
417
440
|
font-weight: var(--ref-font-weight-regular);
|
|
418
|
-
color: var(--sys-color-text-secondary);
|
|
441
|
+
color: var(--sys-color-text-interactive-secondary);
|
|
419
442
|
}
|
|
420
443
|
}
|
|
421
444
|
|
|
@@ -449,7 +472,7 @@
|
|
|
449
472
|
.divider {
|
|
450
473
|
width: 100%;
|
|
451
474
|
height: 1px;
|
|
452
|
-
background-color: var(--
|
|
475
|
+
background-color: var(--comp-select-separator-color);
|
|
453
476
|
margin: var(--ref-spacing-xxs) 0;
|
|
454
477
|
}
|
|
455
478
|
|
|
@@ -459,8 +482,8 @@
|
|
|
459
482
|
box-sizing: border-box;
|
|
460
483
|
min-height: var(--comp-select-one-line-height);
|
|
461
484
|
max-height: var(--comp-select-one-line-height);
|
|
462
|
-
color: var(--
|
|
463
|
-
background-color: var(--
|
|
485
|
+
color: var(--comp-select-one-line-text-color);
|
|
486
|
+
background-color: var(--comp-select-one-line-background-color);
|
|
464
487
|
font-family: var(--comp-select-one-line-text-font-family);
|
|
465
488
|
font-size: var(--comp-select-one-line-text-size);
|
|
466
489
|
font-weight: var(--comp-select-one-line-text-font-weight);
|
|
@@ -480,7 +503,7 @@
|
|
|
480
503
|
}
|
|
481
504
|
|
|
482
505
|
ap-symbol {
|
|
483
|
-
color: var(--
|
|
506
|
+
color: var(--comp-select-one-line-text-color);
|
|
484
507
|
}
|
|
485
508
|
|
|
486
509
|
.option-item {
|
|
@@ -492,7 +515,7 @@
|
|
|
492
515
|
|
|
493
516
|
&.not-found {
|
|
494
517
|
padding: var(--ref-spacing-sm) var(--ref-spacing-sm) var(--ref-spacing-xxs) var(--ref-spacing-sm);
|
|
495
|
-
color: var(--sys-color-text-secondary);
|
|
518
|
+
color: var(--sys-color-text-interactive-secondary);
|
|
496
519
|
font-style: italic;
|
|
497
520
|
}
|
|
498
521
|
|
|
@@ -513,7 +536,7 @@
|
|
|
513
536
|
font-family: var(--comp-select-two-line-title-text-font-family);
|
|
514
537
|
font-size: var(--comp-select-two-line-title-text-size);
|
|
515
538
|
line-height: var(--comp-select-two-line-title-text-line-height);
|
|
516
|
-
color: var(--
|
|
539
|
+
color: var(--comp-select-two-line-title-text-color);
|
|
517
540
|
}
|
|
518
541
|
|
|
519
542
|
.caption {
|
|
@@ -521,7 +544,7 @@
|
|
|
521
544
|
font-family: var(--comp-select-two-line-caption-text-font-family);
|
|
522
545
|
font-size: var(--comp-select-two-line-caption-text-size);
|
|
523
546
|
line-height: var(--comp-select-two-line-caption-text-line-height);
|
|
524
|
-
color: var(--
|
|
547
|
+
color: var(--comp-select-two-line-caption-text-color);
|
|
525
548
|
display: inline-block;
|
|
526
549
|
overflow: hidden;
|
|
527
550
|
white-space: nowrap;
|
|
@@ -556,11 +579,11 @@
|
|
|
556
579
|
display: flex;
|
|
557
580
|
width: 100%;
|
|
558
581
|
height: 100%;
|
|
559
|
-
background-color: var(--
|
|
582
|
+
background-color: var(--comp-select-group-background-color);
|
|
560
583
|
min-height: 32px;
|
|
561
584
|
box-sizing: border-box;
|
|
562
585
|
padding: var(--comp-select-group-padding-vertical) var(--comp-select-group-padding-horizontal);
|
|
563
|
-
border-top: 1px solid var(--
|
|
586
|
+
border-top: 1px solid var(--comp-select-group-border-top-color);
|
|
564
587
|
|
|
565
588
|
.group-label {
|
|
566
589
|
white-space: initial;
|
|
@@ -568,7 +591,7 @@
|
|
|
568
591
|
font-size: var(--comp-select-group-text-size);
|
|
569
592
|
line-height: var(--comp-select-group-text-line-height);
|
|
570
593
|
font-family: var(--comp-select-group-text-font-family);
|
|
571
|
-
color: var(--
|
|
594
|
+
color: var(--comp-select-group-text-color);
|
|
572
595
|
}
|
|
573
596
|
}
|
|
574
597
|
}
|
|
@@ -578,7 +601,7 @@
|
|
|
578
601
|
margin-bottom: var(--ref-spacing-xxs);
|
|
579
602
|
padding: 0 var(--comp-select-search-bar-padding-horizontal) var(--comp-select-search-bar-margin-bottom)
|
|
580
603
|
var(--comp-select-search-bar-padding-horizontal);
|
|
581
|
-
border-bottom: 1px solid var(--
|
|
604
|
+
border-bottom: 1px solid var(--comp-select-search-bar-border-bottom-color);
|
|
582
605
|
|
|
583
606
|
.select-all-checkbox {
|
|
584
607
|
padding-left: var(--ref-spacing-xxs);
|
|
@@ -594,7 +617,7 @@
|
|
|
594
617
|
}
|
|
595
618
|
|
|
596
619
|
.standalone-link {
|
|
597
|
-
color: var(--sys-color-
|
|
620
|
+
color: var(--sys-color-text-interactive-active);
|
|
598
621
|
font-weight: var(--ref-font-weight-bold);
|
|
599
622
|
font-family: var(--ref-font-family);
|
|
600
623
|
background-color: transparent;
|
package/assets/style/_table.scss
CHANGED
|
@@ -17,7 +17,7 @@ $sort-icon-size: 16px;
|
|
|
17
17
|
border-radius: var(--ref-border-radius-md);
|
|
18
18
|
border-collapse: separate;
|
|
19
19
|
border-spacing: 0;
|
|
20
|
-
background-color: var(--
|
|
20
|
+
background-color: var(--sys-color-surface-default);
|
|
21
21
|
|
|
22
22
|
// ========================================================================
|
|
23
23
|
// Table Structure
|
|
@@ -38,10 +38,26 @@ $sort-icon-size: 16px;
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
tr[cdk-row] {
|
|
41
|
-
background-color: var(--
|
|
41
|
+
background-color: var(--sys-color-surface-interactive-default);
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
background-color: var(--sys-color-surface-interactive-hovered);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:active {
|
|
48
|
+
background-color: var(--sys-color-surface-interactive-clicked);
|
|
49
|
+
}
|
|
42
50
|
|
|
43
51
|
&.selected {
|
|
44
|
-
background-color: var(--
|
|
52
|
+
background-color: var(--sys-color-surface-interactive-active);
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
background-color: var(--sys-color-surface-interactive-active-hovered);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:active {
|
|
59
|
+
background-color: var(--sys-color-surface-interactive-active-clicked);
|
|
60
|
+
}
|
|
45
61
|
}
|
|
46
62
|
|
|
47
63
|
&:last-child {
|
|
@@ -84,19 +100,35 @@ $sort-icon-size: 16px;
|
|
|
84
100
|
}
|
|
85
101
|
|
|
86
102
|
&.ap-table--outer-border {
|
|
87
|
-
border: 1px solid var(--
|
|
103
|
+
border: 1px solid var(--sys-color-border-default);
|
|
88
104
|
}
|
|
89
105
|
|
|
90
106
|
&.ap-table--header-background th[cdk-header-cell] {
|
|
91
|
-
background-color: var(--
|
|
107
|
+
background-color: var(--sys-color-surface-tertiary);
|
|
92
108
|
}
|
|
93
109
|
|
|
94
110
|
&.ap-table--striped tbody tr[cdk-row]:nth-child(even) {
|
|
95
|
-
background-color: var(--
|
|
111
|
+
background-color: var(--sys-color-surface-secondary);
|
|
112
|
+
|
|
113
|
+
&:hover {
|
|
114
|
+
background-color: var(--sys-color-surface-interactive-hovered);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:active {
|
|
118
|
+
background-color: var(--sys-color-surface-interactive-clicked);
|
|
119
|
+
}
|
|
96
120
|
}
|
|
97
121
|
|
|
98
122
|
&.ap-table--striped tbody tr[cdk-row].selected {
|
|
99
|
-
background-color: var(--
|
|
123
|
+
background-color: var(--sys-color-surface-interactive-active);
|
|
124
|
+
|
|
125
|
+
&:hover {
|
|
126
|
+
background-color: var(--sys-color-surface-interactive-active-hovered);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:active {
|
|
130
|
+
background-color: var(--sys-color-surface-interactive-active-clicked);
|
|
131
|
+
}
|
|
100
132
|
}
|
|
101
133
|
|
|
102
134
|
&.ap-table--small {
|
|
@@ -132,10 +164,10 @@ $sort-icon-size: 16px;
|
|
|
132
164
|
text-align: left;
|
|
133
165
|
font-size: var(--ref-font-size-xs);
|
|
134
166
|
font-weight: var(--ref-font-weight-bold);
|
|
135
|
-
color: var(--
|
|
167
|
+
color: var(--sys-color-text-default);
|
|
136
168
|
border: none;
|
|
137
|
-
border-bottom: 1px solid var(--
|
|
138
|
-
background-color: var(--
|
|
169
|
+
border-bottom: 1px solid var(--sys-color-border-default);
|
|
170
|
+
background-color: var(--sys-color-surface-default);
|
|
139
171
|
position: sticky;
|
|
140
172
|
top: 0;
|
|
141
173
|
z-index: 1;
|
|
@@ -166,7 +198,7 @@ $sort-icon-size: 16px;
|
|
|
166
198
|
}
|
|
167
199
|
|
|
168
200
|
&.ap-table__header-cell--sorted {
|
|
169
|
-
color: var(--
|
|
201
|
+
color: var(--sys-color-text-interactive-active);
|
|
170
202
|
|
|
171
203
|
.ap-table__header-sort-symbol {
|
|
172
204
|
opacity: 1;
|
|
@@ -186,9 +218,9 @@ $sort-icon-size: 16px;
|
|
|
186
218
|
td[cdk-cell] {
|
|
187
219
|
padding: 0 var(--ref-spacing-xs);
|
|
188
220
|
font-size: var(--ref-font-size-sm);
|
|
189
|
-
color: var(--
|
|
221
|
+
color: var(--sys-color-text-default);
|
|
190
222
|
border: none;
|
|
191
|
-
border-bottom: 1px solid var(--
|
|
223
|
+
border-bottom: 1px solid var(--sys-color-border-default);
|
|
192
224
|
height: $cell-height;
|
|
193
225
|
vertical-align: middle;
|
|
194
226
|
font-family: Averta;
|
|
@@ -225,16 +257,16 @@ $sort-icon-size: 16px;
|
|
|
225
257
|
td[cdk-footer-cell] {
|
|
226
258
|
padding: 0 var(--ref-spacing-xs);
|
|
227
259
|
font-size: var(--ref-font-size-sm);
|
|
228
|
-
color: var(--
|
|
260
|
+
color: var(--sys-color-text-default);
|
|
229
261
|
border: none;
|
|
230
|
-
border-top: 1px solid var(--
|
|
262
|
+
border-top: 1px solid var(--sys-color-border-default);
|
|
231
263
|
height: $cell-height;
|
|
232
264
|
vertical-align: middle;
|
|
233
265
|
font-family: Averta;
|
|
234
266
|
position: sticky;
|
|
235
267
|
bottom: 0;
|
|
236
268
|
z-index: 1;
|
|
237
|
-
background-color: var(--
|
|
269
|
+
background-color: var(--sys-color-surface-default);
|
|
238
270
|
|
|
239
271
|
&.ap-table__footer-cell--right {
|
|
240
272
|
text-align: right;
|
|
@@ -291,7 +323,7 @@ $sort-icon-size: 16px;
|
|
|
291
323
|
}
|
|
292
324
|
|
|
293
325
|
.ap-table__cell-text {
|
|
294
|
-
color: var(--
|
|
326
|
+
color: var(--sys-color-text-default);
|
|
295
327
|
font-size: var(--ref-font-size-sm);
|
|
296
328
|
line-height: var(--ref-font-line-height-sm);
|
|
297
329
|
|
|
@@ -301,7 +333,7 @@ $sort-icon-size: 16px;
|
|
|
301
333
|
}
|
|
302
334
|
|
|
303
335
|
.ap-table__cell-description {
|
|
304
|
-
color: var(--
|
|
336
|
+
color: var(--sys-color-text-secondary);
|
|
305
337
|
font-size: var(--ref-font-size-xs);
|
|
306
338
|
line-height: var(--ref-font-line-height-xs);
|
|
307
339
|
}
|
|
@@ -335,13 +367,13 @@ tr[cdk-row] {
|
|
|
335
367
|
border: none;
|
|
336
368
|
padding: 0 var(--ref-spacing-xs);
|
|
337
369
|
font-size: var(--ref-font-size-sm);
|
|
338
|
-
color: var(--
|
|
370
|
+
color: var(--sys-color-text-default);
|
|
339
371
|
font-family: Averta;
|
|
340
372
|
background-color: transparent;
|
|
341
373
|
}
|
|
342
374
|
|
|
343
375
|
.ap-table__cell-text {
|
|
344
|
-
color: var(--
|
|
376
|
+
color: var(--sys-color-text-default);
|
|
345
377
|
font-size: var(--ref-font-size-sm);
|
|
346
378
|
font-family: Averta;
|
|
347
379
|
|
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
max-width: 350px;
|
|
9
9
|
background: var(--sys-color-surface-default);
|
|
10
10
|
border-radius: var(--sys-radius-inner);
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
0 4px 25px -2px rgba(52, 69, 99, 0.15);
|
|
11
|
+
// drop-shadow, not box-shadow: the arrow sits outside the box and box-shadow would skip
|
|
12
|
+
// it. drop-shadow has no spread, so the spec's -2px is dropped.
|
|
13
|
+
filter: drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15));
|
|
15
14
|
// Viewport-relative, so a positioned host body (e.g. an Intercom banner margin) can't shift it.
|
|
16
15
|
position: fixed;
|
|
17
16
|
z-index: var(--ap-tooltip-z-index);
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
.ap-content-container {
|
|
50
|
-
padding: var(--
|
|
49
|
+
padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
|
|
51
50
|
border-radius: var(--sys-radius-inner);
|
|
52
51
|
|
|
53
52
|
.ap-tooltip-text {
|
|
@@ -140,9 +139,9 @@
|
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
|
|
143
|
-
// Same surface and shadow as the base tooltip now — the design no longer
|
|
144
|
-
// distinguishes them by colour.
|
|
145
142
|
&.ap-tooltip-custom-template {
|
|
143
|
+
background-color: var(--sys-color-surface-default);
|
|
144
|
+
|
|
146
145
|
.ap-tooltip-text {
|
|
147
146
|
color: var(--sys-color-text-default);
|
|
148
147
|
}
|
|
@@ -19,46 +19,36 @@ form.full-width {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
// Bare `input` and `textarea` elements. The design treats them identically, and this
|
|
23
|
-
// block is the one that decides the rendering: its five stacked `:not()`s out-specify
|
|
24
|
-
// both the CSS-UI and the Angular component layers, so the semantic `input/*` matrix
|
|
25
|
-
// has to land here too (V2 Style Guide - Tokens, node 1207:11220).
|
|
26
22
|
input,
|
|
27
23
|
textarea {
|
|
28
|
-
border: 1px solid var(--
|
|
29
|
-
border-radius: var(--
|
|
30
|
-
color: var(--
|
|
24
|
+
border: 1px solid var(--comp-input-border-default-color);
|
|
25
|
+
border-radius: var(--comp-input-border-radius);
|
|
26
|
+
color: var(--comp-input-text-default-color);
|
|
31
27
|
font-family: var(--comp-input-text-font-family);
|
|
32
28
|
font-size: var(--comp-input-text-size);
|
|
33
29
|
font-weight: var(--comp-input-text-font-weight);
|
|
34
30
|
padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
|
|
35
31
|
|
|
36
32
|
&::placeholder {
|
|
37
|
-
color: var(--
|
|
33
|
+
color: var(--comp-input-text-placeholder-color);
|
|
38
34
|
}
|
|
39
35
|
// Disabled
|
|
40
36
|
&:disabled {
|
|
41
|
-
background-color: var(--
|
|
42
|
-
|
|
43
|
-
color: var(--sys-color-text-interactive-disabled);
|
|
37
|
+
background-color: var(--comp-input-fill-disabled-color);
|
|
38
|
+
color: var(--comp-input-text-disabled-color);
|
|
44
39
|
}
|
|
45
40
|
// Focus
|
|
46
|
-
&:focus:not(.transparent)
|
|
47
|
-
border-color: var(--
|
|
41
|
+
&:focus:not(.transparent) {
|
|
42
|
+
border-color: var(--comp-input-border-focused-color);
|
|
48
43
|
}
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// Invalid — hover, press and focus replace the border, which is why those three
|
|
54
|
-
// states are excluded here rather than the other way round.
|
|
55
|
-
&.invalid:not([disabled]):not(.transparent):not(:focus):not(:hover):not(:active),
|
|
56
|
-
&.ng-invalid.ng-dirty.ng-touched:not([disabled]):not(:focus):not(:hover):not(:active):not(.transparent) {
|
|
57
|
-
border: 1px solid var(--sys-color-border-error);
|
|
44
|
+
// Invalid
|
|
45
|
+
&.invalid:not([disabled]):not(.transparent):not(:focus):not(:hover),
|
|
46
|
+
&.ng-invalid.ng-dirty.ng-touched:not([disabled]):not(:focus):not(:hover):not(.transparent) {
|
|
47
|
+
border: 1px solid var(--comp-input-border-error-color);
|
|
58
48
|
}
|
|
59
49
|
// Valid
|
|
60
|
-
&.valid:not([disabled]):not(:focus):not(:hover):not(
|
|
61
|
-
border: 1px solid var(--
|
|
50
|
+
&.valid:not([disabled]):not(:focus):not(:hover):not(.transparent) {
|
|
51
|
+
border: 1px solid var(--comp-input-border-success-color);
|
|
62
52
|
}
|
|
63
53
|
|
|
64
54
|
// Transparent
|
|
@@ -72,8 +62,12 @@ textarea {
|
|
|
72
62
|
}
|
|
73
63
|
|
|
74
64
|
// Hover
|
|
75
|
-
&:not(.transparent):not(:focus):not([disabled]):hover {
|
|
76
|
-
border-color: var(--
|
|
65
|
+
&:not(.transparent):not(.valid):not(.invalid):not(:focus):not([disabled]):hover {
|
|
66
|
+
border-color: var(--comp-input-border-hover-color);
|
|
67
|
+
}
|
|
68
|
+
// Pressed
|
|
69
|
+
&:not(.transparent):not(.valid):not(.invalid):not(:focus):not([disabled]):active {
|
|
70
|
+
border-color: var(--comp-input-border-clicked-color);
|
|
77
71
|
}
|
|
78
72
|
}
|
|
79
73
|
|
|
@@ -118,8 +112,8 @@ form.submitted {
|
|
|
118
112
|
input,
|
|
119
113
|
textarea {
|
|
120
114
|
// Invalid
|
|
121
|
-
&.ng-invalid:not([disabled]):not(.transparent)
|
|
122
|
-
border: 1px solid var(--
|
|
115
|
+
&.ng-invalid:not([disabled]):not(.transparent) {
|
|
116
|
+
border: 1px solid var(--comp-input-border-error-color);
|
|
123
117
|
}
|
|
124
118
|
}
|
|
125
119
|
}
|