@energycap/components 0.28.13 → 0.28.15-css-variables-conversion.20220718-1034

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.
Files changed (66) hide show
  1. package/bundles/energycap-components.umd.js +56 -31
  2. package/bundles/energycap-components.umd.js.map +1 -1
  3. package/bundles/energycap-components.umd.min.js +2 -2
  4. package/bundles/energycap-components.umd.min.js.map +1 -1
  5. package/energycap-components.metadata.json +1 -1
  6. package/energycap-components.min.css +4 -4
  7. package/energycap-email.min.css +1 -1
  8. package/esm2015/lib/components.module.js +6 -3
  9. package/esm2015/lib/controls/banner/banner.component.js +1 -1
  10. package/esm2015/lib/controls/button/button.component.js +1 -1
  11. package/esm2015/lib/controls/checkbox/checkbox.component.js +1 -1
  12. package/esm2015/lib/controls/combobox/combobox.component.js +1 -1
  13. package/esm2015/lib/controls/dropdown/dropdown.component.js +1 -1
  14. package/esm2015/lib/controls/form-control/form-control.component.js +1 -1
  15. package/esm2015/lib/controls/form-control-label/form-control-label.component.js +1 -1
  16. package/esm2015/lib/controls/form-group/form-group.component.js +1 -1
  17. package/esm2015/lib/controls/help-popover/help-popover.component.js +22 -0
  18. package/esm2015/lib/controls/item-picker/item-picker.component.js +1 -1
  19. package/esm2015/lib/controls/menu/menu.component.js +1 -1
  20. package/esm2015/lib/controls/numericbox/numericbox.component.js +1 -1
  21. package/esm2015/lib/controls/radio-button/radio-button.component.js +1 -1
  22. package/esm2015/lib/controls/select/select.component.js +1 -1
  23. package/esm2015/lib/controls/tabs/tabs.component.js +1 -1
  24. package/esm2015/lib/controls/textbox/textbox.component.js +1 -1
  25. package/esm2015/lib/display/app-bar/app-bar.component.js +1 -1
  26. package/esm2015/lib/display/avatar/avatar.component.js +1 -1
  27. package/esm2015/lib/display/dialog/dialog.component.js +1 -1
  28. package/esm2015/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.js +1 -1
  29. package/esm2015/lib/display/json-display/json-display.component.js +1 -1
  30. package/esm2015/lib/display/resizable/resizable.component.js +1 -1
  31. package/esm2015/lib/display/spinner/spinner.component.js +1 -1
  32. package/esm2015/lib/display/table/searchable-table.component.js +1 -1
  33. package/esm2015/lib/display/table/table-detail-row.component.js +1 -1
  34. package/esm2015/lib/display/table/table-locked-column.component.js +1 -1
  35. package/esm2015/lib/display/table/table.component.js +1 -1
  36. package/esm2015/lib/display/toast/toast/toast.component.js +1 -1
  37. package/esm2015/lib/display/view-overlay/view-overlay.component.js +1 -1
  38. package/esm2015/lib/shared/page/page-view/page-view.component.js +1 -1
  39. package/esm2015/public-api.js +2 -1
  40. package/fesm2015/energycap-components.js +55 -32
  41. package/fesm2015/energycap-components.js.map +1 -1
  42. package/lib/controls/help-popover/help-popover.component.d.ts +7 -0
  43. package/package.json +1 -1
  44. package/public-api.d.ts +1 -0
  45. package/src/styles/_base.scss +6 -6
  46. package/src/styles/_global-variables.scss +78 -4
  47. package/src/styles/_variables.scss +79 -68
  48. package/src/styles/components/_unsupported-browsers.scss +3 -3
  49. package/src/styles/email/_email-base.scss +24 -13
  50. package/src/styles/email/email.scss +1 -1
  51. package/src/styles/mixins/_button-base.scss +12 -13
  52. package/src/styles/mixins/_card-base.scss +2 -2
  53. package/src/styles/mixins/_common.scss +2 -2
  54. package/src/styles/mixins/_control-base.scss +20 -20
  55. package/src/styles/mixins/_dialog-base.scss +3 -3
  56. package/src/styles/mixins/_form-control-base.scss +22 -22
  57. package/src/styles/mixins/_login.scss +3 -3
  58. package/src/styles/mixins/_nav-control-base.scss +3 -3
  59. package/src/styles/mixins/_overlay-base.scss +3 -3
  60. package/src/styles/mixins/_resizable-base.scss +2 -2
  61. package/src/styles/mixins/_spinner-base.scss +1 -1
  62. package/src/styles/mixins/_table-base.scss +17 -17
  63. package/src/styles/mixins/_tabs-base.scss +5 -5
  64. package/src/styles/utilities/_borders.scss +4 -4
  65. package/src/styles/utilities/_layout.scss +4 -0
  66. package/src/styles/utilities/_text.scss +46 -42
