@almoamendev/ngx-md3 0.0.8
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 +63 -0
- package/fesm2022/almoamendev-ngx-md3.mjs +4368 -0
- package/fesm2022/almoamendev-ngx-md3.mjs.map +1 -0
- package/package.json +40 -0
- package/src/lib/styles/md3.scss +523 -0
- package/src/lib/styles/tokens/md-border-radius.scss +12 -0
- package/src/lib/styles/tokens/md-elevation.scss +25 -0
- package/src/lib/styles/tokens/md-grid.scss +24 -0
- package/src/lib/styles/tokens/md-motion.scss +47 -0
- package/src/lib/styles/tokens/md-scheme.scss +143 -0
- package/src/lib/styles/typography/type-body.spec.ts +28 -0
- package/src/lib/styles/typography/type-body.ts +42 -0
- package/src/lib/styles/typography/type-display.spec.ts +28 -0
- package/src/lib/styles/typography/type-display.ts +42 -0
- package/src/lib/styles/typography/type-headline.spec.ts +28 -0
- package/src/lib/styles/typography/type-headline.ts +42 -0
- package/src/lib/styles/typography/type-label.spec.ts +28 -0
- package/src/lib/styles/typography/type-label.ts +42 -0
- package/src/lib/styles/typography/type-title.spec.ts +28 -0
- package/src/lib/styles/typography/type-title.ts +42 -0
- package/types/almoamendev-ngx-md3.d.ts +1298 -0
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@almoamendev/ngx-md3",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"description": "MD3-style Angular components & style library",
|
|
5
|
+
"author": "Murtadha (Hussain) Almomen",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/almoamendev/ngx-md3.git"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"angular",
|
|
13
|
+
"material design 3",
|
|
14
|
+
"components",
|
|
15
|
+
"ui"
|
|
16
|
+
],
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"@angular/cdk": "^22.0.0",
|
|
19
|
+
"@angular/common": "^22.0.0",
|
|
20
|
+
"@angular/core": "^22.0.0",
|
|
21
|
+
"@angular/forms": "^22.0.0",
|
|
22
|
+
"@angular/router": "^22.0.0"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"tslib": "^2.3.0"
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"module": "fesm2022/almoamendev-ngx-md3.mjs",
|
|
29
|
+
"typings": "types/almoamendev-ngx-md3.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
"./package.json": {
|
|
32
|
+
"default": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./types/almoamendev-ngx-md3.d.ts",
|
|
36
|
+
"default": "./fesm2022/almoamendev-ngx-md3.mjs"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"type": "module"
|
|
40
|
+
}
|
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
@import "https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Noto+Sans+Arabic:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap";
|
|
2
|
+
|
|
3
|
+
@import "https://fonts.googleapis.com/icon?family=Material+Icons";
|
|
4
|
+
@import "https://fonts.googleapis.com/icon?family=Material+Icons+Outlined";
|
|
5
|
+
@import "https://fonts.googleapis.com/icon?family=Material+Icons+Round";
|
|
6
|
+
@import "https://fonts.googleapis.com/icon?family=Material+Icons+Sharp";
|
|
7
|
+
@import "https://fonts.googleapis.com/icon?family=Material+Icons+Two+Tone";
|
|
8
|
+
|
|
9
|
+
@import "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";
|
|
10
|
+
@import "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";
|
|
11
|
+
@import "https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";
|
|
12
|
+
|
|
13
|
+
@import './tokens/md-scheme.scss';
|
|
14
|
+
@import './tokens/md-elevation.scss';
|
|
15
|
+
@import './tokens/md-motion.scss';
|
|
16
|
+
@import './tokens/md-border-radius.scss';
|
|
17
|
+
@import './tokens/md-grid.scss';
|
|
18
|
+
|
|
19
|
+
@-ms-viewport {
|
|
20
|
+
width: device-width;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
* {
|
|
24
|
+
-webkit-box-sizing: border-box;
|
|
25
|
+
-moz-box-sizing: border-box;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
|
|
28
|
+
-webkit-outline: 0;
|
|
29
|
+
-moz-outline: 0;
|
|
30
|
+
outline: 0;
|
|
31
|
+
|
|
32
|
+
font-family: "Google Sans", "Roboto", sans-serif;
|
|
33
|
+
-webkit-font-smoothing: antialiased;
|
|
34
|
+
text-rendering: optimizeLegibility;
|
|
35
|
+
-moz-osx-font-smoothing: grayscale;
|
|
36
|
+
font-feature-settings: 'liga';
|
|
37
|
+
color: inherit;
|
|
38
|
+
word-break: break-word;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
html {
|
|
42
|
+
height: 100%;
|
|
43
|
+
width: 100%;
|
|
44
|
+
|
|
45
|
+
&[lang] {
|
|
46
|
+
-webkit-text-size-adjust: 100%;
|
|
47
|
+
-ms-text-size-adjust: 100%;
|
|
48
|
+
text-size-adjust: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:lang(en-US) *, &[lang] *:lang(en-US), *:lang(en-US) {
|
|
52
|
+
font-family: 'Roboto', sans-serif;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:lang(ar-BH) *, &[lang] *:lang(ar-BH), *:lang(ar-BH) {
|
|
56
|
+
font-family: 'Noto Sans Arabic', 'Roboto', sans-serif;
|
|
57
|
+
letter-spacing: normal !important;
|
|
58
|
+
font-optical-sizing: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&[dir="ltr"] *, &[dir] *[dir="ltr"], &[dir] *[dir="ltr"] * {
|
|
62
|
+
direction: ltr;
|
|
63
|
+
}
|
|
64
|
+
&[dir="rtl"] *, &[dir] *[dir="rtl"], &[dir] *[dir="rtl"] * {
|
|
65
|
+
direction: rtl;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
body {
|
|
70
|
+
font-size: 16px;
|
|
71
|
+
text-align: start;
|
|
72
|
+
height: 100%;
|
|
73
|
+
overflow-y: auto;
|
|
74
|
+
margin: 0;
|
|
75
|
+
padding: 0;
|
|
76
|
+
color: rgb(var(--md-scheme-on-surface));
|
|
77
|
+
background-color: rgb(var(--md-scheme-surface));
|
|
78
|
+
border-color: rgb(var(--md-scheme-outline-variant));
|
|
79
|
+
|
|
80
|
+
* {
|
|
81
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
a {
|
|
86
|
+
color: rgb(var(--md-scheme-primary));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
h1, h2, h3, h4, h5, h6 {
|
|
90
|
+
margin: 0.75em 0 0.5em;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
p {
|
|
94
|
+
margin: 0.75em 0;
|
|
95
|
+
max-width: 40em;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
li {
|
|
99
|
+
max-width: 40em;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.md3-state-component {
|
|
103
|
+
position: relative;
|
|
104
|
+
--border-top-start-r: var(--border-radius, 0em);
|
|
105
|
+
--border-top-end-r: var(--border-radius, 0em);
|
|
106
|
+
--border-bottom-start-r: var(--border-radius, 0em);
|
|
107
|
+
--border-bottom-end-r: var(--border-radius, 0em);
|
|
108
|
+
|
|
109
|
+
border-start-start-radius: var(--border-top-start-r);
|
|
110
|
+
border-start-end-radius: var(--border-top-end-r);
|
|
111
|
+
border-end-start-radius: var(--border-bottom-start-r);
|
|
112
|
+
border-end-end-radius: var(--border-bottom-end-r);
|
|
113
|
+
|
|
114
|
+
&::after {
|
|
115
|
+
content: '';
|
|
116
|
+
position: absolute;
|
|
117
|
+
display: block;
|
|
118
|
+
inset: calc(var(--outline-offset, -0.125em) - var(--outline-width, 0.1875em) - var(--border-size, 0em));
|
|
119
|
+
border: var(--outline-width, 0.1875em) solid var(--outline-color, rgb(var(--md-scheme-secondary)));
|
|
120
|
+
transition: all var(--md-motion-expressive-fast-spatial-duration) var(--md-motion-expressive-fast-spatial-easing);
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
opacity: 0;
|
|
123
|
+
|
|
124
|
+
border-start-start-radius: calc(var(--border-top-start-r) + var(--outline-width, 0.1875em) + (var(--outline-offset, -0.125em) * -1));
|
|
125
|
+
border-start-end-radius: calc(var(--border-top-end-r) + var(--outline-width, 0.1875em) + (var(--outline-offset, -0.125em) * -1));
|
|
126
|
+
border-end-start-radius: calc(var(--border-bottom-start-r) + var(--outline-width, 0.1875em) + (var(--outline-offset, -0.125em) * -1));
|
|
127
|
+
border-end-end-radius: calc(var(--border-bottom-end-r) + var(--outline-width, 0.1875em) + (var(--outline-offset, -0.125em) * -1));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
> .md3-state-layer {
|
|
131
|
+
--ripple-w: 288%;
|
|
132
|
+
--ripple-x: 50%;
|
|
133
|
+
--ripple-y: 50%;
|
|
134
|
+
|
|
135
|
+
position: absolute;
|
|
136
|
+
inset: 0;
|
|
137
|
+
z-index: 0;
|
|
138
|
+
border-radius: inherit;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
transition: opacity var(--md-motion-expressive-fast-spatial-duration) var(--md-motion-expressive-fast-spatial-easing);
|
|
141
|
+
background-color: rgb(var(--state-color, --md-scheme-primary));
|
|
142
|
+
opacity: 0;
|
|
143
|
+
pointer-events: none;
|
|
144
|
+
|
|
145
|
+
&::before {
|
|
146
|
+
content: '';
|
|
147
|
+
display: block;
|
|
148
|
+
position: absolute;
|
|
149
|
+
border-radius: 100%;
|
|
150
|
+
width: var(--ripple-w);
|
|
151
|
+
height: var(--ripple-w);
|
|
152
|
+
left: var(--ripple-x);
|
|
153
|
+
top: var(--ripple-y);
|
|
154
|
+
transform: translate(-50%, -50%) scale(0);
|
|
155
|
+
background-color: rgb(var(--state-color, --md-scheme-primary));
|
|
156
|
+
opacity: 0;
|
|
157
|
+
transition: transform var(--md-motion-expressive-slow-spatial-duration) var(--md-motion-expressive-slow-spatial-easing),
|
|
158
|
+
opacity var(--md-motion-expressive-slow-spatial-duration) var(--md-motion-expressive-slow-spatial-easing);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
& ~ * {
|
|
162
|
+
z-index: 10;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&:hover {
|
|
167
|
+
.md3-state-layer {
|
|
168
|
+
opacity: 0.08;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:focus {
|
|
173
|
+
.md3-state-layer {
|
|
174
|
+
opacity: 0.1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&:not(:hover):not(:active)::after {
|
|
178
|
+
opacity: 1;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&.md3-focused::after {
|
|
183
|
+
opacity: 1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:active {
|
|
187
|
+
.md3-state-layer {
|
|
188
|
+
background-color: rgba(var(--state-color, --md-scheme-primary), 0);
|
|
189
|
+
opacity: 0.1;
|
|
190
|
+
|
|
191
|
+
&::before {
|
|
192
|
+
transform: translate(-50%, -50%) scale(2.4);
|
|
193
|
+
opacity: 1;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&.draggable:active {
|
|
199
|
+
.md3-state-layer {
|
|
200
|
+
background-color: var(--state-color, transparent);
|
|
201
|
+
opacity: 0.16;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.disabled, &:disabled {
|
|
206
|
+
cursor: default !important;
|
|
207
|
+
|
|
208
|
+
.md3-state-layer {
|
|
209
|
+
opacity: 0.1;
|
|
210
|
+
background-color: rgb(var(--state-color, --md-scheme-primary));
|
|
211
|
+
|
|
212
|
+
&::before {
|
|
213
|
+
display: none;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&::after {
|
|
218
|
+
display: none;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.md3-text-display {
|
|
224
|
+
font-family: "Google Sans", "Roboto", sans-serif;
|
|
225
|
+
font-size: 3.5625rem;
|
|
226
|
+
line-height: 1.122807em;
|
|
227
|
+
font-weight: 400;
|
|
228
|
+
letter-spacing: 0em;
|
|
229
|
+
font-style: normal;
|
|
230
|
+
font-optical-sizing: auto;
|
|
231
|
+
font-stretch: 100%;
|
|
232
|
+
|
|
233
|
+
&.md3-emphasized {
|
|
234
|
+
font-weight: 500;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&.md3-text-large {
|
|
238
|
+
font-size: 3.5625rem; // 57pt
|
|
239
|
+
line-height: 1.122807em; // 64pt
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&.md3-text-medium {
|
|
243
|
+
font-size: 2.8125rem; // 45pt
|
|
244
|
+
line-height: 1.155556em; // 52pt
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&.md3-text-small {
|
|
248
|
+
font-size: 2.25rem; // 36pt
|
|
249
|
+
line-height: 1.222222em; // 44pt
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.md3-text-headline {
|
|
254
|
+
font-family: "Google Sans", "Roboto", sans-serif;
|
|
255
|
+
font-size: 2rem;
|
|
256
|
+
line-height: 1.25em;
|
|
257
|
+
font-weight: 400;
|
|
258
|
+
letter-spacing: 0em;
|
|
259
|
+
font-style: normal;
|
|
260
|
+
font-optical-sizing: auto;
|
|
261
|
+
font-stretch: 100%;
|
|
262
|
+
|
|
263
|
+
&.md3-emphasized {
|
|
264
|
+
font-weight: 500;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
&.md3-text-large {
|
|
268
|
+
font-size: 2rem; // 32pt
|
|
269
|
+
line-height: 1.25em; // 40pt
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&.md3-text-medium {
|
|
273
|
+
font-size: 1.75rem; // 28pt
|
|
274
|
+
line-height: 1.285714em; // 36pt
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&.md3-text-small {
|
|
278
|
+
font-size: 1.5rem; // 24pt
|
|
279
|
+
line-height: 1.333333em; // 32pt
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.md3-text-title {
|
|
284
|
+
font-family: "Google Sans", "Roboto", sans-serif;
|
|
285
|
+
font-size: 1.375rem;
|
|
286
|
+
line-height: 1.272727em;
|
|
287
|
+
font-weight: 400;
|
|
288
|
+
letter-spacing: 0em;
|
|
289
|
+
font-style: normal;
|
|
290
|
+
font-optical-sizing: auto;
|
|
291
|
+
font-stretch: 100%;
|
|
292
|
+
|
|
293
|
+
&.md3-emphasized {
|
|
294
|
+
font-weight: 500;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
&.md3-text-large {
|
|
298
|
+
font-size: 1.375rem; // 22pt
|
|
299
|
+
line-height: 1.272727em; // 28pt
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
&.md3-text-medium {
|
|
303
|
+
font-size: 1rem; // 16pt
|
|
304
|
+
line-height: 1.5em; // 24pt
|
|
305
|
+
font-weight: 500;
|
|
306
|
+
|
|
307
|
+
&.md3-emphasized {
|
|
308
|
+
font-weight: 600;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
&.md3-text-small {
|
|
313
|
+
font-size: 0.875rem; // 14pt
|
|
314
|
+
line-height: 1.428571em; // 20pt
|
|
315
|
+
font-weight: 500;
|
|
316
|
+
|
|
317
|
+
&.md3-emphasized {
|
|
318
|
+
font-weight: 600;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.md3-text-body {
|
|
324
|
+
font-family: "Google Sans", "Roboto", sans-serif;
|
|
325
|
+
font-size: 1rem;
|
|
326
|
+
line-height: 1.5em;
|
|
327
|
+
font-weight: 400;
|
|
328
|
+
letter-spacing: 0em;
|
|
329
|
+
font-style: normal;
|
|
330
|
+
font-optical-sizing: auto;
|
|
331
|
+
font-stretch: 100%;
|
|
332
|
+
|
|
333
|
+
&.md3-emphasized {
|
|
334
|
+
font-weight: 500;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
&.md3-text-large {
|
|
338
|
+
font-size: 1rem; // 16pt
|
|
339
|
+
line-height: 1.5em; // 24pt
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&.md3-text-medium {
|
|
343
|
+
font-size: 0.875rem; // 14pt
|
|
344
|
+
line-height: 1.428571em; // 20pt
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
&.md3-text-small {
|
|
348
|
+
font-size: 0.75rem; // 12pt
|
|
349
|
+
line-height: 1.333333em; // 16pt
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.md3-text-label {
|
|
354
|
+
font-family: "Google Sans", "Roboto", sans-serif;
|
|
355
|
+
font-size: 0.875rem;
|
|
356
|
+
line-height: 1.428571em;
|
|
357
|
+
font-weight: 500;
|
|
358
|
+
letter-spacing: 0em;
|
|
359
|
+
font-style: normal;
|
|
360
|
+
font-optical-sizing: auto;
|
|
361
|
+
font-stretch: 100%;
|
|
362
|
+
|
|
363
|
+
&.md3-emphasized {
|
|
364
|
+
font-weight: 700;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
&.md3-text-large {
|
|
368
|
+
font-size: 0.875rem; // 14pt
|
|
369
|
+
line-height: 1.428571em; // 20pt
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
&.md3-text-medium {
|
|
373
|
+
font-size: 0.75rem; // 12pt
|
|
374
|
+
line-height: 1.333333em; // 16pt
|
|
375
|
+
letter-spacing: 0.008333em; // 0.1pt
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
&.md3-text-small {
|
|
379
|
+
font-size: 0.6875rem; // 11pt
|
|
380
|
+
line-height: 1.454545em; // 16pt
|
|
381
|
+
letter-spacing: 0.009090em; // 0.1pt
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.md3-text-display, .md3-text-headline, .md3-text-title, .md3-text-body, .md3-text-label {
|
|
386
|
+
color: inherit;
|
|
387
|
+
|
|
388
|
+
&.md3-color-on-primary {
|
|
389
|
+
color: rgb(var(--md-scheme-on-primary));
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
&.md3-color-on-primary-container {
|
|
393
|
+
color: rgb(var(--md-scheme-on-primary-container));
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
&.md3-color-on-secondary {
|
|
397
|
+
color: rgb(var(--md-scheme-on-secondary));
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
&.md3-color-on-secondary-container {
|
|
401
|
+
color: rgb(var(--md-scheme-on-secondary-container));
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
&.md3-color-on-tertiary {
|
|
405
|
+
color: rgb(var(--md-scheme-on-tertiary));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
&.md3-color-on-tertiary-container {
|
|
409
|
+
color: rgb(var(--md-scheme-on-tertiary-container));
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
&.md3-color-on-primary-fixed {
|
|
413
|
+
color: rgb(var(--md-scheme-on-primary-fixed));
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
&.md3-color-on-primary-fixed-variant {
|
|
417
|
+
color: rgb(var(--md-scheme-on-primary-fixed-variant));
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
&.md3-color-on-secondary-fixed {
|
|
421
|
+
color: rgb(var(--md-scheme-on-secondary-fixed));
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
&.md3-color-on-secondary-fixed-variant {
|
|
425
|
+
color: rgb(var(--md-scheme-on-secondary-fixed-variant));
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
&.md3-color-on-tertiary-fixed {
|
|
429
|
+
color: rgb(var(--md-scheme-on-tertiary-fixed));
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
&.md3-color-on-tertiary-fixed-variant {
|
|
433
|
+
color: rgb(var(--md-scheme-on-tertiary-fixed-variant));
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
&.md3-color-on-error {
|
|
437
|
+
color: rgb(var(--md-scheme-on-error));
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
&.md3-color-on-error-container {
|
|
441
|
+
color: rgb(var(--md-scheme-on-error-container));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
&.md3-color-on-surface {
|
|
445
|
+
color: rgb(var(--md-scheme-on-surface));
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
&.md3-color-on-surface-variant {
|
|
449
|
+
color: rgb(var(--md-scheme-on-surface-variant));
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
&.md3-color-inverse-on-surface {
|
|
453
|
+
color: rgb(var(--md-scheme-inverse-on-surface));
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
md3-divider {
|
|
458
|
+
display: block;
|
|
459
|
+
width: auto;
|
|
460
|
+
clear: both;
|
|
461
|
+
margin: 0;
|
|
462
|
+
padding: 0;
|
|
463
|
+
border-top: solid 0.0625rem rgb(var(--md-scheme-outline-variant));
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
md3-badge {
|
|
467
|
+
display: inline-block;
|
|
468
|
+
font-size: 0.6875rem;
|
|
469
|
+
font-weight: 500;
|
|
470
|
+
text-align: center;
|
|
471
|
+
min-width: 1.454545em;
|
|
472
|
+
line-height: 1.454545em;
|
|
473
|
+
letter-spacing: 0.045455em;
|
|
474
|
+
border-radius: 1.454545em;
|
|
475
|
+
margin: 0;
|
|
476
|
+
padding: 0 0.363636em;
|
|
477
|
+
background-color: rgb(var(--md-scheme-error));
|
|
478
|
+
color: rgb(var(--md-scheme-on-error));
|
|
479
|
+
|
|
480
|
+
&.md3-small {
|
|
481
|
+
padding: 0;
|
|
482
|
+
color: transparent;
|
|
483
|
+
overflow: hidden;
|
|
484
|
+
font-size: 1rem;
|
|
485
|
+
line-height: 0;
|
|
486
|
+
width: 0.375em;
|
|
487
|
+
height: 0.375em;
|
|
488
|
+
min-width: 0.375em;
|
|
489
|
+
min-height: 0.375em;
|
|
490
|
+
max-width: 0.375em;
|
|
491
|
+
max-height: 0.375em;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.md3-scrollable {
|
|
496
|
+
scrollbar-width: thin; /* Firefox */
|
|
497
|
+
scrollbar-color: rgb(var(--md-scheme-outline-variant)) transparent;
|
|
498
|
+
|
|
499
|
+
/* Chromium / Safari */
|
|
500
|
+
&::-webkit-scrollbar {
|
|
501
|
+
width: 0.5rem;
|
|
502
|
+
height: 0.5rem;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
&::-webkit-scrollbar-track {
|
|
506
|
+
background: transparent;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.md3-grid {
|
|
511
|
+
display: grid;
|
|
512
|
+
box-sizing: border-box;
|
|
513
|
+
width: 100%;
|
|
514
|
+
grid-template-columns: repeat(var(--md-grid-columns), minmax(0em, 1fr));
|
|
515
|
+
column-gap: var(--md-grid-gutter);
|
|
516
|
+
row-gap: var(--md-grid-gutter);
|
|
517
|
+
padding-inline: var(--md-grid-margin);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.md3-grid-item {
|
|
521
|
+
min-width: 0em;
|
|
522
|
+
min-height: 0em;
|
|
523
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--md-border-radius-none: 0em; // none
|
|
3
|
+
--md-border-radius-xsmall: 0.25em; // 4dp
|
|
4
|
+
--md-border-radius-small: 0.5em; // 8dp
|
|
5
|
+
--md-border-radius-medium: 0.75em; // 12dp
|
|
6
|
+
--md-border-radius-large: 1em; // 16dp
|
|
7
|
+
--md-border-radius-large-i: 1.25em; // 20dp
|
|
8
|
+
--md-border-radius-xlarge: 1.75em; // 28dp
|
|
9
|
+
--md-border-radius-xlarge-i: 2em; // 32dp
|
|
10
|
+
--md-border-radius-xxlarge: 3em; // 48dp
|
|
11
|
+
--md-border-radius-rounded: calc(50vh + 50vw); // full
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--md-shadow-0dp: rgba(var(--md-scheme-shadow), 0.2) 0 0 0 0,
|
|
3
|
+
rgba(var(--md-scheme-shadow), 0.14) 0 0 0 0,
|
|
4
|
+
rgba(var(--md-scheme-shadow), 0.12) 0 0 0 0;
|
|
5
|
+
|
|
6
|
+
--md-shadow-1dp: rgba(var(--md-scheme-shadow), 0.2) 0 0.125em 0.0625em -0.0625em,
|
|
7
|
+
rgba(var(--md-scheme-shadow), 0.14) 0 0.0625em 0.0625em 0,
|
|
8
|
+
rgba(var(--md-scheme-shadow), 0.12) 0 0.0625em 0.1875em 0;
|
|
9
|
+
|
|
10
|
+
--md-shadow-3dp: rgba(var(--md-scheme-shadow), 0.2) 0 0.1875em 0.1875em -0.125em,
|
|
11
|
+
rgba(var(--md-scheme-shadow), 0.14) 0 0.1875em 0.25em 0,
|
|
12
|
+
rgba(var(--md-scheme-shadow), 0.12) 0 0.0625em 0.5em 0;
|
|
13
|
+
|
|
14
|
+
--md-shadow-6dp: rgba(var(--md-scheme-shadow), 0.2) 0 0.1875em 0.3125em -0.0625em,
|
|
15
|
+
rgba(var(--md-scheme-shadow), 0.14) 0 0.375em 0.625em 0,
|
|
16
|
+
rgba(var(--md-scheme-shadow), 0.12) 0 0.0625em 1.125em 0;
|
|
17
|
+
|
|
18
|
+
--md-shadow-8dp: rgba(var(--md-scheme-shadow), 0.2) 0 0.3125em 0.3125em -0.1875em,
|
|
19
|
+
rgba(var(--md-scheme-shadow), 0.14) 0 0.5em 0.625em 0.0625em,
|
|
20
|
+
rgba(var(--md-scheme-shadow), 0.12) 0 0.1875em 0.875em 0.125em;
|
|
21
|
+
|
|
22
|
+
--md-shadow-12dp: rgba(var(--md-scheme-shadow), 0.2) 0 0.4375em 0.5em -0.25em,
|
|
23
|
+
rgba(var(--md-scheme-shadow), 0.14) 0 0.75em 1.0625em 0.125em,
|
|
24
|
+
rgba(var(--md-scheme-shadow), 0.12) 0 0.3125em 1.375em 0.25em;
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Responsive layout grid tokens (columns, margin, gutter).
|
|
2
|
+
// Breakpoints mirror LayoutService.widthQueries — keep both in sync.
|
|
3
|
+
:root {
|
|
4
|
+
// compact: <600dp
|
|
5
|
+
--md-grid-columns: 4;
|
|
6
|
+
--md-grid-margin: 1em; // 16dp
|
|
7
|
+
--md-grid-gutter: 1em; // 16dp
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (min-width: 37.5em) and (max-width: 74.999em) { // medium, expanded: 600-1199dp
|
|
11
|
+
:root {
|
|
12
|
+
--md-grid-columns: 8;
|
|
13
|
+
--md-grid-margin: 1.5em; // 24dp
|
|
14
|
+
--md-grid-gutter: 1.5em; // 24dp
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (min-width: 75em) { // large, extra-large: >=1200dp
|
|
19
|
+
:root {
|
|
20
|
+
--md-grid-columns: 12;
|
|
21
|
+
--md-grid-margin: 1.5em; // 24dp
|
|
22
|
+
--md-grid-gutter: 1.5em; // 24dp
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Expressive – spatial */
|
|
3
|
+
--md-motion-expressive-fast-spatial-duration: 350ms;
|
|
4
|
+
// --md-motion-expressive-fast-spatial-easing: cubic-bezier(0.42, 1.67, 0.21, 0.90);
|
|
5
|
+
--md-motion-expressive-fast-spatial-easing: cubic-bezier(0.20, 1.40, 0.20, 1.10);
|
|
6
|
+
|
|
7
|
+
--md-motion-expressive-default-spatial-duration: 500ms;
|
|
8
|
+
// --md-motion-expressive-default-spatial-easing: cubic-bezier(0.38, 1.21, 0.22, 1.00);
|
|
9
|
+
--md-motion-expressive-default-spatial-easing: cubic-bezier(0.25, 1.15, 0.20, 1.05);
|
|
10
|
+
|
|
11
|
+
--md-motion-expressive-slow-spatial-duration: 650ms;
|
|
12
|
+
// --md-motion-expressive-slow-spatial-easing: cubic-bezier(0.39, 1.29, 0.35, 0.98);
|
|
13
|
+
--md-motion-expressive-slow-spatial-easing: cubic-bezier(0.30, 1.02, 0.22, 1.00);
|
|
14
|
+
|
|
15
|
+
/* Expressive – effects */
|
|
16
|
+
--md-motion-expressive-fast-effects-duration: 150ms;
|
|
17
|
+
// --md-motion-expressive-fast-effects-easing: cubic-bezier(0.31, 0.94, 0.34, 1.00);
|
|
18
|
+
--md-motion-expressive-fast-effects-easing: cubic-bezier(0.20, 1.30, 0.30, 1.10);
|
|
19
|
+
|
|
20
|
+
--md-motion-expressive-default-effects-duration: 200ms;
|
|
21
|
+
// --md-motion-expressive-default-effects-easing: cubic-bezier(0.34, 0.80, 0.34, 1.00);
|
|
22
|
+
--md-motion-expressive-default-effects-easing: cubic-bezier(0.25, 1.10, 0.25, 1.05);
|
|
23
|
+
|
|
24
|
+
--md-motion-expressive-slow-effects-duration: 300ms;
|
|
25
|
+
// --md-motion-expressive-slow-effects-easing: cubic-bezier(0.34, 0.88, 0.34, 1.00);
|
|
26
|
+
--md-motion-expressive-slow-effects-easing: cubic-bezier(0.30, 1.02, 0.30, 1.00);
|
|
27
|
+
|
|
28
|
+
/* Standard – spatial */
|
|
29
|
+
--md-motion-standard-fast-spatial-duration: 350ms;
|
|
30
|
+
--md-motion-standard-fast-spatial-easing: cubic-bezier(0.27, 1.06, 0.18, 1.00);
|
|
31
|
+
|
|
32
|
+
--md-motion-standard-default-spatial-duration: 500ms;
|
|
33
|
+
--md-motion-standard-default-spatial-easing: cubic-bezier(0.27, 1.06, 0.18, 1.00);
|
|
34
|
+
|
|
35
|
+
--md-motion-standard-slow-spatial-duration: 750ms;
|
|
36
|
+
--md-motion-standard-slow-spatial-easing: cubic-bezier(0.27, 1.06, 0.18, 1.00);
|
|
37
|
+
|
|
38
|
+
/* Standard – effects */
|
|
39
|
+
--md-motion-standard-fast-effects-duration: 150ms;
|
|
40
|
+
--md-motion-standard-fast-effects-easing: cubic-bezier(0.31, 0.94, 0.34, 1.00);
|
|
41
|
+
|
|
42
|
+
--md-motion-standard-default-effects-duration: 200ms;
|
|
43
|
+
--md-motion-standard-default-effects-easing: cubic-bezier(0.34, 0.80, 0.34, 1.00);
|
|
44
|
+
|
|
45
|
+
--md-motion-standard-slow-effects-duration: 300ms;
|
|
46
|
+
--md-motion-standard-slow-effects-easing: cubic-bezier(0.34, 0.88, 0.34, 1.00);
|
|
47
|
+
}
|