@dynamic-framework/ui-react 1.17.1 → 1.19.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/dist/css/dynamic-ui-non-root.css +1365 -873
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +493 -26
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +1857 -898
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +119 -163
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +120 -167
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAvatar/DAvatar.d.ts +9 -0
- package/dist/types/components/DAvatar/index.d.ts +2 -0
- package/dist/types/components/DButton/DButton.d.ts +1 -1
- package/dist/types/components/DCarousel/DCarousel.d.ts +5 -4
- package/dist/types/components/DToastContainer/DToastContainer.d.ts +9 -7
- package/dist/types/components/DToastContainer/index.d.ts +1 -1
- package/dist/types/components/DToastContainer/{useToast.d.ts → useDToast.d.ts} +7 -4
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/interface.d.ts +1 -0
- package/dist/types/contexts/DContext.d.ts +8 -7
- package/dist/types/contexts/DPortalContext.d.ts +29 -0
- package/dist/types/contexts/index.d.ts +1 -2
- package/package.json +3 -3
- package/src/style/abstracts/_mixins.scss +110 -94
- package/src/style/abstracts/_utilities.scss +34 -1
- package/src/style/abstracts/variables/_+import.scss +2 -0
- package/src/style/abstracts/variables/_accordion.scss +2 -2
- package/src/style/abstracts/variables/_alerts.scss +1 -1
- package/src/style/abstracts/variables/_buttons.scss +3 -3
- package/src/style/abstracts/variables/_cards.scss +2 -0
- package/src/style/abstracts/variables/_collapse-icon-text.scss +2 -2
- package/src/style/abstracts/variables/_forms.scss +5 -7
- package/src/style/abstracts/variables/_navs.scss +2 -2
- package/src/style/abstracts/variables/_pagination.scss +4 -4
- package/src/style/abstracts/variables/_progress.scss +2 -2
- package/src/style/abstracts/variables/_quick-action-button.scss +4 -4
- package/src/style/abstracts/variables/_quick-action-check.scss +4 -4
- package/src/style/abstracts/variables/_quick-action-select.scss +3 -3
- package/src/style/abstracts/variables/_quick-action-switch.scss +2 -2
- package/src/style/abstracts/variables/_tooltip.scss +16 -0
- package/src/style/abstracts/variables/_typography.scss +76 -20
- package/src/style/abstracts/variables/_z-index.scss +11 -0
- package/src/style/base/_+import.scss +7 -2
- package/src/style/base/_avatar.scss +61 -0
- package/src/style/base/_backdrop.scss +9 -0
- package/src/style/base/_button-group.scss +13 -0
- package/src/style/base/{_button.scss → _buttons.scss} +14 -53
- package/src/style/base/_form-check.scss +2 -1
- package/src/style/base/_input-group.scss +11 -6
- package/src/style/base/_tooltip.scss +23 -0
- package/src/style/base/_type.scss +104 -0
- package/src/style/components/_+import.scss +0 -1
- package/src/style/components/_d-datepicker.scss +7 -7
- package/src/style/components/_d-monthpicker.scss +4 -4
- package/src/style/components/_d-quick-action-button.scss +8 -0
- package/src/style/components/_d-quick-action-select.scss +2 -0
- package/src/style/components/_d-quick-action-switch.scss +4 -4
- package/src/style/components/_d-select.scss +1 -1
- package/src/style/components/_d-stepper-mobile.scss +3 -3
- package/src/style/helpers/_+import.scss +1 -0
- package/src/style/helpers/_text-truncate.scss +8 -0
- package/src/style/root/_root.scss +98 -17
- package/dist/types/contexts/DModalContext.d.ts +0 -31
- package/dist/types/contexts/DOffcanvasContext.d.ts +0 -31
- package/src/style/components/_d-tooltip.scss +0 -35
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Progress bars
|
|
2
2
|
|
|
3
3
|
// scss-docs-start progress-variables
|
|
4
|
-
$progress-font-size: var(--#{$prefix}
|
|
4
|
+
$progress-font-size: var(--#{$prefix}fs-small) !default;
|
|
5
5
|
$progress-bg: var(--#{$prefix}secondary-100) !default;
|
|
6
6
|
$progress-border-radius: var(--#{$prefix}border-radius-pill) !default;
|
|
7
7
|
$progress-box-shadow: none !default;
|
|
@@ -9,6 +9,6 @@ $progress-bar-color: var(--#{$prefix}white) !default;
|
|
|
9
9
|
$progress-bar-bg: var(--#{$prefix}secondary) !default;
|
|
10
10
|
|
|
11
11
|
// custom
|
|
12
|
-
$progress-font-weight: var(--#{$prefix}
|
|
12
|
+
$progress-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
13
13
|
// end custom
|
|
14
14
|
// scss-docs-end progress-variables
|
|
@@ -5,12 +5,12 @@ $quick-action-button-border: 1px solid var(--#{$prefix}secondary-100) !default;
|
|
|
5
5
|
$quick-action-button-border-radius: var(--#{$prefix}border-radius) !default;
|
|
6
6
|
$quick-action-button-box-shadow: none !default;
|
|
7
7
|
|
|
8
|
-
$quick-action-button-line1-font-size: var(--#{$prefix}
|
|
9
|
-
$quick-action-button-line1-font-weight: var(--#{$prefix}
|
|
8
|
+
$quick-action-button-line1-font-size: var(--#{$prefix}fs-6) !default;
|
|
9
|
+
$quick-action-button-line1-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
10
10
|
$quick-action-button-line1-color: var(--#{$prefix}body-color) !default;
|
|
11
11
|
|
|
12
|
-
$quick-action-button-line2-font-size: var(--#{$prefix}
|
|
13
|
-
$quick-action-button-line2-font-weight: var(--#{$prefix}
|
|
12
|
+
$quick-action-button-line2-font-size: var(--#{$prefix}fs-small) !default;
|
|
13
|
+
$quick-action-button-line2-font-weight: var(--#{$prefix}fw-normal) !default;
|
|
14
14
|
$quick-action-button-line2-color: var(--#{$prefix}gray-500) !default;
|
|
15
15
|
|
|
16
16
|
$quick-action-button-representative-image-size: var(--#{$prefix}ref-spacer-9) !default;
|
|
@@ -4,15 +4,15 @@ $quick-action-check-bg: var(--#{$prefix}white) !default;
|
|
|
4
4
|
$quick-action-check-border-radius: var(--#{$prefix}border-radius-sm) !default;
|
|
5
5
|
|
|
6
6
|
$quick-action-check-line1-font-size: var(--#{$prefix}body-font-size) !default;
|
|
7
|
-
$quick-action-check-line1-font-weight: var(--#{$prefix}
|
|
7
|
+
$quick-action-check-line1-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
8
8
|
$quick-action-check-line1-color: var(--#{$prefix}gray-900) !default;
|
|
9
9
|
|
|
10
|
-
$quick-action-check-line2-font-size: var(--#{$prefix}
|
|
11
|
-
$quick-action-check-line2-font-weight: var(--#{$prefix}
|
|
10
|
+
$quick-action-check-line2-font-size: var(--#{$prefix}fs-small) !default;
|
|
11
|
+
$quick-action-check-line2-font-weight: var(--#{$prefix}fw-normal) !default;
|
|
12
12
|
$quick-action-check-line2-color: var(--#{$prefix}gray) !default;
|
|
13
13
|
|
|
14
14
|
$quick-action-check-line3-font-size: var(--#{$prefix}body-font-size) !default;
|
|
15
|
-
$quick-action-check-line3-font-weight: var(--#{$prefix}
|
|
15
|
+
$quick-action-check-line3-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
16
16
|
$quick-action-check-line3-color: var(--#{$prefix}gray) !default;
|
|
17
17
|
|
|
18
18
|
$quick-action-check-hover-bg: var(--#{$prefix}gray-100) !default;
|
|
@@ -2,12 +2,12 @@ $quick-action-select-padding: var(--#{$prefix}ref-spacer-4) !default;
|
|
|
2
2
|
$quick-action-select-bg: var(--#{$prefix}gray-100) !default;
|
|
3
3
|
$quick-action-select-border-radius: var(--#{$prefix}border-radius-sm) !default;
|
|
4
4
|
|
|
5
|
-
$quick-action-select-line1-font-size: var(--#{$prefix}
|
|
6
|
-
$quick-action-select-line1-font-weight: var(--#{$prefix}
|
|
5
|
+
$quick-action-select-line1-font-size: var(--#{$prefix}fs-small) !default;
|
|
6
|
+
$quick-action-select-line1-font-weight: var(--#{$prefix}fw-normal) !default;
|
|
7
7
|
$quick-action-select-line1-color: var(--#{$prefix}secondary) !default;
|
|
8
8
|
|
|
9
9
|
$quick-action-select-line2-font-size: var(--#{$prefix}body-font-size) !default;
|
|
10
|
-
$quick-action-select-line2-font-weight: var(--#{$prefix}
|
|
10
|
+
$quick-action-select-line2-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
11
11
|
$quick-action-select-line2-color: var(--#{$prefix}light-text-emphasis) !default;
|
|
12
12
|
|
|
13
13
|
$quick-action-select-hover-bg: var(--#{$prefix}gray-200) !default;
|
|
@@ -9,8 +9,8 @@ $quick-action-switch-label-font-size: $font-size-base !default;
|
|
|
9
9
|
$quick-action-switch-label-font-weight: $form-label-font-weight !default;
|
|
10
10
|
$quick-action-switch-label-color: $form-switch-label-color !default;
|
|
11
11
|
|
|
12
|
-
$quick-action-switch-hint-font-size: var(--#{$prefix}
|
|
13
|
-
$quick-action-switch-hint-font-weight: var(--#{$prefix}
|
|
12
|
+
$quick-action-switch-hint-font-size: var(--#{$prefix}fs-small) !default;
|
|
13
|
+
$quick-action-switch-hint-font-weight: var(--#{$prefix}fw-normal) !default;
|
|
14
14
|
$quick-action-switch-hint-color: var(--#{$prefix}gray-400) !default;
|
|
15
15
|
|
|
16
16
|
$quick-action-switch-hover-bg: var(--#{$prefix}secondary-soft) !default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// scss-docs-start tooltip-variables
|
|
2
|
+
$tooltip-font-size: var(--#{$prefix}tooltip-component-font-size, var(--#{$prefix}body-font-size)) !default;
|
|
3
|
+
$tooltip-max-width: var(--#{$prefix}tooltip-component-max-width, 300px) !default;
|
|
4
|
+
$tooltip-color: var(--#{$prefix}tooltip-component-color, var(--#{$prefix}body-bg)) !default;
|
|
5
|
+
$tooltip-bg: var(--#{$prefix}tooltip-component-bg, var(--#{$prefix}emphasis-color)) !default;
|
|
6
|
+
$tooltip-border-radius: var(--#{$prefix}tooltip-component-border-radius, var(--#{$prefix}ref-spacer-1)) !default;
|
|
7
|
+
$tooltip-opacity: 1 !default;
|
|
8
|
+
$tooltip-padding-y: var(--#{$prefix}ref-spacer-1) !default;
|
|
9
|
+
$tooltip-padding-x: var(--#{$prefix}ref-spacer-2) !default;
|
|
10
|
+
|
|
11
|
+
// custom
|
|
12
|
+
$tooltip-font-size-sm: var(--#{$prefix}fs-small) !default;
|
|
13
|
+
$tooltip-font-size-lg: var(--#{$prefix}fs-6) !default;
|
|
14
|
+
// end custom
|
|
15
|
+
|
|
16
|
+
// scss-docs-end tooltip-variables
|
|
@@ -9,29 +9,63 @@ $font-family-sans-serif: "Source Sans 3", sans-serif !default;
|
|
|
9
9
|
// $font-size-base affects the font size of the body text
|
|
10
10
|
$font-size-root: 16px !default;
|
|
11
11
|
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
// custom
|
|
14
|
+
$font-size-sm: var(--#{$prefix}fs-small) !default;
|
|
15
|
+
$font-size-sm-value: .875em !default;
|
|
16
|
+
// end custom
|
|
17
|
+
|
|
13
18
|
$font-size-lg: $font-size-base * 1.125 !default; // 18px
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
$font-weight-
|
|
17
|
-
$font-weight-
|
|
18
|
-
$font-weight-
|
|
19
|
-
$font-weight-
|
|
20
|
-
$font-weight-
|
|
20
|
+
// custom
|
|
21
|
+
$font-weight-lighter-value: lighter !default;
|
|
22
|
+
$font-weight-light-value: 200 !default;
|
|
23
|
+
$font-weight-normal-value: 400 !default;
|
|
24
|
+
$font-weight-semibold-value: 600 !default;
|
|
25
|
+
$font-weight-bold-value: 700 !default;
|
|
26
|
+
$font-weight-bolder-value: 800 !default;
|
|
27
|
+
|
|
28
|
+
$font-weight-lighter: var(--#{$prefix}fw-lighter) !default;
|
|
29
|
+
$font-weight-light: var(--#{$prefix}fw-light) !default;
|
|
30
|
+
$font-weight-normal: var(--#{$prefix}fw-normal) !default;
|
|
31
|
+
$font-weight-semibold: var(--#{$prefix}fw-semibold) !default;
|
|
32
|
+
$font-weight-bold: var(--#{$prefix}fw-bold) !default;
|
|
33
|
+
$font-weight-bolder: var(--#{$prefix}fw-bolder) !default;
|
|
34
|
+
// end custom
|
|
21
35
|
|
|
22
36
|
$font-weight-base: $font-weight-normal !default;
|
|
23
37
|
|
|
24
38
|
$line-height-base: 1.5 !default;
|
|
25
39
|
|
|
26
|
-
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
$
|
|
30
|
-
$
|
|
31
|
-
$
|
|
40
|
+
// custom
|
|
41
|
+
$h1-font-size-value: $font-size-base * 4 !default;
|
|
42
|
+
$h2-font-size-value: $font-size-base * 3.5 !default;
|
|
43
|
+
$h3-font-size-value: $font-size-base * 3 !default;
|
|
44
|
+
$h4-font-size-value: $font-size-base * 2 !default;
|
|
45
|
+
$h5-font-size-value: $font-size-base * 1.5 !default;
|
|
46
|
+
$h6-font-size-value: $font-size-base * 1.125 !default;
|
|
47
|
+
|
|
48
|
+
$h1-font-size: var(--#{$prefix}fs-1) !default;
|
|
49
|
+
$h2-font-size: var(--#{$prefix}fs-2) !default;
|
|
50
|
+
$h3-font-size: var(--#{$prefix}fs-3) !default;
|
|
51
|
+
$h4-font-size: var(--#{$prefix}fs-4) !default;
|
|
52
|
+
$h5-font-size: var(--#{$prefix}fs-5) !default;
|
|
53
|
+
$h6-font-size: var(--#{$prefix}fs-6) !default;
|
|
54
|
+
// end custom
|
|
32
55
|
// scss-docs-end font-variables
|
|
33
56
|
|
|
34
57
|
// scss-docs-start font-sizes
|
|
58
|
+
// custom
|
|
59
|
+
$font-size-values: (
|
|
60
|
+
1: $h1-font-size-value,
|
|
61
|
+
2: $h2-font-size-value,
|
|
62
|
+
3: $h3-font-size-value,
|
|
63
|
+
4: $h4-font-size-value,
|
|
64
|
+
5: $h5-font-size-value,
|
|
65
|
+
6: $h6-font-size-value
|
|
66
|
+
) !default;
|
|
67
|
+
// end custom
|
|
68
|
+
|
|
35
69
|
$font-sizes: (
|
|
36
70
|
1: $h1-font-size,
|
|
37
71
|
2: $h2-font-size,
|
|
@@ -45,16 +79,35 @@ $font-sizes: (
|
|
|
45
79
|
// scss-docs-start headings-variables
|
|
46
80
|
$headings-margin-bottom: 0 !default;
|
|
47
81
|
$headings-font-weight: $font-weight-bold !default;
|
|
48
|
-
$headings-line-height: 1.2 !default;
|
|
82
|
+
$headings-line-height-value: 1.2 !default;
|
|
83
|
+
$headings-line-height: var(--#{$prefix}heading-line-height) !default;
|
|
49
84
|
// scss-docs-end headings-variables
|
|
50
85
|
|
|
51
86
|
// scss-docs-start display-headings
|
|
52
|
-
|
|
53
|
-
$
|
|
54
|
-
$
|
|
55
|
-
$
|
|
56
|
-
$
|
|
57
|
-
$
|
|
87
|
+
// custom
|
|
88
|
+
$display1-font-size-value: 7.5rem !default;
|
|
89
|
+
$display2-font-size-value: 4.5rem !default;
|
|
90
|
+
$display3-font-size-value: 4rem !default;
|
|
91
|
+
$display4-font-size-value: 3.5rem !default;
|
|
92
|
+
$display5-font-size-value: 3rem !default;
|
|
93
|
+
$display6-font-size-value: 2.5rem !default;
|
|
94
|
+
|
|
95
|
+
$display1-font-size: var(--#{$prefix}fs-display-1) !default;
|
|
96
|
+
$display2-font-size: var(--#{$prefix}fs-display-2) !default;
|
|
97
|
+
$display3-font-size: var(--#{$prefix}fs-display-3) !default;
|
|
98
|
+
$display4-font-size: var(--#{$prefix}fs-display-4) !default;
|
|
99
|
+
$display5-font-size: var(--#{$prefix}fs-display-5) !default;
|
|
100
|
+
$display6-font-size: var(--#{$prefix}fs-display-6) !default;
|
|
101
|
+
|
|
102
|
+
$display-font-size-values: (
|
|
103
|
+
1: $display1-font-size-value,
|
|
104
|
+
2: $display2-font-size-value,
|
|
105
|
+
3: $display3-font-size-value,
|
|
106
|
+
4: $display4-font-size-value,
|
|
107
|
+
5: $display5-font-size-value,
|
|
108
|
+
6: $display6-font-size-value
|
|
109
|
+
) !default;
|
|
110
|
+
// end custom
|
|
58
111
|
|
|
59
112
|
$display-font-sizes: (
|
|
60
113
|
1: $display1-font-size,
|
|
@@ -72,7 +125,10 @@ $display-line-height: $headings-line-height !default;
|
|
|
72
125
|
// scss-docs-start type-variables
|
|
73
126
|
$lead-font-weight: $font-weight-normal !default;
|
|
74
127
|
|
|
128
|
+
// custom
|
|
75
129
|
$small-font-size: $font-size-sm !default;
|
|
130
|
+
$small-font-size-value: $font-size-sm-value !default;
|
|
131
|
+
// end custom
|
|
76
132
|
|
|
77
133
|
$sub-sup-font-size: .75em !default;
|
|
78
134
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Z-index master list
|
|
2
|
+
//
|
|
3
|
+
// Warning: Avoid customizing these values. They're used for a bird's eye view
|
|
4
|
+
// of components dependent on the z-axis and are designed to all work together.
|
|
5
|
+
|
|
6
|
+
// scss-docs-start zindex-stack
|
|
7
|
+
$zindex-offcanvas-backdrop: 1050 !default;
|
|
8
|
+
$zindex-offcanvas: 1055 !default;
|
|
9
|
+
$zindex-modal-backdrop: 1050 !default;
|
|
10
|
+
$zindex-modal: 1055 !default;
|
|
11
|
+
// scss-docs-end zindex-stack
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import "bootstrap/scss/reboot";
|
|
2
2
|
|
|
3
|
-
@import "bootstrap/scss/type";
|
|
3
|
+
// @import "bootstrap/scss/type"; we use our own bootstrap based implementation
|
|
4
4
|
|
|
5
5
|
@import "bootstrap/scss/images";
|
|
6
6
|
@import "bootstrap/scss/containers";
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
@import "bootstrap/scss/placeholders";
|
|
35
35
|
@import "bootstrap/scss/badge";
|
|
36
36
|
|
|
37
|
+
@import "type";
|
|
37
38
|
@import "body";
|
|
38
39
|
@import "accordion";
|
|
39
40
|
@import "form-switch";
|
|
@@ -41,7 +42,8 @@
|
|
|
41
42
|
@import "form-control";
|
|
42
43
|
@import "form-text";
|
|
43
44
|
@import "input-group";
|
|
44
|
-
@import "
|
|
45
|
+
@import "buttons";
|
|
46
|
+
@import "button-group";
|
|
45
47
|
@import "progress";
|
|
46
48
|
@import "alert";
|
|
47
49
|
@import "collapse";
|
|
@@ -49,3 +51,6 @@
|
|
|
49
51
|
@import "breadcrumb";
|
|
50
52
|
@import "dropdown";
|
|
51
53
|
@import "label";
|
|
54
|
+
@import "avatar";
|
|
55
|
+
@import "backdrop";
|
|
56
|
+
@import "tooltip";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.avatar {
|
|
2
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-8);
|
|
3
|
+
--#{$prefix}avatar-title-bg: var(--#{$prefix}gray-500);
|
|
4
|
+
--#{$prefix}avatar-title-color: var(--#{$prefix}white);
|
|
5
|
+
--#{$prefix}avatar-radius: var(--#{$prefix}border-radius-pill);
|
|
6
|
+
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: var(--#{$prefix}avatar-size);
|
|
10
|
+
height: var(--#{$prefix}avatar-size);
|
|
11
|
+
font-size: calc(var(--#{$prefix}avatar-size) / 3);
|
|
12
|
+
|
|
13
|
+
.avatar-img {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
object-fit: cover;
|
|
17
|
+
border-radius: var(--#{$prefix}avatar-radius);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.avatar-title {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
color: var(--#{$prefix}avatar-title-color);
|
|
27
|
+
white-space: pre-wrap;
|
|
28
|
+
background-color: var(--#{$prefix}avatar-title-bg);
|
|
29
|
+
border-radius: var(--#{$prefix}avatar-radius);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.avatar-xs {
|
|
34
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-4);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.avatar-sm {
|
|
38
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-6);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.avatar-lg {
|
|
42
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-10);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.avatar-xl {
|
|
46
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-12);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.avatar-xxl {
|
|
50
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-14);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.avatar-group {
|
|
54
|
+
.avatar-img {
|
|
55
|
+
box-shadow: -2px 0 2px rgba(0, 0, 0, .1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.avatar + .avatar {
|
|
59
|
+
margin-left: calc(var(--#{$prefix}avatar-size) * -.25);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.backdrop {
|
|
2
|
+
// scss-docs-start modal-backdrop-css-vars
|
|
3
|
+
--#{$prefix}backdrop-zindex: #{$zindex-modal};
|
|
4
|
+
--#{$prefix}backdrop-bg: #{$modal-backdrop-bg};
|
|
5
|
+
--#{$prefix}backdrop-opacity: #{$modal-backdrop-opacity};
|
|
6
|
+
// scss-docs-end modal-backdrop-css-vars
|
|
7
|
+
|
|
8
|
+
@include overlay-backdrop(var(--#{$prefix}backdrop-zindex), var(--#{$prefix}backdrop-bg), var(--#{$prefix}backdrop-opacity));
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.btn-group-vertical {
|
|
2
|
+
.btn {
|
|
3
|
+
--#{$prefix}btn-border-radius: var(--#{$prefix}border-radius-sm);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&.btn-group-lg .btn {
|
|
7
|
+
--#{$prefix}btn-border-radius: var(--#{$prefix}border-radius);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&.btn-group-sm .btn {
|
|
11
|
+
--#{$prefix}btn-border-radius: var(--#{$prefix}border-radius-sm);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -9,22 +9,17 @@
|
|
|
9
9
|
--#{$prefix}btn-bg: transparent;
|
|
10
10
|
--#{$prefix}btn-border-width: #{$btn-border-width};
|
|
11
11
|
--#{$prefix}btn-border-color: transparent;
|
|
12
|
-
--#{$prefix}btn-border-radius: var(--#{$prefix}btn-component-border-radius, #{$btn-border-radius});
|
|
13
12
|
--#{$prefix}btn-hover-border-color: transparent;
|
|
14
13
|
--#{$prefix}btn-box-shadow: #{$btn-box-shadow};
|
|
15
14
|
--#{$prefix}btn-disabled-opacity: #{$btn-disabled-opacity};
|
|
16
15
|
--#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} rgba(var(--#{$prefix}btn-focus-shadow-rgb), .5);
|
|
17
16
|
--#{$prefix}btn–text-decoration: if($link-decoration == none, null, none);
|
|
18
|
-
|
|
19
17
|
--#{$prefix}btn-lg-padding-y: #{$btn-padding-y-lg};
|
|
20
18
|
--#{$prefix}btn-lg-padding-x: #{$btn-padding-x-lg};
|
|
21
19
|
--#{$prefix}btn-lg-font-size: #{$btn-font-size-lg};
|
|
22
|
-
--#{$prefix}btn-lg-border-radius: var(--#{$prefix}btn-component-lg-border-radius, #{$btn-border-radius-lg});
|
|
23
|
-
|
|
24
20
|
--#{$prefix}btn-sm-padding-y: #{$btn-padding-y-sm};
|
|
25
21
|
--#{$prefix}btn-sm-padding-x: #{$btn-padding-x-sm};
|
|
26
22
|
--#{$prefix}btn-sm-font-size: #{$btn-font-size-sm};
|
|
27
|
-
--#{$prefix}btn-sm-border-radius: var(--#{$prefix}btn-component-sm-border-radius, #{$btn-border-radius-sm});
|
|
28
23
|
|
|
29
24
|
display: inline-flex;
|
|
30
25
|
flex-direction: row;
|
|
@@ -44,7 +39,7 @@
|
|
|
44
39
|
cursor: if($enable-button-pointers, pointer, null);
|
|
45
40
|
user-select: none;
|
|
46
41
|
border: var(--#{$prefix}btn-border-width) solid var(--#{$prefix}btn-border-color);
|
|
47
|
-
|
|
42
|
+
border-radius: var(--#{$prefix}btn-border-radius);
|
|
48
43
|
@include gradient-bg(var(--#{$prefix}btn-bg));
|
|
49
44
|
@include box-shadow(var(--#{$prefix}btn-box-shadow));
|
|
50
45
|
@include transition($btn-transition);
|
|
@@ -71,14 +66,18 @@
|
|
|
71
66
|
|
|
72
67
|
// focus selectors
|
|
73
68
|
.btn-check:focus-visible + &,
|
|
74
|
-
&:focus-visible,
|
|
75
|
-
&.focus-visible {
|
|
69
|
+
&:focus-visible:not(:hover),
|
|
70
|
+
&.focus-visible:not(:hover) {
|
|
76
71
|
// copy of .btn:focus bootstrap + focus var
|
|
77
72
|
color: var(--#{$prefix}btn-focus-color, var(--#{$prefix}btn-hover-color));
|
|
78
73
|
@include gradient-bg(var(--#{$prefix}btn-focus-bg, var(--#{$prefix}btn-hover-bg)));
|
|
79
74
|
border-color: var(--#{$prefix}btn-focus-border-color, var(--#{$prefix}btn-hover-border-color));
|
|
80
75
|
// end copy
|
|
76
|
+
}
|
|
81
77
|
|
|
78
|
+
.btn-check:focus-visible + &,
|
|
79
|
+
&:focus-visible,
|
|
80
|
+
&.focus-visible {
|
|
82
81
|
outline: var(--#{$prefix}btn-focus-border-width, var(--#{$prefix}btn-border-width)) solid var(--#{$prefix}btn-focus-outline-color, var(--#{$prefix}focus-ring-color));
|
|
83
82
|
outline-offset: var(--#{$prefix}btn-focus-outline-offset, var(--#{$prefix}btn-border-width));
|
|
84
83
|
}
|
|
@@ -124,57 +123,15 @@
|
|
|
124
123
|
|
|
125
124
|
@each $color, $value in $theme-colors {
|
|
126
125
|
.btn-#{$color} {
|
|
127
|
-
@
|
|
128
|
-
@include button-variant(
|
|
129
|
-
$value,
|
|
130
|
-
$value,
|
|
131
|
-
$hover-background: shade-color($value, $btn-hover-bg-shade-amount),
|
|
132
|
-
$hover-border: shade-color($value, $btn-hover-border-shade-amount),
|
|
133
|
-
$active-background: shade-color($value, $btn-active-bg-shade-amount),
|
|
134
|
-
$active-border: shade-color($value, $btn-active-border-shade-amount)
|
|
135
|
-
);
|
|
136
|
-
} @else if $color == "dark" { // default bootstrap style
|
|
137
|
-
@include button-variant(
|
|
138
|
-
$value,
|
|
139
|
-
$value,
|
|
140
|
-
$hover-background: tint-color($value, $btn-hover-bg-tint-amount),
|
|
141
|
-
$hover-border: tint-color($value, $btn-hover-border-tint-amount),
|
|
142
|
-
$active-background: tint-color($value, $btn-active-bg-tint-amount),
|
|
143
|
-
$active-border: tint-color($value, $btn-active-border-tint-amount)
|
|
144
|
-
);
|
|
145
|
-
} @else {
|
|
146
|
-
@include df-button-variant($color);
|
|
147
|
-
}
|
|
126
|
+
@include df-button-variant-mapper($color);
|
|
148
127
|
}
|
|
149
128
|
|
|
150
129
|
.btn-outline-#{$color} {
|
|
151
|
-
@
|
|
152
|
-
@include button-outline-variant($value);
|
|
153
|
-
} @else {
|
|
154
|
-
@include df-button-outline-variant($color);
|
|
155
|
-
}
|
|
130
|
+
@include df-button-variant-mapper($color, "outline");
|
|
156
131
|
}
|
|
157
132
|
|
|
158
133
|
.btn-link-#{$color} {
|
|
159
|
-
|
|
160
|
-
text-decoration: underline;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
@if $color == "light" {
|
|
164
|
-
@include df-button-link-variant(
|
|
165
|
-
"gray",
|
|
166
|
-
$default-color: $value,
|
|
167
|
-
$hover-bg-color: var(--#{$prefix}gray-300),
|
|
168
|
-
$active-bg-color: var(--#{$prefix}gray-500)
|
|
169
|
-
);
|
|
170
|
-
} @else if $color == "dark" {
|
|
171
|
-
@include df-button-link-variant(
|
|
172
|
-
"gray",
|
|
173
|
-
$default-color: $value
|
|
174
|
-
);
|
|
175
|
-
} @else {
|
|
176
|
-
@include df-button-link-variant($color);
|
|
177
|
-
}
|
|
134
|
+
@include df-button-variant-mapper($color, "link");
|
|
178
135
|
}
|
|
179
136
|
}
|
|
180
137
|
|
|
@@ -199,6 +156,10 @@
|
|
|
199
156
|
[class*="btn-link-"] {
|
|
200
157
|
--#{$prefix}btn-text-decoration: var(--#{$prefix}link-decoration);
|
|
201
158
|
|
|
159
|
+
span {
|
|
160
|
+
text-decoration: underline;
|
|
161
|
+
}
|
|
162
|
+
|
|
202
163
|
@if $enable-gradients {
|
|
203
164
|
background-image: none;
|
|
204
165
|
}
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
border-color: $form-check-input-checked-border-color;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
&:disabled {
|
|
16
|
+
&:disabled:not(:checked, :indeterminate) {
|
|
17
17
|
background-color: $form-check-input-disabled-bg;
|
|
18
18
|
border-color: $form-check-input-disabled-border-color;
|
|
19
|
+
opacity: 1;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// bootstrap reset layer
|
|
2
|
+
.input-group-text + .form-control {
|
|
3
|
+
padding-left: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
.input-group > .form-select,
|
|
3
7
|
.input-group > .form-control {
|
|
4
8
|
border: 0;
|
|
5
9
|
|
|
6
|
-
&:not(:first-child) {
|
|
7
|
-
padding-left: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
10
|
&:focus {
|
|
11
11
|
border: 0;
|
|
12
12
|
box-shadow: none;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
background-position: right 0 center;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
.form-control:has(~ .input-group-text) {
|
|
22
22
|
padding-right: 0;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
--#{$prefix}input-disabled-bg: #{$input-disabled-bg};
|
|
63
63
|
--#{$prefix}input-disabled-color: #{$input-disabled-color};
|
|
64
64
|
|
|
65
|
-
|
|
66
65
|
border: var(--#{$prefix}input-border-width) solid var(--#{$prefix}input-border-color);
|
|
67
66
|
@include border-radius(var(--#{$prefix}input-border-radius), 0);
|
|
68
67
|
|
|
@@ -111,4 +110,10 @@
|
|
|
111
110
|
button:disabled .d-icon {
|
|
112
111
|
--#{$prefix}icon-color: var(--#{$prefix}input-disabled-color);
|
|
113
112
|
}
|
|
113
|
+
|
|
114
|
+
> .btn {
|
|
115
|
+
--#{$prefix}btn-border-radius: var(--#{$prefix}input-border-radius);
|
|
116
|
+
|
|
117
|
+
margin: -1px;
|
|
118
|
+
}
|
|
114
119
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.tooltip {
|
|
2
|
+
--#{$prefix}tooltip-sm-font-size: #{$tooltip-font-size-sm};
|
|
3
|
+
--#{$prefix}tooltip-lg-font-size: #{$tooltip-font-size-lg};
|
|
4
|
+
|
|
5
|
+
fill: var(--#{$prefix}tooltip-bg);
|
|
6
|
+
|
|
7
|
+
&.tooltip-sm {
|
|
8
|
+
--#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-sm-font-size);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.tooltip-lg {
|
|
12
|
+
--#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-lg-font-size);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@each $theme, $value in $theme-colors {
|
|
16
|
+
$color: color-contrast-var($value);
|
|
17
|
+
|
|
18
|
+
&.tooltip-#{$theme} {
|
|
19
|
+
--#{$prefix}tooltip-color: var(--#{$prefix}tooltip-component-color, #{$color});
|
|
20
|
+
--#{$prefix}tooltip-bg: var(--#{$prefix}tooltip-component-bg, var(--#{$prefix}#{$theme}));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Headings
|
|
3
|
+
//
|
|
4
|
+
.h1 {
|
|
5
|
+
@extend h1;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.h2 {
|
|
9
|
+
@extend h2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.h3 {
|
|
13
|
+
@extend h3;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.h4 {
|
|
17
|
+
@extend h4;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.h5 {
|
|
21
|
+
@extend h5;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.h6 {
|
|
25
|
+
@extend h6;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
.lead {
|
|
30
|
+
@include font-size($lead-font-size);
|
|
31
|
+
font-weight: $lead-font-weight;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Type display classes
|
|
35
|
+
[class*="display-"] {
|
|
36
|
+
font-family: $display-font-family;
|
|
37
|
+
font-size: var(--#{$prefix}display-font-size);
|
|
38
|
+
font-style: $display-font-style;
|
|
39
|
+
font-weight: $display-font-weight;
|
|
40
|
+
line-height: $display-line-height;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//
|
|
44
|
+
// Emphasis
|
|
45
|
+
//
|
|
46
|
+
.small {
|
|
47
|
+
@extend small;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.mark {
|
|
51
|
+
@extend mark;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//
|
|
55
|
+
// Lists
|
|
56
|
+
//
|
|
57
|
+
|
|
58
|
+
.list-unstyled {
|
|
59
|
+
@include list-unstyled();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Inline turns list items into inline-block
|
|
63
|
+
.list-inline {
|
|
64
|
+
@include list-unstyled();
|
|
65
|
+
}
|
|
66
|
+
.list-inline-item {
|
|
67
|
+
display: inline-block;
|
|
68
|
+
|
|
69
|
+
&:not(:last-child) {
|
|
70
|
+
margin-right: $list-inline-padding;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
//
|
|
76
|
+
// Misc
|
|
77
|
+
//
|
|
78
|
+
|
|
79
|
+
// Builds on `abbr`
|
|
80
|
+
.initialism {
|
|
81
|
+
@include font-size($initialism-font-size);
|
|
82
|
+
text-transform: uppercase;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Blockquotes
|
|
86
|
+
.blockquote {
|
|
87
|
+
margin-bottom: $blockquote-margin-y;
|
|
88
|
+
@include font-size($blockquote-font-size);
|
|
89
|
+
|
|
90
|
+
> :last-child {
|
|
91
|
+
margin-bottom: 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.blockquote-footer {
|
|
96
|
+
margin-top: -$blockquote-margin-y;
|
|
97
|
+
margin-bottom: $blockquote-margin-y;
|
|
98
|
+
@include font-size($blockquote-footer-font-size);
|
|
99
|
+
color: $blockquote-footer-color;
|
|
100
|
+
|
|
101
|
+
&::before {
|
|
102
|
+
content: "\2014\00A0"; // em dash, nbsp
|
|
103
|
+
}
|
|
104
|
+
}
|