@energycap/components 0.29.0 → 0.29.1-css-variables-conversion.20220802-1141

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 (65) hide show
  1. package/bundles/energycap-components.umd.js +47 -38
  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/esm2015/lib/controls/banner/banner.component.js +1 -1
  8. package/esm2015/lib/controls/button/button.component.js +1 -1
  9. package/esm2015/lib/controls/checkbox/checkbox.component.js +1 -1
  10. package/esm2015/lib/controls/combobox/combobox.component.js +1 -1
  11. package/esm2015/lib/controls/dropdown/dropdown.component.js +1 -1
  12. package/esm2015/lib/controls/form-control/form-control.component.js +1 -1
  13. package/esm2015/lib/controls/form-control-label/form-control-label.component.js +1 -1
  14. package/esm2015/lib/controls/form-group/form-group.component.js +1 -1
  15. package/esm2015/lib/controls/help-popover/help-popover.component.js +1 -1
  16. package/esm2015/lib/controls/item-picker/item-picker.component.js +1 -1
  17. package/esm2015/lib/controls/menu/menu.component.js +1 -1
  18. package/esm2015/lib/controls/numericbox/numericbox.component.js +1 -1
  19. package/esm2015/lib/controls/radio-button/radio-button.component.js +1 -1
  20. package/esm2015/lib/controls/select/select.component.js +1 -1
  21. package/esm2015/lib/controls/tabs/tabs.component.js +1 -1
  22. package/esm2015/lib/controls/textbox/textbox.component.js +1 -1
  23. package/esm2015/lib/display/app-bar/app-bar.component.js +1 -1
  24. package/esm2015/lib/display/avatar/avatar.component.js +1 -1
  25. package/esm2015/lib/display/confirm/confirm.component.js +18 -9
  26. package/esm2015/lib/display/dialog/dialog.component.js +1 -1
  27. package/esm2015/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.js +1 -1
  28. package/esm2015/lib/display/json-display/json-display.component.js +1 -1
  29. package/esm2015/lib/display/resizable/resizable.component.js +1 -1
  30. package/esm2015/lib/display/spinner/spinner.component.js +1 -1
  31. package/esm2015/lib/display/table/searchable-table.component.js +1 -1
  32. package/esm2015/lib/display/table/table-detail-row.component.js +1 -1
  33. package/esm2015/lib/display/table/table-locked-column.component.js +1 -1
  34. package/esm2015/lib/display/table/table.component.js +1 -1
  35. package/esm2015/lib/display/toast/toast/toast.component.js +1 -1
  36. package/esm2015/lib/display/view-overlay/view-overlay.component.js +1 -1
  37. package/esm2015/lib/shared/page/page-view/page-view.component.js +1 -1
  38. package/fesm2015/energycap-components.js +47 -38
  39. package/fesm2015/energycap-components.js.map +1 -1
  40. package/lib/display/confirm/confirm.component.d.ts +24 -11
  41. package/package.json +1 -1
  42. package/src/styles/_base.scss +6 -8
  43. package/src/styles/_core.scss +1 -1
  44. package/src/styles/_global-variables.scss +77 -5
  45. package/src/styles/components/_splash.scss +1 -2
  46. package/src/styles/components/_unsupported-browsers.scss +4 -4
  47. package/src/styles/email/_email-base.scss +17 -11
  48. package/src/styles/email/email.scss +1 -1
  49. package/src/styles/mixins/_button-base.scss +13 -13
  50. package/src/styles/mixins/_card-base.scss +3 -5
  51. package/src/styles/mixins/_common.scss +1 -6
  52. package/src/styles/mixins/_control-base.scss +20 -20
  53. package/src/styles/mixins/_dialog-base.scss +3 -3
  54. package/src/styles/mixins/_form-control-base.scss +22 -22
  55. package/src/styles/mixins/_login.scss +3 -3
  56. package/src/styles/mixins/_nav-control-base.scss +3 -3
  57. package/src/styles/mixins/_overlay-base.scss +3 -5
  58. package/src/styles/mixins/_resizable-base.scss +2 -2
  59. package/src/styles/mixins/_spinner-base.scss +1 -3
  60. package/src/styles/mixins/_table-base.scss +17 -17
  61. package/src/styles/mixins/_tabs-base.scss +5 -5
  62. package/src/styles/utilities/_borders.scss +4 -6
  63. package/src/styles/utilities/_layout.scss +4 -0
  64. package/src/styles/utilities/_text.scss +46 -43
  65. package/src/styles/_variables.scss +0 -82
