@db-ux/core-foundations 2.1.0 → 2.1.2

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.
Files changed (40) hide show
  1. package/build/styles/_variables.scss +13 -0
  2. package/build/styles/absolute.css +60 -9
  3. package/build/styles/defaults/_default-properties.scss +60 -0
  4. package/build/styles/defaults/_default-variables.scss +10 -0
  5. package/build/styles/defaults/default-required.css +1 -1
  6. package/build/styles/defaults/default-theme.css +1 -1
  7. package/build/styles/density/classes/all.css +1 -0
  8. package/build/styles/density/classes/expressive.css +1 -0
  9. package/build/styles/density/classes/functional.css +1 -0
  10. package/build/styles/density/classes/regular.css +1 -0
  11. package/build/styles/fonts/classes/all.css +1 -0
  12. package/build/styles/fonts/classes/body/2xl.css +1 -0
  13. package/build/styles/fonts/classes/body/2xs.css +1 -0
  14. package/build/styles/fonts/classes/body/3xl.css +1 -0
  15. package/build/styles/fonts/classes/body/3xs.css +1 -0
  16. package/build/styles/fonts/classes/body/all.css +1 -0
  17. package/build/styles/fonts/classes/body/lg.css +1 -0
  18. package/build/styles/fonts/classes/body/md.css +1 -0
  19. package/build/styles/fonts/classes/body/sm.css +1 -0
  20. package/build/styles/fonts/classes/body/xl.css +1 -0
  21. package/build/styles/fonts/classes/body/xs.css +1 -0
  22. package/build/styles/fonts/classes/headline/2xl.css +1 -0
  23. package/build/styles/fonts/classes/headline/2xs.css +1 -0
  24. package/build/styles/fonts/classes/headline/3xl.css +1 -0
  25. package/build/styles/fonts/classes/headline/3xs.css +1 -0
  26. package/build/styles/fonts/classes/headline/all.css +1 -0
  27. package/build/styles/fonts/classes/headline/lg.css +1 -0
  28. package/build/styles/fonts/classes/headline/md.css +1 -0
  29. package/build/styles/fonts/classes/headline/sm.css +1 -0
  30. package/build/styles/fonts/classes/headline/xl.css +1 -0
  31. package/build/styles/fonts/classes/headline/xs.css +1 -0
  32. package/build/styles/helpers/_focus.scss +18 -14
  33. package/build/styles/helpers/classes/all.css +5 -4
  34. package/build/styles/helpers/classes/divider.css +1 -0
  35. package/build/styles/helpers/classes/focus.css +5 -4
  36. package/build/styles/index.css +10 -9
  37. package/build/styles/relative.css +60 -9
  38. package/build/styles/rollup.css +60 -9
  39. package/build/styles/webpack.css +60 -9
  40. package/package.json +1 -1
@@ -61,6 +61,19 @@ $db-border-radius-2xl: var(--db-border-radius-2xl);
61
61
  $db-border-radius-3xl: var(--db-border-radius-3xl);
62
62
  $db-border-radius-full: var(--db-border-radius-full);
63
63
 
64
+ /* Opacity */
65
+
66
+ $db-opacity-3xs: var(--db-opacity-3xs);
67
+ $db-opacity-2xs: var(--db-opacity-2xs);
68
+ $db-opacity-xs: var(--db-opacity-xs);
69
+ $db-opacity-sm: var(--db-opacity-sm);
70
+ $db-opacity-md: var(--db-opacity-md);
71
+ $db-opacity-lg: var(--db-opacity-lg);
72
+ $db-opacity-xl: var(--db-opacity-xl);
73
+ $db-opacity-2xl: var(--db-opacity-2xl);
74
+ $db-opacity-3xl: var(--db-opacity-3xl);
75
+ $db-opacity-full: var(--db-opacity-full);
76
+
64
77
  /* Transitions */
65
78
 
66
79
  $db-transition-duration-extra-slow: var(--db-transition-duration-extra-slow);
@@ -47,6 +47,7 @@
47
47
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
48
48
  /* Elevation */
49
49
  /* Border */
50
+ /* Opacity */
50
51
  /* Transitions */
51
52
  /* Variants for adaptive components like input, select, notification, ... */
52
53
  blockquote:not([class]), [data-mode], :is(:root, :host) {
@@ -257,15 +258,6 @@ select,
257
258
  outline-offset: var(--db-border-width-xs);
258
259
  box-shadow: 0 0 0 var(--db-border-width-xs) var(--db-focus-box-shadow-bg-color, transparent);
259
260
  }
260
- :not([data-disable-focus=true]):not([type=radio], [role=switch]):is(a,
261
- button,
262
- input,
263
- textarea,
264
- summary,
265
- select,
266
- [tabindex]:not([tabindex="-1"])):focus-visible {
267
- border-radius: var(--db-border-radius-xs);
268
- }
269
261
  @media screen and (prefers-reduced-motion: no-preference) {
270
262
  :not([data-disable-focus=true]):is(a,
271
263
  button,
@@ -277,6 +269,15 @@ select,
277
269
  transition: outline var(--db-transition-duration-extra-fast), box-shadow var(--db-transition-duration-extra-fast);
278
270
  }
279
271
  }
272
+ :not([data-disable-focus=true]):not([type=radio], [role=switch]):is(a,
273
+ button,
274
+ input,
275
+ textarea,
276
+ summary,
277
+ select,
278
+ [tabindex]:not([tabindex="-1"])):focus-visible {
279
+ border-radius: var(--db-border-radius-xs);
280
+ }
280
281
 
