@webority/theme 0.11.7 → 0.12.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/theme",
3
- "version": "0.11.7",
3
+ "version": "0.12.1",
4
4
  "description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -60,6 +60,7 @@
60
60
  @import "wui/shell";
61
61
  @import "wui/dock";
62
62
  @import "wui/feedback";
63
+ @import "wui/consent-banner";
63
64
  @import "wui/toolbar";
64
65
  // Last: restates the settled state of menus other partials style, so it must win.
65
66
  @import "wui/menu-motion";
@@ -0,0 +1,123 @@
1
+ // ── Cookie consent banner ──
2
+ // AppConsentBanner / <app-consent-banner> / <wui-consent-banner>: a card pinned to a bottom
3
+ // corner asking for cookie consent, with per-category switches behind "Cookie settings". The
4
+ // element authors the markup and owns the states (`open` on the host, `hidden` on the panel,
5
+ // the settings block and the save button); everything visual lives here.
6
+ //
7
+ // Part of the wui-components layer: see _wui-components.scss for load order.
8
+
9
+ wui-consent-banner {
10
+ position: fixed;
11
+ bottom: 20px;
12
+ z-index: var(--wui-z-fixed);
13
+ display: block;
14
+ width: 420px;
15
+ max-width: calc(100vw - 40px);
16
+ }
17
+ wui-consent-banner,
18
+ wui-consent-banner[position="bottom-left"] {
19
+ left: 20px;
20
+ right: auto;
21
+ }
22
+ wui-consent-banner[position="bottom-right"] {
23
+ right: 20px;
24
+ left: auto;
25
+ }
26
+ wui-consent-banner:not([open]) {
27
+ pointer-events: none;
28
+ }
29
+
30
+ .wui-consent-banner-panel {
31
+ padding: 20px;
32
+ background: var(--color-surface);
33
+ border: 1px solid var(--color-border);
34
+ border-radius: var(--wui-radius-lg);
35
+ box-shadow: var(--wui-shadow-overlay-lg);
36
+ color: var(--color-text);
37
+ text-align: start;
38
+ pointer-events: auto;
39
+ }
40
+ .wui-consent-banner-panel[hidden] {
41
+ display: none;
42
+ }
43
+
44
+ .wui-consent-banner-heading {
45
+ margin: 0 0 8px;
46
+ font-size: 18px;
47
+ font-weight: 600;
48
+ line-height: 1.3;
49
+ color: var(--color-text);
50
+ }
51
+
52
+ .wui-consent-banner-description {
53
+ margin: 0 0 16px;
54
+ font-size: 14px;
55
+ line-height: 1.5;
56
+ color: var(--color-text-muted);
57
+ }
58
+
59
+ .wui-consent-banner-policy {
60
+ color: var(--color-primary);
61
+ font-weight: 500;
62
+ }
63
+
64
+ // ── Per-category switches ──
65
+ .wui-consent-banner-settings {
66
+ display: grid;
67
+ gap: 12px;
68
+ max-height: 50vh;
69
+ margin: 0 0 16px;
70
+ padding: 12px 0;
71
+ overflow-y: auto;
72
+ border-top: 1px solid var(--color-border);
73
+ border-bottom: 1px solid var(--color-border);
74
+ }
75
+ .wui-consent-banner-settings[hidden] {
76
+ display: none;
77
+ }
78
+ .wui-consent-banner-category .form-check {
79
+ margin: 0;
80
+ }
81
+ .wui-consent-banner-category-description {
82
+ margin: 2px 0 0;
83
+ padding-inline-start: 2.5em;
84
+ font-size: 12px;
85
+ line-height: 1.4;
86
+ color: var(--color-text-muted);
87
+ }
88
+
89
+ // ── Actions ──
90
+ // The settings link sits apart on the start side; the decisions sit together at the end.
91
+ .wui-consent-banner-actions {
92
+ display: flex;
93
+ flex-wrap: wrap;
94
+ align-items: center;
95
+ justify-content: flex-end;
96
+ gap: 8px;
97
+ }
98
+ .wui-consent-banner-settings-toggle {
99
+ margin-inline-end: auto;
100
+ padding-inline: 0;
101
+ }
102
+ .wui-consent-banner-actions [hidden] {
103
+ display: none;
104
+ }
105
+ .wui-consent-banner-accept,
106
+ .wui-consent-banner-reject {
107
+ white-space: nowrap;
108
+ }
109
+ .wui-consent-banner-save {
110
+ flex: 1 1 100%;
111
+ }
112
+
113
+ @media (max-width: 480px) {
114
+ wui-consent-banner,
115
+ wui-consent-banner[position="bottom-left"],
116
+ wui-consent-banner[position="bottom-right"] {
117
+ left: 12px;
118
+ right: 12px;
119
+ bottom: 12px;
120
+ width: auto;
121
+ max-width: none;
122
+ }
123
+ }