@@ -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) {
@@ -1,16 +1,14 @@
1
- @import '../variables';
2
-
3
1
  $overlay-padding-x: 4rem;
4
2
  $overlay-padding-y: 3rem;
5
3
 
6
- @mixin overlay($bg: $ec-color-bg-content, $padding-x: $overlay-padding-x, $padding-y: $overlay-padding-y) {
4
+ @mixin overlay($bg: var(--ec-background-color), $padding-x: $overlay-padding-x, $padding-y: $overlay-padding-y) {
7
5
  align-items: center;
8
6
  background-color: $bg;
9
7
  display: flex;
10
8
  flex-direction: column;
11
9
  justify-content: center;
12
10
  padding: $padding-y $padding-x;
13
- z-index: map-get($ec-z-indexes, overlay);
11
+ z-index: var(--ec-z-index-overlay);
14
12
 
15
13
  // @deprecated when the ng1 overlay goes away
16
14
  right: 0;
@@ -24,7 +22,7 @@ $overlay-padding-y: 3rem;
24
22
  position: relative;
25
23
  }
26
24
 
27
- @mixin overlay-message($color: $ec-color-text-secondary-dark, $font-size: $ec-font-size-title) {
25
+ @mixin overlay-message($color: var(--ec-color-secondary-dark), $font-size: var(--ec-font-size-title)) {
28
26
  color: $color;
29
27
  font-size: $font-size;
30
28
  }
@@ -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: '';
@@ -1,5 +1,3 @@
1
- @import '../variables';
2
-
3
1
  // Animation
4
2
  @keyframes sk-bouncedelay {
5
3
  0%, 80%, 100% {
@@ -12,7 +10,7 @@
12
10
  @mixin spinner-dot($dot-size: .75rem) {
13
11
  width: $dot-size;
14
12
  height: $dot-size;
15
- background-color: $ec-color-active;
13
+ background-color: var(--ec-color-interactive);
16
14
  animation: sk-bouncedelay 1.7s infinite ease-in-out both;
17
15
  margin-right: $dot-size / 3;
18
16
 
@@ -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
  }
@@ -1,15 +1,13 @@
1
- @import '../variables';
2
-
3
1
  .border-0 {
4
2
  border: 0 !important;
5
3
  }
6
4
 
7
5
  .border-all {
8
- border: $ec-border-width solid $ec-border-color-default !important;
6
+ border: 1px solid var(--ec-border-color) !important;
9
7
  }
10
8
 
11
9
  .border-all-dark {
12
- border: $ec-border-width solid $ec-border-color-dark !important;
10
+ border: 1px solid var(--ec-border-color-dark) !important;
13
11
  }
14
12
 
15
13
  $sides: (top, bottom, right, left);
@@ -19,11 +17,11 @@ $sides: (top, bottom, right, left);
19
17
  }
20
18
 
21
19
  .border-#{$side} {
22
- border-#{$side}: $ec-border-width solid $ec-border-color-default !important;
20
+ border-#{$side}: 1px solid var(--ec-border-color) !important;
23
21
  }
24
22
 
25
23
  .border-#{$side}-dark {
26
- border-#{$side}: $ec-border-width solid $ec-border-color-dark !important;
24
+ border-#{$side}: 1px solid var(--ec-border-color-dark) !important;
27
25
  }
28
26
  }
29
27
 
@@ -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
  }
