@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
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
@use 'pagination.mixins' as pagination-mixins;
|
|
2
|
-
@use '../../
|
|
2
|
+
@use '../../common.variables' as df;
|
|
3
3
|
|
|
4
4
|
.pagination {
|
|
5
|
-
$df-pagination-first-icon-code: '\f323'; // .fa-chevrons-left
|
|
6
5
|
$df-pagination-previous-icon-code: '\f053'; // .fa-chevron-left
|
|
7
6
|
$df-pagination-next-icon-code: '\f054'; // .fa-chevron-right
|
|
8
|
-
$df-pagination-last-icon-code: '\f324'; // .fa-chevrons-right
|
|
9
7
|
|
|
10
8
|
margin-bottom: 0; // reset the ul margin.
|
|
11
9
|
align-items: center;
|
|
@@ -146,44 +144,47 @@
|
|
|
146
144
|
calc(1.75rem + 2px)
|
|
147
145
|
);
|
|
148
146
|
}
|
|
147
|
+
}
|
|
149
148
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
149
|
+
.with-boundary-links .pagination {
|
|
150
|
+
$df-pagination-first-icon-code: '\f323'; // .fa-chevrons-left
|
|
151
|
+
$df-pagination-last-icon-code: '\f324'; // .fa-chevrons-right
|
|
152
|
+
$df-pagination-previous-icon-code: '\f053'; // .fa-chevron-left
|
|
153
|
+
$df-pagination-next-icon-code: '\f054'; // .fa-chevron-right
|
|
154
|
+
|
|
155
|
+
.page-item:nth-of-type(1) {
|
|
156
|
+
@include ltr {
|
|
157
|
+
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-first-icon-code);
|
|
160
158
|
}
|
|
159
|
+
@include rtl {
|
|
160
|
+
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-last-icon-code);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
161
163
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
@include rtl {
|
|
167
|
-
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-next-icon-code);
|
|
168
|
-
}
|
|
164
|
+
.page-item:nth-of-type(2) {
|
|
165
|
+
@include ltr {
|
|
166
|
+
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-previous-icon-code);
|
|
169
167
|
}
|
|
168
|
+
@include rtl {
|
|
169
|
+
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-next-icon-code);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
170
172
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
@include rtl {
|
|
176
|
-
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-previous-icon-code);
|
|
177
|
-
}
|
|
173
|
+
.page-item:nth-last-of-type(2) {
|
|
174
|
+
@include ltr {
|
|
175
|
+
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-next-icon-code);
|
|
178
176
|
}
|
|
177
|
+
@include rtl {
|
|
178
|
+
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-previous-icon-code);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
179
181
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
182
|
+
.page-item:nth-last-of-type(1) {
|
|
183
|
+
@include ltr {
|
|
184
|
+
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-last-icon-code);
|
|
185
|
+
}
|
|
186
|
+
@include rtl {
|
|
187
|
+
@include pagination-mixins.replace-span-innertext-with-icon($df-pagination-first-icon-code);
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
}
|
|
@@ -8,13 +8,13 @@ $pagination-padding-x-lg: var(--df-spacing-3) !default;
|
|
|
8
8
|
$pagination-bg: var(--df-color-neutral-alt-default-background) !default;
|
|
9
9
|
$pagination-color: var(--df-color-neutral-alt-default-foreground) !default;
|
|
10
10
|
|
|
11
|
-
$pagination-focus-bg: var(--df-color-inert-neutral-
|
|
11
|
+
$pagination-focus-bg: var(--df-color-inert-neutral-pageBackground) !default;
|
|
12
12
|
|
|
13
13
|
$pagination-hover-color: var(--df-color-primary-alt-hovered-foreground) !default;
|
|
14
14
|
$pagination-hover-bg: var(--df-color-primary-alt-hovered-background) !default;
|
|
15
15
|
|
|
16
16
|
$pagination-disabled-color: var(--df-color-disabled-main-foreground) !default;
|
|
17
|
-
$pagination-disabled-bg: var(--df-color-inert-neutral-
|
|
17
|
+
$pagination-disabled-bg: var(--df-color-inert-neutral-pageBackground) !default;
|
|
18
18
|
|
|
19
19
|
$pagination-active-color: var(--df-color-primary-alt-active-foreground) !default;
|
|
20
20
|
$pagination-active-bg: var(--df-color-primary-alt-active-background) !default;
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
&.popover-sm {
|
|
29
29
|
@include popover-mixins.popover-sizing(
|
|
30
|
-
var(--df-spacing-
|
|
31
|
-
var(--df-spacing-
|
|
30
|
+
var(--df-spacing-5),
|
|
31
|
+
var(--df-spacing-3),
|
|
32
32
|
var(--df-typo-sizing-large),
|
|
33
33
|
var(--df-typo-sizing-small),
|
|
34
34
|
var(--df-borderRadius-main-small)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../
|
|
1
|
+
@use '../../common.variables.scss' as df;
|
|
2
2
|
|
|
3
3
|
fieldset[role='radiogroup'] > legend {
|
|
4
4
|
font-weight: var(--df-typo-weight-regular);
|
|
@@ -46,18 +46,18 @@ fieldset[role='radiogroup'] > legend {
|
|
|
46
46
|
cursor: not-allowed;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
}
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
:is(&:focus-visible, .form-check &:focus-visible) {
|
|
56
|
-
&:not(:checked):not(.is-invalid) {
|
|
57
|
-
--df-box-shadow-color: var(--df-color-input-border);
|
|
58
|
-
}
|
|
51
|
+
:is(.form-check-input[type='radio']:focus, .form-check .form-check-input[type='radio']:focus) {
|
|
52
|
+
box-shadow: none;
|
|
53
|
+
outline: none;
|
|
54
|
+
}
|
|
59
55
|
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
:is(.form-check-input[type='radio']:focus-visible, .form-check .form-check-input[type='radio']:focus-visible) {
|
|
57
|
+
&:not(:checked):not(.is-invalid):not(.ng-invalid.ng-touched) {
|
|
58
|
+
--df-box-shadow-color: var(--df-color-input-border);
|
|
62
59
|
}
|
|
60
|
+
|
|
61
|
+
box-shadow: #{df.$df-focus-box-shadow};
|
|
62
|
+
outline: none;
|
|
63
63
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../
|
|
1
|
+
@use '../../common.variables' as df;
|
|
2
2
|
|
|
3
3
|
// All bootstrap sass var overrides are found in the file _tabs.variables.scss
|
|
4
4
|
|
|
@@ -21,6 +21,27 @@
|
|
|
21
21
|
.df-icon-inlink {
|
|
22
22
|
color: var(--df-color-neutral-alt-active-foreground) !important;
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
&:hover:not(:active) {
|
|
26
|
+
.df-icon-inlink {
|
|
27
|
+
color: var(--df-color-neutral-alt-activeHovered-foreground) !important;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:active {
|
|
33
|
+
background-color: var(--df-color-primary-alt-pressed-background);
|
|
34
|
+
color: var(--df-color-primary-alt-pressed-foreground);
|
|
35
|
+
|
|
36
|
+
.df-icon-inlink {
|
|
37
|
+
color: var(--df-color-neutral-alt-pressed-foreground) !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:hover:not(:active) {
|
|
42
|
+
.df-icon-inlink {
|
|
43
|
+
color: var(--df-color-neutral-alt-hovered-foreground) !important;
|
|
44
|
+
}
|
|
24
45
|
}
|
|
25
46
|
|
|
26
47
|
&:focus-visible {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Re-write of the select arrow for dark theme working with namespace
|
|
2
|
+
//TODO: we are forced to use the color instead of the token: https://github.com/Amadeus-xDLC/design-factory.design-system/issues/2840
|
|
3
|
+
html:root[data-df-theme='dark'] #{$df-css-namespace-selector} {
|
|
4
|
+
.form-select {
|
|
5
|
+
--df-form-select-bg-img: url("data:image/svg+xml;charset=utf8,%3Csvg version='1.1' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fafafa' d='m1408 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z'/%3E%3C/svg%3E");
|
|
6
|
+
&:not([multiple]):disabled {
|
|
7
|
+
--df-form-select-bg-img: url("data:image/svg+xml;charset=utf8,%3Csvg version='1.1' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23999999' d='m1408 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z'/%3E%3C/svg%3E");
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../
|
|
1
|
+
@use '../../common.variables.scss' as df;
|
|
2
2
|
@use 'select.mixin' as select-mixins;
|
|
3
3
|
|
|
4
4
|
//TODO: we are forced to use the color instead of the token: https://github.com/Amadeus-xDLC/design-factory.design-system/issues/2840
|
|
@@ -74,10 +74,9 @@ html:root[data-df-theme='dark'] {
|
|
|
74
74
|
.highlighted {
|
|
75
75
|
color: var(--df-color-primary-alt-default-foreground);
|
|
76
76
|
text-decoration: inherit !important;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
77
|
+
}
|
|
78
|
+
.ng-option-marked .highlighted {
|
|
79
|
+
color: var(--df-color-primary-alt-hovered-foreground);
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
// ng-select
|
|
@@ -188,7 +187,7 @@ html:root[data-df-theme='dark'] {
|
|
|
188
187
|
}
|
|
189
188
|
|
|
190
189
|
.ng-select-container {
|
|
191
|
-
background-color: var(--df-color-inert-neutral-
|
|
190
|
+
background-color: var(--df-color-inert-neutral-pageBackground);
|
|
192
191
|
border-radius: var(--df-borderRadius-main-medium);
|
|
193
192
|
border: 1px solid var(--df-color-input-border);
|
|
194
193
|
|
|
@@ -359,7 +358,7 @@ html:root[data-df-theme='dark'] {
|
|
|
359
358
|
outline: none;
|
|
360
359
|
|
|
361
360
|
&:after {
|
|
362
|
-
background-color: var(--df-color-inert-neutral-
|
|
361
|
+
background-color: var(--df-color-inert-neutral-pageBackground);
|
|
363
362
|
box-shadow: df.$df-focus-box-shadow;
|
|
364
363
|
}
|
|
365
364
|
}
|
|
@@ -435,14 +434,13 @@ html:root[data-df-theme='dark'] {
|
|
|
435
434
|
.ng-dropdown-panel-items {
|
|
436
435
|
margin-bottom: 0px;
|
|
437
436
|
|
|
438
|
-
.ng-optgroup,
|
|
439
|
-
.ng-option {
|
|
437
|
+
:is(.ng-optgroup, .ng-option) {
|
|
440
438
|
overflow: hidden;
|
|
441
439
|
text-overflow: ellipsis;
|
|
442
440
|
|
|
443
441
|
.form-check {
|
|
444
442
|
margin-bottom: 0;
|
|
445
|
-
padding-bottom:
|
|
443
|
+
padding-bottom: 0.125rem;
|
|
446
444
|
padding-inline-start: $form-check-padding-start + 0.5rem;
|
|
447
445
|
margin-inline-start: -0.5em;
|
|
448
446
|
overflow: hidden;
|
|
@@ -9,7 +9,7 @@ $form-select-disabled-color: var(--df-color-disabled-main-foreground) !default;
|
|
|
9
9
|
$form-select-disabled-bg: var(--df-color-disabled-main-background) !default;
|
|
10
10
|
|
|
11
11
|
$form-select-color: var(--df-color-inert-neutral-main-foreground) !default;
|
|
12
|
-
$form-select-bg: var(--df-color-inert-neutral-
|
|
12
|
+
$form-select-bg: var(--df-color-inert-neutral-pageBackground) !default;
|
|
13
13
|
|
|
14
14
|
$form-select-padding-x: $input-padding-x !default;
|
|
15
15
|
$form-select-indicator-padding: calc(#{$form-select-padding-x} * 3) !default; // Extra padding for background-image
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
.df-sidenav-search-empty {
|
|
33
|
+
visibility: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
32
36
|
// TODO: rework when the topnav is implemented
|
|
33
37
|
.df-sidenav-mobile-drawer {
|
|
34
38
|
top: var(--df-navbar-height, 56px) !important;
|
|
@@ -73,6 +77,16 @@
|
|
|
73
77
|
overflow: hidden;
|
|
74
78
|
text-overflow: ellipsis;
|
|
75
79
|
white-space: nowrap;
|
|
80
|
+
|
|
81
|
+
// Avoid layout shift when an item changed from unselected/selected
|
|
82
|
+
&::before {
|
|
83
|
+
content: attr(title);
|
|
84
|
+
font-weight: var(--df-typo-weight-bold);
|
|
85
|
+
visibility: hidden;
|
|
86
|
+
height: 0;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
display: block;
|
|
89
|
+
}
|
|
76
90
|
}
|
|
77
91
|
|
|
78
92
|
// Mobile header with back button
|
|
@@ -216,6 +230,10 @@
|
|
|
216
230
|
&.df-sidenav-active-level {
|
|
217
231
|
font-weight: var(--df-typo-weight-bold);
|
|
218
232
|
background-color: var(--df-color-primary-alt-active-background);
|
|
233
|
+
|
|
234
|
+
&:hover {
|
|
235
|
+
background-color: var(--df-color-primary-alt-activeHovered-background);
|
|
236
|
+
}
|
|
219
237
|
}
|
|
220
238
|
}
|
|
221
239
|
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
$df-slider-bar-selected-color: var(--df-color-primary-main-default-background); // $barFillColor
|
|
10
10
|
$df-slider-bar-color: $gray-300; // $barNormalColor
|
|
11
11
|
$df-slider-bar-size: 0.25rem; // $barDimension
|
|
12
|
-
$df-slider-bar-disabled-color: var(--df-disabled-
|
|
13
|
-
$df-slider-bar-selected-disabled-color: var(--df-disabled-
|
|
12
|
+
$df-slider-bar-disabled-color: var(--df-color-disabled-main-background); // $barDisabledFillColor
|
|
13
|
+
$df-slider-bar-selected-disabled-color: var(--df-color-disabled-main-foreground); // $barDisabledFillColor
|
|
14
14
|
$df-slider-bar-leftout-selection-color: $red; // $barLeftOutSelectionColor
|
|
15
15
|
$df-slider-bar-rightout-selection-color: $green; // $barRightOutSelectionColor
|
|
16
16
|
|
|
17
17
|
// Pointer
|
|
18
18
|
$df-slider-pointer-color: var(--df-color-primary-main-default-background); // $handleBgColor
|
|
19
|
-
$df-slider-pointer-box-shadow: var(--df-primary-
|
|
19
|
+
$df-slider-pointer-box-shadow: var(--df-color-primary-main-default-border); // $handleBgColor
|
|
20
20
|
$df-slider-pointer-size: 1.25rem; // $handleSize
|
|
21
|
-
$df-slider-pointer-disabled-color: var(--df-disabled-
|
|
22
|
-
$df-slider-pointer-hover-color: var(--df-primary-
|
|
21
|
+
$df-slider-pointer-disabled-color: var(--df-color-disabled-main-foreground); // $handleDisabledColor
|
|
22
|
+
$df-slider-pointer-hover-color: var(--df-color-primary-main-hovered-background); // $handleHoverColor
|
|
23
23
|
$df-slider-pointer-active-color: var(--df-color-primary-main-default-background); // $handleActiveColor
|
|
24
24
|
|
|
25
25
|
// Labels
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
// Pointer
|
|
48
48
|
$df-slider-pointer-size-sm: 1rem;
|
|
49
49
|
$df-slider-pointer-size-lg: 1.5rem;
|
|
50
|
-
$df-slider-pointer-hover-border-color: var(--df-primary-
|
|
50
|
+
$df-slider-pointer-hover-border-color: var(--df-color-primary-main-default-background);
|
|
51
51
|
$df-slider-pointer-hover-border-width: 0.0625rem;
|
|
52
52
|
|
|
53
53
|
// Labels
|
|
54
54
|
$df-slider-label-size-sm: 0.875rem;
|
|
55
55
|
$df-slider-label-size-lg: 1.125rem;
|
|
56
|
-
$df-slider-label-disabled-color: var(--df-disabled-
|
|
56
|
+
$df-slider-label-disabled-color: var(--df-color-disabled-main-foreground); // TODO check color
|
|
57
57
|
|
|
58
58
|
// Slider animation duration
|
|
59
59
|
$df-slider-animation-duration: 0.3s;
|
|
@@ -93,15 +93,11 @@
|
|
|
93
93
|
);
|
|
94
94
|
@extend .df-speech-right;
|
|
95
95
|
}
|
|
96
|
+
}
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
.df-font-lg & {
|
|
103
|
-
li {
|
|
104
|
-
border-radius: var(--df-borderRadius-main-large);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
98
|
+
.df-font-sm .df-speech li {
|
|
99
|
+
border-radius: var(--df-borderRadius-main-small);
|
|
100
|
+
}
|
|
101
|
+
.df-font-lg .df-speech li {
|
|
102
|
+
border-radius: var(--df-borderRadius-main-large);
|
|
107
103
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
.df-stepper-step {
|
|
39
39
|
min-width: 5.625rem; // TODO work with the negative margin even in mobile version
|
|
40
40
|
// put it depending of the button padding and as the btn-sm size
|
|
41
|
-
background-color: var(--df-color-inert-neutral-
|
|
41
|
+
background-color: var(--df-color-inert-neutral-pageBackground);
|
|
42
42
|
border: 1px solid transparent; // override to have same border as btn
|
|
43
43
|
gap: 0;
|
|
44
44
|
|
|
@@ -171,6 +171,6 @@
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.df-stepper-icon::before {
|
|
174
|
-
color: var(--df-color-inert-neutral-
|
|
174
|
+
color: var(--df-color-inert-neutral-pageBackground);
|
|
175
175
|
vertical-align: middle;
|
|
176
176
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'ag-grid-community/styles' as ag;
|
|
2
|
-
@use '../../
|
|
2
|
+
@use '../../common.variables' as df;
|
|
3
3
|
|
|
4
4
|
// TODO check new checkbox look and border radius
|
|
5
5
|
@include ag.grid-styles(
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.df-table.ag-theme-alpine {
|
|
40
|
-
--ag-background-color: var(--df-color-
|
|
40
|
+
--ag-background-color: var(--df-color-neutral-alt-default-background);
|
|
41
41
|
--ag-checkbox-border-radius: #{$form-check-input-border-radius};
|
|
42
42
|
--ag-font-size: var(--df-typo-sizing-default);
|
|
43
43
|
--ag-alpine-active-color: var(--df-color-primary-alt-active-background);
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
background-color: var(--df-color-primary-subtle-background);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
&.df-table-
|
|
83
|
+
&.df-table-neutral-alt-header {
|
|
84
84
|
--ag-header-background-color: var(--df-color-neutral-alt-default-background);
|
|
85
85
|
|
|
86
86
|
.ag-header {
|
|
@@ -115,6 +115,11 @@
|
|
|
115
115
|
color: var(--df-color-primary-alt-active-foreground);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
//Override ag-grid hover + selected to use hover background-color
|
|
119
|
+
.ag-row-hover.ag-row-selected::before {
|
|
120
|
+
background-image: linear-gradient(var(---ag-row-hover-color), var(--ag-row-hover-color));
|
|
121
|
+
}
|
|
122
|
+
|
|
118
123
|
.ag-icon.ag-icon-desc {
|
|
119
124
|
@extend .df-table-icon;
|
|
120
125
|
@extend .fa-sort-amount-down;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../
|
|
1
|
+
@use '../../common.variables' as df;
|
|
2
2
|
|
|
3
3
|
.nav-link {
|
|
4
4
|
&:visited {
|
|
@@ -36,6 +36,11 @@
|
|
|
36
36
|
color: var(--df-nav-link-hover-color);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
&:active:not(.disabled):not(:disabled) {
|
|
40
|
+
background-color: var(--df-color-primary-alt-pressed-background);
|
|
41
|
+
color: var(--df-color-primary-alt-pressed-foreground);
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
&:focus {
|
|
40
45
|
box-shadow: none;
|
|
41
46
|
outline: none;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '../../common.variables' as df;
|
|
2
2
|
|
|
3
3
|
$toast-padding-y: 0.5625rem !default;
|
|
4
4
|
$toast-padding-x: var(--df-spacing-5) !default;
|
|
5
5
|
$toast-border-radius: var(--df-borderRadius-main-small) !default;
|
|
6
6
|
$toast-border-width: 0 !default;
|
|
7
7
|
$toast-font-size: var(--df-typo-sizing-small) !default;
|
|
8
|
+
$toast-box-shadow: df.$df-box-shadow !default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../
|
|
1
|
+
@use '../../common.variables.scss' as df;
|
|
2
2
|
|
|
3
3
|
.form-switch {
|
|
4
4
|
display: flex;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
border-color: var(--df-color-toggle-border);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
&:focus-visible:not(:checked):not(:disabled):not(.is-invalid) {
|
|
65
|
+
&:focus-visible:not(:checked):not(:disabled):not(.is-invalid):not(.ng-invalid.ng-touched) {
|
|
66
66
|
--df-box-shadow-color: var(--df-color-toggle-border);
|
|
67
67
|
}
|
|
68
68
|
|
package/scss/namespace.scss
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
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
|
+
|
|
1
6
|
@import 'variables';
|
|
2
7
|
@import 'bootstrap/maps';
|
|
3
8
|
@import 'bootstrap/scss/maps';
|
|
@@ -6,12 +11,25 @@
|
|
|
6
11
|
@import 'components/fonts/fonts-family';
|
|
7
12
|
@import 'components/fonts/multi-lang.mixins';
|
|
8
13
|
@import 'common.mixins';
|
|
9
|
-
|
|
10
14
|
@import 'bootstrap/scss/root';
|
|
11
15
|
@import 'common.root';
|
|
12
16
|
|
|
17
|
+
@import 'components/navbar/navbar.mixins';
|
|
18
|
+
|
|
19
|
+
@import '@design-factory/tokens/css/root-dark';
|
|
20
|
+
|
|
21
|
+
:root {
|
|
22
|
+
// beautiful media service ONLY works when breakpoints css vars are defined at root level :)
|
|
23
|
+
@each $breakpoint, $value in $grid-breakpoints {
|
|
24
|
+
--df-breakpoint-#{$breakpoint}: #{$value};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
13
28
|
$df-css-namespace-selector: '.design-factory-v2' !default;
|
|
14
29
|
|
|
30
|
+
/* stylelint-disable no-invalid-position-at-import-rule */
|
|
31
|
+
@import 'components/button/button.namespace';
|
|
32
|
+
|
|
15
33
|
#{$df-css-namespace-selector} {
|
|
16
34
|
@import 'bootstrap/scss/reboot';
|
|
17
35
|
@import 'bootstrap/scss/type';
|
|
@@ -54,11 +72,11 @@ $df-css-namespace-selector: '.design-factory-v2' !default;
|
|
|
54
72
|
|
|
55
73
|
/** DESIGN FACTORY IMPORTS **/
|
|
56
74
|
@import 'common';
|
|
57
|
-
@import 'components/accordion/accordion';
|
|
58
75
|
@import 'components/fonts/icon-font';
|
|
59
76
|
@import 'components/fonts/font-awesome-icons';
|
|
60
77
|
@import 'components/fonts/font-awesome-icons-brands';
|
|
61
78
|
@import 'components/fonts/fonts';
|
|
79
|
+
@import 'components/accordion/accordion';
|
|
62
80
|
@import 'components/separator/separator';
|
|
63
81
|
@import 'components/button/button';
|
|
64
82
|
@import 'components/media/media';
|
|
@@ -92,13 +110,18 @@ $df-css-namespace-selector: '.design-factory-v2' !default;
|
|
|
92
110
|
@import 'components/rating/rating';
|
|
93
111
|
@import 'components/speechbubble/speechbubble';
|
|
94
112
|
@import 'components/list/list';
|
|
95
|
-
@import 'components/skip-links/skip-links';
|
|
96
113
|
@import 'components/breadcrumbs/breadcrumbs';
|
|
97
114
|
@import 'components/stepper/stepper';
|
|
98
115
|
@import 'components/carousel/carousel';
|
|
116
|
+
@import 'components/sidenav/sidenav-deprecated';
|
|
99
117
|
@import 'components/sidenav/sidenav';
|
|
118
|
+
@import 'components/drawer/drawer';
|
|
100
119
|
@import 'components/footer/footer';
|
|
101
120
|
@import 'components/toast/toast';
|
|
121
|
+
@import 'components/scrollspy/scrollspy';
|
|
122
|
+
@import 'components/timepicker/timepicker';
|
|
123
|
+
@import 'components/tooltip/tooltip';
|
|
124
|
+
@import 'components/waves/waves';
|
|
102
125
|
|
|
103
126
|
@import 'bootstrap/rtl-styles-override';
|
|
104
127
|
|
|
@@ -106,26 +129,31 @@ $df-css-namespace-selector: '.design-factory-v2' !default;
|
|
|
106
129
|
/* stylelint-disable-next-line scss/load-partial-extension */
|
|
107
130
|
@import '@agnos-ui/core-bootstrap/scss/agnosui.scss';
|
|
108
131
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
font-
|
|
113
|
-
font-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
background-color:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
132
|
+
// body
|
|
133
|
+
margin: 0;
|
|
134
|
+
font-family: var(--df-body-font-family);
|
|
135
|
+
font-size: var(--df-body-font-size);
|
|
136
|
+
font-weight: var(--df-body-font-weight);
|
|
137
|
+
line-height: var(--df-body-line-height);
|
|
138
|
+
color: var(--df-body-color);
|
|
139
|
+
text-align: var(--df-body-text-align);
|
|
140
|
+
background-color: var(--df-body-bg);
|
|
141
|
+
-webkit-text-size-adjust: 100%;
|
|
142
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
143
|
+
|
|
144
|
+
// root level CSS, mostly from bootstrap _reboot.scss
|
|
145
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
146
|
+
scroll-behavior: smooth;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
a > code {
|
|
150
|
+
color: inherit;
|
|
127
151
|
}
|
|
128
152
|
|
|
153
|
+
// making sure ag-grid legacy styles are used
|
|
154
|
+
--ag-legacy-styles-loaded: 'true';
|
|
155
|
+
|
|
156
|
+
// fixes display of validation feedback, coming from bootstrap _forms.scss
|
|
129
157
|
@each $state, $data in $form-validation-states {
|
|
130
158
|
@if ($state == 'valid' or $state == 'invalid') {
|
|
131
159
|
.was-validated :#{$state},
|
|
@@ -145,16 +173,9 @@ $df-css-namespace-selector: '.design-factory-v2' !default;
|
|
|
145
173
|
}
|
|
146
174
|
}
|
|
147
175
|
}
|
|
148
|
-
/* stylelint-disable no-invalid-position-at-import-rule */
|
|
149
|
-
@import 'components/popover/popover_container';
|
|
150
|
-
@import 'components/tooltip/tooltip_container';
|
|
151
|
-
@import 'components/spinner/spinner_container';
|
|
152
|
-
@import 'components/button/button_container';
|
|
153
|
-
@import 'components/pagination/pagination_container';
|
|
154
|
-
@import 'components/brand-color/brand-color_container';
|
|
155
|
-
/* stylelint-enable no-invalid-position-at-import-rule */
|
|
156
176
|
|
|
157
|
-
|
|
158
|
-
.
|
|
159
|
-
|
|
160
|
-
|
|
177
|
+
@import 'components/carousel/carousel.namespace';
|
|
178
|
+
@import 'components/modal/modal.namespace';
|
|
179
|
+
@import 'components/pagination/pagination.namespace';
|
|
180
|
+
@import 'components/select/select.namespace';
|
|
181
|
+
/* stylelint-enable no-invalid-position-at-import-rule */
|
package/scss/utilities.scss
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
$df-box-shadow: 0px 0px 8px var(--df-color-shadow-1) !default;
|
|
2
|
-
$df-focus-box-shadow:
|
|
3
|
-
0 0 0 2px var(--df-inner-box-shadow-color, var(--df-body-bg)),
|
|
4
|
-
0 0 0 4px var(--df-box-shadow-color, var(--df-color-primary-main-default-border)) !default;
|
|
5
|
-
$df-focus-inset-box-shadow:
|
|
6
|
-
inset 0 0 0 2px var(--df-inner-box-shadow-color, var(--df-body-bg)),
|
|
7
|
-
inset 0 0 0 4px var(--df-box-shadow-color, var(--df-color-primary-main-default-border)) !default;
|