@db-ux/core-foundations 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 +351 -0
- package/assets/fonts/OFL.txt +93 -0
- package/assets/fonts/OpenSans-Bold-EU.woff2 +0 -0
- package/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/assets/fonts/OpenSans-ExtraBold-EU.woff2 +0 -0
- package/assets/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/assets/fonts/OpenSans-Light-EU.woff2 +0 -0
- package/assets/fonts/OpenSans-Light.ttf +0 -0
- package/assets/fonts/OpenSans-Medium-EU.woff2 +0 -0
- package/assets/fonts/OpenSans-Medium.ttf +0 -0
- package/assets/fonts/OpenSans-Regular-EU.woff2 +0 -0
- package/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/assets/fonts/OpenSans-SemiBold-EU.woff2 +0 -0
- package/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/assets/fonts/README.md +23 -0
- package/assets/fonts/generate-eu-fonts.ts +46 -0
- package/assets/fonts/unicode-eu.txt +14 -0
- package/assets/icons/DB_LICENSE +253 -0
- package/assets/icons/LICENCES.json +153 -0
- package/assets/icons/arrow_down.svg +1 -0
- package/assets/icons/arrow_left.svg +1 -0
- package/assets/icons/arrow_right.svg +1 -0
- package/assets/icons/arrow_up.svg +1 -0
- package/assets/icons/arrow_up_right.svg +1 -0
- package/assets/icons/brand.svg +1 -0
- package/assets/icons/calendar.svg +5 -0
- package/assets/icons/check-circle.svg +1 -0
- package/assets/icons/check.svg +1 -0
- package/assets/icons/check_circle.svg +1 -0
- package/assets/icons/chevron_down.svg +1 -0
- package/assets/icons/chevron_left.svg +1 -0
- package/assets/icons/chevron_right.svg +1 -0
- package/assets/icons/chevron_up.svg +1 -0
- package/assets/icons/circle.svg +1 -0
- package/assets/icons/clock.svg +1 -0
- package/assets/icons/cross.svg +1 -0
- package/assets/icons/cross_circle.svg +1 -0
- package/assets/icons/exclamation_mark_circle.svg +1 -0
- package/assets/icons/exclamation_mark_triangle.svg +1 -0
- package/assets/icons/fonts/all/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_12/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_14/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_16/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_20/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_24/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_28/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_32/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_48/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_64/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_12/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_14/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_16/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_20/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_24/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_28/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_32/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_48/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_64/db-ux.woff2 +0 -0
- package/assets/icons/information_circle.svg +1 -0
- package/assets/icons/magnifying_glass.svg +1 -0
- package/assets/icons/menu.svg +1 -0
- package/assets/icons/minus.svg +1 -0
- package/assets/icons/plus.svg +1 -0
- package/assets/icons/resize_handle_corner.svg +1 -0
- package/assets/icons/x_placeholder.svg +1 -0
- package/build/all-icons.d.ts +1 -0
- package/build/all-icons.js +28 -0
- package/build/base-icon-types.d.ts +1 -0
- package/build/base-icon-types.js +1 -0
- package/build/icon-types.d.ts +20 -0
- package/build/icon-types.js +1 -0
- package/build/ide/db.ide.css +1072 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/styles/_absolute.assets-paths.scss +5 -0
- package/build/styles/_default.assets-paths.scss +2 -0
- package/build/styles/_normalize.scss +257 -0
- package/build/styles/_rollup.assets-paths.scss +5 -0
- package/build/styles/_screen-sizes.scss +49 -0
- package/build/styles/_variables.scss +80 -0
- package/build/styles/_webpack.assets-paths.scss +5 -0
- package/build/styles/absolute.css +1185 -0
- package/build/styles/absolute.scss +3 -0
- package/build/styles/animation/_animations.scss +109 -0
- package/build/styles/animation/_index.scss +2 -0
- package/build/styles/animation/_transitions.scss +14 -0
- package/build/styles/colors/_default-color-scheme.scss +2957 -0
- package/build/styles/colors/_default-palette.scss +2523 -0
- package/build/styles/colors/_index.scss +5 -0
- package/build/styles/colors/_placeholder.scss +203 -0
- package/build/styles/colors/_variables.additional-palette.scss +285 -0
- package/build/styles/colors/_variables.additional-speaking-colors.scss +9 -0
- package/build/styles/colors/_variables.additional.scss +2 -0
- package/build/styles/colors/_variables.palette.scss +225 -0
- package/build/styles/colors/_variables.scss +156 -0
- package/build/styles/colors/_variables.speaking-colors.scss +8 -0
- package/build/styles/colors/classes/_get-class.scss +23 -0
- package/build/styles/colors/classes/all.css +2320 -0
- package/build/styles/colors/classes/all.scss +18 -0
- package/build/styles/colors/classes/blue.css +151 -0
- package/build/styles/colors/classes/blue.scss +6 -0
- package/build/styles/colors/classes/brand.css +151 -0
- package/build/styles/colors/classes/brand.scss +6 -0
- package/build/styles/colors/classes/critical.css +151 -0
- package/build/styles/colors/classes/critical.scss +6 -0
- package/build/styles/colors/classes/cyan.css +151 -0
- package/build/styles/colors/classes/cyan.scss +6 -0
- package/build/styles/colors/classes/green.css +151 -0
- package/build/styles/colors/classes/green.scss +6 -0
- package/build/styles/colors/classes/informational.css +151 -0
- package/build/styles/colors/classes/informational.scss +6 -0
- package/build/styles/colors/classes/neutral.css +151 -0
- package/build/styles/colors/classes/neutral.scss +6 -0
- package/build/styles/colors/classes/orange.css +151 -0
- package/build/styles/colors/classes/orange.scss +6 -0
- package/build/styles/colors/classes/pink.css +151 -0
- package/build/styles/colors/classes/pink.scss +6 -0
- package/build/styles/colors/classes/red.css +151 -0
- package/build/styles/colors/classes/red.scss +6 -0
- package/build/styles/colors/classes/successful.css +151 -0
- package/build/styles/colors/classes/successful.scss +6 -0
- package/build/styles/colors/classes/turquoise.css +151 -0
- package/build/styles/colors/classes/turquoise.scss +6 -0
- package/build/styles/colors/classes/violet.css +151 -0
- package/build/styles/colors/classes/violet.scss +6 -0
- package/build/styles/colors/classes/warning.css +151 -0
- package/build/styles/colors/classes/warning.scss +6 -0
- package/build/styles/colors/classes/yellow.css +151 -0
- package/build/styles/colors/classes/yellow.scss +6 -0
- package/build/styles/colors/speaking-colors/additional/_blue.speaking-colors.scss +112 -0
- package/build/styles/colors/speaking-colors/additional/_cyan.speaking-colors.scss +112 -0
- package/build/styles/colors/speaking-colors/additional/_green.speaking-colors.scss +112 -0
- package/build/styles/colors/speaking-colors/additional/_orange.speaking-colors.scss +112 -0
- package/build/styles/colors/speaking-colors/additional/_pink.speaking-colors.scss +112 -0
- package/build/styles/colors/speaking-colors/additional/_red.speaking-colors.scss +112 -0
- package/build/styles/colors/speaking-colors/additional/_turquoise.speaking-colors.scss +136 -0
- package/build/styles/colors/speaking-colors/additional/_violet.speaking-colors.scss +112 -0
- package/build/styles/colors/speaking-colors/additional/_yellow.speaking-colors.scss +112 -0
- package/build/styles/colors/speaking-colors/semantic/_brand.speaking-colors.scss +112 -0
- package/build/styles/colors/speaking-colors/semantic/_critical.speaking-colors.scss +130 -0
- package/build/styles/colors/speaking-colors/semantic/_informational.speaking-colors.scss +136 -0
- package/build/styles/colors/speaking-colors/semantic/_neutral.speaking-colors.scss +130 -0
- package/build/styles/colors/speaking-colors/semantic/_successful.speaking-colors.scss +136 -0
- package/build/styles/colors/speaking-colors/semantic/_warning.speaking-colors.scss +130 -0
- package/build/styles/defaults/default-code.css +93 -0
- package/build/styles/defaults/default-code.scss +42 -0
- package/build/styles/defaults/default-elevation.css +1 -0
- package/build/styles/defaults/default-elevation.scss +22 -0
- package/build/styles/defaults/default-fonts.css +25 -0
- package/build/styles/defaults/default-fonts.scss +79 -0
- package/build/styles/defaults/default-icons.css +1 -0
- package/build/styles/defaults/default-icons.scss +57 -0
- package/build/styles/defaults/default-required.css +1 -0
- package/build/styles/defaults/default-required.scss +137 -0
- package/build/styles/defaults/default-root.css +93 -0
- package/build/styles/defaults/default-root.scss +9 -0
- package/build/styles/defaults/default-theme.css +93 -0
- package/build/styles/defaults/default-theme.scss +864 -0
- package/build/styles/density/_densities.scss +13 -0
- package/build/styles/density/_index.scss +5 -0
- package/build/styles/density/_scaling-placeholder.scss +57 -0
- package/build/styles/density/_typography-placeholder.scss +86 -0
- package/build/styles/density/_variables.scss +3 -0
- package/build/styles/density/classes/_get-class.scss +10 -0
- package/build/styles/density/classes/all.css +1033 -0
- package/build/styles/density/classes/all.scss +6 -0
- package/build/styles/density/classes/expressive.css +363 -0
- package/build/styles/density/classes/expressive.scss +6 -0
- package/build/styles/density/classes/functional.css +363 -0
- package/build/styles/density/classes/functional.scss +6 -0
- package/build/styles/density/classes/regular.css +363 -0
- package/build/styles/density/classes/regular.scss +6 -0
- package/build/styles/fonts/_font-sizes.scss +55 -0
- package/build/styles/fonts/_index.scss +1 -0
- package/build/styles/fonts/absolute.css +1 -0
- package/build/styles/fonts/absolute.scss +3 -0
- package/build/styles/fonts/classes/all.css +185 -0
- package/build/styles/fonts/classes/all.scss +13 -0
- package/build/styles/fonts/classes/body/2xl.css +16 -0
- package/build/styles/fonts/classes/body/2xl.scss +8 -0
- package/build/styles/fonts/classes/body/2xs.css +16 -0
- package/build/styles/fonts/classes/body/2xs.scss +8 -0
- package/build/styles/fonts/classes/body/3xl.css +16 -0
- package/build/styles/fonts/classes/body/3xl.scss +8 -0
- package/build/styles/fonts/classes/body/3xs.css +16 -0
- package/build/styles/fonts/classes/body/3xs.scss +8 -0
- package/build/styles/fonts/classes/body/all.css +104 -0
- package/build/styles/fonts/classes/body/all.scss +8 -0
- package/build/styles/fonts/classes/body/lg.css +16 -0
- package/build/styles/fonts/classes/body/lg.scss +8 -0
- package/build/styles/fonts/classes/body/md.css +16 -0
- package/build/styles/fonts/classes/body/md.scss +8 -0
- package/build/styles/fonts/classes/body/sm.css +16 -0
- package/build/styles/fonts/classes/body/sm.scss +8 -0
- package/build/styles/fonts/classes/body/xl.css +16 -0
- package/build/styles/fonts/classes/body/xl.scss +8 -0
- package/build/styles/fonts/classes/body/xs.css +16 -0
- package/build/styles/fonts/classes/body/xs.scss +8 -0
- package/build/styles/fonts/classes/headline/2xl.css +14 -0
- package/build/styles/fonts/classes/headline/2xl.scss +8 -0
- package/build/styles/fonts/classes/headline/2xs.css +14 -0
- package/build/styles/fonts/classes/headline/2xs.scss +8 -0
- package/build/styles/fonts/classes/headline/3xl.css +14 -0
- package/build/styles/fonts/classes/headline/3xl.scss +8 -0
- package/build/styles/fonts/classes/headline/3xs.css +14 -0
- package/build/styles/fonts/classes/headline/3xs.scss +8 -0
- package/build/styles/fonts/classes/headline/all.css +86 -0
- package/build/styles/fonts/classes/headline/all.scss +8 -0
- package/build/styles/fonts/classes/headline/lg.css +14 -0
- package/build/styles/fonts/classes/headline/lg.scss +8 -0
- package/build/styles/fonts/classes/headline/md.css +14 -0
- package/build/styles/fonts/classes/headline/md.scss +8 -0
- package/build/styles/fonts/classes/headline/sm.css +14 -0
- package/build/styles/fonts/classes/headline/sm.scss +8 -0
- package/build/styles/fonts/classes/headline/xl.css +14 -0
- package/build/styles/fonts/classes/headline/xl.scss +8 -0
- package/build/styles/fonts/classes/headline/xs.css +14 -0
- package/build/styles/fonts/classes/headline/xs.scss +8 -0
- package/build/styles/fonts/relative.css +1 -0
- package/build/styles/fonts/relative.scss +57 -0
- package/build/styles/fonts/rollup.css +1 -0
- package/build/styles/fonts/rollup.scss +3 -0
- package/build/styles/fonts/webpack.css +1 -0
- package/build/styles/fonts/webpack.scss +3 -0
- package/build/styles/helpers/_a11y.scss +17 -0
- package/build/styles/helpers/_clearfix.scss +5 -0
- package/build/styles/helpers/_divider.scss +50 -0
- package/build/styles/helpers/_focus.scss +23 -0
- package/build/styles/helpers/_functions.scss +44 -0
- package/build/styles/helpers/_index.scss +6 -0
- package/build/styles/helpers/_shadow-dom.scss +5 -0
- package/build/styles/helpers/classes/all.css +238 -0
- package/build/styles/helpers/classes/all.scss +2 -0
- package/build/styles/helpers/classes/divider.css +221 -0
- package/build/styles/helpers/classes/divider.scss +13 -0
- package/build/styles/helpers/classes/focus.css +24 -0
- package/build/styles/helpers/classes/focus.scss +6 -0
- package/build/styles/icons/_icon-helpers.scss +161 -0
- package/build/styles/icons/_index.scss +1 -0
- package/build/styles/icons/absolute.css +1 -0
- package/build/styles/icons/absolute.scss +3 -0
- package/build/styles/icons/relative.css +1 -0
- package/build/styles/icons/relative.scss +50 -0
- package/build/styles/icons/rollup.css +1 -0
- package/build/styles/icons/rollup.scss +3 -0
- package/build/styles/icons/webpack.css +1 -0
- package/build/styles/icons/webpack.scss +3 -0
- package/build/styles/index.css +1185 -0
- package/build/styles/index.scss +6 -0
- package/build/styles/relative.css +7344 -0
- package/build/styles/relative.scss +4 -0
- package/build/styles/rollup.css +1185 -0
- package/build/styles/rollup.scss +3 -0
- package/build/styles/webpack.css +1185 -0
- package/build/styles/webpack.scss +3 -0
- package/build/tailwind/tailwind-tokens.json +252 -0
- package/build/tailwind/tailwind.config.cjs +15 -0
- package/build/tailwind/tailwind.config.mjs +16 -0
- package/build/tailwind/theme/colors.css +154 -0
- package/build/tailwind/theme/index.css +176 -0
- package/package.json +64 -0
package/build/index.d.ts
ADDED
package/build/index.js
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/* Document
|
|
2
|
+
* ========================================================================== */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 1. Correct the line height in all browsers.
|
|
6
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
:where(html) {
|
|
10
|
+
line-height: 1.15; /* 1 */
|
|
11
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
12
|
+
text-size-adjust: 100%; /* 2 */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Sections
|
|
16
|
+
* ========================================================================== */
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
20
|
+
* `article` contexts in Chrome, Edge, Firefox, and Safari.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
:where(h1) {
|
|
24
|
+
font-size: 2em;
|
|
25
|
+
margin-block-end: 0.67em;
|
|
26
|
+
margin-block-start: 0.67em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Grouping content
|
|
30
|
+
* ========================================================================== */
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Remove the margin on nested lists in Chrome, Edge, and Safari.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
:where(dl, ol, ul) :where(dl, ol, ul) {
|
|
37
|
+
margin-block-end: 0;
|
|
38
|
+
margin-block-start: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 1. Add the correct box sizing in Firefox.
|
|
43
|
+
* 2. Correct the inheritance of border color in Firefox.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
:where(hr) {
|
|
47
|
+
box-sizing: content-box; /* 1 */
|
|
48
|
+
color: inherit; /* 2 */
|
|
49
|
+
height: 0; /* 1 */
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Text-level semantics
|
|
53
|
+
* ========================================================================== */
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Add the correct text decoration in Safari.
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
:where(abbr[title]) {
|
|
60
|
+
text-decoration: underline;
|
|
61
|
+
text-decoration: underline dotted;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
:where(b, strong) {
|
|
69
|
+
font-weight: bolder;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
74
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
:where(code, kbd, pre, samp) {
|
|
78
|
+
font-family: monospace, monospace; /* 1 */
|
|
79
|
+
font-size: 1em; /* 2 */
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Add the correct font size in all browsers.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
:where(small) {
|
|
87
|
+
font-size: 80%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Tabular data
|
|
91
|
+
* ========================================================================== */
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* 1. Correct table border color in Chrome, Edge, and Safari.
|
|
95
|
+
* 2. Remove text indentation from table contents in Chrome, Edge, and Safari.
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
:where(table) {
|
|
99
|
+
border-color: currentColor; /* 1 */
|
|
100
|
+
text-indent: 0; /* 2 */
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Forms
|
|
104
|
+
* ========================================================================== */
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Remove the margin on controls in Safari.
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
:where(button, input, select) {
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Remove the inheritance of text transform in Firefox.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
:where(button) {
|
|
119
|
+
text-transform: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Correct the inability to style buttons in iOS and Safari.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
:where(button, input:is([type="button" i], [type="reset" i], [type="submit" i])) {
|
|
127
|
+
-webkit-appearance: button;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Add the correct vertical alignment in Chrome, Edge, and Firefox.
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
:where(progress) {
|
|
135
|
+
vertical-align: baseline;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Remove the inheritance of text transform in Firefox.
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
:where(select) {
|
|
143
|
+
text-transform: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Remove the margin in Firefox and Safari.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
:where(textarea) {
|
|
151
|
+
margin: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* 1. Correct the odd appearance in Chrome, Edge, and Safari.
|
|
156
|
+
* 2. Correct the outline style in Safari.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
:where(input[type="search" i]) {
|
|
160
|
+
-webkit-appearance: textfield; /* 1 */
|
|
161
|
+
outline-offset: -2px; /* 2 */
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Correct the cursor style of increment and decrement buttons in Safari.
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
::-webkit-inner-spin-button,
|
|
169
|
+
::-webkit-outer-spin-button {
|
|
170
|
+
height: auto;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Correct the text style of placeholders in Chrome, Edge, and Safari.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
::-webkit-input-placeholder {
|
|
178
|
+
color: inherit;
|
|
179
|
+
opacity: 0.54;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Remove the inner padding in Chrome, Edge, and Safari on macOS.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
::-webkit-search-decoration {
|
|
187
|
+
-webkit-appearance: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* 1. Correct the inability to style upload buttons in iOS and Safari.
|
|
192
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
::-webkit-file-upload-button {
|
|
196
|
+
-webkit-appearance: button; /* 1 */
|
|
197
|
+
font: inherit; /* 2 */
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Remove the inner border and padding of focus outlines in Firefox.
|
|
202
|
+
*/
|
|
203
|
+
|
|
204
|
+
:where(button, input:is([type="button" i], [type="color" i], [type="reset" i], [type="submit" i]))::-moz-focus-inner {
|
|
205
|
+
border-style: none;
|
|
206
|
+
padding: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Restore the focus outline styles unset by the previous rule in Firefox.
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
:where(button, input:is([type="button" i], [type="color" i], [type="reset" i], [type="submit" i]))::-moz-focusring {
|
|
214
|
+
outline: 1px dotted ButtonText;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Remove the additional :invalid styles in Firefox.
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
:where(:-moz-ui-invalid) {
|
|
222
|
+
box-shadow: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Interactive
|
|
226
|
+
* ========================================================================== */
|
|
227
|
+
|
|
228
|
+
/*
|
|
229
|
+
* Add the correct styles in Safari.
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
:where(dialog) {
|
|
233
|
+
background-color: white;
|
|
234
|
+
border: solid;
|
|
235
|
+
color: black;
|
|
236
|
+
height: -moz-fit-content;
|
|
237
|
+
height: fit-content;
|
|
238
|
+
left: 0;
|
|
239
|
+
margin: auto;
|
|
240
|
+
padding: 1em;
|
|
241
|
+
position: absolute;
|
|
242
|
+
right: 0;
|
|
243
|
+
width: -moz-fit-content;
|
|
244
|
+
width: fit-content;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:where(dialog:not([open])) {
|
|
248
|
+
display: none;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/*
|
|
252
|
+
* Add the correct display in all browsers.
|
|
253
|
+
*/
|
|
254
|
+
|
|
255
|
+
:where(summary) {
|
|
256
|
+
display: list-item;
|
|
257
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// If this library is used as an npm dependency, and the source files should be included rather than css, this corrects the paths.
|
|
2
|
+
@use "default.assets-paths" as assets-paths with (
|
|
3
|
+
$icons-path: "@db-ux/core-foundations/assets/icons/",
|
|
4
|
+
$fonts-path: "@db-ux/core-foundations/assets/fonts/"
|
|
5
|
+
);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@use "helpers";
|
|
2
|
+
|
|
3
|
+
$db-screen-size-xs: 360;
|
|
4
|
+
$db-screen-size-sm: 720;
|
|
5
|
+
$db-screen-size-md: 1024;
|
|
6
|
+
$db-screen-size-lg: 1440;
|
|
7
|
+
$db-screen-size-xl: 1920;
|
|
8
|
+
|
|
9
|
+
$db-breakpoint-xs: helpers.px-to-em($db-screen-size-xs);
|
|
10
|
+
$db-breakpoint-sm: helpers.px-to-em($db-screen-size-sm);
|
|
11
|
+
$db-breakpoint-md: helpers.px-to-em($db-screen-size-md);
|
|
12
|
+
$db-breakpoint-lg: helpers.px-to-em($db-screen-size-lg);
|
|
13
|
+
$db-breakpoint-xl: helpers.px-to-em($db-screen-size-xl);
|
|
14
|
+
|
|
15
|
+
@mixin screen($size: "sm", $width: "min") {
|
|
16
|
+
$screen: $db-screen-size-sm;
|
|
17
|
+
|
|
18
|
+
/* stylelint-disable at-rule-empty-line-before */
|
|
19
|
+
@if ($size == "xs") {
|
|
20
|
+
$screen: $db-screen-size-xs;
|
|
21
|
+
} @else if ($size == "md") {
|
|
22
|
+
$screen: $db-screen-size-md;
|
|
23
|
+
} @else if ($size == "lg") {
|
|
24
|
+
$screen: $db-screen-size-lg;
|
|
25
|
+
} @else if ($size == "xl") {
|
|
26
|
+
$screen: $db-screen-size-xl;
|
|
27
|
+
}
|
|
28
|
+
/* stylelint-enable at-rule-empty-line-before */
|
|
29
|
+
|
|
30
|
+
@if ($width == "min") {
|
|
31
|
+
/* stylelint-disable-next-line media-query-no-invalid */
|
|
32
|
+
@media screen and (min-width: #{helpers.px-to-em($screen)}) {
|
|
33
|
+
&:not([data-force-mobile]),
|
|
34
|
+
&[data-force-mobile="false"] {
|
|
35
|
+
@content;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
39
|
+
} @else {
|
|
40
|
+
&[data-force-mobile="true"] {
|
|
41
|
+
@content;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* stylelint-disable-next-line media-query-no-invalid */
|
|
45
|
+
@media screen and (max-width: #{helpers.px-to-em($screen - 1)}) {
|
|
46
|
+
@content;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
+
$db-sizing-3xs: var(--db-sizing-3xs);
|
|
3
|
+
$db-sizing-2xs: var(--db-sizing-2xs);
|
|
4
|
+
$db-sizing-xs: var(--db-sizing-xs);
|
|
5
|
+
$db-sizing-sm: var(--db-sizing-sm);
|
|
6
|
+
$db-sizing-md: var(--db-sizing-md);
|
|
7
|
+
$db-sizing-lg: var(--db-sizing-lg);
|
|
8
|
+
$db-sizing-xl: var(--db-sizing-xl);
|
|
9
|
+
$db-sizing-2xl: var(--db-sizing-2xl);
|
|
10
|
+
$db-sizing-3xl: var(--db-sizing-3xl);
|
|
11
|
+
|
|
12
|
+
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
13
|
+
$db-spacing-fixed-3xs: var(--db-spacing-fixed-3xs);
|
|
14
|
+
$db-spacing-fixed-2xs: var(--db-spacing-fixed-2xs);
|
|
15
|
+
$db-spacing-fixed-xs: var(--db-spacing-fixed-xs);
|
|
16
|
+
$db-spacing-fixed-sm: var(--db-spacing-fixed-sm);
|
|
17
|
+
$db-spacing-fixed-md: var(--db-spacing-fixed-md);
|
|
18
|
+
$db-spacing-fixed-lg: var(--db-spacing-fixed-lg);
|
|
19
|
+
$db-spacing-fixed-xl: var(--db-spacing-fixed-xl);
|
|
20
|
+
$db-spacing-fixed-2xl: var(--db-spacing-fixed-2xl);
|
|
21
|
+
$db-spacing-fixed-3xl: var(--db-spacing-fixed-3xl);
|
|
22
|
+
|
|
23
|
+
/* The primary use-case for responsive spacings are
|
|
24
|
+
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
25
|
+
$db-spacing-responsive-3xs: var(--db-spacing-responsive-3xs);
|
|
26
|
+
$db-spacing-responsive-2xs: var(--db-spacing-responsive-2xs);
|
|
27
|
+
$db-spacing-responsive-xs: var(--db-spacing-responsive-xs);
|
|
28
|
+
$db-spacing-responsive-sm: var(--db-spacing-responsive-sm);
|
|
29
|
+
$db-spacing-responsive-md: var(--db-spacing-responsive-md);
|
|
30
|
+
$db-spacing-responsive-lg: var(--db-spacing-responsive-lg);
|
|
31
|
+
$db-spacing-responsive-xl: var(--db-spacing-responsive-xl);
|
|
32
|
+
$db-spacing-responsive-2xl: var(--db-spacing-responsive-2xl);
|
|
33
|
+
$db-spacing-responsive-3xl: var(--db-spacing-responsive-3xl);
|
|
34
|
+
|
|
35
|
+
/* Elevation */
|
|
36
|
+
|
|
37
|
+
$db-elevation-sm: var(--db-elevation-sm);
|
|
38
|
+
$db-elevation-md: var(--db-elevation-md);
|
|
39
|
+
$db-elevation-lg: var(--db-elevation-lg);
|
|
40
|
+
|
|
41
|
+
/* Border */
|
|
42
|
+
|
|
43
|
+
$db-border-height-3xs: var(--db-border-height-3xs);
|
|
44
|
+
$db-border-height-2xs: var(--db-border-height-2xs);
|
|
45
|
+
$db-border-height-xs: var(--db-border-height-xs);
|
|
46
|
+
$db-border-height-sm: var(--db-border-height-sm);
|
|
47
|
+
$db-border-height-md: var(--db-border-height-md);
|
|
48
|
+
$db-border-height-lg: var(--db-border-height-lg);
|
|
49
|
+
$db-border-height-xl: var(--db-border-height-xl);
|
|
50
|
+
$db-border-height-2xl: var(--db-border-height-2xl);
|
|
51
|
+
$db-border-height-3xl: var(--db-border-height-3xl);
|
|
52
|
+
|
|
53
|
+
$db-border-radius-3xs: var(--db-border-radius-3xs);
|
|
54
|
+
$db-border-radius-2xs: var(--db-border-radius-2xs);
|
|
55
|
+
$db-border-radius-xs: var(--db-border-radius-xs);
|
|
56
|
+
$db-border-radius-sm: var(--db-border-radius-sm);
|
|
57
|
+
$db-border-radius-md: var(--db-border-radius-md);
|
|
58
|
+
$db-border-radius-lg: var(--db-border-radius-lg);
|
|
59
|
+
$db-border-radius-xl: var(--db-border-radius-xl);
|
|
60
|
+
$db-border-radius-2xl: var(--db-border-radius-2xl);
|
|
61
|
+
$db-border-radius-3xl: var(--db-border-radius-3xl);
|
|
62
|
+
$db-border-radius-full: var(--db-border-radius-full);
|
|
63
|
+
|
|
64
|
+
/* Transitions */
|
|
65
|
+
|
|
66
|
+
$db-transition-duration-extra-slow: var(--db-transition-duration-extra-slow);
|
|
67
|
+
$db-transition-duration-slow: var(--db-transition-duration-slow);
|
|
68
|
+
$db-transition-duration-medium: var(--db-transition-duration-medium);
|
|
69
|
+
$db-transition-duration-fast: var(--db-transition-duration-fast);
|
|
70
|
+
$db-transition-duration-extra-fast: var(--db-transition-duration-extra-fast);
|
|
71
|
+
|
|
72
|
+
$db-transition-timing-emotional: var(--db-transition-timing-emotional);
|
|
73
|
+
$db-transition-timing-functional: var(--db-transition-timing-functional);
|
|
74
|
+
$db-transition-timing-show: var(--db-transition-timing-show);
|
|
75
|
+
$db-transition-timing-hide: var(--db-transition-timing-hide);
|
|
76
|
+
|
|
77
|
+
$db-transition-straight-emotional: var(--db-transition-straight-emotional);
|
|
78
|
+
$db-transition-straight-functional: var(--db-transition-straight-functional);
|
|
79
|
+
$db-transition-straight-show: var(--db-transition-straight-show);
|
|
80
|
+
$db-transition-straight-hide: var(--db-transition-straight-hide);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// If this library is used as an npm dependency, and the source files should be included rather than css, this corrects the paths.
|
|
2
|
+
@use "default.assets-paths" as assets-paths with (
|
|
3
|
+
$icons-path: "~@db-ux/core-foundations/assets/icons/",
|
|
4
|
+
$fonts-path: "~@db-ux/core-foundations/assets/fonts/"
|
|
5
|
+
);
|