@@ -1,84 +1,83 @@
1
- @import "../variables";
2
1
  @import "../mixins/overlay-base";
3
2
 
4
3
  // Text styles
5
4
  .text-title-1,
6
5
  .text-title-2 {
7
- color: $ec-color-text-primary-dark;
8
- font-size: $ec-font-size-title;
9
- font-weight: $ec-font-weight-bold;
6
+ color: var(--ec-color-primary-dark);
7
+ font-size: var(--ec-font-size-title);
8
+ font-weight: var(--ec-font-weight-bold);
10
9
  line-height: 1.2;
11
10
  margin: 0;
12
11
  }
13
12
 
14
13
  .text-title-2 {
15
- font-weight: $ec-font-weight-normal;
14
+ font-weight: var(--ec-font-weight-normal);
16
15
  }
17
16
 
18
17
  .text-heading-1,
19
18
  .text-heading-2 {
20
- color: $ec-color-text-primary-dark;
21
- font-size: $ec-font-size-body;
22
- font-weight: $ec-font-weight-bold;
19
+ color: var(--ec-color-primary-dark);
20
+ font-size: var(--ec-font-size-body);
21
+ font-weight: var(--ec-font-weight-bold);
23
22
  line-height: 1.5;
24
23
  margin: 0;
25
24
  }
26
25
 
27
26
  .text-heading-2 {
28
- font-weight: $ec-font-weight-normal;
27
+ font-weight: var(--ec-font-weight-normal);
29
28
  }
30
29
 
31
30
  .text-heading-3 {
32
- color: $ec-color-text-secondary-dark;
33
- font-size: $ec-font-size-label;
34
- font-weight: $ec-font-weight-bold;
31
+ color: var(--ec-color-secondary-dark);
32
+ font-size: var(--ec-font-size-label);
33
+ font-weight: var(--ec-font-weight-bold);
35
34
  line-height: 1.333333333;
36
35
  margin: 0;
37
36
  text-transform: uppercase;
38
37
  }
39
38
 
40
39
  .text-body-1 {
41
- color: $ec-color-text-primary-dark;
42
- font-size: $ec-font-size-action;
43
- font-weight: $ec-font-weight-normal;
40
+ color: var(--ec-color-primary-dark);
41
+ font-size: var(--ec-font-size);
42
+ font-weight: var(--ec-font-weight-normal);
44
43
  line-height: 1.285714286;
45
44
  margin: 0;
46
45
  }
47
46
 
48
47
  .text-body-2 {
49
- color: $ec-color-text-primary-dark;
50
- font-size: $ec-font-size-label;
51
- font-weight: $ec-font-weight-normal;
48
+ color: var(--ec-color-primary-dark);
49
+ font-size: var(--ec-font-size-label);
50
+ font-weight: var(--ec-font-weight-normal);
52
51
  line-height: 1.333333333;
53
52
  margin: 0;
54
53
  }
55
54
 
56
55
  .text-caption-1 {
57
- color: $ec-color-text-secondary-dark;
58
- font-size: $ec-font-size-label;
59
- font-weight: $ec-font-weight-normal;
56
+ color: var(--ec-color-secondary-dark);
57
+ font-size: var(--ec-font-size-label);
58
+ font-weight: var(--ec-font-weight-normal);
60
59
  line-height: 1.333333333;
61
60
  margin: 0;
62
61
  }
63
62
 
64
63
  .text-caption-2 {
65
- color: $ec-color-text-secondary-dark;
66
- font-size: $ec-font-size-tiny;
67
- font-weight: $ec-font-weight-bold;
64
+ color: var(--ec-color-secondary-dark);
65
+ font-size: var(--ec-font-size-tiny);
66
+ font-weight: var(--ec-font-weight-bold);
68
67
  line-height: 1.6;
69
68
  margin: 0;
70
69
  }
71
70
 