281
282
  [data-icon]::before,
282
283
  [data-icon-before]::before, [data-icon-after]::after {
@@ -3029,6 +3030,56 @@ select,
3029
3030
  initial-value: 0.3s cubic-bezier(0.15, 0, 0.45, 1);
3030
3031
  inherits: true;
3031
3032
  }
3033
+ @property --db-opacity-3xs {
3034
+ syntax: "<number>";
3035
+ initial-value: 0.08;
3036
+ inherits: true;
3037
+ }
3038
+ @property --db-opacity-2xs {
3039
+ syntax: "<number>";
3040
+ initial-value: 0.16;
3041
+ inherits: true;
3042
+ }
3043
+ @property --db-opacity-xs {
3044
+ syntax: "<number>";
3045
+ initial-value: 0.24;
3046
+ inherits: true;
3047
+ }
3048
+ @property --db-opacity-sm {
3049
+ syntax: "<number>";
3050
+ initial-value: 0.32;
3051
+ inherits: true;
3052
+ }
3053
+ @property --db-opacity-md {
3054
+ syntax: "<number>";
3055
+ initial-value: 0.4;
3056
+ inherits: true;
3057
+ }
3058
+ @property --db-opacity-lg {
3059
+ syntax: "<number>";
3060
+ initial-value: 0.68;
3061
+ inherits: true;
3062
+ }
3063
+ @property --db-opacity-xl {
3064
+ syntax: "<number>";
3065
+ initial-value: 0.76;
3066
+ inherits: true;
3067
+ }
3068
+ @property --db-opacity-2xl {
3069
+ syntax: "<number>";
3070
+ initial-value: 0.84;
3071
+ inherits: true;
3072
+ }
3073
+ @property --db-opacity-3xl {
3074
+ syntax: "<number>";
3075
+ initial-value: 0.92;
3076
+ inherits: true;
3077
+ }
3078
+ @property --db-opacity-full {
3079
+ syntax: "<number>";
3080
+ initial-value: 1;
3081
+ inherits: true;
3082
+ }
3032
3083
  @property --db-typography-regular-desktop-headline-3xl {
3033
3084
  syntax: "*";
3034
3085
  initial-value: bolder 5rem/1.2 "OpenSans Head", helvetica, arial, sans-serif;
@@ -2989,6 +2989,66 @@
2989
2989
  inherits: true;
2990
2990
  }
2991
2991
 
2992
+ @property --db-opacity-3xs {
2993
+ syntax: "<number>";
2994
+ initial-value: 0.08;
2995
+ inherits: true;
2996
+ }
2997
+
2998
+ @property --db-opacity-2xs {
2999
+ syntax: "<number>";
3000
+ initial-value: 0.16;
3001
+ inherits: true;
3002
+ }
3003
+
3004
+ @property --db-opacity-xs {
3005
+ syntax: "<number>";
3006
+ initial-value: 0.24;
3007
+ inherits: true;
3008
+ }
3009
+
3010
+ @property --db-opacity-sm {
3011
+ syntax: "<number>";
3012
+ initial-value: 0.32;
3013
+ inherits: true;
3014
+ }
3015
+
3016
+ @property --db-opacity-md {
3017
+ syntax: "<number>";
3018
+ initial-value: 0.4;
3019
+ inherits: true;
3020
+ }
3021
+
3022
+ @property --db-opacity-lg {
3023
+ syntax: "<number>";
3024
+ initial-value: 0.68;
3025
+ inherits: true;
3026
+ }
3027
+
3028
+ @property --db-opacity-xl {
3029
+ syntax: "<number>";
3030
+ initial-value: 0.76;
3031
+ inherits: true;
3032
+ }
3033
+
3034
+ @property --db-opacity-2xl {
3035
+ syntax: "<number>";
3036
+ initial-value: 0.84;
3037
+ inherits: true;
3038
+ }
3039
+
3040
+ @property --db-opacity-3xl {
3041
+ syntax: "<number>";
3042
+ initial-value: 0.92;
3043
+ inherits: true;
3044
+ }
3045
+
3046
+ @property --db-opacity-full {
3047
+ syntax: "<number>";
3048
+ initial-value: 1;
3049
+ inherits: true;
3050
+ }
3051
+
2992
3052
  @property --db-typography-regular-desktop-headline-3xl {
2993
3053
  syntax: "*";
2994
3054
  initial-value:
@@ -505,6 +505,16 @@
505
505
  both;
506
506
  --db-transition-straight-emotional: 0.3s cubic-bezier(0.27, 0.05, 0.4, 0.95);
507
507
  --db-transition-straight-functional: 0.3s cubic-bezier(0.15, 0, 0.45, 1);
508
+ --db-opacity-3xs: 0.08;
509
+ --db-opacity-2xs: 0.16;
510
+ --db-opacity-xs: 0.24;
511
+ --db-opacity-sm: 0.32;
512
+ --db-opacity-md: 0.4;
513
+ --db-opacity-lg: 0.68;
514
+ --db-opacity-xl: 0.76;
515
+ --db-opacity-2xl: 0.84;
516
+ --db-opacity-3xl: 0.92;
517
+ --db-opacity-full: 1;
508
518
  --db-typography-regular-desktop-headline-3xl:
509
519
  bolder 5rem/1.2 "OpenSans Head", helvetica, arial, sans-serif;
510
520
  --db-typography-regular-desktop-headline-2xl: