@energycap/components 0.39.20-ECAP-25581-Space-Icon-Color-Fix.20240701-0803 → 0.39.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.39.20-ECAP-25581-Space-Icon-Color-Fix.20240701-0803",
3
+ "version": "0.39.20",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -0,0 +1,89 @@
1
+ // Text mixins
2
+ @mixin text-title-1 {
3
+ color: var(--ec-color-primary-dark);
4
+ font-size: var(--ec-font-size-title);
5
+ font-weight: var(--ec-font-weight-bold);
6
+ line-height: 1.2;
7
+ margin: 0;
8
+ }
9
+
10
+ @mixin text-title-2 {
11
+ @include text-title-1;
12
+ font-weight: var(--ec-font-weight-normal);
13
+ }
14
+
15
+ @mixin text-heading-1 {
16
+ color: var(--ec-color-primary-dark);
17
+ font-size: var(--ec-font-size-body);
18
+ font-weight: var(--ec-font-weight-bold);
19
+ line-height: 1.5;
20
+ margin: 0;
21
+ }
22
+
23
+ @mixin text-heading-2 {
24
+ @include text-heading-1;
25
+ font-weight: var(--ec-font-weight-normal);
26
+ }
27
+
28
+ @mixin text-heading-3 {
29
+ color: var(--ec-color-secondary-dark);
30
+ font-size: var(--ec-font-size-label);
31
+ font-weight: var(--ec-font-weight-bold);
32
+ line-height: 1.333333333;
33
+ margin: 0;
34
+ text-transform: uppercase;
35
+ }
36
+
37
+ @mixin text-body-1 {
38
+ color: var(--ec-color-primary-dark);
39
+ font-size: var(--ec-font-size);
40
+ font-weight: var(--ec-font-weight-normal);
41
+ line-height: 1.285714286;
42
+ margin: 0;
43
+ }
44
+
45
+ @mixin text-body-2 {
46
+ color: var(--ec-color-primary-dark);
47
+ font-size: var(--ec-font-size-label);
48
+ font-weight: var(--ec-font-weight-normal);
49
+ line-height: 1.333333333;
50
+ margin: 0;
51
+ }
52
+
53
+ @mixin text-caption-1 {
54
+ color: var(--ec-color-secondary-dark);
55
+ font-size: var(--ec-font-size-label);
56
+ font-weight: var(--ec-font-weight-normal);
57
+ line-height: 1.333333333;
58
+ margin: 0;
59
+ }
60
+
61
+ @mixin text-caption-2 {
62
+ color: var(--ec-color-secondary-dark);
63
+ font-size: var(--ec-font-size-tiny);
64
+ font-weight: var(--ec-font-weight-bold);
65
+ line-height: 1.6;
66
+ margin: 0;
67
+ }
68
+
69
+ @mixin text-display-1 {
70
+ color: var(--ec-color-primary-dark);
71
+ font-size: var(--ec-font-size-body);
72
+ font-weight: var(--ec-font-weight-normal);
73
+ line-height: 1.25;
74
+ margin: 0;
75
+ }
76
+
77
+ @mixin text-link {
78
+ color: var(--ec-color-link) !important;
79
+ cursor: pointer;
80
+
81
+ &:hover {
82
+ text-decoration: underline;
83
+ }
84
+
85
+ &:focus {
86
+ outline: none;
87
+ text-decoration: underline;
88
+ }
89
+ }
@@ -1,3 +1,5 @@
1
+ @import '../mixins/text';
2
+
1
3
  .cursor-pointer {
2
4
  cursor: pointer !important;
3
5
  }
@@ -32,4 +34,16 @@
32
34
  > :not(:last-child) {
33
35
  margin-left: -1px;
34
36
  }
