@energycap/components 0.37.7-ECAP-18600-ech-theme-updates.20230913-1721 → 0.37.7-ECAP-18600-ech-theme-updates.20230914-0840
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/energycap-components.min.css +1 -1
- package/esm2020/lib/controls/button/button.component.mjs +2 -2
- package/esm2020/lib/controls/checkbox/checkbox.component.mjs +2 -2
- package/esm2020/lib/controls/combobox/combobox.component.mjs +2 -2
- package/esm2020/lib/controls/form-control-label/form-control-label.component.mjs +2 -2
- package/esm2020/lib/controls/form-group/form-group.component.mjs +2 -2
- package/esm2020/lib/controls/menu/menu.component.mjs +3 -3
- package/esm2020/lib/controls/numericbox/numericbox.component.mjs +2 -2
- package/esm2020/lib/controls/radio-button/radio-button.component.mjs +2 -2
- package/esm2020/lib/controls/select/select.component.mjs +2 -2
- package/esm2020/lib/controls/tabs/tabs.component.mjs +2 -2
- package/esm2020/lib/controls/textbox/textbox.component.mjs +2 -2
- package/esm2020/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +2 -2
- package/fesm2015/energycap-components.mjs +24 -24
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +24 -24
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/favicon.svg +10 -7
- package/src/styles/_global-variables.scss +0 -11
- package/src/styles/mixins/_button-base.scss +6 -3
- package/src/styles/mixins/_common.scss +5 -5
- package/src/styles/mixins/_control-base-deprecated.scss +113 -0
- package/src/styles/mixins/_form-control-base.scss +27 -19
- package/src/styles/mixins/_nav-control-base-deprecated.scss +99 -0
- package/src/styles/mixins/_overlay-base.scss +1 -1
- package/src/styles/mixins/_tabs-base.scss +5 -3
- package/src/styles/mixins.scss +0 -2
package/package.json
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
2
|
-
<g
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
<path fill="#17303B" d="M22.5344,21.2408 C20.4792,23.66 17.4216,25.2 14,25.2 C10.5784,25.2 7.5208,23.66 5.4656,21.2408 L5.4768,21.2352 C3.8192,19.2808 2.8,16.7664 2.8,14 C2.8,12.2416 3.2144,10.5896 3.9368,9.1056 L1.6184,7.4648 C0.588,9.4136 0,11.6368 0,14 C0,17.3656 1.1928,20.4512 3.1696,22.8648 L3.1696,22.8648 C5.7344,25.9952 9.6376,27.9944 14,27.9944 C18.3624,27.9944 22.2656,25.9952 24.8304,22.8648 L22.5344,21.2408 Z"/>
|
7
|
-
</g>
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32">
|
2
|
+
<g clip-path="url(#a)">
|
3
|
+
<path fill="#fff" d="M28 0H4a4 4 0 0 0-4 4v24a4 4 0 0 0 4 4h24a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4Z"/>
|
4
|
+
<path fill="#162F3B" d="M22.56 20.06v2.8H11.519v-2.8H22.56Zm-3.628-5.471v2.8h-7.414v-2.8h7.414Zm3.629-5.471v2.8H11.518v-2.8H22.56ZM16.994 4.8c3.422 0 6.48 1.54 8.535 3.96l2.296-1.63A13.973 13.973 0 0 0 16.995 2c-4.363 0-8.266 2-10.83 5.13L8.46 8.76a11.17 11.17 0 0 1 8.534-3.96Z"/>
|
5
|
+
<path fill="#162F3B" d="M25.534 23.24A11.17 11.17 0 0 1 17 27.2a11.17 11.17 0 0 1-8.534-3.96l.01-.005C6.82 21.281 5.8 18.766 5.8 16c0-1.758.414-3.41 1.137-4.894L4.618 9.465A13.94 13.94 0 0 0 3 16c0 3.366 1.193 6.451 3.17 8.865A13.973 13.973 0 0 0 17 29.995c4.362 0 8.266-2 10.83-5.13l-2.296-1.624Z"/>
|
8
6
|
</g>
|
7
|
+
<defs>
|
8
|
+
<clipPath id="a">
|
9
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
10
|
+
</clipPath>
|
11
|
+
</defs>
|
9
12
|
</svg>
|
@@ -147,12 +147,9 @@
|
|
147
147
|
--ec-background-color-dialog: rgba(26, 26, 35, .5);
|
148
148
|
--ec-background-color-dialog-stacked: rgba(26, 26, 35, .25);
|
149
149
|
--ec-background-color-tour: var(--ec-color-gray-8);
|
150
|
-
|
151
|
-
// TODO: verify
|
152
150
|
--ec-background-splash: radial-gradient(104.77% 95.14% at 90.16% 85.25%, rgba(113,235,111,0.60) 0%, rgba(255, 255, 255, 0) 100%),
|
153
151
|
radial-gradient(156.88% 63.71% at 8.4% 78.12%, rgba(219, 141, 255, 0.60) 0%, rgba(255, 255, 255, 0) 100%),
|
154
152
|
radial-gradient(265.09% 182.17% at 24.49% 5.63%, rgba(0, 87, 255, 0.60) 0%, rgba(255, 255, 255, 0) 100%), #FFF;
|
155
|
-
|
156
153
|
--ec-background-color-detail: rgba(26, 26, 35, .03);
|
157
154
|
--ec-background-color-disabled: rgba(26,26,35, .1);
|
158
155
|
--ec-background-color-hover: rgb(195, 212, 247);
|
@@ -165,14 +162,9 @@
|
|
165
162
|
--ec-background-color-accent: rgb(237, 220, 255);
|
166
163
|
--ec-background-color-promo: linear-gradient(78deg, #4B0793 0%, #A572DC 100%);
|
167
164
|
--ec-background-color-control: var(--ec-background-color);
|
168
|
-
|
169
|
-
// TODO: verify
|
170
|
-
--ec-background-color-control-invalid: var(--ec-background-color-caution);
|
171
165
|
|
172
166
|
// Shadows
|
173
167
|
--ec-box-shadow: 0px .125rem 1rem var(--ec-color-shadow);
|
174
|
-
|
175
|
-
// TODO: verify
|
176
168
|
--ec-box-shadow-overlay: 0px .0625rem .5rem var(--ec-color-shadow-overlay);
|
177
169
|
|
178
170
|
// Borders
|
@@ -183,9 +175,6 @@
|
|
183
175
|
--ec-border-color-control-disabled: var(--ec-border-color-control);
|
184
176
|
--ec-border-color-control-readonly: transparent;
|
185
177
|
|
186
|
-
// TODO: update
|
187
|
-
--ec-border-color-control-invalid: var(--ec-color-caution);
|
188
|
-
|
189
178
|
--ec-border-radius: .25rem;
|
190
179
|
--ec-border-radius-card: .375rem;
|
191
180
|
--ec-border-radius-dialog: .5rem;
|
@@ -1,8 +1,11 @@
|
|
1
|
+
$button-padding-y: 0.3125rem;
|
2
|
+
$button-padding-x: 0.5rem;
|
3
|
+
|
1
4
|
@mixin button {
|
2
5
|
font-size: var(--ec-font-size-action);
|
3
6
|
height: 2rem;
|
4
7
|
line-height: 1.25rem;
|
5
|
-
padding:
|
8
|
+
padding: $button-padding-y $button-padding-x;
|
6
9
|
border: 0;
|
7
10
|
border-radius: var(--ec-border-radius);
|
8
11
|
display: flex;
|
@@ -160,11 +163,11 @@
|
|
160
163
|
|
161
164
|
@mixin text-button(
|
162
165
|
$type: 'text',
|
163
|
-
$color: var(--ec-
|
166
|
+
$color: var(--ec-color-primary-dark),
|
164
167
|
$icon-color: inherit
|
165
168
|
) {
|
166
169
|
background-color: transparent;
|
167
|
-
color: $color;
|
170
|
+
color: var(--ec-button-color-text, $color);
|
168
171
|
|
169
172
|
.ec-icon {
|
170
173
|
color: var(--ec-button-color-icon-#{$type}, $icon-color);
|
@@ -26,13 +26,13 @@
|
|
26
26
|
border: solid 2px $color;
|
27
27
|
background-color: rgba($color, .25);
|
28
28
|
display: block;
|
29
|
-
width:
|
30
|
-
height:
|
29
|
+
width: 0.625rem;
|
30
|
+
height: 0.625rem;
|
31
31
|
border-radius: 50%;
|
32
32
|
|
33
33
|
@if $condensed {
|
34
|
-
width:
|
35
|
-
height:
|
34
|
+
width: .5rem;
|
35
|
+
height: .5rem;
|
36
36
|
border-width: 1px;
|
37
37
|
}
|
38
38
|
}
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
@mixin count-display {
|
47
47
|
color: var(--ec-color-accent);
|
48
|
-
font-size:
|
48
|
+
font-size: 2rem;
|
49
49
|
font-style: normal;
|
50
50
|
font-weight: bold;
|
51
51
|
line-height: 1;
|
@@ -0,0 +1,113 @@
|
|
1
|
+
@import '../core';
|
2
|
+
|
3
|
+
$control-border-color: var(--ec-border-color-control);
|
4
|
+
$control-border-width: rem-calc(1px);
|
5
|
+
$control-color: var(--ec-color-primary-dark);
|
6
|
+
$control-bg: var(--ec-background-color);
|
7
|
+
$control-font-family: var(--ec-font-family);
|
8
|
+
$control-font-size: var(--ec-font-size-body);
|
9
|
+
$control-height: rem-calc(32px);
|
10
|
+
$control-line-height: rem-calc(20px);
|
11
|
+
$control-padding-x: rem-calc(8px);
|
12
|
+
|
13
|
+
// Active State
|
14
|
+
$control-bg-active: var(--ec-color-interactive);
|
15
|
+
$control-text-active: var(--ec-color-primary-light);
|
16
|
+
|
17
|
+
// Focused
|
18
|
+
$control-bg-focused: var(--ec-color-disabled-dark);
|
19
|
+
$control-border-color-focused: var(--ec-color-interactive);
|
20
|
+
$control-shadow-focused: 0 0 0 $control-border-width $control-border-color-focused;
|
21
|
+
|
22
|
+
// Disabled
|
23
|
+
$control-bg-disabled: var(--ec-background-color-disabled);
|
24
|
+
$control-color-disabled: var(--ec-color-secondary-dark);
|
25
|
+
$control-opacity-disabled: .65;
|
26
|
+
|
27
|
+
// Invalid
|
28
|
+
$control-bg-invalid: var(--ec-background-color-control-invalid);
|
29
|
+
$control-border-color-invalid: var(--ec-border-color-control-invalid);
|
30
|
+
|
31
|
+
// Read only
|
32
|
+
$control-bg-read-only: rgba($black, .12);
|
33
|
+
|
34
|
+
/// Calculates the height, line-height and padding of a control
|
35
|
+
/// @param {number} $font-size [$control-font-size] - The font size of the control
|
36
|
+
/// @param {number | string} $height [$control-height] - The height of the control
|
37
|
+
/// @param {number} $line-height [$control-line-height] - The line-height of the control
|
38
|
+
/// @param {boolean} $borders [true] - Does the contorl have borders
|
39
|
+
@mixin control-dimensions(
|
40
|
+
$font-size: $control-font-size,
|
41
|
+
$height: $control-height,
|
42
|
+
$line-height: $control-line-height,
|
43
|
+
$borders: true
|
44
|
+
) {
|
45
|
+
|
46
|
+
// If $height is auto, set height to auto and reassign $control-height to $height for padding calculations
|
47
|
+
@if $height == auto {
|
48
|
+
height: $height;
|
49
|
+
$height: $control-height;
|
50
|
+
} @else {
|
51
|
+
height: $height;
|
52
|
+
}
|
53
|
+
|
54
|
+
// Remove units from $line height so it is relative to the control's font-size
|
55
|
+
line-height: strip-unit($line-height);
|
56
|
+
|
57
|
+
// Vertical padding should be the height minus the lineheight divided by two. If the control has borders, remove the border's width from the vertical padding
|
58
|
+
@if unit($line-height) != 'rem' {
|
59
|
+
@error "$line-height must be in rems in order to do calculations, was #{unit($line-height)}."
|
60
|
+
}
|
61
|
+
|
62
|
+
$padding-y: ($height - $line-height) * 0.5;
|
63
|
+
@if $borders {
|
64
|
+
$padding-y: (($height - $line-height) * 0.5) - $control-border-width;
|
65
|
+
}
|
66
|
+
padding: $padding-y $control-padding-x;
|
67
|
+
}
|
68
|
+
|
69
|
+
@mixin control-focus($borders: true) {
|
70
|
+
@if $borders {
|
71
|
+
border-color: $control-border-color-focused;
|
72
|
+
box-shadow: $control-shadow-focused;
|
73
|
+
} @else {
|
74
|
+
background-color: $control-bg-focused;
|
75
|
+
}
|
76
|
+
position: relative;
|
77
|
+
z-index: 1;
|
78
|
+
}
|
79
|
+
|
80
|
+
@mixin control-disabled($type, $borders: true) {
|
81
|
+
@if $borders {
|
82
|
+
background-color: $control-bg-disabled;
|
83
|
+
border-color: var(--ec-border-color-control-disabled);
|
84
|
+
}
|
85
|
+
|
86
|
+
color: $control-color-disabled;
|
87
|
+
opacity: $control-opacity-disabled;
|
88
|
+
|
89
|
+
@if $type == form {
|
90
|
+
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
@mixin control-invalid($borders: true) {
|
95
|
+
@if $borders {
|
96
|
+
&:not(:focus) {
|
97
|
+
border-color: $control-border-color-invalid;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
background-color: $control-bg-invalid;
|
101
|
+
}
|
102
|
+
|
103
|
+
@mixin control-default($borders: true) {
|
104
|
+
@if $borders {
|
105
|
+
border-color: $control-border-color;
|
106
|
+
}
|
107
|
+
background-color: $control-bg;
|
108
|
+
}
|
109
|
+
|
110
|
+
@mixin control-active {
|
111
|
+
background-color: var(--ec-background-color-hover);
|
112
|
+
}
|
113
|
+
|
@@ -1,12 +1,16 @@
|
|
1
1
|
@use "sass:math";
|
2
2
|
|
3
|
-
@import '
|
3
|
+
@import '../icons';
|
4
4
|
|
5
5
|
$form-control-icon-size: 1rem;
|
6
|
+
$form-control-font-size: 1rem;
|
6
7
|
$form-control-icon-position: .5rem center;
|
7
8
|
$form-control-label-size: var(--ec-font-size-label);
|
8
9
|
$form-control-height: 2rem;
|
10
|
+
$form-control-line-height: 1.25rem;
|
11
|
+
$form-control-padding-x: .5rem;
|
9
12
|
$form-control-spacing-y: 1rem;
|
13
|
+
$form-control-padding-y: .3125rem;
|
10
14
|
|
11
15
|
$checkbox-indicator-size: $form-control-icon-size;
|
12
16
|
|
@@ -76,7 +80,7 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
76
80
|
) {
|
77
81
|
$size: $width, $height;
|
78
82
|
@include icon-bg-image($icon, $position, $size);
|
79
|
-
padding-left: ($indent + $control-padding-x);
|
83
|
+
padding-left: ($indent + $form-control-padding-x);
|
80
84
|
}
|
81
85
|
|
82
86
|
@mixin form-control-state($state, $selector) {
|
@@ -88,8 +92,6 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
88
92
|
|
89
93
|
/// Required
|
90
94
|
@if $state == required {
|
91
|
-
// @include control-default;
|
92
|
-
|
93
95
|
// TODO: remove when all bootstrap and kendo controls have been replaced in EUM
|
94
96
|
@include form-control-input-icon($required-icon, $position: $icon-position);
|
95
97
|
|
@@ -101,15 +103,13 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
101
103
|
|
102
104
|
/// Invalid
|
103
105
|
} @else if $state == invalid {
|
104
|
-
|
106
|
+
background-color: var(--ec-form-control-background-color-invalid);
|
105
107
|
border-color: var(--ec-form-control-border-color-invalid);
|
106
108
|
|
107
109
|
&:focus {
|
108
110
|
border-color: var(--ec-form-control-background-color-invalid);
|
109
111
|
}
|
110
112
|
|
111
|
-
background-color: var(--ec-form-control-background-color-invalid);
|
112
|
-
|
113
113
|
// TODO: remove when all bootstrap and kendo controls have been replaced in EUM
|
114
114
|
@include form-control-input-icon($invalid-icon, $position: $icon-position);
|
115
115
|
|
@@ -130,7 +130,7 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
130
130
|
&:required,
|
131
131
|
&:required.is-empty {
|
132
132
|
background-image: none;
|
133
|
-
padding-left: $control-padding-x;
|
133
|
+
padding-left: $form-control-padding-x;
|
134
134
|
|
135
135
|
// We need to define these again because the :required styles override
|
136
136
|
// the background-color and border-color we set above
|
@@ -163,8 +163,8 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
163
163
|
background-image: none;
|
164
164
|
background-clip: padding-box;
|
165
165
|
width: 100%;
|
166
|
-
line-height:
|
167
|
-
padding:
|
166
|
+
line-height: $form-control-line-height;
|
167
|
+
padding: $form-control-padding-y $form-control-padding-x;
|
168
168
|
|
169
169
|
@if $selector == input {
|
170
170
|
height: $form-control-height;
|
@@ -430,9 +430,8 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
430
430
|
}
|
431
431
|
|
432
432
|
@mixin checkbox-radio-label() {
|
433
|
-
|
434
|
-
padding
|
435
|
-
padding-right: 0;
|
433
|
+
line-height: $form-control-line-height;
|
434
|
+
padding: 0.375rem 0;
|
436
435
|
margin-left: .5rem;
|
437
436
|
min-height: $form-control-height;
|
438
437
|
height: auto;
|
@@ -457,15 +456,15 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
457
456
|
#{$label-selector},
|
458
457
|
#{$indicator-selector} {
|
459
458
|
opacity: 1;
|
460
|
-
color:
|
459
|
+
color: var(--ec-form-control-color);
|
461
460
|
}
|
462
461
|
}
|
463
462
|
|
464
463
|
@mixin toggle() {
|
465
|
-
font-size:
|
464
|
+
font-size: var(--ec-form-control-font-size);
|
466
465
|
background-color: var(--ec-border-color);
|
467
466
|
border-radius: var(--ec-border-radius);
|
468
|
-
border:
|
467
|
+
border: 1px solid var(--ec-border-color);
|
469
468
|
min-height: 2em;
|
470
469
|
position: relative;
|
471
470
|
color: var(--ec-color-secondary-dark);
|
@@ -512,7 +511,7 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
512
511
|
justify-content: center;
|
513
512
|
line-height: 1.1em;
|
514
513
|
margin-bottom: 0;
|
515
|
-
padding:
|
514
|
+
padding: 0.375rem .5rem;
|
516
515
|
position: relative;
|
517
516
|
text-align: center;
|
518
517
|
transition: color .3s ease;
|
@@ -524,7 +523,7 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
524
523
|
}
|
525
524
|
|
526
525
|
a {
|
527
|
-
border:
|
526
|
+
border: 0.1875rem solid transparent;
|
528
527
|
border-radius: calc(var(--ec-form-control-border-radius) * .75);
|
529
528
|
display: block;
|
530
529
|
height: 100%;
|
@@ -587,7 +586,7 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
587
586
|
input {
|
588
587
|
&.ng-invalid.ng-touched {
|
589
588
|
background-image: none;
|
590
|
-
padding-left: $control-padding-x;
|
589
|
+
padding-left: $form-control-padding-x;
|
591
590
|
|
592
591
|
&:not(.is-empty) ~ .units-left {
|
593
592
|
left: 0;
|
@@ -630,3 +629,12 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
630
629
|
overflow: hidden;
|
631
630
|
white-space: nowrap;
|
632
631
|
}
|
632
|
+
|
633
|
+
@mixin form-control-popup {
|
634
|
+
background-color: var(--ec-background-color);
|
635
|
+
border-radius: var(--ec-border-radius-card);
|
636
|
+
box-shadow: var(--ec-box-shadow-overlay);
|
637
|
+
margin-top: .25rem;
|
638
|
+
overflow: hidden;
|
639
|
+
z-index: var(--ec-z-index-popup);
|
640
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
// @import 'control-base';
|
2
|
+
|
3
|
+
$nav-font-size: var(--ec-font-size-action);
|
4
|
+
$nav-item-bg: var(--ec-background-color);
|
5
|
+
$nav-item-height: 1.75rem;
|
6
|
+
$nav-item-line-height: 1.125rem;
|
7
|
+
$nav-item-bg-hover: var(--ec-background-color-hover);
|
8
|
+
$nav-item-bg-selected: var(--ec-background-color-selected);
|
9
|
+
$nav-icon-height: var(--ec-font-size-icon);
|
10
|
+
$nav-item-transition-duration: .2s;
|
11
|
+
|
12
|
+
@mixin nav-hover($selector) {
|
13
|
+
@if $selector == button {
|
14
|
+
|
15
|
+
} @else {
|
16
|
+
background-color: $nav-item-bg-hover;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
@mixin nav-active() {
|
21
|
+
background-color: $control-bg-active;
|
22
|
+
color: $control-text-active;
|
23
|
+
}
|
24
|
+
|
25
|
+
@mixin nav-selected() {
|
26
|
+
background-color: $nav-item-bg-selected;
|
27
|
+
}
|
28
|
+
|
29
|
+
@mixin nav-focus($borders) {
|
30
|
+
@include control-focus($borders);
|
31
|
+
}
|
32
|
+
|
33
|
+
@mixin nav-item-states($selector, $borders: false) {
|
34
|
+
cursor: pointer;
|
35
|
+
|
36
|
+
&.is-selected,
|
37
|
+
&.is-highlighted {
|
38
|
+
@include nav-selected();
|
39
|
+
}
|
40
|
+
|
41
|
+
&:hover {
|
42
|
+
@include nav-hover($selector);
|
43
|
+
}
|
44
|
+
|
45
|
+
&:focus {
|
46
|
+
@include nav-focus($borders);
|
47
|
+
outline: none;
|
48
|
+
}
|
49
|
+
|
50
|
+
&:active {
|
51
|
+
@include nav-active();
|
52
|
+
}
|
53
|
+
|
54
|
+
&:disabled,
|
55
|
+
&.is-disabled {
|
56
|
+
@include control-disabled('nav', $borders);
|
57
|
+
cursor: default;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
@mixin nav-item(
|
62
|
+
$selector,
|
63
|
+
$bg: $nav-item-bg,
|
64
|
+
$font-size: $nav-font-size,
|
65
|
+
$height: $nav-item-height,
|
66
|
+
$line-height: $nav-item-line-height,
|
67
|
+
$borders: false
|
68
|
+
) {
|
69
|
+
|
70
|
+
@include control-dimensions($font-size, $height, $line-height, $borders);
|
71
|
+
|
72
|
+
align-items: center;
|
73
|
+
background-color: $bg;
|
74
|
+
display: flex;
|
75
|
+
|
76
|
+
@include nav-item-states($selector, $borders);
|
77
|
+
|
78
|
+
.label {
|
79
|
+
align-items: center;
|
80
|
+
display: flex;
|
81
|
+
flex: auto;
|
82
|
+
}
|
83
|
+
|
84
|
+
.ec-icon {
|
85
|
+
flex: 0 0 auto;
|
86
|
+
|
87
|
+
& + .label {
|
88
|
+
margin: 0 0.375rem;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
@mixin nav-group($font-size: $nav-font-size, $color: $control-color) {
|
94
|
+
color: $color;
|
95
|
+
font-size: $font-size;
|
96
|
+
font-family: $control-font-family;
|
97
|
+
padding: 0;
|
98
|
+
margin: 0;
|
99
|
+
}
|
@@ -1,5 +1,3 @@
|
|
1
|
-
@import 'nav-control-base';
|
2
|
-
|
3
1
|
@mixin tab-active($style: tabs) {
|
4
2
|
color: var(--ec-tab-color-active, var(--ec-color-interactive));
|
5
3
|
|
@@ -11,7 +9,7 @@
|
|
11
9
|
}
|
12
10
|
|
13
11
|
@mixin tab($style: tabs) {
|
14
|
-
$height:
|
12
|
+
$height: 2rem;
|
15
13
|
|
16
14
|
@if $style == 'pills' {
|
17
15
|
$height: 1.75rem;
|
@@ -66,6 +64,10 @@
|
|
66
64
|
@mixin tab-icon-only {
|
67
65
|
padding: 0;
|
68
66
|
justify-content: center;
|
67
|
+
|
68
|
+
.ec-icon {
|
69
|
+
color: inherit;
|
70
|
+
}
|
69
71
|
}
|
70
72
|
|
71
73
|
@mixin tab-item($style: tabs) {
|
package/src/styles/mixins.scss
CHANGED
@@ -2,10 +2,8 @@
|
|
2
2
|
// of the component library
|
3
3
|
@import 'mixins/common';
|
4
4
|
@import 'mixins/button-base';
|
5
|
-
@import 'mixins/control-base';
|
6
5
|
@import 'mixins/dialog-base';
|
7
6
|
@import 'mixins/form-control-base';
|
8
|
-
@import 'mixins/nav-control-base';
|
9
7
|
@import 'mixins/overlay-base';
|
10
8
|
@import 'mixins/spinner-base';
|
11
9
|
@import 'mixins/tabs-base';
|