@design-factory/design-factory 17.0.0 → 17.0.1
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 +3 -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 +1 -0
- package/package.json +8 -5
- package/styles/scss/_common.root.scss +9 -0
- package/styles/scss/bootstrap/_variables.scss +176 -169
- package/styles/scss/components/button/_button.scss +13 -0
- 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/stepper/_stepper.mixins.scss +62 -55
- package/styles/scss/themes/brand2023/_variables.scss +9 -9
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -424,16 +424,16 @@ $shade-maps: () !default;
|
|
|
424
424
|
$shade-maps: map.set($shade-maps, 'dark-primary', $dark-primaries-mapping);
|
|
425
425
|
// stylelint-enable scss/dollar-variable-default
|
|
426
426
|
|
|
427
|
-
$body-bg:
|
|
428
|
-
$body-color:
|
|
429
|
-
$color-contrast-dark: $
|
|
427
|
+
$body-bg: $white !default;
|
|
428
|
+
$body-color: $gray-900 !default;
|
|
429
|
+
$color-contrast-dark: $body-color !default; // should be same as $body-color but not a CSS var
|
|
430
430
|
$df-disabled-color: var(--#{$prefix}gray-400) !default;
|
|
431
431
|
$df-disabled-bg-color: var(--#{$prefix}gray-200) !default;
|
|
432
432
|
$df-focused-inset-box-shadow:
|
|
433
|
-
inset 0 0 0 2px var(--#{$prefix}inner-box-shadow-color, $body-bg),
|
|
433
|
+
inset 0 0 0 2px var(--#{$prefix}inner-box-shadow-color, var(--#{$prefix}body-bg)),
|
|
434
434
|
inset 0 0 0 4px var(--#{$prefix}box-shadow-color, $primary) !default;
|
|
435
435
|
$input-btn-focus-box-shadow:
|
|
436
|
-
0 0 0 2px var(--#{$prefix}inner-box-shadow-color, $body-bg),
|
|
436
|
+
0 0 0 2px var(--#{$prefix}inner-box-shadow-color, var(--#{$prefix}body-bg)),
|
|
437
437
|
0 0 0 4px var(--#{$prefix}box-shadow-color, $primary) !default;
|
|
438
438
|
$input-focus-border-color: var(--#{$prefix}gray-700) !default;
|
|
439
439
|
$input-border-color: $gray-700 !default;
|
|
@@ -465,7 +465,7 @@ $df-btn-focus-active-box-shadow-color: var(--#{$prefix}btn-active-bg) !default;
|
|
|
465
465
|
$df-btn-outline-focus-hover-box-shadow-color: var(--#{$prefix}btn-hover-color) !default;
|
|
466
466
|
$df-btn-outline-focus-active-box-shadow-color: var(--#{$prefix}btn-active-color) !default;
|
|
467
467
|
$df-btn-focus-box-shadow:
|
|
468
|
-
0 0 0 2px var(--#{$prefix}inner-box-shadow-color, $body-bg),
|
|
468
|
+
0 0 0 2px var(--#{$prefix}inner-box-shadow-color, var(--#{$prefix}body-bg)),
|
|
469
469
|
0 0 0 4px var(--#{$prefix}box-shadow-color, $primary) !default;
|
|
470
470
|
$df-btn-focus-box-shadow-color: rgba(var(--#{$prefix}btn-focus-shadow-rgb), 1) !default;
|
|
471
471
|
$df-btn-check-active-property: 'bg-active-color' !default;
|
|
@@ -566,7 +566,7 @@ $df-sidenav-item-active-border-color: var(--#{$prefix}primary-800) !default;
|
|
|
566
566
|
|
|
567
567
|
// Scrollspy
|
|
568
568
|
$df-scrollspy-navpill-active-border-left: 3px solid var(--#{$prefix}primary-800) !default;
|
|
569
|
-
$df-scrollspy-active-color: $body-color !default;
|
|
569
|
+
$df-scrollspy-active-color: var(--#{$prefix}body-color) !default;
|
|
570
570
|
|
|
571
571
|
// Stepper
|
|
572
572
|
$df-stepper-steps-colors: (
|
|
@@ -578,8 +578,8 @@ $df-stepper-steps-colors: (
|
|
|
578
578
|
|
|
579
579
|
// Tabset
|
|
580
580
|
$df-tabs-focus-box-shadow: $df-focused-inset-box-shadow !default;
|
|
581
|
-
$nav-tabs-link-active-color: $body-color !default;
|
|
582
|
-
$nav-pills-link-active-color: $body-color !default;
|
|
581
|
+
$nav-tabs-link-active-color: var(--#{$prefix}body-color) !default;
|
|
582
|
+
$nav-pills-link-active-color: var(--#{$prefix}body-color) !default;
|
|
583
583
|
$df-tabs-between-item-margin: 0px !default;
|
|
584
584
|
$df-tabs-active-border-bottom: 3px solid var(--#{$prefix}primary-800) !default;
|
|
585
585
|
$df-tabs-item-active-font-weight: 700 !default; // $font-weight-bold
|