72
71
  .text-display-1 {
73
- color: $ec-color-text-primary-dark;
74
- font-size: $ec-font-size-body;
75
- font-weight: $ec-font-weight-normal;
72
+ color: var(--ec-color-primary-dark);
73
+ font-size: var(--ec-font-size-body);
74
+ font-weight: var(--ec-font-weight-normal);
76
75
  line-height: 1.25;
77
76
  margin: 0;
78
77
  }
79
78
 
80
79
  .text-link {
81
- color: $ec-color-link !important;
80
+ color: var(--ec-color-interactive) !important;
82
81
  cursor: pointer;
83
82
 
84
83
  &:hover {
@@ -99,62 +98,62 @@
99
98
 
100
99
  // Font property utilities
101
100
  .font-weight-bold {
102
- font-weight: $ec-font-weight-bold !important;
101
+ font-weight: var(--ec-font-weight-bold) !important;
103
102
  }
104
103
 
105
104
  .font-weight-normal {
106
- font-weight: $ec-font-weight-normal !important;
105
+ font-weight: var(--ec-font-weight-normal) !important;
107
106
  }
108
107
 
109
108
  .font-size-small {
110
- font-size: $ec-font-size-label !important;
109
+ font-size: var(--ec-font-size-label) !important;
111
110
  }
112
111
 
113
112
  .font-size-medium {
114
- font-size: $ec-font-size-body !important;
113
+ font-size: var(--ec-font-size-body) !important;
115
114
  }
116
115
 
117
116
  .font-size-base {
118
- font-size: $ec-font-size-action !important;
117
+ font-size: var(--ec-font-size) !important;
119
118
  }
120
119
 
121
120
  .font-size-large {
122
- font-size: $ec-font-size-title !important;
121
+ font-size: var(--ec-font-size-title) !important;
123
122
  }
124
123
 
125
124
  .font-color-primary {
126
- color: $ec-color-text-primary-dark !important;
125
+ color: var(--ec-color-primary-dark) !important;
127
126
  }
128
127
 
129
128
  .font-color-primary-light {
130
- color: $ec-color-text-primary-light !important;
129
+ color: var(--ec-color-primary-light) !important;
131
130
  }
132
131
 
133
132
  .font-color-secondary {
134
- color: $ec-color-text-secondary-dark !important;
133
+ color: var(--ec-color-secondary-dark) !important;
135
134
  }
136
135
 
137
136
  .font-color-secondary-light {
138
- color: $ec-color-text-secondary-light !important;
137
+ color: var(--ec-color-secondary-light) !important;
139
138
  }
140
139
 
141
140
  // font-color-muted is deprecated, use .font-color-hint instead
142
141
  .font-color-muted,
143
142
  .font-color-hint {
144
- color: $ec-color-text-hint-dark !important;
143
+ color: var(--ec-color-hint-dark) !important;
145
144
  }
146
145
 
147
146
  // @deprecated, use .text-link instead.
148
147
  .font-color-link {
149
- color: $ec-color-link !important;
148
+ color: var(--ec-color-interactive) !important;
150
149
  }
151
150
 
152
151
  .font-color-error {
153
- color: $ec-color-error !important;
152
+ color: var(--ec-color-danger) !important;
154
153
  }
155
154
 
156
155
  .font-color-success {
157
- color: $ec-color-success !important;
156
+ color: var(--ec-color-success) !important;
158
157
  }
159
158
 
160
159
  // @deprecated use .text-display-1 instead
@@ -164,7 +163,7 @@
164
163
 
165
164
  // @deprecated use .text-display-1 instead
166
165
  .font-message-medium {
167
- @include overlay-message($font-size: $ec-font-size-body);
166
+ @include overlay-message($font-size: var(--ec-font-size-body));
168
167
  }
169
168
 
170
169
  .text-truncate {
@@ -173,4 +172,8 @@
173
172
 
174
173
  .text-break-all {
175
174
  word-break: break-all;
175
+ }
176
+
177
+ .text-wrap {
178
+ white-space: normal;
176
179
  }