@@ -1,9 +1,9 @@
1
1
  @import 'control-base';
2
2
 
3
- $form-control-icon-size: rem-calc(16px);
4
- $form-control-icon-position: rem-to-em(rem-calc(4px), $control-font-size) center;
5
- $form-control-label-size: $ec-font-size-label;
6
- $form-control-label-color: $ec-color-text-secondary-dark;
3
+ $form-control-icon-size: 1rem;
4
+ $form-control-icon-position: .25rem center;
5
+ $form-control-label-size: var(--ec-font-size-label);
6
+ $form-control-label-color: var(--ec-color-secondary-dark);
7
7
  $form-control-height: $control-height;
8
8
  $form-control-line-height: $control-line-height;
9
9
  $form-control-spacing-y: rem-calc(16);
@@ -12,21 +12,21 @@ $checkbox-indicator-size: $form-control-icon-size;
12
12
 
13
13
  @mixin form-control-input-base {
14
14
  &::selection {
15
- background-color: $ec-color-active;
16
- color: $ec-color-text-primary-light;
15
+ background-color: var(--ec-color-interactive);
16
+ color: var(--ec-color-primary-light);
17
17
  }
18
18
  &::-webkit-input-placeholder { /* Chrome/Opera/Safari */
19
- color: $ec-color-text-hint-dark;
19
+ color: var(--ec-color-hint-dark);
20
20
  }
21
21
  &::-moz-placeholder { /* Firefox 19+ */
22
- color: $ec-color-text-hint-dark;
22
+ color: var(--ec-color-hint-dark);
23
23
  opacity: 1;
24
24
  }
25
25
  &:-ms-input-placeholder { /* IE 10+ */
26
- color: $ec-color-text-hint-dark;
26
+ color: var(--ec-color-hint-dark);
27
27
  }
28
28
  &:-moz-placeholder { /* Firefox 18- */
29
- color: $ec-color-text-hint-dark;
29
+ color: var(--ec-color-hint-dark);
30
30
  opacity: 1;
31
31
  }
32
32
  }
@@ -57,16 +57,16 @@ $checkbox-indicator-size: $form-control-icon-size;
57
57
  $position: $form-control-icon-position,
58
58
  $indent: $form-control-icon-size,
59
59
  ) {
60
- $size: rem-to-em($width, $control-font-size) rem-to-em($height, $control-font-size);
60
+ $size: $width, $height;
61
61
  @include icon-bg-image($icon, $position, $size);
62
- padding-left: rem-to-em(($indent + $control-padding-x), $control-font-size);
62
+ padding-left: ($indent + $control-padding-x);
63
63
  }
64
64
 
