@design-factory/styles 21.0.0-next.0 → 21.0.0-next.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/bundle.css +1 -1
- package/package.json +2 -2
- package/scss/_common.mixins.scss +10 -10
- package/scss/_common.root.scss +0 -31
- package/scss/_common.scss +14 -10
- package/scss/_common.variables.scss +13 -59
- package/scss/_variables.scss +12 -8
- package/scss/bootstrap/_functions.scss +55 -0
- package/scss/bootstrap/_mixins-override.scss +8 -52
- package/scss/bootstrap/_variables.scss +235 -355
- package/scss/bundle.scss +5 -6
- package/scss/components/accordion/_accordion.variables.scss +1 -1
- package/scss/components/alert/_alert.scss +1 -1
- package/scss/components/badge/_badge.scss +1 -1
- package/scss/components/brand-color/_brand-color.mixins.scss +0 -2
- package/scss/components/brand-color/_brand-color.scss +0 -7
- package/scss/components/button/_button.mixins.scss +1 -1
- package/scss/components/button/_button.namespace.scss +42 -0
- package/scss/components/button/_button.scss +12 -12
- package/scss/components/button/_button.variables.scss +11 -4
- package/scss/components/card/_card.variables.scss +1 -1
- package/scss/components/carousel/_carousel.namespace.scss +8 -0
- package/scss/components/checkbox/_checkbox.scss +14 -16
- package/scss/components/checkbox/_checkbox.variables.scss +2 -1
- package/scss/components/collapse/_collapse.scss +1 -1
- package/scss/components/datepicker/_datepicker.scss +16 -2
- package/scss/components/dropdown/_dropdown.scss +1 -1
- package/scss/components/dropdown/_dropdown.variables.scss +1 -1
- package/scss/components/form/_form.scss +13 -5
- package/scss/components/form/_form.variables.scss +9 -3
- package/scss/components/icon/_amadeus-icon.scss +1 -1
- package/scss/components/inputs/_inputs.mixin.scss +0 -13
- package/scss/components/inputs/_inputs.scss +6 -39
- package/scss/components/inputs/_inputs.variables.scss +7 -0
- package/scss/components/link/_link.scss +1 -1
- package/scss/components/list-group/_list-group.scss +5 -5
- package/scss/components/media/_media.scss +1 -1
- package/scss/components/modal/_modal.namespace.scss +13 -0
- package/scss/components/modal/_modal.scss +1 -1
- package/scss/components/navbar/_navbar.scss +3 -2
- package/scss/components/pagination/_pagination.namespace.scss +15 -0
- package/scss/components/pagination/_pagination.scss +35 -34
- package/scss/components/pagination/_pagination.variables.scss +2 -2
- package/scss/components/popover/_popover.scss +2 -2
- package/scss/components/popover/_popover.variables.scss +1 -1
- package/scss/components/radio/_radio.scss +12 -12
- package/scss/components/rating/_rating.scss +1 -1
- package/scss/components/scrollspy/_scrollspy.scss +22 -1
- package/scss/components/select/_select.namespace.scss +10 -0
- package/scss/components/select/_select.scss +8 -10
- package/scss/components/select/_select.variables.scss +1 -1
- package/scss/components/sidenav/_sidenav-deprecated.scss +1 -1
- package/scss/components/sidenav/_sidenav.scss +18 -0
- package/scss/components/slider/_slider.scss +7 -7
- package/scss/components/speechbubble/_speechbubble.scss +6 -10
- package/scss/components/stepper/_stepper.scss +2 -2
- package/scss/components/table/_advancedtables.scss +8 -3
- package/scss/components/tabs/_tabs.scss +6 -1
- package/scss/components/toast/_toast.variables.scss +2 -1
- package/scss/components/toggle/_toggle.scss +2 -2
- package/scss/namespace.scss +54 -33
- package/scss/utilities.scss +0 -1
- package/scss/_new-brand-common.variables.scss +0 -7
- package/scss/bootstrap/_variables-dark.scss +0 -86
- package/scss/components/brand-color/_brand-color.variables.scss +0 -146
- package/scss/components/brand-color/_brand-color_container.scss +0 -23
- package/scss/components/button/_button_container.scss +0 -47
- package/scss/components/pagination/_pagination_container.scss +0 -17
- package/scss/components/popover/_popover_container.scss +0 -214
- package/scss/components/spinner/_spinner_container.scss +0 -43
- package/scss/components/tooltip/_tooltip_container.scss +0 -116
- package/scss/themes/brand2023/_variables.scss +0 -315
- package/scss/utilities/_common.utilities.scss +0 -98
- package/scss/utilities/_form.mixins.scss +0 -26
- package/scss/utilities/_rgb.scss +0 -10
package/scss/bundle.scss
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// Overriding bootstrap is done in this way:
|
|
2
|
+
// We declare sass vars BEFORE bootstrap sass vars.
|
|
3
|
+
// We redefine mixins and functions AFTER bootstrap mixins and functions.
|
|
4
|
+
// We declare component css override AFTER bootstrap component css.
|
|
5
|
+
|
|
2
6
|
@import 'variables';
|
|
3
7
|
@import 'bootstrap/maps';
|
|
4
8
|
@import 'bootstrap/scss/maps';
|
|
@@ -113,8 +117,3 @@
|
|
|
113
117
|
// issue with agnosui exports, to be fixed for DF 20
|
|
114
118
|
/* stylelint-disable-next-line scss/load-partial-extension */
|
|
115
119
|
@import '@agnos-ui/core-bootstrap/scss/agnosui.scss';
|
|
116
|
-
|
|
117
|
-
// this css is needed when modal are open to have no scroll on the background.
|
|
118
|
-
.df-modal-open {
|
|
119
|
-
overflow: hidden;
|
|
120
|
-
}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
1
|
@use 'brand-color.mixins' as brand-color-mixins;
|
|
3
2
|
|
|
4
|
-
@each $color, $value in $gradients {
|
|
5
|
-
.bg-#{$color} {
|
|
6
|
-
background-image: linear-gradient(180deg, map.get($value, 'from'), map.get($value, 'to'));
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
// We need this mixin to achieve the outline focus in buttons on different backgrounds
|
|
11
4
|
@each $key, $utility in $utilities {
|
|
12
5
|
@include brand-color-mixins.df-bg-color-css-var($utility);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
&:focus-visible {
|
|
13
13
|
--df-btn-focus-box-shadow:
|
|
14
|
-
0 0 0 2px var(
|
|
14
|
+
0 0 0 2px var(--df-inner-box-shadow-color, var(--df-body-bg)), 0 0 0 4px var(--df-box-shadow-color);
|
|
15
15
|
--df-box-shadow-color: var(--df-button-#{$config}-#{$style}-color-#{$status}-default-border);
|
|
16
16
|
box-shadow: var(--df-btn-focus-box-shadow);
|
|
17
17
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Rewrite of the btn-check utility. Coming from bootstrap _buttons.scss
|
|
2
|
+
#{$df-css-namespace-selector} {
|
|
3
|
+
.btn-check + .btn:hover {
|
|
4
|
+
color: var(--df-btn-color);
|
|
5
|
+
background-color: var(--df-btn-bg);
|
|
6
|
+
border-color: var(--df-btn-border-color);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.btn-check:focus-visible + .btn {
|
|
10
|
+
border-color: var(--df-btn-hover-border-color);
|
|
11
|
+
outline: 0;
|
|
12
|
+
box-shadow: var(--df-btn-focus-box-shadow);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.btn-check:checked + .btn,
|
|
16
|
+
:not(.btn-check) + .btn:active {
|
|
17
|
+
color: var(--df-btn-active-color);
|
|
18
|
+
background-color: var(--df-btn-active-bg);
|
|
19
|
+
border-color: var(--df-btn-active-border-color);
|
|
20
|
+
|
|
21
|
+
&:focus-visible {
|
|
22
|
+
box-shadow: var(--df-btn-focus-box-shadow);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.btn-check:checked:focus-visible + .btn {
|
|
27
|
+
box-shadow: var(--df-btn-focus-box-shadow);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
fieldset:disabled .btn {
|
|
31
|
+
@extend .disabled;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Split button dropdowns re-write, from _button-group.scss
|
|
35
|
+
.dropup .dropdown-toggle-split::after,
|
|
36
|
+
.dropend .dropdown-toggle-split::after {
|
|
37
|
+
margin-inline-start: 0;
|
|
38
|
+
}
|
|
39
|
+
.dropstart .dropdown-toggle-split::before {
|
|
40
|
+
margin-inline-end: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
1
|
@use 'button.mixins' as btn-mixins;
|
|
3
|
-
@use '../../
|
|
2
|
+
@use '../../common.variables' as df;
|
|
4
3
|
|
|
5
4
|
.btn {
|
|
6
5
|
--df-box-shadow-color: var(--df-btn-focus-shadow);
|
|
@@ -25,17 +24,11 @@
|
|
|
25
24
|
'basic'
|
|
26
25
|
); // disabled styles for solid buttons it will work for all .btn not only btn-{$status}
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.btn-check:checked + &,
|
|
31
|
-
:not(.btn-check) + &:active,
|
|
32
|
-
&:first-child:active,
|
|
33
|
-
&.active,
|
|
34
|
-
&.show {
|
|
27
|
+
&:is(.disabled, :disabled) {
|
|
28
|
+
&:is(:first-child:active, .active, .show) {
|
|
35
29
|
color: var(--df-btn-disabled-color);
|
|
36
30
|
background-color: var(--df-btn-disabled-bg);
|
|
37
31
|
border-color: var(--df-btn-disabled-border-color);
|
|
38
|
-
//background-image: if($enable-gradients, none, null);
|
|
39
32
|
@include box-shadow(none);
|
|
40
33
|
}
|
|
41
34
|
|
|
@@ -59,6 +52,14 @@
|
|
|
59
52
|
}
|
|
60
53
|
}
|
|
61
54
|
|
|
55
|
+
.btn-check:checked + .btn:is(.disabled, :disabled),
|
|
56
|
+
:not(.btn-check) + .btn:is(.disabled, :disabled):active {
|
|
57
|
+
color: var(--df-btn-disabled-color);
|
|
58
|
+
background-color: var(--df-btn-disabled-bg);
|
|
59
|
+
border-color: var(--df-btn-disabled-border-color);
|
|
60
|
+
@include box-shadow(none);
|
|
61
|
+
}
|
|
62
|
+
|
|
62
63
|
// TODO - deprecate / remove in favor of btn btn-sm btn-outline-neutral df-btn-tertiary df-btn-icononly fal fa-xmark
|
|
63
64
|
.btn-close {
|
|
64
65
|
--df-box-shadow-width: 2px;
|
|
@@ -164,8 +165,7 @@
|
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
|
|
167
|
-
|
|
168
|
-
&:disabled {
|
|
168
|
+
&:is(.disabled, :disabled) {
|
|
169
169
|
+ .btn {
|
|
170
170
|
cursor: not-allowed;
|
|
171
171
|
pointer-events: auto;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
@use '../../common.variables' as df;
|
|
2
|
+
|
|
1
3
|
$btn-font-family: var(--df-typo-font-primaryFamily), sans-serif !default;
|
|
2
4
|
$btn-font-weight: var(--df-typo-weight-medium) !default;
|
|
3
5
|
$btn-disabled-opacity: 1 !default;
|
|
4
|
-
$btn-link-focus-shadow-rgb:
|
|
5
|
-
var(--df-btn-focus-shadow-rgb),
|
|
6
|
-
0.5
|
|
7
|
-
) !default; //TODO: remove when editing to-rgb function
|
|
6
|
+
$btn-link-focus-shadow-rgb: unset !default;
|
|
8
7
|
$btn-border-radius: var(--df-button-borderRadius-main-medium) !default;
|
|
8
|
+
// Cannot be set as CSS var due to bootstrap _button-group.scss
|
|
9
|
+
$btn-padding-x: $df-spacing-4 !default;
|
|
10
|
+
$btn-padding-x-sm: $df-spacing-3 !default;
|
|
11
|
+
$btn-padding-x-lg: $df-spacing-5 !default;
|
|
12
|
+
$btn-padding-y: 0.3125rem !default;
|
|
13
|
+
$btn-padding-y-sm: 0.21875rem !default;
|
|
14
|
+
$btn-padding-y-lg: 0.59375rem !default;
|
|
15
|
+
$btn-focus-box-shadow: df.$df-focus-box-shadow !default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Re-write of bootstrap carousel css vars as they were set in :root in bootstrap _carousel.scss
|
|
2
|
+
#{$df-css-namespace-selector} {
|
|
3
|
+
.carousel {
|
|
4
|
+
--#{$prefix}carousel-indicator-active-bg: #{$carousel-indicator-active-bg};
|
|
5
|
+
--#{$prefix}carousel-caption-color: #{$carousel-caption-color};
|
|
6
|
+
--#{$prefix}carousel-control-icon-filter: #{$carousel-control-icon-filter};
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../
|
|
1
|
+
@use '../../common.variables.scss' as df;
|
|
2
2
|
|
|
3
3
|
.form-check {
|
|
4
4
|
padding-left: 0;
|
|
@@ -72,30 +72,28 @@
|
|
|
72
72
|
cursor: not-allowed;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
}
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
:is(&:focus-visible, .form-check &:focus-visible) {
|
|
82
|
-
&:not(:checked):not(.is-invalid):not(:indeterminate) {
|
|
83
|
-
--df-box-shadow-color: var(--df-color-input-border);
|
|
84
|
-
}
|
|
77
|
+
:is(.form-check-input[type='checkbox']:focus, .form-check .form-check-input[type='checkbox']:focus) {
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
outline: none;
|
|
80
|
+
}
|
|
85
81
|
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
:is(.form-check-input[type='checkbox']:focus-visible, .form-check .form-check-input[type='checkbox']:focus-visible) {
|
|
83
|
+
&:not(:checked):not(.is-invalid):not(.ng-invalid.ng-touched):not(:indeterminate) {
|
|
84
|
+
--df-box-shadow-color: var(--df-color-input-border);
|
|
88
85
|
}
|
|
86
|
+
|
|
87
|
+
box-shadow: #{df.$df-focus-box-shadow};
|
|
88
|
+
outline: none;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.form-check:has(+ .form-check)
|
|
92
|
-
.form-check + .form-check {
|
|
91
|
+
.form-check:has(+ .form-check) {
|
|
93
92
|
margin-bottom: var(--df-spacing-3);
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
.form-sm {
|
|
97
|
-
.form-check:has(+ .form-check)
|
|
98
|
-
.form-check + .form-check {
|
|
96
|
+
.form-check:has(+ .form-check) {
|
|
99
97
|
margin-bottom: var(--df-spacing-2);
|
|
100
98
|
}
|
|
101
99
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../
|
|
1
|
+
@use '../../common.variables.scss' as df;
|
|
2
2
|
|
|
3
3
|
$form-check-input-width: 1rem !default;
|
|
4
4
|
$form-check-padding-start: $form-check-input-width + 0.375rem !default;
|
|
@@ -13,6 +13,7 @@ $form-check-input-focus-box-shadow: df.$df-focus-box-shadow !default;
|
|
|
13
13
|
$form-check-input-checked-bg-color: var(--df-color-primary-main-default-background) !default;
|
|
14
14
|
$form-check-input-checked-border-color: var(--df-color-primary-main-default-border) !default;
|
|
15
15
|
$form-check-input-disabled-opacity: 1 !default;
|
|
16
|
+
$form-check-margin-bottom: 0 !default;
|
|
16
17
|
|
|
17
18
|
$form-check-min-height: calc(var(--df-typo-sizing-default) * $line-height-base) !default;
|
|
18
19
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../
|
|
1
|
+
@use '../../common.variables' as df;
|
|
2
2
|
|
|
3
3
|
.ngb-dp-navigation-select {
|
|
4
4
|
column-gap: var(--df-spacing-2);
|
|
@@ -211,7 +211,7 @@ ngb-datepicker {
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
.df-input-datepicker-range {
|
|
214
|
-
|
|
214
|
+
&:focus-within {
|
|
215
215
|
border: none;
|
|
216
216
|
--df-box-shadow-color: var(--df-color-input-border);
|
|
217
217
|
|
|
@@ -220,4 +220,18 @@ ngb-datepicker {
|
|
|
220
220
|
box-shadow: none !important; //overrides the box-shadow of the single input focus
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
+
|
|
224
|
+
div.input-group:has(input.df-input-withicon):has(.input-group-append):first-of-type {
|
|
225
|
+
.input-group-append {
|
|
226
|
+
border-radius: 0;
|
|
227
|
+
border-inline-end: none;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
div.input-group:has(input.df-input-withicon):last-of-type {
|
|
232
|
+
input.df-input-withicon {
|
|
233
|
+
border-radius: 0;
|
|
234
|
+
border-inline-start: none;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
223
237
|
}
|
|
@@ -36,11 +36,19 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
.
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
@each $state, $name in ('valid': 'success', 'invalid': 'danger', 'warning': 'warning') {
|
|
40
|
+
.form-check-input.is-#{$state}:not(:disabled) {
|
|
41
|
+
~ .form-check-label {
|
|
42
|
+
color: var(--df-color-neutral-alt-default-foreground);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.invalid-feedback:before {
|
|
48
|
+
content: '\f056';
|
|
49
|
+
font-family: 'Font Awesome 6 Pro', sans-serif;
|
|
50
|
+
font-weight: 300;
|
|
51
|
+
margin-inline-end: var(--df-spacing-2);
|
|
44
52
|
}
|
|
45
53
|
|
|
46
54
|
.form-control-sm {
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
@use '../../common.variables' as df;
|
|
2
|
+
|
|
3
|
+
$form-check-input-indeterminate-bg-color: var(--df-color-primary-main-default-background) !default;
|
|
4
|
+
$form-check-input-indeterminate-border-color: var(--df-color-primary-main-default-border) !default;
|
|
5
|
+
|
|
1
6
|
// we don't support boostrap form-range but have to set this variable to avoid sass compilation error
|
|
2
7
|
$form-range-thumb-active-bg: tint-color($primary, 70%) !default;
|
|
3
8
|
|
|
@@ -13,6 +18,7 @@ $form-file-button-hover-bg: var(--df-button-outline-basic-color-primary-hovered-
|
|
|
13
18
|
|
|
14
19
|
$form-feedback-valid-color: var(--df-color-success-alt-default-foreground) !default;
|
|
15
20
|
$form-feedback-invalid-color: var(--df-color-danger-alt-default-foreground) !default;
|
|
21
|
+
$form-feedback-font-style: var(--df-typo-sizing-small) !default;
|
|
16
22
|
|
|
17
23
|
$form-validation-states: (
|
|
18
24
|
'valid': (
|
|
@@ -21,7 +27,7 @@ $form-validation-states: (
|
|
|
21
27
|
'icon': '',
|
|
22
28
|
'tooltip-color': var(--df-color-success-main-default-foreground),
|
|
23
29
|
'tooltip-bg-color': var(--df-color-success-main-default-background),
|
|
24
|
-
'focus-box-shadow':
|
|
30
|
+
'focus-box-shadow': df.$df-focus-box-shadow,
|
|
25
31
|
'border-color': var(--df-color-success-alt-default-border)
|
|
26
32
|
),
|
|
27
33
|
'invalid': (
|
|
@@ -30,7 +36,7 @@ $form-validation-states: (
|
|
|
30
36
|
'icon': '',
|
|
31
37
|
'tooltip-color': var(--df-color-danger-main-default-foreground),
|
|
32
38
|
'tooltip-bg-color': var(--df-color-danger-main-default-background),
|
|
33
|
-
'focus-box-shadow':
|
|
39
|
+
'focus-box-shadow': df.$df-focus-box-shadow,
|
|
34
40
|
'border-color': var(--df-color-danger-alt-default-border)
|
|
35
41
|
),
|
|
36
42
|
'warning': (
|
|
@@ -39,7 +45,7 @@ $form-validation-states: (
|
|
|
39
45
|
'icon': '',
|
|
40
46
|
'tooltip-color': var(--df-color-warning-main-default-foreground),
|
|
41
47
|
'tooltip-bg-color': var(--df-color-warning-main-default-background),
|
|
42
|
-
'focus-box-shadow':
|
|
48
|
+
'focus-box-shadow': df.$df-focus-box-shadow,
|
|
43
49
|
'border-color': var(--df-color-warning-alt-default-border)
|
|
44
50
|
)
|
|
45
51
|
) !default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use 'sass:selector';
|
|
3
2
|
|
|
4
3
|
@mixin df-input-with-icon-validation-state($state, $color, $position) {
|
|
5
4
|
$df-form-validation-states-names: (
|
|
@@ -31,15 +30,3 @@
|
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
|
|
35
|
-
@mixin df-iwi-root-start($parent) {
|
|
36
|
-
@at-root #{selector.replace(&, '.input-group', $parent + '> div.input-group:first-of-type')} {
|
|
37
|
-
@content;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@mixin df-iwi-root-end($parent) {
|
|
42
|
-
@at-root #{selector.replace(&, '.input-group', $parent + '> div.input-group:last-of-type')} {
|
|
43
|
-
@content;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:string';
|
|
3
|
-
@use '../../
|
|
3
|
+
@use '../../common.variables' as df;
|
|
4
4
|
@use 'inputs.mixin' as input-mixins;
|
|
5
5
|
|
|
6
6
|
.df-disabled {
|
|
@@ -131,28 +131,15 @@ input[type='search']::-webkit-search-decoration {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
.input-group:has(:is(.ng-invalid.ng-touched, .is-invalid)) {
|
|
135
|
+
@extend .is-invalid;
|
|
136
|
+
}
|
|
137
|
+
|
|
134
138
|
:is(.input-group.df-input-append, .input-group:has(input.df-input-withicon):has(.input-group-append)) {
|
|
135
139
|
:is(input.df-input-withicon.append, .df-input-withicon:has(~ .input-group-append)) {
|
|
136
140
|
border-inline-end-color: transparent; // override mandatory
|
|
137
|
-
|
|
138
|
-
@include input-mixins.df-iwi-root-end('.df-input-datepicker-range') {
|
|
139
|
-
border-left: none !important;
|
|
140
|
-
border-start-start-radius: 0;
|
|
141
|
-
border-end-start-radius: 0;
|
|
142
|
-
}
|
|
143
|
-
@include input-mixins.df-iwi-root-start('.df-input-datepicker-range.df-focused') {
|
|
144
|
-
border-inline-start: var(--df-color-primary-main-default-border) !important;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@include input-mixins.df-iwi-root-start('.df-input-datepicker-range.df-focused') {
|
|
148
|
-
border-block: var(--df-color-primary-main-default-border) !important;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
@include input-mixins.df-iwi-root-end('.df-input-datepicker-range.df-focused') {
|
|
152
|
-
border-block: var(--df-color-primary-main-default-border) !important;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
141
|
box-shadow: none; // override mandatory
|
|
142
|
+
|
|
156
143
|
&:focus-visible {
|
|
157
144
|
border-inline-end-color: transparent; // override mandatory
|
|
158
145
|
box-shadow: none; // override mandatory
|
|
@@ -172,26 +159,6 @@ input[type='search']::-webkit-search-decoration {
|
|
|
172
159
|
border-start-start-radius: 0;
|
|
173
160
|
border-end-start-radius: 0;
|
|
174
161
|
padding-inline: var(--df-spacing-3);
|
|
175
|
-
|
|
176
|
-
@include input-mixins.df-iwi-root-start('.df-input-datepicker-range') {
|
|
177
|
-
border-start-end-radius: 0;
|
|
178
|
-
border-end-end-radius: 0;
|
|
179
|
-
border-inline-end: none;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
@include input-mixins.df-iwi-root-end('.df-input-datepicker-range.df-focused') {
|
|
183
|
-
border-inline-end: #{$df-focused-border} !important;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
@include input-mixins.df-iwi-root-start('.df-input-datepicker-range.df-focused') {
|
|
187
|
-
border-top: #{$df-focused-border} !important;
|
|
188
|
-
border-bottom: #{$df-focused-border} !important;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
@include input-mixins.df-iwi-root-end('.df-input-datepicker-range.df-focused') {
|
|
192
|
-
border-top: #{$df-focused-border} !important;
|
|
193
|
-
border-bottom: #{$df-focused-border} !important;
|
|
194
|
-
}
|
|
195
162
|
}
|
|
196
163
|
|
|
197
164
|
&.df-focused .input-group-append {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
@use '../../common.variables' as df;
|
|
2
|
+
|
|
1
3
|
$input-padding-x: var(--df-spacing-3) !default;
|
|
2
4
|
$input-padding-x-sm: var(--df-spacing-3) !default;
|
|
3
5
|
$input-padding-x-lg: var(--df-spacing-3) !default;
|
|
6
|
+
$input-padding-y: 0.3125rem !default;
|
|
7
|
+
$input-padding-y-sm: 0.21875rem !default;
|
|
8
|
+
$input-padding-y-lg: 0.59375rem !default;
|
|
4
9
|
|
|
5
10
|
$input-bg: var(--df-color-neutral-alt-default-background) !default;
|
|
6
11
|
$input-disabled-color: var(--df-color-disabled-main-foreground) !default;
|
|
@@ -18,3 +23,5 @@ $input-plaintext-color: var(--df-color-neutral-alt-default-foreground) !default;
|
|
|
18
23
|
|
|
19
24
|
$input-group-addon-bg: var(--df-color-addon-background) !default;
|
|
20
25
|
$input-group-addon-padding-x: var(--df-spacing-3) !default;
|
|
26
|
+
|
|
27
|
+
$input-focus-box-shadow: df.$df-focus-box-shadow !default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../
|
|
2
|
+
@use '../../common.variables' as df;
|
|
3
3
|
|
|
4
4
|
.list-group-item {
|
|
5
5
|
&.disabled,
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
// Override the default link behavior
|
|
16
16
|
border-color: var(--df-list-group-border-color);
|
|
17
17
|
|
|
18
|
-
.df-skip-links &:not(:hover) {
|
|
19
|
-
background-color: var(--df-color-inert-neutral-main-background);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
18
|
&:focus-visible {
|
|
23
19
|
--df-box-shadow-color: var(--df-list-group-active-color);
|
|
24
20
|
box-shadow: df.$df-focus-inset-box-shadow;
|
|
@@ -57,6 +53,10 @@
|
|
|
57
53
|
}
|
|
58
54
|
}
|
|
59
55
|
|
|
56
|
+
.df-skip-links .list-group-item.list-group-item-action:not(.disabled):not([disabled]):not(:hover):not(.active) {
|
|
57
|
+
background-color: var(--df-color-inert-neutral-main-background);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
60
|
.list-group {
|
|
61
61
|
$sizes: (
|
|
62
62
|
'sm': (
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#{$df-css-namespace-selector} {
|
|
2
|
+
// Re-write of the modal transitions, from bootstrap _modal.scss
|
|
3
|
+
.modal.fade .modal-dialog {
|
|
4
|
+
transform: $modal-fade-transform;
|
|
5
|
+
@include transition($modal-transition);
|
|
6
|
+
}
|
|
7
|
+
.modal.show .modal-dialog {
|
|
8
|
+
transform: $modal-show-transform;
|
|
9
|
+
}
|
|
10
|
+
.modal.modal-static .modal-dialog {
|
|
11
|
+
transform: $modal-scale-transform;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../../
|
|
2
|
+
@use '../../common.variables' as df;
|
|
3
3
|
@use 'navbar.mixins' as navbar-mixins;
|
|
4
4
|
|
|
5
5
|
.navbar {
|
|
@@ -107,7 +107,8 @@
|
|
|
107
107
|
padding: calc((3.5rem - var(--df-typo-sizing-default) * $line-height-base) / 2) var(--df-spacing-5);
|
|
108
108
|
outline: none;
|
|
109
109
|
position: relative;
|
|
110
|
-
|
|
110
|
+
// important needed to override bootstrap focus style for buttons with :first-child
|
|
111
|
+
box-shadow: none !important;
|
|
111
112
|
|
|
112
113
|
&:focus-visible {
|
|
113
114
|
&:before {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#{$df-css-namespace-selector} {
|
|
2
|
+
// Re-write of the page-link utility, from bootstrap _pagination.scss
|
|
3
|
+
.active > .page-link {
|
|
4
|
+
z-index: 3;
|
|
5
|
+
color: var(--df-pagination-active-color);
|
|
6
|
+
background-color: var(--#{$prefix}pagination-active-bg);
|
|
7
|
+
border-color: var(--df-pagination-active-border-color);
|
|
8
|
+
}
|
|
9
|
+
.disabled > .page-link {
|
|
10
|
+
color: var(--df-pagination-disabled-color);
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
background-color: var(--df-pagination-disabled-bg);
|
|
13
|
+
border-color: var(--df-pagination-disabled-border-color);
|
|
14
|
+
}
|
|
15
|
+
}
|