@design-factory/design-factory 17.0.0 → 17.0.2
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/design-factory-initial-branding.css +1 -1
- package/design-factory.css +1 -1
- package/esm2022/lib/angular/sidenav/sidenavlist.component.mjs +12 -3
- package/esm2022/lib/angular/tooltip/truncate/tooltipTruncate.directive.mjs +3 -5
- package/esm2022/lib/angular/utils/html-element-helper.mjs +8 -0
- package/esm2022/lib/angular/utils/titleTruncate.directive.mjs +39 -0
- package/esm2022/lib/index.mjs +4 -1
- package/fesm2022/design-factory.mjs +56 -7
- package/fesm2022/design-factory.mjs.map +1 -1
- package/lib/angular/tooltip/truncate/tooltipTruncate.directive.d.ts +0 -1
- package/lib/angular/utils/html-element-helper.d.ts +5 -0
- package/lib/angular/utils/titleTruncate.directive.d.ts +16 -0
- package/lib/index.d.ts +2 -0
- package/package.json +8 -5
- package/styles/scss/_common.root.scss +9 -0
- package/styles/scss/bootstrap/_mixins-override.scss +0 -26
- package/styles/scss/bootstrap/_variables.scss +186 -172
- package/styles/scss/components/brand-color/_brand-color_container.scss +1 -6
- package/styles/scss/components/button/_button.scss +13 -0
- package/styles/scss/components/datepicker/_datepicker.variables.scss +1 -1
- package/styles/scss/components/form/_form.scss +21 -11
- package/styles/scss/components/form/_form.variables.scss +3 -12
- package/styles/scss/components/inputs/_inputs.mixin.scss +1 -1
- package/styles/scss/components/popover/_popover_container.scss +47 -38
- package/styles/scss/components/select/_select.scss +16 -12
- package/styles/scss/components/stepper/_stepper.mixins.scss +62 -55
- package/styles/scss/components/tabs/_tabs.scss +32 -18
- package/styles/scss/components/tabs/_tabs.variables.scss +1 -0
- package/styles/scss/themes/brand2023/_variables.scss +9 -9
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// stylelint-disable scss/dollar-variable-pattern
|
|
2
|
-
$shade-colors-rgb: map-loop($shade-colors, to-rgb, "$value") !default;
|
|
3
|
-
$shade-colors-text: map-loop($shade-colors, color-contrast, "$value") !default;
|
|
4
|
-
$shade-colors-text-rgb: map-loop($shade-colors-text, to-rgb, "$value") !default;
|
|
5
|
-
|
|
6
1
|
#{$df-css-namespace-selector} {
|
|
7
2
|
--#{$prefix}dark-primary: #{$dark-primary};
|
|
8
3
|
--#{$prefix}yellow-rgb: #{to-rgb($yellow)};
|
|
@@ -25,4 +20,4 @@ $shade-colors-text-rgb: map-loop($shade-colors-text, to-rgb, "$value") !default;
|
|
|
25
20
|
@each $color, $value in $shade-colors-text-rgb {
|
|
26
21
|
--#{$prefix}#{$color}-color-rgb: #{$value};
|
|
27
22
|
}
|
|
28
|
-
}
|
|
23
|
+
}
|
|
@@ -21,6 +21,19 @@
|
|
|
21
21
|
|
|
22
22
|
&.disabled,
|
|
23
23
|
&:disabled {
|
|
24
|
+
.btn-check:checked + &,
|
|
25
|
+
:not(.btn-check) + &:active,
|
|
26
|
+
&:first-child:active,
|
|
27
|
+
&.active,
|
|
28
|
+
&.show {
|
|
29
|
+
color: var(--#{$prefix}btn-disabled-color);
|
|
30
|
+
background-color: var(--#{$prefix}btn-disabled-bg);
|
|
31
|
+
background-image: if($enable-gradients, none, null);
|
|
32
|
+
border-color: var(--#{$prefix}btn-disabled-border-color);
|
|
33
|
+
opacity: var(--#{$prefix}btn-disabled-opacity);
|
|
34
|
+
@include box-shadow(none);
|
|
35
|
+
}
|
|
36
|
+
|
|
24
37
|
cursor: var(--#{$prefix}btn-cursor-disabled);
|
|
25
38
|
pointer-events: auto; // override
|
|
26
39
|
}
|
|
@@ -32,7 +32,7 @@ $df-datepicker-day-hover-color: color-contrast($df-datepicker-day-hover-bg-color
|
|
|
32
32
|
$df-datepicker-day-hover-text-decoration: underline !default; // why underline here add the reason with UX
|
|
33
33
|
$df-datepicker-day-focus-outline-width: 0.2rem !default;
|
|
34
34
|
$df-datepicker-day-focus-border: ($df-datepicker-day-focus-outline-width + 0.05rem) solid
|
|
35
|
-
rgba($input-focus-border-color, 0.5) !default;
|
|
35
|
+
rgba(to-rgb($input-focus-border-color), 0.5) !default;
|
|
36
36
|
$df-datepicker-day-focus-active-z-index: 0 !default;
|
|
37
37
|
$df-datepicker-day-focus-active-border-color: rgba($white, 0.5) !default;
|
|
38
38
|
$df-datepicker-day-focus-active-border-z-index: -1 !default;
|
|
@@ -2,21 +2,15 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
form {
|
|
5
|
-
--#{$prefix}form-input-disabled-color: #{$df-disabled-input-color};
|
|
6
|
-
--#{$prefix}form-input-disabled-cursor: #{$df-input-disabled-cursor};
|
|
7
5
|
--#{$prefix}form-sm-label-margin-bottom: #{$df-label-margin-bottom-sm};
|
|
8
6
|
--#{$prefix}form-lg-label-margin-bottom: #{$df-label-margin-bottom-sm}; // strange that we use the same value
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
--#{$prefix}form-check-input-sm-width: #{$df-form-check-input-sm-width};
|
|
13
|
-
--#{$prefix}form-check-input-lg-width: #{$df-form-check-input-lg-width};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.form-switch {
|
|
14
10
|
--#{$prefix}form-switch-sm-width: #{$df-form-switch-sm-width};
|
|
15
11
|
--#{$prefix}form-switch-sm-height: #{math.div($df-form-switch-sm-width, 2)};
|
|
16
12
|
--#{$prefix}form-switch-lg-width: #{$df-form-switch-lg-width};
|
|
17
13
|
--#{$prefix}form-switch-lg-height: #{math.div($df-form-switch-lg-width, 2)};
|
|
18
|
-
--#{$prefix}form-check-input-sm-margin-top: #{($line-height-sm - $df-form-check-input-sm-width) * 1};
|
|
19
|
-
--#{$prefix}form-check-input-lg-margin-top: #{($line-height-lg - $df-form-check-input-lg-width) * 0.5};
|
|
20
14
|
}
|
|
21
15
|
|
|
22
16
|
.form-inline {
|
|
@@ -28,11 +22,13 @@ form {
|
|
|
28
22
|
}
|
|
29
23
|
|
|
30
24
|
.form-control {
|
|
25
|
+
--#{$prefix}form-input-disabled-color: #{$df-disabled-input-color};
|
|
26
|
+
--#{$prefix}form-input-disabled-cursor: #{$df-input-disabled-cursor};
|
|
31
27
|
@if variable-exists($name: 'df-enableBranding2023') and $df-enableBranding2023 {
|
|
32
28
|
--#{$prefix}box-shadow-color: #{$input-focus-border-color};
|
|
33
29
|
} @else {
|
|
34
30
|
--#{$prefix}border-color-opacity: #{$input-btn-focus-color-opacity};
|
|
35
|
-
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity('primary', 'border-color')}
|
|
31
|
+
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity('primary', 'border-color')};
|
|
36
32
|
}
|
|
37
33
|
&:disabled {
|
|
38
34
|
color: var(--#{$prefix}form-input-disabled-color);
|
|
@@ -53,6 +49,20 @@ form {
|
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
51
|
|
|
52
|
+
.form-check-input {
|
|
53
|
+
--#{$prefix}form-check-input-sm-width: #{$df-form-check-input-sm-width};
|
|
54
|
+
--#{$prefix}form-check-input-lg-width: #{$df-form-check-input-lg-width};
|
|
55
|
+
--#{$prefix}form-check-input-sm-margin-top: #{($line-height-sm - $df-form-check-input-sm-width) * 1};
|
|
56
|
+
--#{$prefix}form-check-input-lg-margin-top: #{($line-height-lg - $df-form-check-input-lg-width) * 0.5};
|
|
57
|
+
|
|
58
|
+
@if variable-exists($name: 'df-enableBranding2023') and $df-enableBranding2023 {
|
|
59
|
+
--#{$prefix}box-shadow-color: #{shades-css-var('primary', 'border-color')};
|
|
60
|
+
} @else {
|
|
61
|
+
--#{$prefix}border-color-opacity: #{$input-btn-focus-color-opacity};
|
|
62
|
+
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity('primary', 'border-color')};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
56
66
|
// Override warning state color
|
|
57
67
|
.warning-feedback {
|
|
58
68
|
color: var(--#{$prefix}form-feedback-help-warning-color);
|
|
@@ -87,7 +97,7 @@ form {
|
|
|
87
97
|
--#{$prefix}box-shadow-color: #{shades-css-var($colorName, 'border-color')};
|
|
88
98
|
} @else {
|
|
89
99
|
--#{$prefix}border-color-opacity: #{$input-btn-focus-color-opacity};
|
|
90
|
-
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')}
|
|
100
|
+
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')};
|
|
91
101
|
}
|
|
92
102
|
}
|
|
93
103
|
}
|
|
@@ -17,22 +17,13 @@ $df-form-validation-states-names: (
|
|
|
17
17
|
$form-validation-states: map.merge(
|
|
18
18
|
(
|
|
19
19
|
'warning': (
|
|
20
|
-
'color': $
|
|
21
|
-
'icon': $df-form-feedback-warning-icon
|
|
20
|
+
'color': var(--#{$prefix}form-warning-color),
|
|
21
|
+
'icon': $df-form-feedback-warning-icon,
|
|
22
|
+
'focus-box-shadow': $input-btn-focus-box-shadow
|
|
22
23
|
)
|
|
23
24
|
),
|
|
24
25
|
$form-validation-states
|
|
25
26
|
);
|
|
26
|
-
//updating focus box shadows
|
|
27
|
-
@each $state, $data in $form-validation-states {
|
|
28
|
-
$form-validation-data: map.merge(
|
|
29
|
-
(
|
|
30
|
-
'focus-box-shadow': $input-btn-focus-box-shadow
|
|
31
|
-
),
|
|
32
|
-
$data
|
|
33
|
-
);
|
|
34
|
-
$form-validation-states: map.set($form-validation-states, $state, $form-validation-data);
|
|
35
|
-
}
|
|
36
27
|
|
|
37
28
|
$df-form-check-input-sm-width: $form-check-input-width * map.get($df-size-ratios, 'sm') !default;
|
|
38
29
|
$df-form-check-input-lg-width: $form-check-input-width * map.get($df-size-ratios, 'lg') !default;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@if variable-exists($name: 'df-enableBranding2023') and $df-enableBranding2023 {
|
|
8
8
|
--#{$prefix}box-shadow-color: #{shades-css-var($colorName, 'border-color')};
|
|
9
9
|
} @else {
|
|
10
|
-
--#{$prefix}box-shadow-color: #{
|
|
10
|
+
--#{$prefix}box-shadow-color: rgba(#{to-rgb($color)}, #{$input-btn-focus-color-opacity});
|
|
11
11
|
}
|
|
12
12
|
& ~ .#{$state}-feedback,
|
|
13
13
|
.#{$state}-tooltip {
|
|
@@ -27,8 +27,16 @@
|
|
|
27
27
|
--#{$prefix}popover-arrow-width: #{$popover-arrow-width};
|
|
28
28
|
--#{$prefix}popover-arrow-height: #{$popover-arrow-height};
|
|
29
29
|
--#{$prefix}popover-arrow-border: var(--#{$prefix}popover-border-color);
|
|
30
|
+
|
|
31
|
+
--#{$prefix}popover-margin: #{$df-popover-margin};
|
|
32
|
+
--#{$prefix}popover-padding: #{$df-popover-padding};
|
|
33
|
+
--#{$prefix}popover-header-line-height: #{$df-popover-header-line-height};
|
|
34
|
+
--#{$prefix}popover-header-margin: #{$df-popover-header-default-margin};
|
|
35
|
+
--#{$prefix}popover-body-margin: #{$df-popover-body-default-margin};
|
|
36
|
+
--#{$prefix}popover-header-font-size: #{$h3-font-size};
|
|
37
|
+
--#{$prefix}popover-body-font-size: #{$font-size-base};
|
|
30
38
|
// scss-docs-end popover-css-vars
|
|
31
|
-
|
|
39
|
+
|
|
32
40
|
z-index: var(--#{$prefix}popover-zindex);
|
|
33
41
|
display: block;
|
|
34
42
|
max-width: var(--#{$prefix}popover-max-width);
|
|
@@ -43,91 +51,92 @@
|
|
|
43
51
|
border: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-border-color);
|
|
44
52
|
@include border-radius(var(--#{$prefix}popover-border-radius));
|
|
45
53
|
@include box-shadow(var(--#{$prefix}popover-box-shadow));
|
|
46
|
-
|
|
54
|
+
|
|
47
55
|
&.popover-arrow {
|
|
48
56
|
display: block;
|
|
49
57
|
width: var(--#{$prefix}popover-arrow-width);
|
|
50
58
|
height: var(--#{$prefix}popover-arrow-height);
|
|
51
|
-
|
|
59
|
+
|
|
52
60
|
&::before,
|
|
53
61
|
&::after {
|
|
54
62
|
position: absolute;
|
|
55
63
|
display: block;
|
|
56
|
-
content:
|
|
64
|
+
content: '';
|
|
57
65
|
border-color: transparent;
|
|
58
66
|
border-style: solid;
|
|
59
67
|
border-width: 0;
|
|
60
68
|
}
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
|
-
|
|
71
|
+
|
|
64
72
|
&.bs-popover-top {
|
|
65
73
|
> .popover-arrow {
|
|
66
74
|
bottom: calc((var(--#{$prefix}popover-arrow-height) * -1)); // stylelint-disable-line function-disallowed-list
|
|
67
|
-
|
|
75
|
+
|
|
68
76
|
&::before,
|
|
69
77
|
&::after {
|
|
70
|
-
border-width: var(--#{$prefix}popover-arrow-height) calc(var(--#{$prefix}popover-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
|
|
78
|
+
border-width: var(--#{$prefix}popover-arrow-height) calc(var(--#{$prefix}popover-arrow-width) * 0.5) 0; // stylelint-disable-line function-disallowed-list
|
|
71
79
|
}
|
|
72
|
-
|
|
80
|
+
|
|
73
81
|
&::before {
|
|
74
82
|
bottom: 0;
|
|
75
83
|
border-top-color: var(--#{$prefix}popover-arrow-border);
|
|
76
84
|
}
|
|
77
|
-
|
|
85
|
+
|
|
78
86
|
&::after {
|
|
79
87
|
bottom: var(--#{$prefix}popover-border-width);
|
|
80
88
|
border-top-color: var(--#{$prefix}popover-bg);
|
|
81
89
|
}
|
|
82
90
|
}
|
|
83
91
|
}
|
|
84
|
-
|
|
92
|
+
|
|
85
93
|
/* rtl:begin:ignore */
|
|
86
94
|
&.bs-popover-end {
|
|
87
95
|
> .popover-arrow {
|
|
88
96
|
left: calc((var(--#{$prefix}popover-arrow-height) * -1)); // stylelint-disable-line function-disallowed-list
|
|
89
97
|
width: var(--#{$prefix}popover-arrow-height);
|
|
90
98
|
height: var(--#{$prefix}popover-arrow-width);
|
|
91
|
-
|
|
99
|
+
|
|
92
100
|
&::before,
|
|
93
101
|
&::after {
|
|
94
|
-
border-width: calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height)
|
|
102
|
+
border-width: calc(var(--#{$prefix}popover-arrow-width) * 0.5) var(--#{$prefix}popover-arrow-height)
|
|
103
|
+
calc(var(--#{$prefix}popover-arrow-width) * 0.5) 0; // stylelint-disable-line function-disallowed-list
|
|
95
104
|
}
|
|
96
|
-
|
|
105
|
+
|
|
97
106
|
&::before {
|
|
98
107
|
left: 0;
|
|
99
108
|
border-right-color: var(--#{$prefix}popover-arrow-border);
|
|
100
109
|
}
|
|
101
|
-
|
|
110
|
+
|
|
102
111
|
&::after {
|
|
103
112
|
left: var(--#{$prefix}popover-border-width);
|
|
104
113
|
border-right-color: var(--#{$prefix}popover-bg);
|
|
105
114
|
}
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
|
-
|
|
117
|
+
|
|
109
118
|
/* rtl:end:ignore */
|
|
110
|
-
|
|
119
|
+
|
|
111
120
|
&.bs-popover-bottom {
|
|
112
121
|
> .popover-arrow {
|
|
113
122
|
top: calc((var(--#{$prefix}popover-arrow-height) * -1)); // stylelint-disable-line function-disallowed-list
|
|
114
|
-
|
|
123
|
+
|
|
115
124
|
&::before,
|
|
116
125
|
&::after {
|
|
117
|
-
border-width: 0 calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height); // stylelint-disable-line function-disallowed-list
|
|
126
|
+
border-width: 0 calc(var(--#{$prefix}popover-arrow-width) * 0.5) var(--#{$prefix}popover-arrow-height); // stylelint-disable-line function-disallowed-list
|
|
118
127
|
}
|
|
119
|
-
|
|
128
|
+
|
|
120
129
|
&::before {
|
|
121
130
|
top: 0;
|
|
122
131
|
border-bottom-color: var(--#{$prefix}popover-arrow-border);
|
|
123
132
|
}
|
|
124
|
-
|
|
133
|
+
|
|
125
134
|
&::after {
|
|
126
135
|
top: var(--#{$prefix}popover-border-width);
|
|
127
136
|
border-bottom-color: var(--#{$prefix}popover-bg);
|
|
128
137
|
}
|
|
129
138
|
}
|
|
130
|
-
|
|
139
|
+
|
|
131
140
|
// This will remove the popover-header's border just below the arrow
|
|
132
141
|
.popover-header::before {
|
|
133
142
|
position: absolute;
|
|
@@ -135,53 +144,54 @@
|
|
|
135
144
|
left: 50%;
|
|
136
145
|
display: block;
|
|
137
146
|
width: var(--#{$prefix}popover-arrow-width);
|
|
138
|
-
margin-left: calc(var(--#{$prefix}popover-arrow-width) *
|
|
139
|
-
content:
|
|
147
|
+
margin-left: calc(var(--#{$prefix}popover-arrow-width) * -0.5); // stylelint-disable-line function-disallowed-list
|
|
148
|
+
content: '';
|
|
140
149
|
border-bottom: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-header-bg);
|
|
141
150
|
}
|
|
142
151
|
}
|
|
143
|
-
|
|
152
|
+
|
|
144
153
|
/* rtl:begin:ignore */
|
|
145
154
|
&.bs-popover-start {
|
|
146
155
|
> .popover-arrow {
|
|
147
156
|
right: calc((var(--#{$prefix}popover-arrow-height) * -1)); // stylelint-disable-line function-disallowed-list
|
|
148
157
|
width: var(--#{$prefix}popover-arrow-height);
|
|
149
158
|
height: var(--#{$prefix}popover-arrow-width);
|
|
150
|
-
|
|
159
|
+
|
|
151
160
|
&::before,
|
|
152
161
|
&::after {
|
|
153
|
-
border-width: calc(var(--#{$prefix}popover-arrow-width) * .5) 0
|
|
162
|
+
border-width: calc(var(--#{$prefix}popover-arrow-width) * 0.5) 0
|
|
163
|
+
calc(var(--#{$prefix}popover-arrow-width) * 0.5) var(--#{$prefix}popover-arrow-height); // stylelint-disable-line function-disallowed-list
|
|
154
164
|
}
|
|
155
|
-
|
|
165
|
+
|
|
156
166
|
&::before {
|
|
157
167
|
right: 0;
|
|
158
168
|
border-left-color: var(--#{$prefix}popover-arrow-border);
|
|
159
169
|
}
|
|
160
|
-
|
|
170
|
+
|
|
161
171
|
&::after {
|
|
162
172
|
right: var(--#{$prefix}popover-border-width);
|
|
163
173
|
border-left-color: var(--#{$prefix}popover-bg);
|
|
164
174
|
}
|
|
165
175
|
}
|
|
166
176
|
}
|
|
167
|
-
|
|
177
|
+
|
|
168
178
|
/* rtl:end:ignore */
|
|
169
|
-
|
|
179
|
+
|
|
170
180
|
&.bs-popover-auto {
|
|
171
|
-
&[data-popper-placement^=
|
|
181
|
+
&[data-popper-placement^='top'] {
|
|
172
182
|
@extend .bs-popover-top;
|
|
173
183
|
}
|
|
174
|
-
&[data-popper-placement^=
|
|
184
|
+
&[data-popper-placement^='right'] {
|
|
175
185
|
@extend .bs-popover-end;
|
|
176
186
|
}
|
|
177
|
-
&[data-popper-placement^=
|
|
187
|
+
&[data-popper-placement^='bottom'] {
|
|
178
188
|
@extend .bs-popover-bottom;
|
|
179
189
|
}
|
|
180
|
-
&[data-popper-placement^=
|
|
190
|
+
&[data-popper-placement^='left'] {
|
|
181
191
|
@extend .bs-popover-start;
|
|
182
192
|
}
|
|
183
193
|
}
|
|
184
|
-
|
|
194
|
+
|
|
185
195
|
// Offset the popover to account for the popover arrow
|
|
186
196
|
&.popover-header {
|
|
187
197
|
padding: var(--#{$prefix}popover-header-padding-y) var(--#{$prefix}popover-header-padding-x);
|
|
@@ -191,15 +201,14 @@
|
|
|
191
201
|
background-color: var(--#{$prefix}popover-header-bg);
|
|
192
202
|
border-bottom: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-border-color);
|
|
193
203
|
@include border-top-radius(var(--#{$prefix}popover-inner-border-radius));
|
|
194
|
-
|
|
204
|
+
|
|
195
205
|
&:empty {
|
|
196
206
|
display: none;
|
|
197
207
|
}
|
|
198
208
|
}
|
|
199
|
-
|
|
209
|
+
|
|
200
210
|
&.popover-body {
|
|
201
211
|
padding: var(--#{$prefix}popover-body-padding-y) var(--#{$prefix}popover-body-padding-x);
|
|
202
212
|
color: var(--#{$prefix}popover-body-color);
|
|
203
213
|
}
|
|
204
|
-
|
|
205
214
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
|
+
.form-select,
|
|
4
|
+
.ng-select {
|
|
5
|
+
--#{$prefix}form-select-focus-border-color: #{$form-select-focus-border-color};
|
|
6
|
+
}
|
|
7
|
+
|
|
3
8
|
/* Native select */
|
|
4
9
|
.form-select {
|
|
5
10
|
--#{$prefix}box-shadow-color: #{$input-focus-border-color};
|
|
@@ -13,14 +18,14 @@
|
|
|
13
18
|
--#{$prefix}box-shadow-color: #{shades-css-var($colorName, 'border-color')};
|
|
14
19
|
} @else {
|
|
15
20
|
--#{$prefix}border-color-opacity: #{$input-btn-focus-color-opacity};
|
|
16
|
-
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')}
|
|
21
|
+
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')};
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
&:focus {
|
|
22
27
|
// override
|
|
23
|
-
border-color: $
|
|
28
|
+
border-color: var(--#{$prefix}form-select-focus-border-color);
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
&:not([disabled]) {
|
|
@@ -40,13 +45,13 @@
|
|
|
40
45
|
&:not([multiple]):disabled {
|
|
41
46
|
// override
|
|
42
47
|
@include ltr {
|
|
43
|
-
background: $form-select-disabled-bg var(--#{$prefix}select-indicator-disabled) no-repeat right
|
|
44
|
-
center;
|
|
48
|
+
background: $form-select-disabled-bg var(--#{$prefix}select-indicator-disabled) no-repeat right
|
|
49
|
+
$form-select-padding-x center;
|
|
45
50
|
background-size: $form-select-bg-size;
|
|
46
51
|
}
|
|
47
52
|
@include rtl {
|
|
48
|
-
background: $form-select-disabled-bg var(--#{$prefix}select-indicator-disabled) no-repeat left
|
|
49
|
-
center;
|
|
53
|
+
background: $form-select-disabled-bg var(--#{$prefix}select-indicator-disabled) no-repeat left
|
|
54
|
+
$form-select-padding-x center;
|
|
50
55
|
background-size: $form-select-bg-size;
|
|
51
56
|
}
|
|
52
57
|
}
|
|
@@ -172,9 +177,9 @@
|
|
|
172
177
|
--#{$prefix}box-shadow-color: #{$input-focus-border-color};
|
|
173
178
|
} @else {
|
|
174
179
|
--#{$prefix}border-color-opacity: #{$input-btn-focus-color-opacity};
|
|
175
|
-
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity('primary', 'border-color')}
|
|
180
|
+
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity('primary', 'border-color')};
|
|
176
181
|
}
|
|
177
|
-
|
|
182
|
+
|
|
178
183
|
&.form-control {
|
|
179
184
|
// add
|
|
180
185
|
padding: 0;
|
|
@@ -278,7 +283,7 @@
|
|
|
278
283
|
}
|
|
279
284
|
}
|
|
280
285
|
}
|
|
281
|
-
|
|
286
|
+
&.df-ng-select-readonly {
|
|
282
287
|
// add
|
|
283
288
|
> .ng-select-container {
|
|
284
289
|
background-color: var(--#{$prefix}select-readonly-bg);
|
|
@@ -303,7 +308,7 @@
|
|
|
303
308
|
--#{$prefix}box-shadow-color: #{shades-css-var($colorName, 'border-color')};
|
|
304
309
|
} @else {
|
|
305
310
|
--#{$prefix}border-color-opacity: #{$input-btn-focus-color-opacity};
|
|
306
|
-
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')}
|
|
311
|
+
--#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')};
|
|
307
312
|
}
|
|
308
313
|
$color: map.get($data, color);
|
|
309
314
|
$box-shadow: $df-select-input-box-shadow;
|
|
@@ -564,7 +569,6 @@
|
|
|
564
569
|
}
|
|
565
570
|
}
|
|
566
571
|
|
|
567
|
-
|
|
568
572
|
.ng-spinner-zone {
|
|
569
573
|
padding-right: 0.3125rem; // todo check when feature is needed
|
|
570
574
|
padding-top: 0.3125rem; // todo check when feature is needed
|
|
@@ -797,4 +801,4 @@
|
|
|
797
801
|
}
|
|
798
802
|
}
|
|
799
803
|
}
|
|
800
|
-
}
|
|
804
|
+
}
|
|
@@ -36,7 +36,67 @@
|
|
|
36
36
|
$valuebghovercolor: shades-css-var($name, 'bg-subtle-hover-color');
|
|
37
37
|
$valueactive: shades-css-var($name, 'text-active-color');
|
|
38
38
|
}
|
|
39
|
+
|
|
39
40
|
.df-stepper-step-#{$state} {
|
|
41
|
+
&.btn {
|
|
42
|
+
&:not(:disabled):not(.disabled) {
|
|
43
|
+
&:hover,
|
|
44
|
+
&:hover .df-stepper-label {
|
|
45
|
+
// override the btn-link feature
|
|
46
|
+
color: $valuehover;
|
|
47
|
+
text-decoration: var(--#{$prefix}stepper-text-decoration-hover);
|
|
48
|
+
background-color: $valuebghovercolor;
|
|
49
|
+
// Icon with number outline variant
|
|
50
|
+
.df-stepper-outline-number-#{$state} {
|
|
51
|
+
@include df-stepper-fill-number($valuehover, $df-stepper-outline-bg-color, $valuehover);
|
|
52
|
+
}
|
|
53
|
+
// Icon with number plain version
|
|
54
|
+
.df-stepper-number-#{$state} {
|
|
55
|
+
@include df-stepper-fill-number($df-stepper-icon-color, $valuehover, $valuehover);
|
|
56
|
+
}
|
|
57
|
+
.df-stepper-icon::before {
|
|
58
|
+
background-color: $valuehover;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&:focus:not(:hover),
|
|
62
|
+
&:focus:not(:hover) .df-stepper-label {
|
|
63
|
+
text-decoration: var(--#{$prefix}stepper-text-decoration-focus);
|
|
64
|
+
color: $value;
|
|
65
|
+
}
|
|
66
|
+
&.active,
|
|
67
|
+
&.active .df-stepper-label {
|
|
68
|
+
text-decoration: var(--#{$prefix}stepper-text-decoration-active);
|
|
69
|
+
font-weight: $df-font-weight-semi-bold;
|
|
70
|
+
}
|
|
71
|
+
&:hover.active,
|
|
72
|
+
&:hover.active .df-stepper-label {
|
|
73
|
+
color: $valuehover;
|
|
74
|
+
.df-stepper-number-#{$state} {
|
|
75
|
+
@include df-stepper-fill-number($df-stepper-icon-color, $valuehover, $valuehover);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
&:not(:hover).active,
|
|
79
|
+
&:not(:hover).active .df-stepper-label {
|
|
80
|
+
color: $valueactive;
|
|
81
|
+
.df-stepper-number-#{$state} {
|
|
82
|
+
@include df-stepper-fill-number($df-stepper-icon-color, $valueactive, $valueactive);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
@if variable-exists($name: 'df-enableBranding2023') and $df-enableBranding2023 {
|
|
86
|
+
&.btn-link:focus {
|
|
87
|
+
--#{$prefix}box-shadow-color: #{$value};
|
|
88
|
+
&:hover {
|
|
89
|
+
--#{$prefix}box-shadow-color: #{$valuehover};
|
|
90
|
+
}
|
|
91
|
+
&:active:not(:hover),
|
|
92
|
+
&.active:not(:hover) {
|
|
93
|
+
--#{$prefix}box-shadow-color: #{$valueactive};
|
|
94
|
+
}
|
|
95
|
+
box-shadow: $df-btn-focus-box-shadow;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
40
100
|
// Icon with number outline variant
|
|
41
101
|
.df-stepper-outline-number-#{$state} {
|
|
42
102
|
@include df-stepper-common-number();
|
|
@@ -47,7 +107,7 @@
|
|
|
47
107
|
@include df-stepper-common-number();
|
|
48
108
|
@include df-stepper-fill-number($df-stepper-icon-color, $value, $value);
|
|
49
109
|
}
|
|
50
|
-
|
|
110
|
+
|
|
51
111
|
.df-stepper-optional-label {
|
|
52
112
|
// todo correct this
|
|
53
113
|
text-align: var(--#{$prefix}stepper-optional-label-text-align);
|
|
@@ -69,57 +129,6 @@
|
|
|
69
129
|
}
|
|
70
130
|
}
|
|
71
131
|
color: $value; // override btn-link
|
|
72
|
-
&:not(:disabled):not(.disabled) {
|
|
73
|
-
&:hover, &:hover .df-stepper-label {
|
|
74
|
-
// override the btn-link feature
|
|
75
|
-
color: $valuehover;
|
|
76
|
-
text-decoration: var(--#{$prefix}stepper-text-decoration-hover);
|
|
77
|
-
background-color: $valuebghovercolor;
|
|
78
|
-
// Icon with number outline variant
|
|
79
|
-
.df-stepper-outline-number-#{$state} {
|
|
80
|
-
@include df-stepper-fill-number($valuehover, $df-stepper-outline-bg-color, $valuehover);
|
|
81
|
-
}
|
|
82
|
-
// Icon with number plain version
|
|
83
|
-
.df-stepper-number-#{$state} {
|
|
84
|
-
@include df-stepper-fill-number($df-stepper-icon-color, $valuehover, $valuehover);
|
|
85
|
-
}
|
|
86
|
-
.df-stepper-icon::before {
|
|
87
|
-
background-color: $valuehover;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
&:focus:not(:hover), &:focus:not(:hover) .df-stepper-label {
|
|
91
|
-
text-decoration: var(--#{$prefix}stepper-text-decoration-focus);
|
|
92
|
-
color: $value;
|
|
93
|
-
}
|
|
94
|
-
&.active, &.active .df-stepper-label {
|
|
95
|
-
text-decoration: var(--#{$prefix}stepper-text-decoration-active);
|
|
96
|
-
font-weight: $df-font-weight-semi-bold;
|
|
97
|
-
}
|
|
98
|
-
&:hover.active, &:hover.active .df-stepper-label {
|
|
99
|
-
color: $valuehover;
|
|
100
|
-
.df-stepper-number-#{$state} {
|
|
101
|
-
@include df-stepper-fill-number($df-stepper-icon-color, $valuehover, $valuehover);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
&:not(:hover).active, &:not(:hover).active .df-stepper-label {
|
|
105
|
-
color: $valueactive;
|
|
106
|
-
.df-stepper-number-#{$state} {
|
|
107
|
-
@include df-stepper-fill-number($df-stepper-icon-color, $valueactive, $valueactive);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
@if variable-exists($name: 'df-enableBranding2023') and $df-enableBranding2023 {
|
|
111
|
-
&.btn-link:focus {
|
|
112
|
-
--#{$prefix}box-shadow-color: #{$value};
|
|
113
|
-
&:hover {
|
|
114
|
-
--#{$prefix}box-shadow-color: #{$valuehover};
|
|
115
|
-
}
|
|
116
|
-
&:active:not(:hover), &.active:not(:hover) {
|
|
117
|
-
--#{$prefix}box-shadow-color: #{$valueactive};
|
|
118
|
-
}
|
|
119
|
-
box-shadow: $df-btn-focus-box-shadow;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
132
|
}
|
|
124
133
|
}
|
|
125
134
|
|
|
@@ -145,9 +154,7 @@
|
|
|
145
154
|
.df-stepper-step {
|
|
146
155
|
/* stepper icon color*/
|
|
147
156
|
@each $state, $name in $df-stepper-steps-colors {
|
|
148
|
-
@include df-stepper-icon-variant-size(
|
|
149
|
-
$state
|
|
150
|
-
);
|
|
157
|
+
@include df-stepper-icon-variant-size($state);
|
|
151
158
|
}
|
|
152
159
|
}
|
|
153
160
|
}
|