65
65
  @mixin form-control-state($state, $selector) {
66
66
  $icon-position: $form-control-icon-position;
67
67
 
68
68
  @if $selector == textarea {
69
- $icon-position: rem-to-em(rem-calc(4px)) ($form-control-height - $form-control-icon-size) / 2;
69
+ $icon-position: .25rem .5rem;
70
70
  }
71
71
 
72
72
  /// Required
@@ -99,7 +99,7 @@ $checkbox-indicator-size: $form-control-icon-size;
99
99
  display: block;
100
100
  font-size: $form-control-label-size;
101
101
  line-height: 1;
102
- margin: ($form-control-label-size / 2) 0;
102
+ margin: calc(#{$form-control-label-size} / 2) 0;
103
103
  }
104
104
 
105
105
  /// The default form control element in the control component
@@ -248,7 +248,7 @@ $checkbox-indicator-size: $form-control-icon-size;
248
248
 
249
249
  &:not(:checked) {
250
250
  + #{$indicator-selector} {
251
- color: $ec-border-color-default;
251
+ color: var(--ec-border-color);
252
252
 
253
253
  &::before {
254
254
  display: none;
@@ -260,7 +260,7 @@ $checkbox-indicator-size: $form-control-icon-size;
260
260
  &.indeterminate,
261
261
  &:indeterminate {
262
262
  + #{$indicator-selector} {
263
- color: $ec-color-active;
263
+ color: var(--ec-color-interactive);
264
264
 
265
265
  &::before {
266
266
  content: '';
@@ -284,7 +284,7 @@ $checkbox-indicator-size: $form-control-icon-size;
284
284
  + #{$indicator-selector} {
285
285
  color: $control-color-disabled;
286
286
  background-color: $control-bg-disabled;
287
- border-color: $ec-border-color-default;
287
+ border-color: var(--ec-border-color);
288
288
  opacity: $control-opacity-disabled;
289
289
  }
290
290
 
@@ -299,7 +299,7 @@ $checkbox-indicator-size: $form-control-icon-size;
299
299
  background-color: $control-bg;
300
300
  background-clip: padding-box;
301
301
  border: 1px solid currentColor;
302
- color: $ec-color-active;
302
+ color: var(--ec-color-interactive);
303
303
  margin-top: .5rem;
304
304
  flex: none;
305
305
  pointer-events: none;
@@ -364,12 +364,12 @@ $checkbox-indicator-size: $form-control-icon-size;
364
364
 
365
365
  @mixin toggle() {
366
366
  font-size: $control-font-size;
367
- background-color: $ec-border-color;
367
+ background-color: var(--ec-border-color-legacy);
368
368
  border-radius: var(--ec-border-radius);
369
369
  border: $control-border-width solid $control-border-color;
370
370
  min-height: 2em;
371
371
  position: relative;
372
- color: $ec-color-text-hint-dark;
372
+ color: var(--ec-color-hint-dark);
373
373
  display: flex;
374
374
 
375
375
  input {
@@ -439,7 +439,7 @@ $checkbox-indicator-size: $form-control-icon-size;
439
439
  z-index: 1;
440
440
 
441
441
  .toggle-handle {
442
- background-color: $ec-color-bg-content;
442
+ background-color: var(--ec-background-color);
443
443
  border-radius: calc(var(--ec-border-radius) * .75);
444
444
  height: 100%;
445
445
  }
@@ -456,7 +456,7 @@ $checkbox-indicator-size: $form-control-icon-size;
456
456
  }
457
457
 
458
458
  a.toggle-handle {
459
- background-color: $ec-color-text-hint-light;
459
+ background-color: var(--ec-color-hint-light);
460
460
  }
461
461
  }
462
462
  }
@@ -14,7 +14,7 @@
14
14
  $form-submit-button-selector: '.ec-login-submit'
15
15
  ) {
16
16
  #{$container-selector} {
17
- background-image: radial-gradient(circle,$gray-6,$gray-8);
17
+ background-image: var(--ec-background-color-splash);
18
18
  display: flex;
19
19
  align-items: center;
20
20
  flex: 1 1;
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  #{$card-selector} {
30
- background-color: $ec-color-bg-body;
30
+ background-color: var(--ec-background-color-body);
31
31
  border-radius: var(--ec-border-radius-dialog);
32
32
  box-shadow: 0 0 12px rgba($black, .66);
33
33
  }
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  #{$card-footer-selector} {
68
- border-top: 1px solid $ec-border-color-default;
68
+ border-top: 1px solid var(--ec-border-color);
69
69
  padding: 1rem;
70
70
  display: flex;
71
71
  align-items: center;
@@ -1,12 +1,12 @@
1
1
  @import 'control-base';
2
2
 
3
- $nav-font-size: $ec-font-size-action;
4
- $nav-item-bg: $ec-color-bg-content;
3
+ $nav-font-size: var(--ec-font-size-action);
4
+ $nav-item-bg: var(--ec-background-color);
5
5
  $nav-item-height: rem-calc(28px);
6
6
  $nav-item-line-height: rem-calc(18px);
7
7
  $nav-item-bg-hover: #BFE0E9;
8
8
  $nav-item-bg-selected: #D9EDF2;
9
- $nav-icon-height: $ec-font-size-icon;
9
+ $nav-icon-height: var(--ec-font-size-icon);
10
10
  $nav-item-transition-duration: .2s;
11
11
 
12
12
  @mixin nav-hover($selector) {
@@ -3,14 +3,14 @@
3
3
  $overlay-padding-x: 4rem;
4
4
  $overlay-padding-y: 3rem;
5
5
 
6
- @mixin overlay($bg: $ec-color-bg-content, $padding-x: $overlay-padding-x, $padding-y: $overlay-padding-y) {
6
+ @mixin overlay($bg: var(--ec-background-color), $padding-x: $overlay-padding-x, $padding-y: $overlay-padding-y) {
7
7
  align-items: center;
8
8
  background-color: $bg;
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  justify-content: center;
12
12
  padding: $padding-y $padding-x;
13
- z-index: map-get($ec-z-indexes, overlay);
13
+ z-index: var(--ec-z-index-overlay);
14
14
 
15
15
  // @deprecated when the ng1 overlay goes away
16
16
  right: 0;
@@ -24,7 +24,7 @@ $overlay-padding-y: 3rem;
24
24
  position: relative;
25
25
  }
26
26
 
27
- @mixin overlay-message($color: $ec-color-text-secondary-dark, $font-size: $ec-font-size-title) {
27
+ @mixin overlay-message($color: var(--ec-color-secondary-dark), $font-size: var(--ec-font-size-title)) {
28
28
  color: $color;
29
29
  font-size: $font-size;
30
30
  }
@@ -7,7 +7,7 @@
7
7
 
8
8
  @mixin resizable-handle-hover {
9
9
  &::after {
10
- background-color: $ec-color-link;
10
+ background-color: var(--ec-color-interactive);
11
11
  }
12
12
  }
13
13
 
@@ -19,7 +19,7 @@
19
19
  height: 100%;
20
20
  top: 0;
21
21
  padding: 0 5px;
22
- z-index: map-get($map: $ec-z-indexes, $key: splitter);
22
+ z-index: var(--ec-z-index-splitter);
23
23
 
24
24
  &::after {
25
25
  content: '';
@@ -12,7 +12,7 @@
12
12
  @mixin spinner-dot($dot-size: .75rem) {
13
13
  width: $dot-size;
14
14
  height: $dot-size;
15
- background-color: $ec-color-active;
15
+ background-color: var(--ec-color-interactive);
16
16
  animation: sk-bouncedelay 1.7s infinite ease-in-out both;
17
17
  margin-right: $dot-size / 3;
18
18
 
@@ -1,7 +1,7 @@
1
1
  @import '../core';
2
2
 
3
- $table-row-bg-selected: $ec-color-bg-info;
4
- $table-row-bg-hover: $ec-color-bg-hover;
3
+ $table-row-bg-selected: var(--ec-background-color-selected);
4
+ $table-row-bg-hover: var(--ec-background-color-hover);
5
5
  $table-row-bg-heading: #EBEDEE;
6
6
  $table-cell-padding-x: .5rem;
7
7
  $table-cell-padding-y: .5rem;
@@ -19,14 +19,14 @@ $table-z-indexes: (
19
19
  @include truncate;
20
20
 
21
21
  @if $type == th {
22
- border-bottom: 1px solid $ec-border-color-dark;
23
- color: $ec-color-text-secondary-dark;
22
+ border-bottom: 1px solid var(--ec-border-color-dark);
23
+ color: var(--ec-color-secondary-dark);
24
24
  font-weight: normal;
25
25
  vertical-align: middle;
26
26
  }
27
27
 
28
28
  @if $type == td {
29
- border-top: 1px solid $ec-border-color-default;
29
+ border-top: 1px solid var(--ec-border-color);
30
30
  vertical-align: top;
31
31
  }
32
32
 
@@ -43,7 +43,7 @@ $table-z-indexes: (
43
43
  border-collapse: separate;
44
44
  border-spacing: 0;
45
45
  width: 100%;
46
- font-size: $ec-font-size-label;
46
+ font-size: var(--ec-font-size-label);
47
47
 
48
48
  th {
49
49
  @include table-cell(th);
@@ -105,9 +105,9 @@ $table-z-indexes: (
105
105
  }
106
106
 
107
107
  @mixin table-row-heading {
108
- color: $ec-color-text-secondary-dark;
109
- font-size: $ec-font-size-label;
110
- font-weight: $ec-font-weight-bold;
108
+ color: var(--ec-color-secondary-dark);
109
+ font-size: var(--ec-font-size-label);
110
+ font-weight: var(--ec-font-weight-bold);
111
111
  line-height: 1.333333333;
112
112
  text-transform: uppercase;
113
113
  padding-bottom: 0;
@@ -123,14 +123,14 @@ $table-z-indexes: (
123
123
  position: relative;
124
124
 
125
125
  > thead th {
126
- background-color: $ec-color-bg-content;
126
+ background-color: var(--ec-background-color);
127
127
  position: sticky !important;
128
128
  top: 0;
129
129
  z-index: 1;
130
130
  }
131
131
 
132
132
  > tfoot td {
133
- background-color: $ec-color-bg-content;
133
+ background-color: var(--ec-background-color);
134
134
  position: sticky !important;
135
135
  bottom: 0;
136
136
  z-index: 1;
@@ -245,12 +245,12 @@ $table-z-indexes: (
245
245
  }
246
246
 
247
247
  @mixin table-detail-row() {
248
- background-color: $ec-color-bg-content-secondary;
248
+ background-color: var(--ec-background-color-detail);
249
249
  }
250
250
 
251
251
  @mixin table-detail-content() {
252
252
  background-color: transparent;
253
- border-top: 1px solid $ec-border-color;
253
+ border-top: 1px solid var(--ec-border-color-legacy);
254
254
  padding: 1rem 2rem 1rem 0 !important;
255
255
  }
256
256
 
@@ -261,7 +261,7 @@ $table-z-indexes: (
261
261
  height: 2.5rem;
262
262
  line-height: 2rem;
263
263
  border-top: 0;
264
- font-size: $ec-font-size-body;
264
+ font-size: var(--ec-font-size-body);
265
265
  }
266
266
 
267
267
  tr:first-child {
@@ -280,12 +280,12 @@ $table-z-indexes: (
280
280
  }
281
281
 
282
282
  @mixin table-row-status($status) {
283
- $bg-color: $ec-color-bg-caution;
283
+ $bg-color: var(--ec-background-color-caution);
284
284
 
285
285
  @if $status == error {
286
- $bg-color: $ec-color-bg-error;
286
+ $bg-color: var(--ec-background-color-danger);
287
287
  } @else if $status == success {
288
- $bg-color: $ec-color-bg-success;
288
+ $bg-color: var(--ec-background-color-success);
289
289
  }
290
290
 
291
291
  td {
@@ -1,11 +1,11 @@
1
1
  @import 'nav-control-base';
2
2
 
3
3
  $tab-border-width: 1px;
4
- $tab-border-color: $ec-border-color;
5
- $tab-color: $ec-color-text-secondary-dark;
4
+ $tab-border-color: var(--ec-border-color-legacy);
5
+ $tab-color: var(--ec-color-secondary-dark);
6
6
  $tab-color-active: $gray-7;
7
7
  $tab-color-hover: $gray-7;
8
- $tab-bg-active: $ec-color-bg-body;
8
+ $tab-bg-active: var(--ec-background-color-body);
9
9
 
10
10
  $tab-pill-bg-active: #d2d7d9;
11
11
 
@@ -34,7 +34,7 @@ $tab-pill-bg-active: #d2d7d9;
34
34
  border: $tab-border-width solid transparent;
35
35
  color: $tab-color;
36
36
  cursor: pointer;
37
- font-size: $ec-font-size-label;
37
+ font-size: var(--ec-font-size-label);
38
38
  display: flex;
39
39
  height: $height;
40
40
  min-width: $height;
@@ -71,7 +71,7 @@ $tab-pill-bg-active: #d2d7d9;
71
71
  }
72
72
 
73
73
  &.is-disabled {
74
- color: $ec-color-text-hint-dark;
74
+ color: var(--ec-color-hint-dark);
75
75
  cursor: default;
76
76
  }
77
77
  }
@@ -5,11 +5,11 @@
5
5
  }
6
6
 
7
7
  .border-all {
8
- border: $ec-border-width solid $ec-border-color-default !important;
8
+ border: 1px solid var(--ec-border-color) !important;
9
9
  }
10
10
 
11
11
  .border-all-dark {
12
- border: $ec-border-width solid $ec-border-color-dark !important;
12
+ border: 1px solid var(--ec-border-color-dark) !important;
13
13
  }
14
14
 
15
15
  $sides: (top, bottom, right, left);
@@ -19,11 +19,11 @@ $sides: (top, bottom, right, left);
19
19
  }
20
20
 
21
21
  .border-#{$side} {
22
- border-#{$side}: $ec-border-width solid $ec-border-color-default !important;
22
+ border-#{$side}: 1px solid var(--ec-border-color) !important;
23
23
  }
24
24
 
25
25
  .border-#{$side}-dark {
26
- border-#{$side}: $ec-border-width solid $ec-border-color-dark !important;
26
+ border-#{$side}: 1px solid var(--ec-border-color-dark) !important;
27
27
  }
28
28
  }
29
29
 
@@ -109,4 +109,8 @@
109
109
 
110
110
  .position-fixed {
111
111
  position: fixed !important;
112
+ }
113
+
114
+ .v-align-middle {
115
+ vertical-align: middle !important;
112
116
  }
@@ -4,81 +4,81 @@
4
4
  // Text styles
5
5
  .text-title-1,
6
6
  .text-title-2 {
7
- color: $ec-color-text-primary-dark;
8
- font-size: $ec-font-size-title;
9
- font-weight: $ec-font-weight-bold;
7
+ color: var(--ec-color-primary-dark);
8
+ font-size: var(--ec-font-size-title);
9
+ font-weight: var(--ec-font-weight-bold);
10
10
  line-height: 1.2;
11
11
  margin: 0;
12
12
  }
13
13
 
14
14
  .text-title-2 {
15
- font-weight: $ec-font-weight-normal;
15
+ font-weight: var(--ec-font-weight-normal);
16
16
  }
17
17
 
18
18
  .text-heading-1,
19
19
  .text-heading-2 {
20
- color: $ec-color-text-primary-dark;
21
- font-size: $ec-font-size-body;
22
- font-weight: $ec-font-weight-bold;
20
+ color: var(--ec-color-primary-dark);
21
+ font-size: var(--ec-font-size-body);
22
+ font-weight: var(--ec-font-weight-bold);
23
23
  line-height: 1.5;
24
24
  margin: 0;
25
25
  }
26
26
 
27
27
  .text-heading-2 {
28
- font-weight: $ec-font-weight-normal;
28
+ font-weight: var(--ec-font-weight-normal);
29
29
  }
30
30
 
31
31
  .text-heading-3 {
32
- color: $ec-color-text-secondary-dark;
33
- font-size: $ec-font-size-label;
34
- font-weight: $ec-font-weight-bold;
32
+ color: var(--ec-color-secondary-dark);
33
+ font-size: var(--ec-font-size-label);
34
+ font-weight: var(--ec-font-weight-bold);
35
35
  line-height: 1.333333333;
36
36
  margin: 0;
37
37
  text-transform: uppercase;
38
38
  }
39
39
 
40
40
  .text-body-1 {
41
- color: $ec-color-text-primary-dark;
42
- font-size: $ec-font-size-action;
43
- font-weight: $ec-font-weight-normal;
41
+ color: var(--ec-color-primary-dark);
42
+ font-size: var(--ec-font-size);
43
+ font-weight: var(--ec-font-weight-normal);
44
44
  line-height: 1.285714286;
45
45
  margin: 0;
46
46
  }
47
47
 
48
48
  .text-body-2 {
49
- color: $ec-color-text-primary-dark;
50
- font-size: $ec-font-size-label;
51
- font-weight: $ec-font-weight-normal;
49
+ color: var(--ec-color-primary-dark);
50
+ font-size: var(--ec-font-size-label);
51
+ font-weight: var(--ec-font-weight-normal);
52
52
  line-height: 1.333333333;
53
53
  margin: 0;
54
54
  }
55
55
 
56
56
  .text-caption-1 {
57
- color: $ec-color-text-secondary-dark;
58
- font-size: $ec-font-size-label;
59
- font-weight: $ec-font-weight-normal;
57
+ color: var(--ec-color-secondary-dark);
58
+ font-size: var(--ec-font-size-label);
59
+ font-weight: var(--ec-font-weight-normal);
60
60
  line-height: 1.333333333;
61
61
  margin: 0;
62
62
  }
63
63
 
64
64
  .text-caption-2 {
65
- color: $ec-color-text-secondary-dark;
66
- font-size: $ec-font-size-tiny;
67
- font-weight: $ec-font-weight-bold;
65
+ color: var(--ec-color-secondary-dark);
66
+ font-size: var(--ec-font-size-tiny);
67
+ font-weight: var(--ec-font-weight-bold);
68
68
  line-height: 1.6;
69
69
  margin: 0;
70
70
  }
71
71
 
72
72
  .text-display-1 {
73
- color: $ec-color-text-primary-dark;
74
- font-size: $ec-font-size-body;
75
- font-weight: $ec-font-weight-normal;
73
+ color: var(--ec-color-primary-dark);
74
+ font-size: var(--ec-font-size-body);
75
+ font-weight: var(--ec-font-weight-normal);
76
76
  line-height: 1.25;
77
77
  margin: 0;
78
78
  }
79
79
 
80
80
  .text-link {
81
- color: $ec-color-link !important;
81
+ color: var(--ec-color-interactive) !important;
82
82
  cursor: pointer;
83
83
 
84
84
  &:hover {
@@ -99,62 +99,62 @@
99
99
 
100
100
  // Font property utilities
101
101
  .font-weight-bold {
102
- font-weight: $ec-font-weight-bold !important;
102
+ font-weight: var(--ec-font-weight-bold) !important;
103
103
  }
104
104
 
105
105
  .font-weight-normal {
106
- font-weight: $ec-font-weight-normal !important;
106
+ font-weight: var(--ec-font-weight-normal) !important;
107
107
  }
108
108
 
109
109
  .font-size-small {
110
- font-size: $ec-font-size-label !important;
110
+ font-size: var(--ec-font-size-label) !important;
111
111
  }
112
112
 
113
113
  .font-size-medium {
114
- font-size: $ec-font-size-body !important;
114
+ font-size: var(--ec-font-size-body) !important;
115
115
  }
116
116
 
117
117
  .font-size-base {
118
- font-size: $ec-font-size-action !important;
118
+ font-size: var(--ec-font-size) !important;
119
119
  }
120
120
 
121
121
  .font-size-large {
122
- font-size: $ec-font-size-title !important;
122
+ font-size: var(--ec-font-size-title) !important;
123
123
  }
124
124
 
125
125
  .font-color-primary {
126
- color: $ec-color-text-primary-dark !important;
126
+ color: var(--ec-color-primary-dark) !important;
127
127
  }
128
128
 
129
129
  .font-color-primary-light {
130
- color: $ec-color-text-primary-light !important;
130
+ color: var(--ec-color-primary-light) !important;
131
131
  }
132
132
 
133
133
  .font-color-secondary {
134
- color: $ec-color-text-secondary-dark !important;
134
+ color: var(--ec-color-secondary-dark) !important;
135
135
  }
136
136
 
137
137
  .font-color-secondary-light {
138
- color: $ec-color-text-secondary-light !important;
138
+ color: var(--ec-color-secondary-light) !important;
139
139
  }
140
140
 
141
141
  // font-color-muted is deprecated, use .font-color-hint instead
142
142
  .font-color-muted,
143
143
  .font-color-hint {
144
- color: $ec-color-text-hint-dark !important;
144
+ color: var(--ec-color-hint-dark) !important;
145
145
  }
146
146
 
147
147
  // @deprecated, use .text-link instead.
148
148
  .font-color-link {
149
- color: $ec-color-link !important;
149
+ color: var(--ec-color-interactive) !important;
150
150
  }
151
151
 
152
152
  .font-color-error {
153
- color: $ec-color-error !important;
153
+ color: var(--ec-color-danger) !important;
154
154
  }
155
155
 
156
156
  .font-color-success {
157
- color: $ec-color-success !important;
157
+ color: var(--ec-color-success) !important;
158
158
  }
159
159
 
160
160
  // @deprecated use .text-display-1 instead
@@ -164,7 +164,7 @@
164
164
 
165
165
  // @deprecated use .text-display-1 instead
166
166
  .font-message-medium {
167
- @include overlay-message($font-size: $ec-font-size-body);
167
+ @include overlay-message($font-size: var(--ec-font-size-body));
168
168
  }
169
169
 
170
170
  .text-truncate {
@@ -173,4 +173,8 @@
173
173
 
174
174
  .text-break-all {
175
175
  word-break: break-all;
176
+ }
177
+
178
+ .text-wrap {
179
+ white-space: normal;
176
180
  }