@design-factory/design-factory 15.2.3 → 16.0.0
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/README.md +17 -1
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-Bold.ttf +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-Bold.woff +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-Bold.woff2 +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-BoldItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-BoldItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-BoldItalic.woff2 +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-Light.ttf +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-Light.woff +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-Light.woff2 +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-LightItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-LightItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-LightItalic.woff2 +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-Medium.ttf +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-Medium.woff +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-Medium.woff2 +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-MediumItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-MediumItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-MediumItalic.woff2 +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-Regular.ttf +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-Regular.woff +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-Regular.woff2 +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-RegularItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-RegularItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-RegularItalic.woff2 +0 -0
- package/design-factory-initial-branding.css +1 -0
- package/design-factory-initial-branding.scss +1 -0
- package/design-factory.css +1 -3
- package/design-factory.scss +1 -0
- package/esm2022/lib/angular/accessibility/components/skip-links-container/skip-links-container.component.mjs +3 -3
- package/esm2022/lib/angular/df.module.mjs +102 -0
- package/esm2022/lib/angular/icon/amadeus-icon.mjs +2 -2
- package/esm2022/lib/angular/sidenav/sidenavlist.component.mjs +3 -12
- package/esm2022/lib/angular/stepper/stepper.component.mjs +65 -0
- package/esm2022/lib/angular/stepper/stepper.directive.mjs +174 -0
- package/esm2022/lib/angular/stepper/stepper.module.mjs +17 -0
- package/esm2022/lib/angular/stepper/stepper.service.mjs +213 -0
- package/esm2022/lib/angular/tooltip/truncate/tooltipTruncate.directive.mjs +5 -3
- package/esm2022/lib/index.mjs +9 -96
- package/fesm2022/design-factory.mjs +1838 -1427
- package/fesm2022/design-factory.mjs.map +1 -1
- package/lib/angular/df.module.d.ts +26 -0
- package/lib/angular/stepper/stepper.component.d.ts +31 -0
- package/lib/angular/stepper/stepper.directive.d.ts +37 -0
- package/lib/angular/stepper/stepper.module.d.ts +8 -0
- package/lib/angular/stepper/stepper.service.d.ts +126 -0
- package/lib/angular/tooltip/truncate/tooltipTruncate.directive.d.ts +1 -0
- package/lib/index.d.ts +7 -23
- package/package.json +23 -4
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.js +0 -1
- package/schematics/migrations/16_0_0/navbar-logo-dark/index.d.ts +9 -0
- package/schematics/migrations/16_0_0/navbar-logo-dark/index.js +43 -0
- package/schematics/migrations/16_0_0/revert-to-old-brand/index.d.ts +7 -0
- package/schematics/migrations/16_0_0/revert-to-old-brand/index.js +115 -0
- package/schematics/migrations/16_0_0/scss-var/files/removed.json +55 -0
- package/schematics/migrations/16_0_0/scss-var/files/renames.json +76 -0
- package/schematics/migrations/16_0_0/scss-var/index.d.ts +7 -0
- package/schematics/migrations/16_0_0/scss-var/index.js +57 -0
- package/schematics/migrations/16_0_0/stepper-classes/index.d.ts +13 -0
- package/schematics/migrations/16_0_0/stepper-classes/index.js +63 -0
- package/schematics/migrations/helpers.js +0 -1
- package/schematics/migrations/migration.json +23 -1
- package/schematics/migrations/utils/component-resource-collector.d.ts +44 -0
- package/schematics/migrations/utils/component-resource-collector.js +166 -0
- package/schematics/migrations/utils/project_tsconfig_paths.js +0 -1
- package/schematics/migrations/utils/style-updater.d.ts +9 -0
- package/schematics/migrations/utils/style-updater.js +38 -0
- package/schematics/migrations/utils/template-updater.d.ts +9 -0
- package/schematics/migrations/utils/template-updater.js +38 -0
- package/schematics/migrations/utils/typescript/compiler_host.js +0 -1
- package/schematics/migrations/utils/typescript/decorators.d.ts +22 -0
- package/schematics/migrations/utils/typescript/decorators.js +41 -0
- package/schematics/migrations/utils/typescript/functions.d.ts +14 -0
- package/schematics/migrations/utils/typescript/functions.js +20 -0
- package/schematics/migrations/utils/typescript/imports.d.ts +17 -0
- package/schematics/migrations/utils/typescript/imports.js +110 -0
- package/schematics/migrations/utils/typescript/line-mappings.d.ts +21 -0
- package/schematics/migrations/utils/typescript/line-mappings.js +75 -0
- package/schematics/migrations/utils/typescript/parse_tsconfig.js +0 -1
- package/schematics/migrations/utils/typescript/property-name.d.ts +18 -0
- package/schematics/migrations/utils/typescript/property-name.js +27 -0
- package/schematics/ng-add/index.js +0 -1
- package/schematics/ng-add/schema.js +0 -1
- package/styles/scss/_common.root.scss +37 -0
- package/styles/scss/_common.scss +3 -9
- package/styles/scss/_common.variables.scss +16 -6
- package/styles/scss/_variables.scss +0 -1
- package/styles/scss/bootstrap/_maps.scss +10 -9
- package/styles/scss/bootstrap/_mixins-override.scss +26 -0
- package/styles/scss/bootstrap/_variables.scss +927 -267
- package/styles/scss/components/accordion/_accordion.scss +31 -14
- package/styles/scss/components/accordion/_accordion.variables.scss +5 -5
- package/styles/scss/components/alert/_alert.scss +130 -228
- package/styles/scss/components/alert/_alert.variables.scss +22 -33
- package/styles/scss/components/badge/_badge.scss +130 -118
- package/styles/scss/components/badge/_badge.variables.scss +14 -8
- package/styles/scss/components/brand-color/_brand-color.mixins.scss +19 -4
- package/styles/scss/components/brand-color/_brand-color.scss +4 -6
- package/styles/scss/components/brand-color/_brand-color.variables.scss +1 -7
- package/styles/scss/components/brand-color/_brand-color_container.scss +28 -0
- package/styles/scss/components/breadcrumbs/_breadcrumbs.scss +77 -65
- package/styles/scss/components/breadcrumbs/_breadcrumbs.variables.scss +6 -4
- package/styles/scss/components/button/_button.scss +120 -55
- package/styles/scss/components/button/_button.variables.scss +18 -4
- package/styles/scss/components/button/_button_container.scss +9 -45
- package/styles/scss/components/card/_card.scss +90 -58
- package/styles/scss/components/card/_card.variables.scss +13 -13
- package/styles/scss/components/carousel/_carousel.scss +22 -23
- package/styles/scss/components/carousel/_carousel.variables.scss +2 -1
- package/styles/scss/components/checkbox/_checkbox.scss +14 -8
- package/styles/scss/components/checkbox/_checkbox.variables.scss +2 -2
- package/styles/scss/components/collapse/_collapse.scss +15 -7
- package/styles/scss/components/collapse/_collapse.variables.scss +3 -3
- package/styles/scss/components/datepicker/_datepicker.scss +178 -122
- package/styles/scss/components/datepicker/_datepicker.variables.scss +22 -15
- package/styles/scss/components/dropdown/_dropdown.mixins.scss +4 -4
- package/styles/scss/components/dropdown/_dropdown.scss +39 -19
- package/styles/scss/components/dropdown/_dropdown.variables.scss +4 -4
- package/styles/scss/components/fieldset/_fieldset.scss +4 -2
- package/styles/scss/components/fonts/_fonts-family.scss +112 -29
- package/styles/scss/components/fonts/_fonts.root.scss +27 -0
- package/styles/scss/components/fonts/_fonts.scss +25 -26
- package/styles/scss/components/fonts/_fonts.variables.scss +2 -2
- package/styles/scss/components/footer/_footer.scss +48 -18
- package/styles/scss/components/footer/_footer.variables.scss +4 -2
- package/styles/scss/components/form/_form.scss +69 -16
- package/styles/scss/components/form/_form.variables.scss +23 -3
- package/styles/scss/components/icon/_amadeus-icon.scss +2 -2
- package/styles/scss/components/icon/_amadeus-icon.variables.scss +1 -0
- package/styles/scss/components/inputs/_inputs.mixin.scss +8 -4
- package/styles/scss/components/inputs/_inputs.root.scss +8 -0
- package/styles/scss/components/inputs/_inputs.scss +159 -118
- package/styles/scss/components/inputs/_inputs.variables.scss +2 -1
- package/styles/scss/components/link/_link.mixins.scss +49 -49
- package/styles/scss/components/link/_link.scss +84 -22
- package/styles/scss/components/link/_link.variables.scss +6 -6
- package/styles/scss/components/list/_list.scss +10 -5
- package/styles/scss/components/list-group/_list-group.scss +54 -48
- package/styles/scss/components/list-group/_list-group.variables.scss +6 -14
- package/styles/scss/components/media/_media.scss +17 -9
- package/styles/scss/components/media/_media.variables.scss +2 -1
- package/styles/scss/components/modal/_modal.scss +88 -39
- package/styles/scss/components/modal/_modal.variables.scss +4 -5
- package/styles/scss/components/navbar/_navbar.scss +298 -115
- package/styles/scss/components/navbar/_navbar.variables.scss +29 -18
- package/styles/scss/components/pagination/_pagination.scss +68 -82
- package/styles/scss/components/pagination/_pagination.variables.scss +5 -8
- package/styles/scss/components/pagination/_pagination_container.scss +3 -0
- package/styles/scss/components/popover/_popover.mixin.scss +20 -33
- package/styles/scss/components/popover/_popover.scss +25 -7
- package/styles/scss/components/popover/_popover_container.scss +123 -74
- package/styles/scss/components/progressbar/_progressbar.scss +15 -7
- package/styles/scss/components/progressbar/_progressbar.variables.scss +3 -2
- package/styles/scss/components/radio/_radio.scss +19 -14
- package/styles/scss/components/rating/_rating.scss +41 -22
- package/styles/scss/components/rating/_rating.variables.scss +5 -5
- package/styles/scss/components/scrollspy/_scrollspy.scss +30 -13
- package/styles/scss/components/scrollspy/_scrollspy.variables.scss +2 -1
- package/styles/scss/components/select/_select.scss +232 -166
- package/styles/scss/components/select/_select.variables.scss +15 -15
- package/styles/scss/components/separator/_separator.scss +2 -1
- package/styles/scss/components/sidenav/_sidenav.scss +208 -135
- package/styles/scss/components/sidenav/_sidenav.variables.scss +19 -20
- package/styles/scss/components/skip-links/_skip-links.scss +31 -16
- package/styles/scss/components/skip-links/_skip-links.variables.scss +6 -6
- package/styles/scss/components/slider/_slider.scss +11 -10
- package/styles/scss/components/slider/_slider.variables.scss +8 -8
- package/styles/scss/components/speechbubble/_speechbubble.scss +50 -30
- package/styles/scss/components/speechbubble/_speechbubble.variables.scss +4 -2
- package/styles/scss/components/spinner/_spinner.scss +34 -29
- package/styles/scss/components/stepper/_stepper.mixins.scss +111 -151
- package/styles/scss/components/stepper/_stepper.scss +163 -69
- package/styles/scss/components/stepper/_stepper.variables.scss +23 -17
- package/styles/scss/components/table/_advancedtables.scss +50 -31
- package/styles/scss/components/table/_table.variables.scss +3 -2
- package/styles/scss/components/tabs/_tabs.scss +98 -49
- package/styles/scss/components/tabs/_tabs.variables.scss +11 -10
- package/styles/scss/components/toast/_toast.scss +136 -68
- package/styles/scss/components/toast/_toast.variables.scss +4 -4
- package/styles/scss/components/toggle/_toggle.scss +90 -44
- package/styles/scss/components/toggle/_toggle.variables.scss +7 -5
- package/styles/scss/components/typeahead/_typeahead.scss +18 -8
- package/styles/scss/components/typeahead/_typeahead.variables.scss +1 -1
- package/styles/scss/df-styles-namespace.scss +8 -11
- package/styles/scss/df-styles.scss +6 -3
- package/styles/scss/themes/brand2023/_variables.scss +585 -0
- package/styles/scss/utilities/_common.utilities.scss +112 -32
- package/assets/fonts/amadeus-light/amadeus-light.svg +0 -8658
- package/assets/fonts/amadeus-light/amadeus-light.ttf +0 -0
- package/assets/fonts/amadeus-light/amadeus-light.woff +0 -0
- package/assets/fonts/amadeus-light/amadeus-light.woff2 +0 -0
- package/assets/icon-amadeus.svg +0 -1
- package/esm2022/lib/angular/utils/html-element-helper.mjs +0 -8
- package/esm2022/lib/angular/utils/titleTruncate.directive.mjs +0 -39
- package/lib/angular/utils/html-element-helper.d.ts +0 -5
- package/lib/angular/utils/titleTruncate.directive.d.ts +0 -16
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.js.map +0 -1
- package/schematics/migrations/helpers.js.map +0 -1
- package/schematics/migrations/utils/project_tsconfig_paths.js.map +0 -1
- package/schematics/migrations/utils/typescript/compiler_host.js.map +0 -1
- package/schematics/migrations/utils/typescript/parse_tsconfig.js.map +0 -1
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/ng-add/schema.js.map +0 -1
- package/styles/scss/components/tooltip/_tooltip.scss +0 -3
- package/styles/scss/components/tooltip/_tooltip.variables.scss +0 -5
|
@@ -9,6 +9,68 @@ ol:not([class]) {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
a {
|
|
12
|
+
--#{$prefix}link-border-bottom-width: #{$df-link-border-bottom-width};
|
|
13
|
+
--#{$prefix}link-border-bottom: #{$df-link-border-bottom};
|
|
14
|
+
--#{$prefix}link-background: #{$df-link-background};
|
|
15
|
+
--#{$prefix}link-hover-border-bottom-width: #{$df-link-hover-border-bottom-width};
|
|
16
|
+
--#{$prefix}link-hover-background: #{$df-link-hover-background};
|
|
17
|
+
--#{$prefix}link-visited-color: #{$df-link-visited-color};
|
|
18
|
+
--#{$prefix}link-visited-border-bottom-width: #{$df-link-visited-border-bottom-width};
|
|
19
|
+
--#{$prefix}link-visited-hover-border-bottom-width: #{$df-link-visited-hover-border-bottom-width};
|
|
20
|
+
--#{$prefix}link-visited-hover-border-bottom-color: #{$df-link-visited-hover-border-bottom-color};
|
|
21
|
+
--#{$prefix}link-visited-border-bottom: #{$df-link-visited-border-bottom};
|
|
22
|
+
--#{$prefix}link-visited-hover-background: #{$df-link-visited-hover-background};
|
|
23
|
+
--#{$prefix}link-visited-hover-text-color: #{$df-link-visited-hover-text-color};
|
|
24
|
+
--#{$prefix}link-focus-outline: #{$df-link-focus-outline};
|
|
25
|
+
--#{$prefix}link-focus-outline-offset: #{$df-link-focus-outline-offset};
|
|
26
|
+
--#{$prefix}link-focus-box-shadow: #{$df-link-focus-box-shadow};
|
|
27
|
+
--#{$prefix}link-disabled-color: #{$df-link-disabled-color};
|
|
28
|
+
--#{$prefix}link-disabled-display: #{$df-link-disabled-display};
|
|
29
|
+
--#{$prefix}link-disabled-cursor: #{$df-link-disabled-cursor};
|
|
30
|
+
--#{$prefix}link-disabled-text-decoration: #{$df-link-disabled-text-decoration};
|
|
31
|
+
--#{$prefix}link-disabled-border-bottom-width: #{$df-link-disabled-border-bottom-width};
|
|
32
|
+
--#{$prefix}link-disabled-border-bottom-color: #{$df-link-disabled-border-bottom-color};
|
|
33
|
+
--#{$prefix}link-disabled-background: #{$df-link-disabled-background};
|
|
34
|
+
--#{$prefix}link-active-color: #{$df-link-active-color};
|
|
35
|
+
--#{$prefix}link-active-border-bottom-width: #{$df-link-active-border-bottom-width};
|
|
36
|
+
--#{$prefix}link-active-background: #{$df-link-active-background};
|
|
37
|
+
--#{$prefix}link-external-icon-bottom: #{$df-link-external-icon-bottom};
|
|
38
|
+
--#{$prefix}link-external-icon-size: #{$df-link-external-icon-size};
|
|
39
|
+
--#{$prefix}link-external-font-family: #{$df-link-external-font-family};
|
|
40
|
+
--#{$prefix}link-more-text-transform: #{$df-link-more-text-transform};
|
|
41
|
+
--#{$prefix}link-more-text-decoration-underline: #{$df-link-more-text-decoration-underline};
|
|
42
|
+
--#{$prefix}link-more-icon-margin-left: #{$df-link-more-icon-margin-left};
|
|
43
|
+
--#{$prefix}link-more-icon-top: #{$df-link-more-icon-top};
|
|
44
|
+
--#{$prefix}link-icononly-height: #{$df-link-icononly-height};
|
|
45
|
+
--#{$prefix}link-icononly-height-sm: #{$df-link-icononly-height-sm};
|
|
46
|
+
--#{$prefix}link-icononly-height-lg: #{$df-link-icononly-height-lg};
|
|
47
|
+
--#{$prefix}link-icononly-display: #{$df-link-icononly-display};
|
|
48
|
+
--#{$prefix}link-icononly-align: #{$df-link-icononly-align};
|
|
49
|
+
--#{$prefix}link-icononly-justify-content: #{$df-link-icononly-justify-content};
|
|
50
|
+
--#{$prefix}link-icononly-text-align: #{$df-link-icononly-text-align};
|
|
51
|
+
--#{$prefix}link-icononly-color: #{$df-link-icononly-color};
|
|
52
|
+
--#{$prefix}link-icononly-decoration: #{$df-link-icononly-decoration};
|
|
53
|
+
--#{$prefix}link-icononly-border-radius: #{$df-link-icononly-border-radius};
|
|
54
|
+
--#{$prefix}link-icononly-hover-bg-color: #{$df-link-icononly-hover-bg-color};
|
|
55
|
+
--#{$prefix}link-focus-box-shadow: #{$df-link-focus-box-shadow};
|
|
56
|
+
--#{$prefix}link-focus-outline: #{$df-link-focus-outline};
|
|
57
|
+
|
|
58
|
+
&:focus {
|
|
59
|
+
box-shadow: var(--#{$prefix}link-focus-box-shadow);
|
|
60
|
+
outline: var(--#{$prefix}link-focus-outline);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@if variable-exists($name: 'df-enableBranding2023') and $df-enableBranding2023 {
|
|
64
|
+
&:not(.df-link-icononly) {
|
|
65
|
+
&:hover {
|
|
66
|
+
--#{$prefix}box-shadow-color: var(--#{$prefix}link-hover-color);
|
|
67
|
+
}
|
|
68
|
+
&:active, &.active {
|
|
69
|
+
--#{$prefix}box-shadow-color: var(--#{$prefix}link-active-color);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
12
74
|
&[href*='//'], &[href*='mailto'], &.df-link-external {
|
|
13
75
|
.icon-external-link {
|
|
14
76
|
display: none;
|
|
@@ -49,40 +111,40 @@ a {
|
|
|
49
111
|
}
|
|
50
112
|
|
|
51
113
|
.df-link-icononly-common {
|
|
52
|
-
border-radius: $
|
|
53
|
-
text-align: $
|
|
54
|
-
display: $
|
|
55
|
-
color: $
|
|
56
|
-
text-decoration: $
|
|
57
|
-
align-items: $
|
|
58
|
-
justify-content: $
|
|
114
|
+
border-radius: var(--#{$prefix}link-icononly-border-radius);
|
|
115
|
+
text-align: var(--#{$prefix}link-icononly-text-align);
|
|
116
|
+
display: var(--#{$prefix}link-icononly-display);
|
|
117
|
+
color: var(--#{$prefix}link-icononly-color);
|
|
118
|
+
text-decoration: var(--#{$prefix}link-icononly-decoration);
|
|
119
|
+
align-items: var(--#{$prefix}link-icononly-align);
|
|
120
|
+
justify-content: var(--#{$prefix}link-icononly-justify-content);
|
|
59
121
|
&:hover {
|
|
60
|
-
color: $
|
|
61
|
-
background-color: $
|
|
62
|
-
text-decoration: $
|
|
122
|
+
color: var(--#{$prefix}link-icononly-color);
|
|
123
|
+
background-color: var(--#{$prefix}link-icononly-hover-bg-color);
|
|
124
|
+
text-decoration: var(--#{$prefix}link-icononly-decoration);
|
|
63
125
|
}
|
|
64
126
|
&:focus {
|
|
65
|
-
box-shadow: $
|
|
66
|
-
outline: $
|
|
127
|
+
box-shadow: var(--#{$prefix}link-focus-box-shadow);
|
|
128
|
+
outline: var(--#{$prefix}link-focus-outline);
|
|
67
129
|
}
|
|
68
130
|
}
|
|
69
131
|
|
|
70
132
|
.df-link-icononly {
|
|
71
133
|
@extend .df-link-icononly-common;
|
|
72
|
-
line-height: $
|
|
73
|
-
height: $
|
|
74
|
-
width: $
|
|
134
|
+
line-height: var(--#{$prefix}link-icononly-height);
|
|
135
|
+
height: var(--#{$prefix}link-icononly-height);
|
|
136
|
+
width: var(--#{$prefix}link-icononly-height);
|
|
75
137
|
&-sm {
|
|
76
138
|
@extend .df-link-icononly-common;
|
|
77
|
-
line-height: $
|
|
78
|
-
height: $
|
|
79
|
-
width: $
|
|
139
|
+
line-height: var(--#{$prefix}link-icononly-height-sm);
|
|
140
|
+
height: var(--#{$prefix}link-icononly-height-sm);
|
|
141
|
+
width: var(--#{$prefix}link-icononly-height-sm);
|
|
80
142
|
}
|
|
81
143
|
|
|
82
144
|
&-lg {
|
|
83
145
|
@extend .df-link-icononly-common;
|
|
84
|
-
line-height: $
|
|
85
|
-
height: $
|
|
86
|
-
width: $
|
|
146
|
+
line-height: var(--#{$prefix}link-icononly-height-lg);
|
|
147
|
+
height: var(--#{$prefix}link-icononly-height-lg);
|
|
148
|
+
width: var(--#{$prefix}link-icononly-height-lg);
|
|
87
149
|
}
|
|
88
|
-
}
|
|
150
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
$df-link-border-bottom-width: $border-width !default;
|
|
2
2
|
$df-link-border-bottom: $df-link-border-bottom-width solid !default;
|
|
3
|
-
$df-link-color: $primary !default;
|
|
4
|
-
$df-link-hover-color: $df-link-color !default;
|
|
5
3
|
$df-link-background: transparent !default;
|
|
6
4
|
|
|
7
5
|
$df-link-hover-border-bottom-width: $df-link-border-bottom-width * 2 !default;
|
|
@@ -12,20 +10,22 @@ $df-link-visited-border-bottom-width: $df-link-border-bottom-width !default;
|
|
|
12
10
|
$df-link-visited-hover-border-bottom-width: $df-link-hover-border-bottom-width !default;
|
|
13
11
|
$df-link-visited-border-bottom: $df-link-visited-border-bottom-width solid $df-link-visited-color !default;
|
|
14
12
|
$df-link-visited-hover-background: df-getBGSecondaryHoverColor('mystery') !default;
|
|
13
|
+
$df-link-visited-hover-text-color: $df-link-visited-color !default;
|
|
14
|
+
$df-link-visited-hover-border-bottom-color: $df-link-visited-hover-text-color !default;
|
|
15
15
|
|
|
16
16
|
$df-link-focus-outline: 0 !default;
|
|
17
17
|
$df-link-focus-outline-offset: 0 !default;
|
|
18
18
|
$df-link-focus-box-shadow: $btn-focus-box-shadow !default;
|
|
19
19
|
|
|
20
|
-
$df-link-disabled-color: $
|
|
20
|
+
$df-link-disabled-color: var(--#{$prefix}disabled-color) !default;
|
|
21
21
|
$df-link-disabled-display: inline-block !default;
|
|
22
|
-
$df-link-disabled-cursor: $
|
|
22
|
+
$df-link-disabled-cursor: var(--#{$prefix}disabled-cursor) !default;
|
|
23
23
|
$df-link-disabled-text-decoration: none !default;
|
|
24
24
|
$df-link-disabled-border-bottom-width: $df-link-border-bottom-width !default;
|
|
25
25
|
$df-link-disabled-border-bottom-color: $df-btn-disabled-border-color !default;
|
|
26
26
|
$df-link-disabled-background: transparent !default;
|
|
27
27
|
|
|
28
|
-
$df-link-active-color:
|
|
28
|
+
$df-link-active-color: shades-css-var('primary', 'text-active-color') !default;
|
|
29
29
|
$df-link-active-border-bottom-width: $df-link-border-bottom-width * 2 !default;
|
|
30
30
|
$df-link-active-background: transparent !default;
|
|
31
31
|
|
|
@@ -50,6 +50,6 @@ $df-link-icononly-text-align: center !default;
|
|
|
50
50
|
$df-link-icononly-color: $gray-600 !default;
|
|
51
51
|
$df-link-icononly-decoration: none !default;
|
|
52
52
|
$df-link-icononly-border-radius: 50% !default;
|
|
53
|
-
$df-link-icononly-hover-bg-color:
|
|
53
|
+
$df-link-icononly-hover-bg-color: shades-css-var('secondary', 'bg-subtle-hover-color') !default;
|
|
54
54
|
$df-link-focus-box-shadow: $df-focused-box-shadow !default;
|
|
55
55
|
$df-link-focus-outline: none !default;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
ol
|
|
1
|
+
ol {
|
|
2
|
+
--#{$prefix}ol-padding-left: #{$df-ol-padding-left};
|
|
3
|
+
--#{$prefix}ol-marker-font-weight: #{$df-ol-marker-font-weight};
|
|
4
|
+
--#{$prefix}ol-marker-left: #{$df-ol-marker-left};
|
|
5
|
+
--#{$prefix}ol-marker-list-style-type: none;
|
|
6
|
+
|
|
2
7
|
counter-reset: df-ol-counter;
|
|
3
|
-
list-style-type:
|
|
4
|
-
padding-left: $
|
|
8
|
+
list-style-type: var(--#{$prefix}ol-marker-list-style-type);
|
|
9
|
+
padding-left: var(--#{$prefix}ol-padding-left);
|
|
5
10
|
li {
|
|
6
11
|
counter-increment: df-ol-counter;
|
|
7
12
|
position: relative;
|
|
8
13
|
&:before {
|
|
9
14
|
content: $df-ol-marker-content;
|
|
10
|
-
font-weight: $
|
|
15
|
+
font-weight: var(--#{$prefix}ol-marker-font-weight);
|
|
11
16
|
position: absolute;
|
|
12
|
-
left: $
|
|
17
|
+
left: var(--#{$prefix}ol-marker-left);
|
|
13
18
|
}
|
|
14
19
|
}
|
|
15
20
|
}
|
|
@@ -1,61 +1,67 @@
|
|
|
1
|
-
.list-group-item-action {
|
|
2
|
-
color: $df-listgroup-item-action-color;
|
|
3
|
-
// Hover state
|
|
4
|
-
&:not([aria-disabled='true']):not(.disabled):not([disabled]) {
|
|
5
|
-
&:hover {
|
|
6
|
-
background-color: $df-listgroup-item-hover-color;
|
|
7
|
-
}
|
|
8
|
-
&:focus {
|
|
9
|
-
box-shadow: $df-focused-box-shadow;
|
|
10
|
-
outline: none; //disable default
|
|
11
|
-
}
|
|
12
|
-
&.active {
|
|
13
|
-
border-color: $df-listgroup-item-active-border-color; // override
|
|
14
|
-
@include ltr {
|
|
15
|
-
padding-left: $df-listgroup-item-padding-left;
|
|
16
|
-
border-left: $df-listgroup-item-border-left-active;
|
|
17
|
-
}
|
|
18
|
-
@include rtl {
|
|
19
|
-
padding-right: $df-listgroup-item-padding-left;
|
|
20
|
-
border-right: $df-listgroup-item-border-left-active;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.list-group-item-action + .list-group-item-action {
|
|
27
|
-
margin-top: $df-listgroup-item-action-margin-top;
|
|
28
|
-
border-width: $df-listgroup-item-border-width; // override
|
|
29
|
-
}
|
|
30
|
-
|
|
31
1
|
.list-group-item {
|
|
32
|
-
|
|
2
|
+
--#{$prefix}list-group-disabled-cursor: #{$df-list-group-disabled-cursor};
|
|
3
|
+
--#{$prefix}list-group-item-active-border-color: #{$df-list-group-item-active-border-color};
|
|
4
|
+
--#{$prefix}list-group-item-border-left-active: #{$df-list-group-item-border-left-active};
|
|
5
|
+
--#{$prefix}list-group-item-padding-left: #{$df-list-group-item-padding-left};
|
|
6
|
+
|
|
7
|
+
border-color: var(--#{$prefix}list-group-border-color);
|
|
33
8
|
&[aria-disabled='true'],
|
|
34
9
|
&.disabled,
|
|
35
10
|
&[disabled] {
|
|
36
|
-
color: $
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
cursor: $df-listgroup-disabled-cursor;
|
|
40
|
-
pointer-events: auto; // override
|
|
11
|
+
color: var(--#{$prefix}list-group-disabled-color);
|
|
12
|
+
cursor: var(--#{$prefix}list-group-disabled-cursor);
|
|
13
|
+
pointer-events: auto;
|
|
41
14
|
}
|
|
42
|
-
}
|
|
43
15
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
16
|
+
&.list-group-item-action {
|
|
17
|
+
&:not([aria-disabled='true']):not(.disabled):not([disabled]) {
|
|
18
|
+
&:focus {
|
|
19
|
+
box-shadow: $df-list-group-focus-box-shadow;
|
|
20
|
+
outline: none; //disable default
|
|
21
|
+
}
|
|
22
|
+
&.active {
|
|
23
|
+
&:hover {
|
|
24
|
+
background-color: var(--#{$prefix}list-group-action-hover-bg); // override
|
|
25
|
+
}
|
|
26
|
+
border-color: var(--#{$prefix}list-group-item-active-border-color); // override
|
|
27
|
+
background-color: var(--#{$prefix}list-group-action-active-bg);
|
|
28
|
+
@include ltr {
|
|
29
|
+
padding-left: var(--#{$prefix}list-group-item-padding-left);
|
|
30
|
+
border-left: var(--#{$prefix}list-group-item-border-left-active);
|
|
31
|
+
}
|
|
32
|
+
@include rtl {
|
|
33
|
+
padding-right: var(--#{$prefix}list-group-item-padding-left);
|
|
34
|
+
border-right: var(--#{$prefix}list-group-item-border-left-active);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
&:focus {
|
|
39
|
+
box-shadow: $df-list-group-focus-box-shadow;
|
|
40
|
+
outline: none;
|
|
50
41
|
}
|
|
51
42
|
}
|
|
52
43
|
}
|
|
53
44
|
|
|
54
|
-
.list-group
|
|
55
|
-
|
|
56
|
-
|
|
45
|
+
.list-group {
|
|
46
|
+
font-size: var(--#{$prefix}list-group-font-size);
|
|
47
|
+
@each $extension, $ratio in $df-size-ratios {
|
|
48
|
+
&.df-list-group-#{$extension} {
|
|
49
|
+
--#{$prefix}list-group-font-size: #{$font-size-base * $ratio};
|
|
50
|
+
--#{$prefix}list-group-item-padding-y: #{$list-group-item-padding-y * $ratio};
|
|
51
|
+
.list-group-item {
|
|
52
|
+
padding-top: var(--#{$prefix}list-group-item-padding-y);
|
|
53
|
+
padding-bottom: var(--#{$prefix}list-group-item-padding-y);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
57
56
|
}
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
|
|
58
|
+
&.list-group-flush .list-group-item {
|
|
59
|
+
&:first-child {
|
|
60
|
+
border-top: none;
|
|
61
|
+
}
|
|
62
|
+
&:last-child {
|
|
63
|
+
border-bottom: none;
|
|
64
|
+
}
|
|
60
65
|
}
|
|
61
66
|
}
|
|
67
|
+
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
$df-
|
|
2
|
-
$df-
|
|
3
|
-
$df-
|
|
4
|
-
$df-
|
|
5
|
-
$df-
|
|
6
|
-
$df-
|
|
7
|
-
$df-listgroup-item-border-width: $border-width !default;
|
|
8
|
-
$df-listgroup-item-active-border-width: 0.1875rem !default; // same as sidenav
|
|
9
|
-
$df-listgroup-item-active-color: $primary !default; // same as sidenav
|
|
10
|
-
$df-listgroup-item-active-border-color: $gray-100 !default;
|
|
11
|
-
$df-listgroup-item-hover-color: $df-hover-bg-color !default;
|
|
12
|
-
$df-listgroup-item-border-left-active: $df-listgroup-item-active-border-width solid $df-listgroup-item-active-color !default;
|
|
13
|
-
$df-listgroup-item-action-margin-top: -$df-listgroup-item-border-width !default;
|
|
14
|
-
$df-listgroup-item-padding-left: calc(#{$list-group-item-padding-x} - #{$df-listgroup-item-active-border-width} + #{$df-listgroup-item-border-width}) !default;
|
|
1
|
+
$df-list-group-disabled-cursor: var(--#{$prefix}disabled-cursor) !default;
|
|
2
|
+
$df-list-group-item-active-border-width: 0.1875rem !default; // same as sidenav
|
|
3
|
+
$df-list-group-item-active-border-color: $gray-100 !default;
|
|
4
|
+
$df-list-group-item-border-left-active: $df-list-group-item-active-border-width solid var(--#{$prefix}list-group-active-color) !default; // todo check with Max if should be inert color ?
|
|
5
|
+
$df-list-group-item-padding-left: calc(#{$list-group-item-padding-x} - #{$df-list-group-item-active-border-width} + #{$list-group-border-width}) !default;
|
|
6
|
+
$df-list-group-focus-box-shadow: var(--#{$prefix}focused-box-shadow) !default;
|
|
@@ -1,42 +1,50 @@
|
|
|
1
1
|
.df-media-button-interactive {
|
|
2
|
+
--#{$prefix}interactive-media-padding: #{$df-interactive-media-padding};
|
|
3
|
+
--#{$prefix}interactive-media-focused-background-color: #{$df-interactive-media-focused-background-color};
|
|
4
|
+
--#{$prefix}interactive-media-hover-background-color: #{$df-interactive-media-hover-background-color};
|
|
5
|
+
--#{$prefix}interactive-media-background-color: #{$df-interactive-media-background-color};
|
|
6
|
+
--#{$prefix}interactive-media-hover-focus-text-decoration: #{$df-interactive-media-hover-focus-text-decoration};
|
|
7
|
+
--#{$prefix}interactive-media-color: #{$df-interactive-media-color};
|
|
8
|
+
|
|
2
9
|
@include ltr {
|
|
3
10
|
text-align: left;
|
|
4
11
|
}
|
|
5
12
|
@include rtl {
|
|
6
13
|
text-align: right;
|
|
7
14
|
}
|
|
8
|
-
padding: $
|
|
15
|
+
padding: var(--#{$prefix}interactive-media-padding);
|
|
9
16
|
border: none;
|
|
10
|
-
background-color: $
|
|
17
|
+
background-color: var(--#{$prefix}interactive-media-background-color);
|
|
11
18
|
|
|
12
19
|
span,
|
|
13
20
|
.card-text {
|
|
14
|
-
color: $
|
|
21
|
+
color: var(--#{$prefix}interactive-media-color);
|
|
15
22
|
}
|
|
16
23
|
|
|
17
24
|
&:focus {
|
|
18
|
-
background-color: $
|
|
25
|
+
background-color: var(--#{$prefix}interactive-media-focused-background-color);
|
|
19
26
|
|
|
20
27
|
.media-body > *,
|
|
21
28
|
.card-body > * {
|
|
22
|
-
text-decoration: $
|
|
29
|
+
text-decoration: var(--#{$prefix}interactive-media-hover-focus-text-decoration);
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
&:hover {
|
|
26
|
-
background-color: $
|
|
33
|
+
background-color: var(--#{$prefix}interactive-media-hover-background-color);
|
|
27
34
|
|
|
28
35
|
.media-body > *,
|
|
29
36
|
.card-body > * {
|
|
30
|
-
text-decoration: $
|
|
37
|
+
text-decoration: var(--#{$prefix}interactive-media-hover-focus-text-decoration);
|
|
31
38
|
}
|
|
32
39
|
}
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
.df-img-mr {
|
|
43
|
+
--#{$prefix}media-margin-end: #{$df-media-margin-end};
|
|
36
44
|
@include ltr {
|
|
37
|
-
margin-right: $
|
|
45
|
+
margin-right: var(--#{$prefix}media-margin-end);
|
|
38
46
|
}
|
|
39
47
|
@include rtl {
|
|
40
|
-
margin-left: $
|
|
48
|
+
margin-left: var(--#{$prefix}media-margin-end);
|
|
41
49
|
}
|
|
42
50
|
}
|
|
@@ -4,4 +4,5 @@ $df-interactive-media-hover-background-color: $gray-100 !default;
|
|
|
4
4
|
$df-interactive-media-background-color: $white !default;
|
|
5
5
|
$df-interactive-media-hover-focus-text-decoration: underline !default;
|
|
6
6
|
$df-media-mr: 1em !default;
|
|
7
|
-
$df-
|
|
7
|
+
$df-media-margin-end: $df-media-mr !default;
|
|
8
|
+
$df-interactive-media-color: shades-css-var('primary', 'bg-color') !default;
|
|
@@ -1,75 +1,124 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
3
|
.modal {
|
|
4
|
+
--#{$prefix}modal-backdrop-opacity: #{$df-modal-backdrop-opacity};
|
|
5
|
+
--#{$prefix}modal-box-shadow: #{$df-modal-box-shadow};
|
|
6
|
+
--#{$prefix}modal-border-radius: #{$df-modal-border-radius};
|
|
7
|
+
--#{$prefix}modal-border: #{$df-modal-border};
|
|
8
|
+
--#{$prefix}modal-header-title-break-word: #{$df-modal-header-title-break-word};
|
|
9
|
+
--#{$prefix}modal-header-button-close-padding-y: #{$df-modal-header-button-close-padding-y};
|
|
10
|
+
--#{$prefix}modal-header-button-close-border-radius: #{$df-modal-header-button-close-border-radius};
|
|
11
|
+
|
|
12
|
+
--#{$prefix}modal-header-icon-font-color: #{shades-css-var(secondary, 'text-color')};
|
|
13
|
+
|
|
14
|
+
--#{$prefix}modal-header-button-color-hover: #{shades-css-var(secondary, 'text-hover-color')};
|
|
15
|
+
--#{$prefix}modal-header-button-color-hover-bg: #{shades-css-var(secondary, 'bg-subtle-hover-color')};
|
|
16
|
+
|
|
17
|
+
--#{$prefix}modal-header-button-active-bg: #{shades-css-var(secondary, 'bg-subtle-active-color')};
|
|
18
|
+
|
|
19
|
+
@if variable-exists($name: 'df-enableBranding2023') and $df-enableBranding2023 {
|
|
20
|
+
--#{$prefix}modal-header-button-color-focus: #{shades-css-var(secondary, 'text-color')};
|
|
21
|
+
--#{$prefix}modal-header-button-color-hover-focus: #{shades-css-var(secondary, 'text-hover-color')};
|
|
22
|
+
} @else {
|
|
23
|
+
--#{$prefix}modal-header-button-color-focus: rgba(#{shades-rgb-css-var(secondary, 'bg-color')}, 0.5);
|
|
24
|
+
--#{$prefix}modal-header-button-color-hover-focus: rgba(#{shades-rgb-css-var(secondary, 'bg-hover-color')}, 0.5);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
--#{$prefix}modal-header-button-active-color: #{shades-css-var(secondary, 'bg-active-color')};
|
|
28
|
+
|
|
29
|
+
--#{$prefix}modal-body-padding-x: #{$df-modal-body-padding-x};
|
|
30
|
+
--#{$prefix}modal-body-alert-icon-size: #{$df-modal-body-alert-icon-size};
|
|
31
|
+
--#{$prefix}modal-body-alert-border-style: #{$df-modal-body-alert-border-style};
|
|
32
|
+
--#{$prefix}modal-xs-padding: #{$df-modal-xs-padding};
|
|
33
|
+
--#{$prefix}modal-xs-content-padding-y: #{$df-modal-xs-content-padding-y};
|
|
34
|
+
--#{$prefix}modal-xs-header-padding-right: #{$df-modal-xs-header-padding-right};
|
|
35
|
+
--#{$prefix}modal-xs-button-close-position-top: #{$df-modal-xs-button-close-position-top};
|
|
36
|
+
--#{$prefix}modal-xs-button-close-position-end: #{$df-modal-xs-button-close-position-end};
|
|
37
|
+
--#{$prefix}modal-xs-footer-margin-top: #{$df-modal-xs-footer-margin-top};
|
|
38
|
+
--#{$prefix}modal-last-paragraph-margin-bottom: #{$df-modal-last-paragraph-margin-bottom};
|
|
39
|
+
--#{$prefix}modal-footer-padding: #{map.get($spacers, 5) map.get($spacers, 6)};
|
|
40
|
+
|
|
4
41
|
overflow-x: hidden;
|
|
5
42
|
overflow-y: auto;
|
|
6
43
|
|
|
7
44
|
.modal-dialog {
|
|
8
45
|
.modal-content {
|
|
9
|
-
box-shadow: $
|
|
10
|
-
border-radius: $
|
|
11
|
-
border: $
|
|
46
|
+
box-shadow: var(--#{$prefix}modal-box-shadow);
|
|
47
|
+
border-radius: var(--#{$prefix}modal-border-radius);
|
|
48
|
+
border: var(--#{$prefix}modal-border);
|
|
12
49
|
|
|
13
50
|
.modal-header {
|
|
14
51
|
padding: map.get($spacers, 4) map.get($spacers, 6);
|
|
15
52
|
.modal-title {
|
|
16
|
-
word-break: $
|
|
53
|
+
word-break: var(--#{$prefix}modal-header-title-break-word);
|
|
17
54
|
}
|
|
18
55
|
.btn-close {
|
|
19
|
-
padding-top: $
|
|
20
|
-
padding-bottom: $
|
|
21
|
-
color: $
|
|
56
|
+
padding-top: var(--#{$prefix}modal-header-button-close-padding-y);
|
|
57
|
+
padding-bottom: var(--#{$prefix}modal-header-button-close-padding-y);
|
|
58
|
+
color: var(--#{$prefix}modal-header-icon-font-color);
|
|
59
|
+
border-radius: var(--#{$prefix}modal-header-button-close-border-radius);
|
|
60
|
+
$btn-close-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666666'><path d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/></svg>");
|
|
61
|
+
background: transparent $btn-close-bg center/0.8rem auto no-repeat;
|
|
22
62
|
|
|
23
63
|
@include rtl {
|
|
24
64
|
margin-right: auto;
|
|
25
65
|
margin-left: 0;
|
|
26
66
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
&.df-warning-modal {
|
|
32
|
-
.btn-close {
|
|
33
|
-
margin-top: $df-modal-alert-header-button-close-margin-top;
|
|
67
|
+
&:focus:not(:hover):not(:active) {
|
|
68
|
+
color: var(--#{$prefix}modal-header-button-color-focus);
|
|
69
|
+
--#{$prefix}box-shadow-color: var(--#{$prefix}modal-header-button-color-focus);
|
|
34
70
|
}
|
|
35
|
-
|
|
36
|
-
color: $
|
|
71
|
+
&:focus:hover:not(:active) {
|
|
72
|
+
--#{$prefix}box-shadow-color: var(--#{$prefix}modal-header-button-color-hover-focus);
|
|
73
|
+
color: var(--#{$prefix}modal-header-button-color-hover-focus);
|
|
37
74
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
75
|
+
&:hover {
|
|
76
|
+
color: var(--#{$prefix}modal-header-button-color-hover);
|
|
77
|
+
|
|
78
|
+
$btn-close-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a1a1a'><path d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/></svg>");
|
|
79
|
+
background: var(--#{$prefix}modal-header-button-color-hover-bg) $btn-close-bg center/0.8rem auto no-repeat;
|
|
42
80
|
}
|
|
43
|
-
|
|
44
|
-
color: $
|
|
81
|
+
&:focus:active:not(:hover) {
|
|
82
|
+
color: var(--#{$prefix}modal-header-button-active-color);
|
|
83
|
+
--#{$prefix}box-shadow-color: var(--#{$prefix}modal-header-button-active-color);
|
|
84
|
+
|
|
85
|
+
$btn-close-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'><path d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/></svg>");
|
|
86
|
+
background: var(--#{$prefix}modal-header-button-active-bg) $btn-close-bg center/0.8rem auto no-repeat;
|
|
45
87
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
.btn-close {
|
|
49
|
-
margin-top: $df-modal-alert-header-button-close-margin-top;
|
|
88
|
+
&:focus:active:hover {
|
|
89
|
+
--#{$prefix}box-shadow-color: var(--#{$prefix}modal-header-button-color-hover-focus);
|
|
50
90
|
}
|
|
51
|
-
|
|
52
|
-
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.alert-modal-icon {
|
|
94
|
+
font-size: var(--#{$prefix}modal-body-alert-icon-size);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@each $color, $value in $theme-colors {
|
|
98
|
+
&.df-#{$color}-modal {
|
|
99
|
+
.alert-modal-icon {
|
|
100
|
+
color: $value;
|
|
101
|
+
}
|
|
53
102
|
}
|
|
54
103
|
}
|
|
55
104
|
}
|
|
56
105
|
|
|
57
106
|
.modal-body {
|
|
58
107
|
p:last-child {
|
|
59
|
-
margin-bottom: $
|
|
108
|
+
margin-bottom: var(--#{$prefix}modal-last-paragraph-margin-bottom);
|
|
60
109
|
}
|
|
61
110
|
@include ltr {
|
|
62
111
|
text-align: left;
|
|
63
|
-
padding-inline: $
|
|
112
|
+
padding-inline: var(--#{$prefix}modal-body-padding-x);
|
|
64
113
|
}
|
|
65
114
|
@include rtl {
|
|
66
115
|
text-align: right;
|
|
67
|
-
padding-inline: $
|
|
116
|
+
padding-inline: var(--#{$prefix}modal-body-padding-x);
|
|
68
117
|
}
|
|
69
118
|
}
|
|
70
119
|
|
|
71
120
|
.modal-footer {
|
|
72
|
-
padding:
|
|
121
|
+
padding: var(--#{$prefix}modal-footer-padding);
|
|
73
122
|
& > * {
|
|
74
123
|
margin: 0;
|
|
75
124
|
}
|
|
@@ -90,7 +139,7 @@
|
|
|
90
139
|
}
|
|
91
140
|
|
|
92
141
|
margin: 0;
|
|
93
|
-
padding: $
|
|
142
|
+
padding: var(--#{$prefix}modal-xs-padding);
|
|
94
143
|
min-height: 100%;
|
|
95
144
|
display: flex;
|
|
96
145
|
flex: 1;
|
|
@@ -104,21 +153,21 @@
|
|
|
104
153
|
.modal-header {
|
|
105
154
|
justify-content: center;
|
|
106
155
|
@include ltr {
|
|
107
|
-
padding-right: $
|
|
156
|
+
padding-right: var(--#{$prefix}modal-xs-header-padding-right);
|
|
108
157
|
}
|
|
109
158
|
@include rtl {
|
|
110
|
-
padding-left: $
|
|
159
|
+
padding-left: var(--#{$prefix}modal-xs-header-padding-right);
|
|
111
160
|
}
|
|
112
161
|
border-bottom: none;
|
|
113
162
|
margin-bottom: 10px;
|
|
114
163
|
button.close {
|
|
115
164
|
position: absolute;
|
|
116
|
-
top: $
|
|
165
|
+
top: var(--#{$prefix}modal-xs-button-close-position-top);
|
|
117
166
|
@include ltr {
|
|
118
|
-
right: $
|
|
167
|
+
right: var(--#{$prefix}modal-xs-button-close-position-end);
|
|
119
168
|
}
|
|
120
169
|
@include rtl {
|
|
121
|
-
left: $
|
|
170
|
+
left: var(--#{$prefix}modal-xs-button-close-position-end);
|
|
122
171
|
}
|
|
123
172
|
padding: 0;
|
|
124
173
|
margin: 0;
|
|
@@ -135,7 +184,7 @@
|
|
|
135
184
|
justify-content: center;
|
|
136
185
|
align-items: baseline;
|
|
137
186
|
border-top: none;
|
|
138
|
-
margin-top: $
|
|
187
|
+
margin-top: var(--#{$prefix}modal-xs-footer-margin-top);
|
|
139
188
|
}
|
|
140
189
|
}
|
|
141
190
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
$df-modal-backdrop-opacity: 0.4 !default;
|
|
2
|
-
$df-modal-box-shadow: $
|
|
2
|
+
$df-modal-box-shadow: var(--#{$prefix}box-shadow) !default;
|
|
3
3
|
$df-modal-border-radius: $border-radius-lg !default;
|
|
4
4
|
$df-modal-border: $border-width solid $border-color !default;
|
|
5
5
|
|
|
6
6
|
$df-modal-header-title-break-word: break-word !default;
|
|
7
7
|
$df-modal-header-button-close-padding-y: 0.5rem !default;
|
|
8
|
-
$df-modal-
|
|
9
|
-
$df-modal-header-icon-font-color: $df-font-icon-color !default;
|
|
8
|
+
$df-modal-header-button-close-border-radius: $df-btn-icononly-border-radius !default;
|
|
10
9
|
|
|
11
10
|
$df-modal-body-padding-x: 1.5rem !default;
|
|
12
11
|
$df-modal-body-alert-icon-size: 1.75rem !default;
|
|
@@ -17,7 +16,7 @@ $df-modal-xs-padding: 0.5rem !default;
|
|
|
17
16
|
$df-modal-xs-content-padding-y: 4rem !default;
|
|
18
17
|
$df-modal-xs-header-padding-right: 1.5rem !default;
|
|
19
18
|
$df-modal-xs-button-close-position-top: 1rem !default;
|
|
20
|
-
$df-modal-xs-button-close-position-
|
|
19
|
+
$df-modal-xs-button-close-position-end: $df-modal-xs-button-close-position-top !default;
|
|
21
20
|
$df-modal-xs-footer-margin-top: 0.9375rem !default;
|
|
22
21
|
|
|
23
|
-
$df-modal-last-paragraph-margin-bottom: 0 !default;
|
|
22
|
+
$df-modal-last-paragraph-margin-bottom: 0 !default;
|