@inglorious/ui 9.5.1 → 9.7.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/README.md +4 -1
- package/package.json +10 -7
- package/src/controls/input/style.css +1 -0
- package/src/examples/dashboard/app-header.js +13 -6
- package/src/examples/dashboard/style.css +1 -0
- package/src/examples/dashboard/theme-utils.js +9 -2
- package/src/navigation/view-transitions/index.js +12 -8
- package/src/styles/themes/bootstrap.css +531 -64
- package/src/styles/themes/ios-18.css +713 -0
- package/src/styles/themes/ios-26.css +741 -0
- package/src/styles/themes/material-3.css +748 -0
- package/src/styles/themes/material-ui.css +687 -0
- package/types/navigation/view-transitions.d.ts +3 -4
- package/src/styles/themes/material.css +0 -170
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
.iw-theme-bootstrap {
|
|
2
|
+
--iw-font-family-sans:
|
|
3
|
+
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans",
|
|
4
|
+
"Liberation Sans", Arial, sans-serif;
|
|
2
5
|
/* The theme on the page itself: the element with the theme class, usually
|
|
3
6
|
<body>, takes its background, text color and font. */
|
|
4
7
|
background-color: var(--iw-color-bg);
|
|
@@ -6,20 +9,20 @@
|
|
|
6
9
|
font-family: var(--iw-font-family-sans);
|
|
7
10
|
|
|
8
11
|
/* ========================================
|
|
9
|
-
BOOTSTRAP THEME - Bootstrap
|
|
12
|
+
BOOTSTRAP THEME - Bootstrap 5 defaults
|
|
10
13
|
======================================== */
|
|
11
14
|
|
|
12
15
|
/* Semantic Colors */
|
|
13
16
|
--iw-color-bg: var(--iw-color-white);
|
|
14
|
-
--iw-color-bg-secondary:
|
|
15
|
-
--iw-color-bg-tertiary:
|
|
17
|
+
--iw-color-bg-secondary: #f8f9fa;
|
|
18
|
+
--iw-color-bg-tertiary: #e9ecef;
|
|
16
19
|
--iw-color-surface: var(--iw-color-white);
|
|
17
|
-
--iw-color-surface-hover:
|
|
18
|
-
--iw-color-surface-active:
|
|
20
|
+
--iw-color-surface-hover: #f8f9fa;
|
|
21
|
+
--iw-color-surface-active: #e9ecef;
|
|
19
22
|
|
|
20
23
|
--iw-color-text: #212529;
|
|
21
|
-
--iw-color-text-secondary:
|
|
22
|
-
--iw-color-text-muted:
|
|
24
|
+
--iw-color-text-secondary: rgba(33, 37, 41, 0.75);
|
|
25
|
+
--iw-color-text-muted: rgba(33, 37, 41, 0.75);
|
|
23
26
|
|
|
24
27
|
--iw-color-border: #dee2e6;
|
|
25
28
|
--iw-color-border-focus: #86b7fe;
|
|
@@ -29,9 +32,30 @@
|
|
|
29
32
|
--iw-color-primary-active: #0a58ca;
|
|
30
33
|
--iw-color-primary-text: var(--iw-color-white);
|
|
31
34
|
|
|
32
|
-
|
|
33
|
-
--iw-color-accent
|
|
34
|
-
--iw-color-accent-
|
|
35
|
+
/* Bootstrap's secondary color */
|
|
36
|
+
--iw-color-accent: #6c757d;
|
|
37
|
+
--iw-color-accent-hover: #5c636a;
|
|
38
|
+
--iw-color-accent-active: #565e64;
|
|
39
|
+
|
|
40
|
+
--iw-color-success: #198754;
|
|
41
|
+
--iw-color-success-dark: #157347;
|
|
42
|
+
--iw-color-warning: #ffc107;
|
|
43
|
+
--iw-color-warning-dark: #ffca2c;
|
|
44
|
+
--iw-color-error: #dc3545;
|
|
45
|
+
--iw-color-error-dark: #bb2d3b;
|
|
46
|
+
--iw-color-info: #0dcaf0;
|
|
47
|
+
--iw-color-info-dark: #31d2f2;
|
|
48
|
+
|
|
49
|
+
--iw-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
|
50
|
+
--iw-shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
|
51
|
+
--iw-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
|
|
52
|
+
--iw-shadow-xl: 0 1rem 3rem rgba(0, 0, 0, 0.175);
|
|
53
|
+
|
|
54
|
+
/* Bootstrap's border radii */
|
|
55
|
+
--iw-radius-sm: 0.25rem;
|
|
56
|
+
--iw-radius-md: 0.375rem;
|
|
57
|
+
--iw-radius-lg: 0.5rem;
|
|
58
|
+
--iw-radius-xl: 1rem;
|
|
35
59
|
|
|
36
60
|
/* ========================================
|
|
37
61
|
COMPONENT TOKENS
|
|
@@ -48,50 +72,46 @@
|
|
|
48
72
|
--iw-button-shadow-hover: none;
|
|
49
73
|
--iw-button-shadow-active: none;
|
|
50
74
|
|
|
51
|
-
--iw-button-outline-bg: transparent;
|
|
52
|
-
--iw-button-outline-bg-hover: var(--iw-color-primary);
|
|
53
|
-
--iw-button-outline-text: var(--iw-color-primary);
|
|
54
|
-
--iw-button-outline-text-hover: var(--iw-color-white);
|
|
55
|
-
--iw-button-outline-border: var(--iw-color-primary);
|
|
56
|
-
|
|
57
|
-
--iw-button-ghost-bg: transparent;
|
|
58
|
-
--iw-button-ghost-bg-hover: var(--iw-color-gray-100);
|
|
59
|
-
--iw-button-ghost-text: var(--iw-color-text);
|
|
60
|
-
--iw-button-ghost-border: transparent;
|
|
61
|
-
|
|
62
75
|
/* Input */
|
|
63
|
-
--iw-input-bg: var(--iw-color-
|
|
64
|
-
--iw-input-bg-hover: var(--iw-color-
|
|
65
|
-
--iw-input-bg-focus: var(--iw-color-
|
|
76
|
+
--iw-input-bg: var(--iw-color-bg);
|
|
77
|
+
--iw-input-bg-hover: var(--iw-color-bg);
|
|
78
|
+
--iw-input-bg-focus: var(--iw-color-bg);
|
|
66
79
|
--iw-input-text: var(--iw-color-text);
|
|
67
|
-
--iw-input-text-placeholder: var(--iw-color-text-
|
|
68
|
-
--iw-input-border:
|
|
69
|
-
--iw-input-border-hover:
|
|
80
|
+
--iw-input-text-placeholder: var(--iw-color-text-secondary);
|
|
81
|
+
--iw-input-border: var(--iw-color-border);
|
|
82
|
+
--iw-input-border-hover: var(--iw-color-border);
|
|
70
83
|
--iw-input-border-focus: var(--iw-color-border-focus);
|
|
71
84
|
--iw-input-radius: var(--iw-radius-md);
|
|
72
85
|
--iw-input-shadow-focus: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
73
86
|
|
|
74
|
-
/* App bar */
|
|
75
|
-
--iw-app-bar-bg: var(--iw-color-
|
|
87
|
+
/* App bar: a navbar on the tertiary background */
|
|
88
|
+
--iw-app-bar-bg: var(--iw-color-bg-secondary);
|
|
76
89
|
|
|
77
90
|
/* Drawer */
|
|
78
91
|
--iw-drawer-bg: var(--iw-color-surface);
|
|
79
92
|
|
|
80
93
|
/* Card */
|
|
81
94
|
--iw-card-bg: var(--iw-color-surface);
|
|
82
|
-
--iw-card-border:
|
|
83
|
-
|
|
95
|
+
--iw-card-border: color-mix(
|
|
96
|
+
in srgb,
|
|
97
|
+
var(--iw-color-black) 17.5%,
|
|
98
|
+
transparent
|
|
99
|
+
);
|
|
100
|
+
--iw-card-radius: var(--iw-radius-md);
|
|
84
101
|
--iw-card-shadow: none;
|
|
85
|
-
--iw-card-shadow-hover:
|
|
102
|
+
--iw-card-shadow-hover: var(--iw-shadow-sm);
|
|
86
103
|
|
|
87
104
|
/* Badge */
|
|
88
105
|
--iw-badge-radius: var(--iw-radius-md);
|
|
89
106
|
|
|
107
|
+
/* Chip: a pill badge in a subtle tone */
|
|
108
|
+
--iw-chip-bg: var(--iw-color-bg-tertiary);
|
|
109
|
+
|
|
90
110
|
/* List */
|
|
91
111
|
--iw-list-item: transparent;
|
|
92
112
|
--iw-list-item-selected: color-mix(
|
|
93
113
|
in srgb,
|
|
94
|
-
var(--iw-color-primary)
|
|
114
|
+
var(--iw-color-primary) 10%,
|
|
95
115
|
transparent
|
|
96
116
|
);
|
|
97
117
|
|
|
@@ -101,46 +121,493 @@
|
|
|
101
121
|
color-scheme: light;
|
|
102
122
|
}
|
|
103
123
|
|
|
104
|
-
/* Dark variant */
|
|
124
|
+
/* Dark variant: Bootstrap's dark color mode */
|
|
105
125
|
.iw-theme-bootstrap.iw-theme-dark {
|
|
106
126
|
color-scheme: dark;
|
|
107
127
|
|
|
108
128
|
--iw-color-bg: #212529;
|
|
109
|
-
--iw-color-bg-secondary: #
|
|
129
|
+
--iw-color-bg-secondary: #2b3035;
|
|
110
130
|
--iw-color-bg-tertiary: #343a40;
|
|
111
|
-
--iw-color-surface: #
|
|
112
|
-
--iw-color-surface-hover: #
|
|
113
|
-
--iw-color-surface-active: #
|
|
114
|
-
--iw-color-text: #
|
|
115
|
-
--iw-color-text-secondary:
|
|
116
|
-
--iw-color-text-muted:
|
|
131
|
+
--iw-color-surface: #212529;
|
|
132
|
+
--iw-color-surface-hover: #2b3035;
|
|
133
|
+
--iw-color-surface-active: #343a40;
|
|
134
|
+
--iw-color-text: #dee2e6;
|
|
135
|
+
--iw-color-text-secondary: rgba(222, 226, 230, 0.75);
|
|
136
|
+
--iw-color-text-muted: rgba(222, 226, 230, 0.75);
|
|
117
137
|
--iw-color-border: #495057;
|
|
118
138
|
|
|
119
|
-
|
|
120
|
-
--iw-color-
|
|
121
|
-
--iw-color-primary-active: #3c7ff3;
|
|
122
|
-
--iw-color-primary-text: var(--iw-color-black);
|
|
139
|
+
/* Buttons keep their colors; text in the primary color is lightened */
|
|
140
|
+
--iw-color-link: #6ea8fe;
|
|
123
141
|
|
|
124
|
-
--iw-
|
|
142
|
+
--iw-card-border: color-mix(in srgb, var(--iw-color-white) 15%, transparent);
|
|
143
|
+
}
|
|
125
144
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
145
|
+
.iw-theme-bootstrap {
|
|
146
|
+
/* Buttons: Bootstrap's sizes, a focus ring, and the text that reads on each
|
|
147
|
+
color */
|
|
148
|
+
.iw-button {
|
|
149
|
+
padding: 0.375rem 0.75rem;
|
|
150
|
+
font-size: 1rem;
|
|
151
|
+
line-height: 1.5;
|
|
133
152
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
153
|
+
&.iw-button-sm {
|
|
154
|
+
padding: 0.25rem 0.5rem;
|
|
155
|
+
font-size: 0.875rem;
|
|
156
|
+
border-radius: var(--iw-radius-sm);
|
|
157
|
+
}
|
|
138
158
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
159
|
+
&.iw-button-lg {
|
|
160
|
+
padding: 0.5rem 1rem;
|
|
161
|
+
font-size: 1.25rem;
|
|
162
|
+
border-radius: var(--iw-radius-lg);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.iw-button-xs {
|
|
166
|
+
padding: 0.125rem 0.375rem;
|
|
167
|
+
font-size: 0.75rem;
|
|
168
|
+
border-radius: var(--iw-radius-sm);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.iw-button-shape-pill,
|
|
172
|
+
&.iw-button-shape-round {
|
|
173
|
+
border-radius: var(--iw-radius-full);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&.iw-button-default {
|
|
177
|
+
--iw-button-bg-hover: var(--iw-color-surface-active);
|
|
178
|
+
--iw-button-bg-active: var(--iw-color-border);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&.iw-button-secondary {
|
|
182
|
+
--iw-button-color: var(--iw-color-accent);
|
|
183
|
+
--iw-button-bg: var(--iw-color-accent);
|
|
184
|
+
--iw-button-bg-hover: var(--iw-color-accent-hover);
|
|
185
|
+
--iw-button-bg-active: var(--iw-color-accent-active);
|
|
186
|
+
--iw-button-border: var(--iw-color-accent);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&.iw-button-success {
|
|
190
|
+
--iw-button-bg-active: #146c43;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&.iw-button-error {
|
|
194
|
+
--iw-button-bg-active: #b02a37;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.iw-button-warning {
|
|
198
|
+
--iw-button-bg-active: #ffcd39;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&.iw-button-info {
|
|
202
|
+
--iw-button-bg-active: #3dd5f3;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.iw-button-secondary,
|
|
206
|
+
&.iw-button-success,
|
|
207
|
+
&.iw-button-error {
|
|
208
|
+
--iw-button-text: var(--iw-color-white);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&.iw-button-warning,
|
|
212
|
+
&.iw-button-info {
|
|
213
|
+
--iw-button-text: var(--iw-color-black);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&:focus-visible {
|
|
217
|
+
outline: 0;
|
|
218
|
+
box-shadow: 0 0 0 0.25rem
|
|
219
|
+
color-mix(
|
|
220
|
+
in srgb,
|
|
221
|
+
var(--iw-button-color, var(--iw-button-bg)) 50%,
|
|
222
|
+
transparent
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Outline buttons fill with their color on hover */
|
|
227
|
+
&.iw-button-outline:hover:not(:disabled),
|
|
228
|
+
&.iw-button-outline:active:not(:disabled),
|
|
229
|
+
&.iw-button-outline.iw-button-pressed {
|
|
230
|
+
background-color: var(--iw-button-bg);
|
|
231
|
+
color: var(--iw-button-text);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.iw-button-outline:active:not(:disabled),
|
|
235
|
+
&.iw-button-outline.iw-button-pressed {
|
|
236
|
+
background-color: var(--iw-button-bg-active);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* Ghost buttons are link buttons */
|
|
240
|
+
&.iw-button-ghost {
|
|
241
|
+
text-decoration: underline;
|
|
242
|
+
|
|
243
|
+
&:hover:not(:disabled),
|
|
244
|
+
&:active:not(:disabled),
|
|
245
|
+
&.iw-button-pressed {
|
|
246
|
+
background-color: transparent;
|
|
247
|
+
color: var(--iw-button-bg-hover);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&:disabled,
|
|
252
|
+
&.iw-button-disabled {
|
|
253
|
+
opacity: 0.65;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&.iw-theme-dark .iw-button.iw-button-ghost.iw-button-primary {
|
|
258
|
+
color: var(--iw-color-link);
|
|
259
|
+
|
|
260
|
+
&:hover:not(:disabled) {
|
|
261
|
+
color: color-mix(
|
|
262
|
+
in srgb,
|
|
263
|
+
var(--iw-color-link) 80%,
|
|
264
|
+
var(--iw-color-white)
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Form controls: labels and help text at Bootstrap's sizes, and a red focus
|
|
270
|
+
ring on invalid fields */
|
|
271
|
+
.iw-input,
|
|
272
|
+
.iw-select,
|
|
273
|
+
.iw-textarea-field {
|
|
274
|
+
gap: 0;
|
|
275
|
+
|
|
276
|
+
.iw-input-label,
|
|
277
|
+
.iw-select-label,
|
|
278
|
+
.iw-textarea-label {
|
|
279
|
+
margin-bottom: 0.5rem;
|
|
280
|
+
font-size: 1rem;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.iw-input-hint,
|
|
284
|
+
.iw-input-error-message,
|
|
285
|
+
.iw-select-hint,
|
|
286
|
+
.iw-select-error-message {
|
|
287
|
+
margin-top: 0.25rem;
|
|
288
|
+
font-size: 0.875em;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.iw-input-frame,
|
|
292
|
+
.iw-select-frame {
|
|
293
|
+
padding-inline: 0.75rem;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.iw-input-frame:has(.iw-input-control-error):focus-within,
|
|
297
|
+
.iw-select-frame:has(.iw-select-control-error):focus-within {
|
|
298
|
+
box-shadow: 0 0 0 0.25rem
|
|
299
|
+
color-mix(in srgb, var(--iw-color-error) 25%, transparent);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.iw-input .iw-input-frame .iw-input-control.iw-input-md {
|
|
304
|
+
height: calc(1.5em + 0.75rem);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* Switch: an outlined track whose thumb fills in when checked */
|
|
308
|
+
.iw-switch {
|
|
309
|
+
.iw-switch-track {
|
|
310
|
+
width: 2rem;
|
|
311
|
+
height: 1rem;
|
|
312
|
+
padding: 1px;
|
|
313
|
+
border: 1px solid
|
|
314
|
+
color-mix(in srgb, var(--iw-color-text) 25%, transparent);
|
|
315
|
+
background: var(--iw-color-bg);
|
|
316
|
+
transition:
|
|
317
|
+
background-color var(--iw-transition-fast),
|
|
318
|
+
border-color var(--iw-transition-fast);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.iw-switch-thumb {
|
|
322
|
+
width: 0.75rem;
|
|
323
|
+
height: 0.75rem;
|
|
324
|
+
background: color-mix(in srgb, var(--iw-color-text) 25%, transparent);
|
|
325
|
+
box-shadow: none;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.iw-switch-input:focus-visible + .iw-switch-track {
|
|
329
|
+
border-color: var(--iw-color-border-focus);
|
|
330
|
+
box-shadow: var(--iw-input-shadow-focus);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.iw-switch-input:checked + .iw-switch-track {
|
|
334
|
+
border-color: var(--iw-switch-active-bg);
|
|
335
|
+
background: var(--iw-switch-active-bg);
|
|
336
|
+
|
|
337
|
+
.iw-switch-thumb {
|
|
338
|
+
background: var(--iw-color-white);
|
|
339
|
+
transform: translateX(calc(1rem * var(--iw-dir-sign, 1)));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
&.iw-switch-sm {
|
|
344
|
+
.iw-switch-track {
|
|
345
|
+
width: 1.75rem;
|
|
346
|
+
height: 0.875rem;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.iw-switch-thumb {
|
|
350
|
+
width: 0.625rem;
|
|
351
|
+
height: 0.625rem;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.iw-switch-input:checked + .iw-switch-track .iw-switch-thumb {
|
|
355
|
+
transform: translateX(calc(0.875rem * var(--iw-dir-sign, 1)));
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&.iw-switch-lg {
|
|
360
|
+
.iw-switch-track {
|
|
361
|
+
width: 2.5rem;
|
|
362
|
+
height: 1.25rem;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.iw-switch-thumb {
|
|
366
|
+
width: 1rem;
|
|
367
|
+
height: 1rem;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.iw-switch-input:checked + .iw-switch-track .iw-switch-thumb {
|
|
371
|
+
transform: translateX(calc(1.25rem * var(--iw-dir-sign, 1)));
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* Tabs: nav tabs, the selected one joined to the content below it */
|
|
377
|
+
.iw-tabs-list {
|
|
378
|
+
gap: 0;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.iw-tab {
|
|
382
|
+
margin-bottom: -1px;
|
|
383
|
+
padding: 0.5rem 1rem;
|
|
384
|
+
font-size: 1rem;
|
|
385
|
+
color: var(--iw-color-primary);
|
|
386
|
+
border: 1px solid transparent;
|
|
387
|
+
border-radius: var(--iw-radius-md) var(--iw-radius-md) 0 0;
|
|
388
|
+
transition:
|
|
389
|
+
color var(--iw-transition-fast),
|
|
390
|
+
border-color var(--iw-transition-fast);
|
|
391
|
+
|
|
392
|
+
&:hover {
|
|
393
|
+
color: var(--iw-color-primary-hover);
|
|
394
|
+
border-color: var(--iw-color-bg-tertiary) var(--iw-color-bg-tertiary)
|
|
395
|
+
var(--iw-color-border);
|
|
396
|
+
isolation: isolate;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.iw-tab.iw-tab-selected {
|
|
401
|
+
color: var(--iw-color-text);
|
|
402
|
+
background: var(--iw-color-bg);
|
|
403
|
+
border-color: var(--iw-color-border) var(--iw-color-border)
|
|
404
|
+
var(--iw-color-bg);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
&.iw-theme-dark .iw-tab:not(.iw-tab-selected) {
|
|
408
|
+
color: var(--iw-color-link);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/* Chips and badges: Bootstrap badges, bold and white on their color */
|
|
412
|
+
.iw-chip {
|
|
413
|
+
&.iw-chip-primary,
|
|
414
|
+
&.iw-chip-success,
|
|
415
|
+
&.iw-chip-error {
|
|
416
|
+
color: var(--iw-color-white);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
&.iw-chip-secondary {
|
|
420
|
+
background: var(--iw-color-accent);
|
|
421
|
+
color: var(--iw-color-white);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
&.iw-chip-warning,
|
|
425
|
+
&.iw-chip-info {
|
|
426
|
+
color: var(--iw-color-black);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
&.iw-chip-primary,
|
|
430
|
+
&.iw-chip-selected {
|
|
431
|
+
background: var(--iw-color-primary);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
&.iw-chip-selected {
|
|
435
|
+
color: var(--iw-color-white);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
&.iw-chip-success {
|
|
439
|
+
background: var(--iw-color-success);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&.iw-chip-warning {
|
|
443
|
+
background: var(--iw-color-warning);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
&.iw-chip-error {
|
|
447
|
+
background: var(--iw-color-error);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
&.iw-chip-info {
|
|
451
|
+
background: var(--iw-color-info);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.iw-badge {
|
|
456
|
+
font-weight: var(--iw-font-weight-bold);
|
|
457
|
+
|
|
458
|
+
&:not(.iw-badge-shape-circle, .iw-badge-shape-square) {
|
|
459
|
+
min-height: 0;
|
|
460
|
+
padding: 0.35em 0.65em;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
&.iw-badge-secondary {
|
|
464
|
+
--iw-badge-accent: var(--iw-color-accent);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
&.iw-badge-info {
|
|
468
|
+
--iw-badge-on-accent: var(--iw-color-black);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/* Cards: a header and a footer on a faint tint, ruled off from the body */
|
|
473
|
+
.iw-card-header,
|
|
474
|
+
.iw-card-footer {
|
|
475
|
+
border-color: var(--iw-card-border);
|
|
476
|
+
background-color: color-mix(in srgb, var(--iw-color-text) 3%, transparent);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* Unless given a padding of their own */
|
|
480
|
+
.iw-card-header:not([class*="iw-card-header-padding-"]),
|
|
481
|
+
.iw-card-footer:not([class*="iw-card-footer-padding-"]) {
|
|
482
|
+
padding: 0.5rem 1rem;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.iw-card-title {
|
|
486
|
+
font-size: 1.25rem;
|
|
487
|
+
font-weight: var(--iw-font-weight-medium);
|
|
488
|
+
line-height: 1.2;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/* Alerts: a subtle background, an emphasized text and a border, all in the
|
|
492
|
+
tone of the alert */
|
|
493
|
+
.iw-alert {
|
|
494
|
+
padding: 1rem;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.iw-alert-title {
|
|
498
|
+
font-weight: var(--iw-font-weight-medium);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.iw-alert-description {
|
|
502
|
+
color: inherit;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.iw-alert-filled {
|
|
506
|
+
background: color-mix(
|
|
507
|
+
in srgb,
|
|
508
|
+
var(--iw-alert-color) 20%,
|
|
509
|
+
var(--iw-color-white)
|
|
510
|
+
);
|
|
511
|
+
border-color: color-mix(
|
|
512
|
+
in srgb,
|
|
513
|
+
var(--iw-alert-color) 40%,
|
|
514
|
+
var(--iw-color-white)
|
|
515
|
+
);
|
|
516
|
+
color: color-mix(in srgb, var(--iw-alert-color) 40%, var(--iw-color-black));
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
&.iw-theme-dark .iw-alert-filled {
|
|
520
|
+
background: color-mix(
|
|
521
|
+
in srgb,
|
|
522
|
+
var(--iw-alert-color) 20%,
|
|
523
|
+
var(--iw-color-black)
|
|
524
|
+
);
|
|
525
|
+
border-color: color-mix(
|
|
526
|
+
in srgb,
|
|
527
|
+
var(--iw-alert-color) 60%,
|
|
528
|
+
var(--iw-color-black)
|
|
529
|
+
);
|
|
530
|
+
color: color-mix(in srgb, var(--iw-alert-color) 60%, var(--iw-color-white));
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.iw-alert-neutral.iw-alert-filled {
|
|
534
|
+
--iw-alert-color: var(--iw-color-accent);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/* Tables: no outer border, compact cells and bold headings */
|
|
538
|
+
.iw-table {
|
|
539
|
+
border: 0 none;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.iw-table-header-cell,
|
|
543
|
+
.iw-table-cell {
|
|
544
|
+
padding: 0.5rem;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.iw-table-header-cell {
|
|
548
|
+
font-weight: var(--iw-font-weight-bold);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.iw-table.iw-table-striped .iw-table-row-even {
|
|
552
|
+
background: color-mix(in srgb, var(--iw-color-text) 5%, transparent);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/* Dialogs: a modal with a ruled header and footer */
|
|
556
|
+
.iw-dialog {
|
|
557
|
+
border: 1px solid var(--iw-card-border);
|
|
558
|
+
border-radius: var(--iw-radius-lg);
|
|
559
|
+
box-shadow: none;
|
|
560
|
+
|
|
561
|
+
&::backdrop {
|
|
562
|
+
background: rgba(0, 0, 0, 0.5);
|
|
563
|
+
backdrop-filter: none;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.iw-dialog-surface {
|
|
568
|
+
padding: 0;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.iw-dialog-header {
|
|
572
|
+
padding: 1rem;
|
|
573
|
+
border-bottom: 1px solid var(--iw-color-border);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.iw-dialog-title {
|
|
577
|
+
font-size: 1.25rem;
|
|
578
|
+
font-weight: var(--iw-font-weight-medium);
|
|
579
|
+
line-height: 1.5;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.iw-dialog-description {
|
|
583
|
+
margin: 0;
|
|
584
|
+
padding: 1rem 1rem 0;
|
|
585
|
+
color: var(--iw-color-text);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.iw-dialog-body {
|
|
589
|
+
margin: 0;
|
|
590
|
+
padding: 1rem;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.iw-dialog-description + .iw-dialog-actions {
|
|
594
|
+
margin-top: 1rem;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.iw-dialog-actions {
|
|
598
|
+
margin-top: 0;
|
|
599
|
+
padding: 0.75rem;
|
|
600
|
+
gap: 0.5rem;
|
|
601
|
+
border-top: 1px solid var(--iw-color-border);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/* App bars: navbars, with no border */
|
|
605
|
+
.iw-app-bar {
|
|
606
|
+
border-bottom: 0 none;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.iw-app-bar-title {
|
|
610
|
+
font-size: 1.25rem;
|
|
611
|
+
font-weight: var(--iw-font-weight-normal);
|
|
612
|
+
}
|
|
146
613
|
}
|