35
- }
37
+ }
38
+
39
+ .popover-content-dark {
40
+ @include text-body-1;
41
+ --ec-color-link: var(--ec-color-link-light);
42
+ background-color: var(--ec-color-gray-8);
43
+ color: var(--ec-color-primary-light);
44
+ padding: .375rem .5rem .375rem 1.75rem;
45
+
46
+ &.is-right-positioned {
47
+ padding: .375rem 1.75rem .375rem .5rem;
48
+ }
49
+ }
@@ -1,93 +1,49 @@
1
1
  @import "../mixins/overlay-base";
2
+ @import "../mixins/text";
2
3
 
3
4
  // Text styles
4
- .text-title-1,
5
- .text-title-2 {
6
- color: var(--ec-color-primary-dark);
7
- font-size: var(--ec-font-size-title);
8
- font-weight: var(--ec-font-weight-bold);
9
- line-height: 1.2;
10
- margin: 0;
5
+ .text-title-1 {
6
+ @include text-title-1;
11
7
  }
12
8
 
13
9
  .text-title-2 {
14
- font-weight: var(--ec-font-weight-normal);
10
+ @include text-title-2;
15
11
  }
16
12
 
17
- .text-heading-1,
18
- .text-heading-2 {
19
- color: var(--ec-color-primary-dark);
20
- font-size: var(--ec-font-size-body);
21
- font-weight: var(--ec-font-weight-bold);
22
- line-height: 1.5;
23
- margin: 0;
13
+ .text-heading-1 {
14
+ @include text-heading-1;
24
15
  }
25
16
 
26
17
  .text-heading-2 {
27
- font-weight: var(--ec-font-weight-normal);
18
+ @include text-heading-2;
28
19
  }
29
20
 
30
21
  .text-heading-3 {
31
- color: var(--ec-color-secondary-dark);
32
- font-size: var(--ec-font-size-label);
33
- font-weight: var(--ec-font-weight-bold);
34
- line-height: 1.333333333;
35
- margin: 0;
36
- text-transform: uppercase;
22
+ @include text-heading-3;
37
23
  }
38
24
 
39
25
  .text-body-1 {
40
- color: var(--ec-color-primary-dark);
41
- font-size: var(--ec-font-size);
42
- font-weight: var(--ec-font-weight-normal);
43
- line-height: 1.285714286;
44
- margin: 0;
26
+ @include text-body-1;
45
27
  }
46
28
 
47
29
  .text-body-2 {
48
- color: var(--ec-color-primary-dark);
49
- font-size: var(--ec-font-size-label);
50
- font-weight: var(--ec-font-weight-normal);
51
- line-height: 1.333333333;
52
- margin: 0;
30
+ @include text-body-2;
53
31
  }
54
32
 
55
33
  .text-caption-1 {
56
- color: var(--ec-color-secondary-dark);
57
- font-size: var(--ec-font-size-label);
58
- font-weight: var(--ec-font-weight-normal);
59
- line-height: 1.333333333;
60
- margin: 0;
34
+ @include text-caption-1;
61
35
  }
62
36
 
63
37
  .text-caption-2 {
64
- color: var(--ec-color-secondary-dark);
65
- font-size: var(--ec-font-size-tiny);
66
- font-weight: var(--ec-font-weight-bold);
67
- line-height: 1.6;
68
- margin: 0;
38
+ @include text-caption-2;
69
39
  }
70
40
 
71
41
  .text-display-1 {
72
- color: var(--ec-color-primary-dark);
73
- font-size: var(--ec-font-size-body);
74
- font-weight: var(--ec-font-weight-normal);
75
- line-height: 1.25;
76
- margin: 0;
42
+ @include text-display-1;
77
43
  }
78
44
 
79
45
  .text-link {
80
- color: var(--ec-color-link) !important;
81
- cursor: pointer;
82
-
83
- &:hover {
84
- text-decoration: underline;
85
- }
86
-
87
- &:focus {
88
- outline: none;
89
- text-decoration: underline;
90
- }
46
+ @include text-link;
91
47
  }
92
48
 
93
49
  @each $alignment in (left, right, center) {
@@ -180,4 +136,4 @@
180
136
 
181
137
  .text-wrap {
182
138
  white-space: normal;
183
- }
139
+ }