@db-ux/core-components 1.0.0-test-13b991d
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 +107 -0
- package/build/assets/fonts/OFL.txt +93 -0
- package/build/assets/fonts/OpenSans-Bold-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/build/assets/fonts/OpenSans-ExtraBold-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/build/assets/fonts/OpenSans-Light-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-Light.ttf +0 -0
- package/build/assets/fonts/OpenSans-Medium-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-Medium.ttf +0 -0
- package/build/assets/fonts/OpenSans-Regular-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/build/assets/fonts/OpenSans-SemiBold-EU.woff2 +0 -0
- package/build/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/build/assets/fonts/README.md +23 -0
- package/build/assets/fonts/generate-eu-fonts.ts +46 -0
- package/build/assets/fonts/unicode-eu.txt +14 -0
- package/build/assets/icons/DB_LICENSE +253 -0
- package/build/assets/icons/LICENCES.json +153 -0
- package/build/assets/icons/arrow_down.svg +1 -0
- package/build/assets/icons/arrow_left.svg +1 -0
- package/build/assets/icons/arrow_right.svg +1 -0
- package/build/assets/icons/arrow_up.svg +1 -0
- package/build/assets/icons/arrow_up_right.svg +1 -0
- package/build/assets/icons/brand.svg +1 -0
- package/build/assets/icons/calendar.svg +5 -0
- package/build/assets/icons/check-circle.svg +1 -0
- package/build/assets/icons/check.svg +1 -0
- package/build/assets/icons/check_circle.svg +1 -0
- package/build/assets/icons/chevron_down.svg +1 -0
- package/build/assets/icons/chevron_left.svg +1 -0
- package/build/assets/icons/chevron_right.svg +1 -0
- package/build/assets/icons/chevron_up.svg +1 -0
- package/build/assets/icons/circle.svg +1 -0
- package/build/assets/icons/clock.svg +1 -0
- package/build/assets/icons/cross.svg +1 -0
- package/build/assets/icons/cross_circle.svg +1 -0
- package/build/assets/icons/exclamation_mark_circle.svg +1 -0
- package/build/assets/icons/exclamation_mark_triangle.svg +1 -0
- package/build/assets/icons/fonts/all/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_12/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_14/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_16/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_20/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_24/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_28/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_32/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_48/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_64/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_12/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_14/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_16/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_20/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_24/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_28/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_32/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_48/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_64/db-ux.woff2 +0 -0
- package/build/assets/icons/information_circle.svg +1 -0
- package/build/assets/icons/magnifying_glass.svg +1 -0
- package/build/assets/icons/menu.svg +1 -0
- package/build/assets/icons/minus.svg +1 -0
- package/build/assets/icons/plus.svg +1 -0
- package/build/assets/icons/resize_handle_corner.svg +1 -0
- package/build/assets/icons/x_placeholder.svg +1 -0
- package/build/components/accordion/accordion.css +78 -0
- package/build/components/accordion/accordion.scss +62 -0
- package/build/components/accordion-item/accordion-item.css +239 -0
- package/build/components/accordion-item/accordion-item.scss +73 -0
- package/build/components/badge/badge.css +253 -0
- package/build/components/badge/badge.scss +107 -0
- package/build/components/brand/brand.css +42 -0
- package/build/components/brand/brand.scss +32 -0
- package/build/components/button/button.css +165 -0
- package/build/components/button/button.scss +123 -0
- package/build/components/card/card.css +115 -0
- package/build/components/card/card.scss +56 -0
- package/build/components/checkbox/checkbox.css +476 -0
- package/build/components/checkbox/checkbox.scss +80 -0
- package/build/components/divider/divider.css +84 -0
- package/build/components/divider/divider.scss +56 -0
- package/build/components/drawer/drawer.css +303 -0
- package/build/components/drawer/drawer.scss +228 -0
- package/build/components/header/header.css +697 -0
- package/build/components/header/header.scss +246 -0
- package/build/components/icon/icon.css +24 -0
- package/build/components/icon/icon.scss +14 -0
- package/build/components/infotext/infotext.css +152 -0
- package/build/components/infotext/infotext.scss +54 -0
- package/build/components/input/input.css +712 -0
- package/build/components/input/input.scss +147 -0
- package/build/components/link/link.css +257 -0
- package/build/components/link/link.scss +60 -0
- package/build/components/navigation/navigation.css +218 -0
- package/build/components/navigation/navigation.scss +117 -0
- package/build/components/navigation-item/navigation-item.css +482 -0
- package/build/components/navigation-item/navigation-item.scss +310 -0
- package/build/components/notification/notification-grid-default.css +1 -0
- package/build/components/notification/notification-grid-default.scss +52 -0
- package/build/components/notification/notification-grid-non-overlay.css +1 -0
- package/build/components/notification/notification-grid-non-overlay.scss +66 -0
- package/build/components/notification/notification-grid-overlay.css +1 -0
- package/build/components/notification/notification-grid-overlay.scss +55 -0
- package/build/components/notification/notification.css +1173 -0
- package/build/components/notification/notification.scss +216 -0
- package/build/components/page/page.css +49 -0
- package/build/components/page/page.scss +52 -0
- package/build/components/popover/popover.css +291 -0
- package/build/components/popover/popover.scss +26 -0
- package/build/components/radio/radio.css +390 -0
- package/build/components/radio/radio.scss +49 -0
- package/build/components/section/section.css +38 -0
- package/build/components/section/section.scss +51 -0
- package/build/components/select/select.css +651 -0
- package/build/components/select/select.scss +83 -0
- package/build/components/stack/stack-web-component.css +93 -0
- package/build/components/stack/stack-web-component.scss +1 -0
- package/build/components/stack/stack.css +93 -0
- package/build/components/stack/stack.scss +5 -0
- package/build/components/switch/switch.css +901 -0
- package/build/components/switch/switch.scss +233 -0
- package/build/components/tab-item/tab-item.css +160 -0
- package/build/components/tab-item/tab-item.scss +135 -0
- package/build/components/tab-list/tab-list.css +202 -0
- package/build/components/tab-list/tab-list.scss +18 -0
- package/build/components/tab-panel/tab-panel.css +10 -0
- package/build/components/tab-panel/tab-panel.scss +5 -0
- package/build/components/tabs/tabs.css +358 -0
- package/build/components/tabs/tabs.scss +361 -0
- package/build/components/tag/tag.css +1544 -0
- package/build/components/tag/tag.scss +236 -0
- package/build/components/textarea/textarea.css +546 -0
- package/build/components/textarea/textarea.scss +86 -0
- package/build/components/tooltip/tooltip.css +346 -0
- package/build/components/tooltip/tooltip.scss +137 -0
- package/build/styles/absolute.css +1559 -0
- package/build/styles/absolute.scss +5 -0
- package/build/styles/component-animations.css +1 -0
- package/build/styles/component-animations.scss +17 -0
- package/build/styles/dialog-init.css +1 -0
- package/build/styles/dialog-init.scss +57 -0
- package/build/styles/index.css +615 -0
- package/build/styles/index.scss +32 -0
- package/build/styles/internal/_button-components.scss +8 -0
- package/build/styles/internal/_component.scss +79 -0
- package/build/styles/internal/_custom-elements.scss +7 -0
- package/build/styles/internal/_db-puls.scss +83 -0
- package/build/styles/internal/_form-components.scss +516 -0
- package/build/styles/internal/_icon-passing.scss +26 -0
- package/build/styles/internal/_link-components.scss +62 -0
- package/build/styles/internal/_popover-component.scss +213 -0
- package/build/styles/internal/_scrollbar.scss +93 -0
- package/build/styles/internal/_stack-components.scss +104 -0
- package/build/styles/internal/_tag-components.scss +234 -0
- package/build/styles/relative.css +1559 -0
- package/build/styles/relative.scss +15 -0
- package/build/styles/rollup.css +1559 -0
- package/build/styles/rollup.scss +5 -0
- package/build/styles/visually-hidden.css +1 -0
- package/build/styles/visually-hidden.scss +6 -0
- package/build/styles/wc-workarounds.css +1 -0
- package/build/styles/wc-workarounds.scss +12 -0
- package/build/styles/webpack.css +1559 -0
- package/build/styles/webpack.scss +5 -0
- package/package.json +62 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/screen-sizes";
|
|
3
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
4
|
+
@use "@db-ux/core-foundations/build/styles/density";
|
|
5
|
+
@use "@db-ux/core-foundations/build/styles/colors";
|
|
6
|
+
@use "../../styles/internal/component";
|
|
7
|
+
|
|
8
|
+
.db-header {
|
|
9
|
+
background-color: colors.$db-adaptive-bg-basic-level-1-default;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
position: relative;
|
|
13
|
+
min-block-size: component.$min-mobile-header-height;
|
|
14
|
+
border-block-end: variables.$db-border-height-3xs solid
|
|
15
|
+
colors.$db-adaptive-on-bg-basic-emphasis-60-default;
|
|
16
|
+
|
|
17
|
+
@include screen-sizes.screen("md") {
|
|
18
|
+
--db-drawer-max-width: #{screen-sizes.$db-breakpoint-sm};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&[data-width="small"] {
|
|
22
|
+
margin-inline: auto;
|
|
23
|
+
max-inline-size: screen-sizes.$db-breakpoint-sm;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[data-width="medium"] {
|
|
27
|
+
margin-inline: auto;
|
|
28
|
+
max-inline-size: screen-sizes.$db-breakpoint-md;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&[data-width="large"] {
|
|
32
|
+
margin-inline: auto;
|
|
33
|
+
max-inline-size: screen-sizes.$db-breakpoint-lg;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.db-link {
|
|
37
|
+
display: inline-block;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-on-forcing-mobile="true"] {
|
|
41
|
+
/*
|
|
42
|
+
We make the header invisible for a short time if the user passes in data-force-mobile property.
|
|
43
|
+
We do it because otherwise we see the default desktop-navigation for some mil. sec.
|
|
44
|
+
*/
|
|
45
|
+
visibility: hidden;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// All use-cases where we hide the divider
|
|
49
|
+
&:has(.db-header-navigation:empty),
|
|
50
|
+
&:has(.db-brand:empty) {
|
|
51
|
+
.db-header-navigation-container::before {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.db-header-navigation-bar {
|
|
58
|
+
display: flex;
|
|
59
|
+
position: relative;
|
|
60
|
+
padding: variables.$db-spacing-fixed-xs variables.$db-spacing-fixed-md;
|
|
61
|
+
inline-size: 100%;
|
|
62
|
+
align-items: center;
|
|
63
|
+
|
|
64
|
+
@include screen-sizes.screen("md") {
|
|
65
|
+
padding: variables.$db-spacing-fixed-md variables.$db-spacing-fixed-lg;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.db-header-meta-navigation {
|
|
70
|
+
@extend %db-density-functional;
|
|
71
|
+
|
|
72
|
+
@include helpers.divider("top");
|
|
73
|
+
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
gap: variables.$db-spacing-fixed-sm;
|
|
77
|
+
justify-content: flex-end;
|
|
78
|
+
background-color: colors.$db-adaptive-bg-basic-level-2-default;
|
|
79
|
+
padding: variables.$db-spacing-fixed-md;
|
|
80
|
+
|
|
81
|
+
@include screen-sizes.screen("md") {
|
|
82
|
+
padding: variables.$db-spacing-fixed-xs variables.$db-spacing-fixed-lg;
|
|
83
|
+
margin: 0;
|
|
84
|
+
gap: variables.$db-spacing-fixed-md;
|
|
85
|
+
flex-direction: row;
|
|
86
|
+
|
|
87
|
+
&::before {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:empty {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:empty {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.db-header-navigation-container {
|
|
102
|
+
display: inherit;
|
|
103
|
+
flex: 1 1 auto;
|
|
104
|
+
inline-size: 100%;
|
|
105
|
+
align-items: center;
|
|
106
|
+
block-size: 100%;
|
|
107
|
+
|
|
108
|
+
@include screen-sizes.screen("md") {
|
|
109
|
+
@include helpers.divider("left");
|
|
110
|
+
|
|
111
|
+
&::before {
|
|
112
|
+
position: inherit;
|
|
113
|
+
block-size: variables.$db-sizing-md;
|
|
114
|
+
margin-inline-start: variables.$db-spacing-fixed-lg;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.db-header-primary-action {
|
|
120
|
+
margin-inline-start: auto;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.db-header-brand-container:not(:has(> :nth-child(1))) {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.db-header-action-container:has(> .db-header-secondary-action:empty) {
|
|
128
|
+
@include screen-sizes.screen("md") {
|
|
129
|
+
display: none;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.db-header-brand-container {
|
|
134
|
+
min-block-size: variables.$db-sizing-md;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.db-header-action-container {
|
|
138
|
+
@include helpers.divider("left");
|
|
139
|
+
|
|
140
|
+
@include screen-sizes.screen("md") {
|
|
141
|
+
&::before {
|
|
142
|
+
margin-inline: variables.$db-spacing-fixed-sm;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&::before {
|
|
147
|
+
margin-inline: variables.$db-spacing-fixed-xs;
|
|
148
|
+
position: inherit;
|
|
149
|
+
block-size: variables.$db-sizing-md;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.db-header-brand-container,
|
|
154
|
+
.db-header-action-container {
|
|
155
|
+
align-items: center;
|
|
156
|
+
block-size: 100%;
|
|
157
|
+
display: inherit;
|
|
158
|
+
gap: inherit;
|
|
159
|
+
flex: 0 1 auto;
|
|
160
|
+
flex-grow: 0;
|
|
161
|
+
flex-shrink: 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.db-header-secondary-action {
|
|
165
|
+
@include helpers.divider("top");
|
|
166
|
+
|
|
167
|
+
flex: 0 1 auto;
|
|
168
|
+
flex-grow: 0;
|
|
169
|
+
flex-shrink: 0;
|
|
170
|
+
padding-block-start: variables.$db-spacing-fixed-xs;
|
|
171
|
+
|
|
172
|
+
@include screen-sizes.screen("md") {
|
|
173
|
+
&::before {
|
|
174
|
+
display: none;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.db-header-drawer-navigation {
|
|
180
|
+
display: flex;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
flex: 1 1 auto;
|
|
183
|
+
block-size: 100%;
|
|
184
|
+
overflow: auto;
|
|
185
|
+
justify-content: space-between;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.db-header-navigation {
|
|
189
|
+
padding-block: variables.$db-spacing-fixed-md;
|
|
190
|
+
|
|
191
|
+
@include screen-sizes.screen("md") {
|
|
192
|
+
margin-inline: variables.$db-spacing-fixed-lg;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.db-header-navigation,
|
|
197
|
+
.db-header-secondary-action {
|
|
198
|
+
display: flex;
|
|
199
|
+
gap: variables.$db-spacing-fixed-sm;
|
|
200
|
+
padding-inline: variables.$db-spacing-fixed-md;
|
|
201
|
+
|
|
202
|
+
@include screen-sizes.screen("md") {
|
|
203
|
+
gap: variables.$db-spacing-fixed-xs;
|
|
204
|
+
padding: 0;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.db-header-drawer {
|
|
209
|
+
--db-drawer-content-padding-inline: 0;
|
|
210
|
+
// 1px for box shadow of header
|
|
211
|
+
--db-drawer-header-padding-block-end: calc(
|
|
212
|
+
1px + #{variables.$db-spacing-fixed-xs}
|
|
213
|
+
);
|
|
214
|
+
|
|
215
|
+
padding-block-end: 0;
|
|
216
|
+
|
|
217
|
+
.db-drawer-content {
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
block-size: 100%;
|
|
221
|
+
overflow: hidden;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Only for Desktop */
|
|
226
|
+
.db-header-meta-navigation,
|
|
227
|
+
.db-header-navigation-container > .db-header-navigation,
|
|
228
|
+
.db-header-action-container > .db-header-secondary-action {
|
|
229
|
+
display: none;
|
|
230
|
+
|
|
231
|
+
@include screen-sizes.screen("md") {
|
|
232
|
+
display: inherit;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* Only for Mobile */
|
|
237
|
+
.db-header-drawer-navigation > .db-header-meta-navigation:not(:empty) {
|
|
238
|
+
display: inherit;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.db-header-drawer,
|
|
242
|
+
.db-header-burger-menu-container {
|
|
243
|
+
@include screen-sizes.screen("md") {
|
|
244
|
+
display: none;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
+
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
+
/* The primary use-case for responsive spacings are
|
|
4
|
+
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
+
/* Elevation */
|
|
6
|
+
/* Border */
|
|
7
|
+
/* Transitions */
|
|
8
|
+
/* Variants for adaptive components like input, select, notification, ... */
|
|
9
|
+
.db-icon {
|
|
10
|
+
font-size: 0 !important;
|
|
11
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
12
|
+
/* Safari hack */
|
|
13
|
+
}
|
|
14
|
+
.db-icon::before {
|
|
15
|
+
--db-icon-margin-end: 0;
|
|
16
|
+
}
|
|
17
|
+
@supports (-webkit-hyphens: none) {
|
|
18
|
+
.db-icon {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
}
|
|
21
|
+
.db-icon::before {
|
|
22
|
+
block-size: auto;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Generates 3 types of placeholders, e.g:
|
|
3
|
+
- %db-component-variables-md
|
|
4
|
+
- %db-font-size-md
|
|
5
|
+
- %db-overwrite-font-size-md
|
|
6
|
+
*/
|
|
7
|
+
.db-infotext {
|
|
8
|
+
/* Those variables are only for components to calculate heights and change icons */
|
|
9
|
+
--db-icon-font-weight: var(--db-base-body-icon-weight-sm);
|
|
10
|
+
--db-icon-font-size: var(--db-base-body-icon-font-size-sm);
|
|
11
|
+
--db-base-line-height: var(--db-type-body-line-height-sm);
|
|
12
|
+
--db-base-font-size: var(--db-type-body-font-size-sm);
|
|
13
|
+
line-height: var(--db-type-body-line-height-sm);
|
|
14
|
+
font-size: var(--db-type-body-font-size-sm);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.db-infotext[data-size=small] {
|
|
18
|
+
/* Those variables are only for components to calculate heights and change icons */
|
|
19
|
+
--db-icon-font-weight: var(--db-base-body-icon-weight-xs);
|
|
20
|
+
--db-icon-font-size: var(--db-base-body-icon-font-size-xs);
|
|
21
|
+
--db-base-line-height: var(--db-type-body-line-height-xs);
|
|
22
|
+
--db-base-font-size: var(--db-type-body-font-size-xs);
|
|
23
|
+
line-height: var(--db-type-body-line-height-xs);
|
|
24
|
+
font-size: var(--db-type-body-font-size-xs);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
28
|
+
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
29
|
+
/* The primary use-case for responsive spacings are
|
|
30
|
+
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
31
|
+
/* Elevation */
|
|
32
|
+
/* Border */
|
|
33
|
+
/* Transitions */
|
|
34
|
+
/* Variants for adaptive components like input, select, notification, ... */
|
|
35
|
+
.db-infotext:not([data-icon]):not([data-hide-icon-before=true])::before {
|
|
36
|
+
content: var(--db-icon, attr(data-icon));
|
|
37
|
+
content: var(--db-icon, attr(data-icon))/"";
|
|
38
|
+
-webkit-alt: "";
|
|
39
|
+
alt: "";
|
|
40
|
+
color: var(--db-icon-color, inherit);
|
|
41
|
+
display: inline-block;
|
|
42
|
+
/*** icon - placeholder ***/
|
|
43
|
+
font-family: var(--db-icon-font-family, var(--db-icon-default-font-family, "db-ux-default")) !important;
|
|
44
|
+
font-size: var(--db-icon-font-size, 1.5rem);
|
|
45
|
+
-webkit-font-smoothing: antialiased;
|
|
46
|
+
-moz-osx-font-smoothing: grayscale;
|
|
47
|
+
font-style: normal;
|
|
48
|
+
font-variant: normal;
|
|
49
|
+
font-weight: var(--db-icon-font-weight, normal);
|
|
50
|
+
line-height: 1;
|
|
51
|
+
/* stylelint-disable-next-line declaration-property-value-no-unknown */
|
|
52
|
+
speak: none;
|
|
53
|
+
/* stylelint-disable-next-line declaration-property-value-no-unknown */
|
|
54
|
+
speak: never;
|
|
55
|
+
text-transform: none;
|
|
56
|
+
vertical-align: middle;
|
|
57
|
+
block-size: var(--db-icon-font-size, 1.5rem);
|
|
58
|
+
inline-size: var(--db-icon-font-size, 1.5rem);
|
|
59
|
+
}
|
|
60
|
+
@media aural {
|
|
61
|
+
.db-infotext:not([data-icon]):not([data-hide-icon-before=true])::before {
|
|
62
|
+
content: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@media speech {
|
|
66
|
+
.db-infotext:not([data-icon]):not([data-hide-icon-before=true])::before {
|
|
67
|
+
content: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.db-infotext {
|
|
72
|
+
--db-icon-margin-end: var(--db-spacing-fixed-2xs);
|
|
73
|
+
display: flex;
|
|
74
|
+
}
|
|
75
|
+
.db-infotext:not([data-icon]) {
|
|
76
|
+
--db-icon-font-family: var(--db-icon-filled-font-family, "db-ux-filled");
|
|
77
|
+
}
|
|
78
|
+
.db-infotext:not([data-icon]):not([data-hide-icon-before=true])::before {
|
|
79
|
+
--db-icon: "information_circle";
|
|
80
|
+
margin-inline-end: var(--db-icon-margin-end, var(--db-spacing-fixed-xs));
|
|
81
|
+
}
|
|
82
|
+
.db-infotext[data-semantic=adaptive], .db-infotext:not([data-semantic]) {
|
|
83
|
+
color: var(--db-adaptive-bg-inverted-contrast-high-default);
|
|
84
|
+
}
|
|
85
|
+
.db-infotext[data-semantic=adaptive]::before, .db-infotext:not([data-semantic])::before {
|
|
86
|
+
--db-icon-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
87
|
+
}
|
|
88
|
+
.db-infotext[data-semantic=neutral] {
|
|
89
|
+
color: var(--db-neutral-bg-inverted-contrast-high-default);
|
|
90
|
+
}
|
|
91
|
+
.db-infotext[data-semantic=neutral]:not([data-icon])::before {
|
|
92
|
+
--db-icon: "information_circle";
|
|
93
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
94
|
+
}
|
|
95
|
+
.db-infotext[data-semantic=neutral]::before {
|
|
96
|
+
--db-icon-color: var(
|
|
97
|
+
--db-neutral-on-bg-basic-emphasis-70-default
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
.db-infotext[data-semantic=critical] {
|
|
101
|
+
color: var(--db-critical-bg-inverted-contrast-high-default);
|
|
102
|
+
}
|
|
103
|
+
.db-infotext[data-semantic=critical]:not([data-icon])::before {
|
|
104
|
+
--db-icon: "exclamation_mark_circle";
|
|
105
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
106
|
+
}
|
|
107
|
+
.db-infotext[data-semantic=critical]::before {
|
|
108
|
+
--db-icon-color: var(
|
|
109
|
+
--db-critical-on-bg-basic-emphasis-70-default
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
.db-infotext[data-semantic=successful] {
|
|
113
|
+
color: var(--db-successful-bg-inverted-contrast-high-default);
|
|
114
|
+
}
|
|
115
|
+
.db-infotext[data-semantic=successful]:not([data-icon])::before {
|
|
116
|
+
--db-icon: "check_circle";
|
|
117
|
+
}
|
|
118
|
+
.db-infotext[data-semantic=successful]::before {
|
|
119
|
+
--db-icon-color: var(
|
|
120
|
+
--db-successful-on-bg-basic-emphasis-70-default
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
.db-infotext[data-semantic=warning] {
|
|
124
|
+
color: var(--db-warning-bg-inverted-contrast-high-default);
|
|
125
|
+
}
|
|
126
|
+
.db-infotext[data-semantic=warning]:not([data-icon])::before {
|
|
127
|
+
--db-icon: "exclamation_mark_triangle";
|
|
128
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
129
|
+
}
|
|
130
|
+
.db-infotext[data-semantic=warning]::before {
|
|
131
|
+
--db-icon-color: var(
|
|
132
|
+
--db-warning-on-bg-basic-emphasis-70-default
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
.db-infotext[data-semantic=informational] {
|
|
136
|
+
color: var(--db-informational-bg-inverted-contrast-high-default);
|
|
137
|
+
}
|
|
138
|
+
.db-infotext[data-semantic=informational]:not([data-icon])::before {
|
|
139
|
+
--db-icon: "information_circle";
|
|
140
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
141
|
+
}
|
|
142
|
+
.db-infotext[data-semantic=informational]::before {
|
|
143
|
+
--db-icon-color: var(
|
|
144
|
+
--db-informational-on-bg-basic-emphasis-70-default
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
.db-infotext:has(> .db-infotext) {
|
|
148
|
+
margin: 0;
|
|
149
|
+
}
|
|
150
|
+
.db-infotext:has(> .db-infotext)::before {
|
|
151
|
+
content: none;
|
|
152
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/fonts";
|
|
3
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
4
|
+
@use "@db-ux/core-foundations/build/styles/colors";
|
|
5
|
+
@use "@db-ux/core-foundations/build/styles/icons";
|
|
6
|
+
|
|
7
|
+
.db-infotext {
|
|
8
|
+
--db-icon-margin-end: #{variables.$db-spacing-fixed-2xs};
|
|
9
|
+
|
|
10
|
+
@extend %db-overwrite-font-size-sm;
|
|
11
|
+
|
|
12
|
+
display: flex;
|
|
13
|
+
|
|
14
|
+
@include icons.has-no-icon() {
|
|
15
|
+
@include icons.to-filled-icon();
|
|
16
|
+
@include icons.set-icon("information_circle");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&[data-size="small"] {
|
|
20
|
+
@extend %db-overwrite-font-size-xs;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-semantic="adaptive"],
|
|
24
|
+
&:not([data-semantic]) {
|
|
25
|
+
color: colors.$db-adaptive-bg-inverted-contrast-high-default;
|
|
26
|
+
|
|
27
|
+
&::before {
|
|
28
|
+
--db-icon-color: #{colors.$db-adaptive-on-bg-basic-emphasis-70-default};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@each $name, $colors in colors.$variant-colors {
|
|
33
|
+
&[data-semantic="#{$name}"] {
|
|
34
|
+
@include icons.variant-icons($name);
|
|
35
|
+
|
|
36
|
+
color: var(--db-#{$name}-bg-inverted-contrast-high-default);
|
|
37
|
+
|
|
38
|
+
&::before {
|
|
39
|
+
--db-icon-color: var(
|
|
40
|
+
--db-#{$name}-on-bg-basic-emphasis-70-default
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Workaround for current stencil implementation for form-components
|
|
47
|
+
&:has(> .db-infotext) {
|
|
48
|
+
margin: 0;
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|