@guillaumemmm/marquedefabrique 2.0.0 → 2.0.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.
- package/dist/css/kit.css +344 -156
- package/dist/css/variables.css +67 -29
- package/dist/js/kit.js +2 -2
- package/examples/index.html +30 -1
- package/package.json +1 -1
- package/src/kit.css +54 -0
package/dist/css/kit.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
.mdf-title4 {
|
|
6
6
|
font-weight: 700;
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
.mdf-title1 {
|
|
9
10
|
font-size: 3rem;
|
|
10
11
|
}
|
|
@@ -32,7 +33,11 @@
|
|
|
32
33
|
|
|
33
34
|
.mdf-highlighted {
|
|
34
35
|
font-weight: 700;
|
|
35
|
-
color: var(--mdf-color-primary);
|
|
36
|
+
color: var(--mdf-color-text-brand-primary-default);
|
|
37
|
+
|
|
38
|
+
&.mdf-highlighted-secondary {
|
|
39
|
+
color: var(--mdf-color-text-brand-secondary-default);
|
|
40
|
+
}
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
.mdf-muted {
|
|
@@ -41,165 +46,228 @@
|
|
|
41
46
|
|
|
42
47
|
.mdf-block {
|
|
43
48
|
padding: 1rem;
|
|
44
|
-
background-color: var(--mdf-color-
|
|
45
|
-
border-radius:
|
|
46
|
-
border:
|
|
49
|
+
background-color: var(--mdf-color-background-muted);
|
|
50
|
+
border-radius: 8px;
|
|
51
|
+
border: 1px solid var(--mdf-color-border-default);
|
|
52
|
+
box-shadow: 0px 1px 1px var(--mdf-color-transparent-300);
|
|
53
|
+
|
|
54
|
+
&.mdf-block-brand-primary {
|
|
55
|
+
background-color: var(--mdf-color-background-brand-primary);
|
|
56
|
+
border-color: var(--mdf-color-border-brand-primary);
|
|
57
|
+
}
|
|
47
58
|
|
|
48
|
-
&.mdf-block-
|
|
49
|
-
background-color: var(--mdf-color-
|
|
50
|
-
border-color: var(--mdf-color-
|
|
59
|
+
&.mdf-block-brand-secondary {
|
|
60
|
+
background-color: var(--mdf-color-background-brand-secondary);
|
|
61
|
+
border-color: var(--mdf-color-border-brand-secondary);
|
|
51
62
|
}
|
|
52
63
|
|
|
53
64
|
&.mdf-block-error {
|
|
54
|
-
background-color: var(--mdf-color-error
|
|
55
|
-
border-color: var(--mdf-color-error);
|
|
65
|
+
background-color: var(--mdf-color-background-error);
|
|
66
|
+
border-color: var(--mdf-color-border-error);
|
|
56
67
|
}
|
|
57
68
|
|
|
58
69
|
&.mdf-block-success {
|
|
59
|
-
background-color: var(--mdf-color-success
|
|
60
|
-
border-color: var(--mdf-color-success);
|
|
70
|
+
background-color: var(--mdf-color-background-success);
|
|
71
|
+
border-color: var(--mdf-color-border-success);
|
|
61
72
|
}
|
|
73
|
+
|
|
74
|
+
&.mdf-block-warning {
|
|
75
|
+
background-color: var(--mdf-color-background-warning);
|
|
76
|
+
border-color: var(--mdf-color-border-warning);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* BADGE */
|
|
81
|
+
.mdf-badge {
|
|
82
|
+
display: inline-block;
|
|
83
|
+
--background: var(--mdf-color-background-default);
|
|
84
|
+
--background-dark: hsl(from var(--background) h s calc(l - 5));
|
|
85
|
+
background: var(--background);
|
|
86
|
+
background: linear-gradient(var(--background), var(--background-dark));
|
|
87
|
+
|
|
88
|
+
padding: 5px 7px;
|
|
89
|
+
border-radius: 8px;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
box-shadow: var(--mdf-color-transparent-100) -1px -2px 0.5px inset;
|
|
62
92
|
}
|
|
63
93
|
|
|
64
|
-
/*
|
|
94
|
+
/* LINK */
|
|
65
95
|
.mdf-link {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
padding: 1px
|
|
69
|
-
border-radius:
|
|
70
|
-
|
|
71
|
-
|
|
96
|
+
display: inline;
|
|
97
|
+
line-height: 1rem;
|
|
98
|
+
padding: 1px 3px;
|
|
99
|
+
border-radius: 5px;
|
|
100
|
+
|
|
101
|
+
--color-visited: var(--mdf-color-brand-primary-muted);
|
|
102
|
+
--hover-luminosity-reduction: 5;
|
|
103
|
+
--text-luminosity-reduction: 85;
|
|
104
|
+
|
|
105
|
+
color: var(--mdf-color-text-default);
|
|
106
|
+
background-color: var(--mdf-color-background-muted);
|
|
107
|
+
|
|
108
|
+
text-decoration: underline;
|
|
109
|
+
text-underline-offset: 1.5px;
|
|
110
|
+
text-decoration-thickness: 1.5px;
|
|
111
|
+
|
|
112
|
+
&:visited {
|
|
113
|
+
background-color: var(--mdf-color-background-brand-secondary);
|
|
114
|
+
color: var(--mdf-color-text-brand-secondary);
|
|
115
|
+
}
|
|
72
116
|
|
|
73
117
|
&:hover {
|
|
74
|
-
background-color: var(--mdf-color-
|
|
118
|
+
background-color: hsl(from var(--mdf-color-background-muted) h s calc(l - 5));
|
|
119
|
+
|
|
120
|
+
&:visited {
|
|
121
|
+
background-color: hsl(from var(--mdf-color-background-brand-secondary) h s calc(l - 5));
|
|
122
|
+
}
|
|
75
123
|
}
|
|
76
124
|
|
|
77
|
-
&:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
text-decoration-color: hsl(
|
|
81
|
-
from var(--mdf-color-secondary) h s calc(l + 10)
|
|
82
|
-
);
|
|
125
|
+
&:focus-visible {
|
|
126
|
+
outline: 2px solid var(--mdf-color-outline-default);
|
|
127
|
+
outline-offset: 1px;
|
|
83
128
|
}
|
|
84
129
|
}
|
|
85
130
|
|
|
86
|
-
|
|
87
|
-
.mdf-button
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
131
|
+
/* BUTTON */
|
|
132
|
+
.mdf-button-container {
|
|
133
|
+
border: 3px solid transparent;
|
|
134
|
+
border-radius: 11px;
|
|
135
|
+
background-clip: padding-box;
|
|
136
|
+
position: relative;
|
|
137
|
+
display: inline-block;
|
|
91
138
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
line-height: 1.5rem;
|
|
100
|
-
background-color: var(--mdf-color-primary-light);
|
|
101
|
-
color: white;
|
|
102
|
-
text-decoration: none;
|
|
103
|
-
border-radius: 3px;
|
|
104
|
-
border: 2px solid var(--mdf-color-primary-light);
|
|
105
|
-
font-size: 1rem;
|
|
139
|
+
--color: var(--mdf-color-background-muted);
|
|
140
|
+
--color-dark: hsl(from var(--color) h s calc(l - 2));
|
|
141
|
+
--color-border-light: hsl(from var(--color) h s calc(l + 3));
|
|
142
|
+
--color-border-dark: hsl(from var(--color) h s calc(l - 5));
|
|
143
|
+
|
|
144
|
+
--color-border-light-2: hsl(from var(--color) h calc(s - 10) l);
|
|
145
|
+
--color-border-dark-2: hsl(from var(--color) calc(h) s calc(l - 20));
|
|
106
146
|
|
|
107
147
|
&:hover {
|
|
108
|
-
|
|
148
|
+
&:before {
|
|
149
|
+
content: '';
|
|
150
|
+
position: absolute;
|
|
151
|
+
top: 0;
|
|
152
|
+
right: 0;
|
|
153
|
+
bottom: 0;
|
|
154
|
+
left: 0;
|
|
155
|
+
z-index: -1;
|
|
156
|
+
margin: -3px;
|
|
157
|
+
border-radius: inherit;
|
|
158
|
+
background: linear-gradient(var(--color-border-light-2), var(--color-border-dark-2));
|
|
159
|
+
}
|
|
109
160
|
}
|
|
110
161
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
162
|
+
.mdf-button {
|
|
163
|
+
color: inherit;
|
|
164
|
+
background: linear-gradient(var(--color-border-light) 10%, var(--color-border-dark) 50%);
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
line-height: 1.5rem;
|
|
167
|
+
text-decoration: none;
|
|
168
|
+
border-radius: 8px;
|
|
169
|
+
box-shadow: 0px 0px 2px var(--mdf-color-transparent-300);
|
|
170
|
+
font-size: 1rem;
|
|
171
|
+
padding: 0;
|
|
172
|
+
border: none;
|
|
173
|
+
transition: box-shadow 0.2s;
|
|
174
|
+
|
|
175
|
+
.mdf-button-content {
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
margin: 5px;
|
|
179
|
+
border-radius: 5px;
|
|
180
|
+
padding: 5px 1rem;
|
|
181
|
+
background-color: var(--color);
|
|
182
|
+
transition: background-color 0.2s
|
|
117
183
|
}
|
|
118
|
-
}
|
|
119
184
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
border-color: var(--mdf-color-tertiary-light);
|
|
185
|
+
&:active {
|
|
186
|
+
box-shadow: 0px 0px 1px var(--mdf-color-transparent-200);
|
|
123
187
|
|
|
124
|
-
|
|
125
|
-
|
|
188
|
+
.mdf-button-content {
|
|
189
|
+
background-color: var(--color-dark);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&:focus-visible {
|
|
194
|
+
outline: 2px solid var(--mdf-color-outline-default);
|
|
195
|
+
outline-offset: 3px;
|
|
126
196
|
}
|
|
127
197
|
}
|
|
128
198
|
}
|
|
129
199
|
|
|
130
200
|
/* FORM */
|
|
131
|
-
.mdf-
|
|
132
|
-
.mdf-textarea:focus-visible,
|
|
133
|
-
.mdf-color:focus-visible,
|
|
134
|
-
.mdf-select:focus-visible {
|
|
135
|
-
outline: 2px solid var(--mdf-color-primary);
|
|
136
|
-
outline-offset: 3px;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.mdf-select-control {
|
|
140
|
-
display: inline-flex;
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.mdf-select {
|
|
145
|
-
display: block;
|
|
201
|
+
.mdf-select-field {
|
|
146
202
|
cursor: pointer;
|
|
147
|
-
padding: 0.375rem 2.25rem 0.375rem 0.75rem;
|
|
148
|
-
line-height: 1.5rem;
|
|
149
|
-
background-color: var(--mdf-color-primary-transparent);
|
|
150
203
|
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>");
|
|
151
204
|
background-repeat: no-repeat;
|
|
152
205
|
background-position: right 0.75rem center;
|
|
153
206
|
background-size: 16px 12px;
|
|
154
|
-
|
|
155
|
-
border-radius: 0.25rem;
|
|
207
|
+
|
|
156
208
|
-webkit-appearance: none;
|
|
157
209
|
-moz-appearance: none;
|
|
158
210
|
appearance: none;
|
|
159
|
-
|
|
160
|
-
|
|
211
|
+
|
|
212
|
+
border: 1px solid var(--mdf-color-border-muted);
|
|
213
|
+
border-radius: 8px;
|
|
214
|
+
font-size: inherit;
|
|
215
|
+
padding: 9px 12px;
|
|
216
|
+
line-height: 1.5rem;
|
|
217
|
+
background-color: var(--mdf-color-background-muted);
|
|
161
218
|
width: 250px;
|
|
219
|
+
box-shadow: 0px 1px 1px var(--mdf-color-transparent-300);
|
|
220
|
+
font-family: inherit;
|
|
221
|
+
color: inherit;
|
|
162
222
|
|
|
163
223
|
&:hover,
|
|
164
224
|
&:focus {
|
|
165
|
-
background-color: var(--mdf-color-
|
|
225
|
+
background-color: var(--mdf-color-background-default);
|
|
166
226
|
}
|
|
167
|
-
}
|
|
168
227
|
|
|
169
|
-
|
|
170
|
-
|
|
228
|
+
&:focus {
|
|
229
|
+
outline: 2px solid var(--mdf-color-outline-default);
|
|
230
|
+
outline-offset: 3px;
|
|
231
|
+
}
|
|
171
232
|
}
|
|
172
233
|
|
|
173
|
-
.mdf-input-
|
|
174
|
-
.mdf-
|
|
175
|
-
|
|
176
|
-
|
|
234
|
+
.mdf-input-label,
|
|
235
|
+
.mdf-select-label,
|
|
236
|
+
.mdf-textarea-label {
|
|
237
|
+
margin-bottom: 2px;
|
|
177
238
|
}
|
|
178
239
|
|
|
179
|
-
.mdf-input[type="text"],
|
|
180
|
-
.mdf-input[type="search"],
|
|
181
|
-
.mdf-input[type="password"],
|
|
182
|
-
.mdf-textarea {
|
|
183
|
-
border:
|
|
184
|
-
border-radius:
|
|
185
|
-
font-size:
|
|
186
|
-
padding:
|
|
240
|
+
.mdf-input-field[type="text"],
|
|
241
|
+
.mdf-input-field[type="search"],
|
|
242
|
+
.mdf-input-field[type="password"],
|
|
243
|
+
.mdf-textarea-field {
|
|
244
|
+
border: 1px solid var(--mdf-color-border-muted);
|
|
245
|
+
border-radius: 8px;
|
|
246
|
+
font-size: inherit;
|
|
247
|
+
padding: 9px 12px;
|
|
187
248
|
line-height: 1.5rem;
|
|
188
|
-
background-color: var(--mdf-color-
|
|
249
|
+
background-color: var(--mdf-color-background-muted);
|
|
189
250
|
width: 250px;
|
|
251
|
+
box-shadow: 0px 1px 1px var(--mdf-color-transparent-300);
|
|
252
|
+
font-family: inherit;
|
|
190
253
|
|
|
191
254
|
&:hover,
|
|
192
255
|
&:focus {
|
|
193
|
-
background-color: var(--mdf-color-
|
|
256
|
+
background-color: var(--mdf-color-background-default);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&:focus {
|
|
260
|
+
outline: 2px solid var(--mdf-color-outline-default);
|
|
261
|
+
outline-offset: 3px;
|
|
194
262
|
}
|
|
195
263
|
}
|
|
196
264
|
|
|
197
|
-
.mdf-textarea {
|
|
265
|
+
.mdf-textarea-field {
|
|
198
266
|
width: 320px;
|
|
199
267
|
height: 150px;
|
|
200
268
|
}
|
|
201
269
|
|
|
202
|
-
.mdf-checkbox
|
|
270
|
+
.mdf-checkbox {
|
|
203
271
|
font-size: 1rem;
|
|
204
272
|
display: flex;
|
|
205
273
|
align-items: center;
|
|
@@ -207,13 +275,14 @@
|
|
|
207
275
|
cursor: pointer;
|
|
208
276
|
}
|
|
209
277
|
|
|
210
|
-
.mdf-checkbox {
|
|
278
|
+
.mdf-checkbox-field {
|
|
211
279
|
-webkit-appearance: none;
|
|
212
280
|
appearance: none;
|
|
213
281
|
margin: 0;
|
|
214
282
|
width: 1.4em;
|
|
215
283
|
height: 1.4em;
|
|
216
|
-
border: 0.15em solid var(--mdf-color-primary);
|
|
284
|
+
border: 0.15em solid var(--mdf-color-border-brand-primary);
|
|
285
|
+
background-color: var(--mdf-color-background-brand-primary);
|
|
217
286
|
border-radius: 0.25rem;
|
|
218
287
|
padding: 0;
|
|
219
288
|
cursor: pointer;
|
|
@@ -223,90 +292,209 @@
|
|
|
223
292
|
|
|
224
293
|
&:hover,
|
|
225
294
|
&:focus {
|
|
226
|
-
background-color: var(--mdf-color-
|
|
295
|
+
background-color: var(--mdf-color-background-default);
|
|
227
296
|
}
|
|
228
297
|
}
|
|
229
298
|
|
|
230
|
-
.mdf-checkbox::before {
|
|
299
|
+
.mdf-checkbox-field::before {
|
|
231
300
|
content: "";
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
234
|
-
clip-path:
|
|
301
|
+
width: 20px;
|
|
302
|
+
height: 20px;
|
|
303
|
+
clip-path: path("M 6.9101 9.3579 C 6.4728 8.9207 5.7636 8.9207 5.3259 9.3579 S 4.8887 10.5044 5.3259 10.9421 L 7.4069 13.023 C 8.056 13.6722 9.108 13.6722 9.7571 13.023 L 10.1661 12.614 L 6.9101 9.3579 Z M 14.5261 6.6699 C 14.0888 6.2327 13.3796 6.2327 12.9419 6.6699 L 8.582 11.0299 L 10.1661 12.614 L 14.5261 8.2541 C 14.9633 7.8164 14.9633 7.1072 14.5261 6.6699 Z");
|
|
235
304
|
transform: scale(0);
|
|
236
305
|
transform-origin: bottom left;
|
|
237
|
-
box-shadow: inset 1em 1em var(--mdf-color-primary);
|
|
306
|
+
box-shadow: inset 1em 1em var(--mdf-color-text-brand-primary-default);
|
|
238
307
|
background-color: CanvasText;
|
|
239
308
|
}
|
|
240
309
|
|
|
241
|
-
.mdf-checkbox:checked::before {
|
|
310
|
+
.mdf-checkbox-field:checked::before {
|
|
242
311
|
transform: scale(1);
|
|
243
312
|
}
|
|
244
313
|
|
|
245
|
-
.mdf-checkbox:focus-visible {
|
|
246
|
-
|
|
247
|
-
outline: 2px solid var(--mdf-color-primary);
|
|
314
|
+
.mdf-checkbox-field:focus-visible {
|
|
315
|
+
outline: 2px solid var(--mdf-color-outline-default);
|
|
248
316
|
outline-offset: 3px;
|
|
249
|
-
|
|
250
|
-
&::before {
|
|
251
|
-
box-shadow: inset 1em 1em var(--mdf-color-primary);
|
|
252
|
-
}
|
|
253
317
|
}
|
|
254
318
|
|
|
255
|
-
.mdf-color
|
|
319
|
+
.mdf-color {
|
|
320
|
+
--border-radius: 8px;
|
|
321
|
+
--background: var(--mdf-color-background-muted);
|
|
322
|
+
--border: 1px solid var(--mdf-color-border-muted);
|
|
323
|
+
|
|
256
324
|
display: flex;
|
|
257
325
|
flex-direction: column;
|
|
258
|
-
width:
|
|
259
|
-
|
|
326
|
+
width: auto;
|
|
327
|
+
|
|
328
|
+
.mdf-color-label {
|
|
329
|
+
padding: 0.5rem;
|
|
330
|
+
background-color: var(--background);
|
|
331
|
+
border-bottom-left-radius: var(--border-radius);
|
|
332
|
+
border-bottom-right-radius: var(--border-radius);
|
|
333
|
+
border: var(--border);
|
|
334
|
+
box-shadow: 0px 1px 0px var(--mdf-color-transparent-300);
|
|
335
|
+
border-top: none;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.mdf-color-field {
|
|
339
|
+
appearance: none;
|
|
340
|
+
-moz-appearance: none;
|
|
341
|
+
-webkit-appearance: none;
|
|
342
|
+
background: none;
|
|
343
|
+
border: 0;
|
|
344
|
+
cursor: pointer;
|
|
345
|
+
padding: 0;
|
|
346
|
+
width: 100%;
|
|
347
|
+
height: 4rem;
|
|
348
|
+
position: relative;
|
|
349
|
+
z-index: 0;
|
|
350
|
+
border-bottom-left-radius: 0;
|
|
351
|
+
border-bottom-right-radius: 0;
|
|
352
|
+
|
|
353
|
+
&:focus {
|
|
354
|
+
border-radius: var(--border-radius);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
&::-webkit-color-swatch {
|
|
358
|
+
border-top-left-radius: var(--border-radius);
|
|
359
|
+
border-top-right-radius: var(--border-radius);
|
|
360
|
+
border-bottom-left-radius: 0;
|
|
361
|
+
border-bottom-right-radius: 0;
|
|
362
|
+
border: var(--border);
|
|
363
|
+
}
|
|
260
364
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
border-bottom-right-radius: 0.25rem;
|
|
365
|
+
&::-webkit-color-swatch-wrapper {
|
|
366
|
+
padding: 0;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
266
369
|
}
|
|
267
370
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
-
|
|
271
|
-
-
|
|
272
|
-
|
|
273
|
-
border: 0;
|
|
274
|
-
cursor: pointer;
|
|
275
|
-
padding: 0;
|
|
276
|
-
width: 100%;
|
|
277
|
-
height: 4rem;
|
|
278
|
-
position: relative;
|
|
279
|
-
z-index: 0;
|
|
280
|
-
border-bottom-left-radius: 0;
|
|
281
|
-
border-bottom-right-radius: 0;
|
|
371
|
+
/* TABLES */
|
|
372
|
+
.mdf-table {
|
|
373
|
+
border-radius: 8px;
|
|
374
|
+
border-style: hidden;
|
|
375
|
+
box-shadow: 0 1px 2px var(--mdf-color-transparent-200);
|
|
282
376
|
|
|
283
|
-
|
|
284
|
-
border-radius:
|
|
377
|
+
.mdf-th:first-child {
|
|
378
|
+
border-top-left-radius: 8px;
|
|
285
379
|
}
|
|
286
380
|
|
|
287
|
-
|
|
288
|
-
border-top-
|
|
289
|
-
border-top-right-radius: 0.25rem;
|
|
290
|
-
border-bottom-left-radius: 0;
|
|
291
|
-
border-bottom-right-radius: 0;
|
|
292
|
-
border: 2px solid black;
|
|
381
|
+
.mdf-th:last-child {
|
|
382
|
+
border-top-right-radius: 8px;
|
|
293
383
|
}
|
|
294
384
|
|
|
295
|
-
|
|
296
|
-
|
|
385
|
+
tbody>tr:last-child>td:first-child {
|
|
386
|
+
border-bottom-left-radius: 8px;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
tbody>tr:last-child>td:last-child {
|
|
390
|
+
border-bottom-right-radius: 8px;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.mdf-td,
|
|
394
|
+
.mdf-th {
|
|
395
|
+
padding: 0.5rem;
|
|
396
|
+
border: 1px solid var(--mdf-color-border-muted);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.mdf-th {
|
|
400
|
+
font-weight: 600;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.mdf-th,
|
|
404
|
+
:nth-child(even)>.mdf-td {
|
|
405
|
+
background-color: var(--mdf-color-background-muted);
|
|
406
|
+
text-align: start;
|
|
297
407
|
}
|
|
298
408
|
}
|
|
299
409
|
|
|
300
|
-
/*
|
|
301
|
-
.mdf-
|
|
302
|
-
|
|
303
|
-
padding:
|
|
304
|
-
border:
|
|
410
|
+
/* CODE */
|
|
411
|
+
.mdf-code-inline {
|
|
412
|
+
line-height: 1rem;
|
|
413
|
+
padding: 1px 3px;
|
|
414
|
+
border-radius: 5px;
|
|
415
|
+
background-color: var(--mdf-color-background-muted);
|
|
416
|
+
font-weight: 600;
|
|
417
|
+
font-family: monospace;
|
|
305
418
|
}
|
|
306
419
|
|
|
307
|
-
.mdf-
|
|
308
|
-
:
|
|
309
|
-
|
|
420
|
+
.mdf-code-block {
|
|
421
|
+
line-height: 1rem;
|
|
422
|
+
padding: 10px 1rem;
|
|
423
|
+
border-radius: 8px;
|
|
424
|
+
background-color: var(--mdf-color-background-brand-primary);
|
|
425
|
+
font-family: monospace;
|
|
426
|
+
margin: 0;
|
|
427
|
+
box-shadow: 0px 1px 1px var(--mdf-color-transparent-300);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/* QUOTE */
|
|
431
|
+
.mdf-quote {
|
|
432
|
+
padding: 1rem 2rem;
|
|
433
|
+
border-top-right-radius: 8px;
|
|
434
|
+
border-bottom-right-radius: 8px;
|
|
435
|
+
background-color: var(--mdf-color-background-brand-secondary);
|
|
436
|
+
box-shadow: 0px 1px 1px var(--mdf-color-transparent-300);
|
|
437
|
+
border-left: 5px solid var(--mdf-color-border-brand-secondary);
|
|
438
|
+
|
|
439
|
+
.mdf-quote-source {
|
|
440
|
+
margin-top: 1rem;
|
|
441
|
+
font-style: italic;
|
|
442
|
+
color: var(--mdf-color-text-muted);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* MENU */
|
|
447
|
+
.mdf-menu {
|
|
448
|
+
display: flex;
|
|
449
|
+
flex-wrap: wrap;
|
|
450
|
+
align-items: center;
|
|
451
|
+
gap: 10px;
|
|
452
|
+
|
|
453
|
+
.mdf-menu-item {
|
|
454
|
+
color: inherit;
|
|
455
|
+
text-decoration: none;
|
|
456
|
+
padding: 8px 20px;
|
|
457
|
+
border: none;
|
|
458
|
+
text-align: center;
|
|
459
|
+
display: flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
cursor: pointer;
|
|
462
|
+
background: transparent;
|
|
463
|
+
border-radius: 12px;
|
|
464
|
+
transition: border 0.2s, background 0.2s, box-shadow 0.2s;
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
.mdf-menu-item-dot {
|
|
468
|
+
width: 0;
|
|
469
|
+
height: 0;
|
|
470
|
+
display: block;
|
|
471
|
+
background-color: var(--mdf-color-text-brand-primary-default);
|
|
472
|
+
border-radius: 2px;
|
|
473
|
+
margin-right: 0;
|
|
474
|
+
transition: width 0.1s, margin-right 0.2s ease-out, background-color 0.5s;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
&:hover,
|
|
478
|
+
&.mdf-menu-item-current {
|
|
479
|
+
background: linear-gradient(var(--mdf-color-background-default), var(--mdf-color-background-muted));
|
|
480
|
+
box-shadow: 0px 1px 2px var(--mdf-color-transparent-300);
|
|
481
|
+
|
|
482
|
+
.mdf-menu-item-dot {
|
|
483
|
+
margin-right: 10px;
|
|
484
|
+
width: 8px;
|
|
485
|
+
height: 8px;
|
|
486
|
+
background-color: var(--mdf-color-text-brand-primary-muted);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
&:hover .mdf-menu-item-dot {
|
|
491
|
+
background-color: var(--mdf-color-text-brand-primary-default);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
&:active {
|
|
495
|
+
box-shadow: 0px 0px 1px var(--mdf-color-transparent-300);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
310
498
|
}
|
|
311
499
|
|
|
312
500
|
/* UTILITIES */
|
|
@@ -320,4 +508,4 @@
|
|
|
320
508
|
clip: rect(0, 0, 0, 0) !important;
|
|
321
509
|
white-space: nowrap !important;
|
|
322
510
|
border: 0 !important;
|
|
323
|
-
}
|
|
511
|
+
}
|
package/dist/css/variables.css
CHANGED
|
@@ -1,30 +1,68 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
--mdf-color-
|
|
5
|
-
--mdf-color-
|
|
6
|
-
|
|
7
|
-
--mdf-color-
|
|
8
|
-
--mdf-color-
|
|
9
|
-
--mdf-color-
|
|
10
|
-
--mdf-color-
|
|
11
|
-
|
|
12
|
-
--mdf-color-
|
|
13
|
-
--mdf-color-
|
|
14
|
-
|
|
15
|
-
--mdf-color-
|
|
16
|
-
|
|
17
|
-
--mdf-color-
|
|
18
|
-
|
|
19
|
-
--mdf-color-
|
|
20
|
-
--mdf-color-
|
|
21
|
-
--mdf-color-
|
|
22
|
-
|
|
23
|
-
--mdf-color-
|
|
24
|
-
|
|
25
|
-
--mdf-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
);
|
|
30
|
-
|
|
2
|
+
|
|
3
|
+
/* PRIMITIVES */
|
|
4
|
+
--mdf-color-grey-100: rgb(36, 36, 36);
|
|
5
|
+
--mdf-color-grey-200: rgb(51, 51, 51);
|
|
6
|
+
--mdf-color-grey-300: rgb(71, 71, 71);
|
|
7
|
+
--mdf-color-grey-400: rgb(101, 101, 101);
|
|
8
|
+
--mdf-color-grey-500: rgb(135, 135, 135);
|
|
9
|
+
--mdf-color-grey-600: rgb(170, 170, 170);
|
|
10
|
+
--mdf-color-grey-700: rgb(201, 201, 201);
|
|
11
|
+
--mdf-color-grey-800: rgb(225, 225, 225);
|
|
12
|
+
--mdf-color-grey-900: rgb(242, 242, 242);
|
|
13
|
+
--mdf-color-grey-1000: rgb(250, 250, 250);
|
|
14
|
+
|
|
15
|
+
--mdf-color-blue-100: rgb(0, 99, 192);
|
|
16
|
+
--mdf-color-blue-500: hsl(from var(--mdf-color-blue-100) h s calc(l + 20));
|
|
17
|
+
--mdf-color-blue-900: hsl(from var(--mdf-color-blue-100) h s calc(l + 60));
|
|
18
|
+
|
|
19
|
+
--mdf-color-purple-100: rgb(83, 47, 128);
|
|
20
|
+
--mdf-color-purple-500: hsl(from var(--mdf-color-purple-100) h s calc(l + 20));
|
|
21
|
+
--mdf-color-purple-900: hsl(from var(--mdf-color-purple-100) h s calc(l + 60));
|
|
22
|
+
|
|
23
|
+
--mdf-color-green-100: rgb(49, 148, 59);
|
|
24
|
+
--mdf-color-green-500: hsl(from var(--mdf-color-green-100) h s calc(l + 20));
|
|
25
|
+
--mdf-color-green-900: hsl(from var(--mdf-color-green-100) h s calc(l + 55));
|
|
26
|
+
|
|
27
|
+
--mdf-color-red-100: rgb(175, 0, 35);
|
|
28
|
+
--mdf-color-red-500: hsl(from var(--mdf-color-red-100) h s calc(l + 20));
|
|
29
|
+
--mdf-color-red-900: hsl(from var(--mdf-color-red-100) h s calc(l + 62));
|
|
30
|
+
|
|
31
|
+
--mdf-color-yellow-100: rgb(255, 207, 33);
|
|
32
|
+
--mdf-color-yellow-500: hsl(from var(--mdf-color-yellow-100) h s calc(l + 16));
|
|
33
|
+
--mdf-color-yellow-900: hsl(from var(--mdf-color-yellow-100) h s calc(l + 38));
|
|
34
|
+
|
|
35
|
+
--mdf-color-transparent-100: rgba(0, 0, 0, 0.1);
|
|
36
|
+
--mdf-color-transparent-200: rgba(0, 0, 0, 0.2);
|
|
37
|
+
--mdf-color-transparent-300: rgba(0, 0, 0, 0.3);
|
|
38
|
+
--mdf-color-transparent-500: rgba(0, 0, 0, 0.5);
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* SEMANTIC */
|
|
42
|
+
--mdf-color-text-default: var(--mdf-color-grey-100);
|
|
43
|
+
--mdf-color-text-muted: var(--mdf-color-grey-200);
|
|
44
|
+
--mdf-color-text-brand-primary-default: var(--mdf-color-blue-100);
|
|
45
|
+
--mdf-color-text-brand-primary-muted: var(--mdf-color-blue-500);
|
|
46
|
+
--mdf-color-text-brand-secondary-default: var(--mdf-color-purple-100);
|
|
47
|
+
--mdf-color-text-brand-secondary-muted: var(--mdf-color-purple-500);
|
|
48
|
+
|
|
49
|
+
--mdf-color-background-default: var(--mdf-color-grey-1000);
|
|
50
|
+
--mdf-color-background-muted: var(--mdf-color-grey-900);
|
|
51
|
+
--mdf-color-background-brand-primary: var(--mdf-color-blue-900);
|
|
52
|
+
--mdf-color-background-brand-secondary: var(--mdf-color-purple-900);
|
|
53
|
+
--mdf-color-background-error: var(--mdf-color-red-900);
|
|
54
|
+
--mdf-color-background-warning: var(--mdf-color-yellow-900);
|
|
55
|
+
--mdf-color-background-success: var(--mdf-color-green-900);
|
|
56
|
+
|
|
57
|
+
--mdf-color-border-default: var(--mdf-color-grey-700);
|
|
58
|
+
--mdf-color-border-muted: var(--mdf-color-grey-800);
|
|
59
|
+
--mdf-color-border-brand-primary: var(--mdf-color-blue-500);
|
|
60
|
+
--mdf-color-border-brand-secondary: var(--mdf-color-purple-500);
|
|
61
|
+
--mdf-color-border-error: var(--mdf-color-red-500);
|
|
62
|
+
--mdf-color-border-warning: var(--mdf-color-yellow-500);
|
|
63
|
+
--mdf-color-border-success: var(--mdf-color-green-500);
|
|
64
|
+
|
|
65
|
+
--mdf-color-outline-default: var(--mdf-color-grey-200);
|
|
66
|
+
|
|
67
|
+
--mdf-color-box-shadow-default:
|
|
68
|
+
}
|
package/dist/js/kit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const r = `.mdf-title1,.mdf-title2,.mdf-title3,.mdf-title4{font-weight:700}.mdf-title1{font-size:3rem}.mdf-title2{font-size:2.4rem}.mdf-title3{font-size:1.7rem}.mdf-title4{font-size:1.2rem}.mdf-emphasis{font-weight:700}.mdf-italic{font-style:italic}.mdf-highlighted{font-weight:700;color:var(--mdf-color-primary)}.mdf-muted{color:var(--mdf-color-text-muted)}.mdf-block{padding:1rem;background-color:var(--mdf-color-secondary-transparent);border-radius:3px;border:2px solid var(--mdf-color-secondary-transparent-2)}.mdf-block.mdf-block-info{background-color:var(--mdf-color-info-transparent);border-color:var(--mdf-color-info)}.mdf-block.mdf-block-error{background-color:var(--mdf-color-error-transparent);border-color:var(--mdf-color-error)}.mdf-block.mdf-block-success{background-color:var(--mdf-color-success-transparent);border-color:var(--mdf-color-success)}.mdf-link{color:var(--mdf-color-primary);background-color:var(--mdf-color-primary-transparent);padding:1px 2px;border-radius:3px;text-underline-offset:2px;text-decoration-color:hsl(from var(--mdf-color-primary) h s calc(l + 10))}.mdf-link:hover{background-color:var(--mdf-color-primary-transparent-2)}.mdf-link:visited{color:var(--mdf-color-secondary);background-color:var(--mdf-color-primary-transparent);text-decoration-color:hsl(from var(--mdf-color-secondary) h s calc(l + 10))}.mdf-link:focus-visible,.mdf-button:focus-visible{outline:2px solid var(--mdf-color-primary);outline-offset:3px}.mdf-button{border:none;background:none;cursor:pointer;display:flex;align-items:center;padding:.5rem 1.5rem;line-height:1.5rem;background-color:var(--mdf-color-primary-light);color:#fff;text-decoration:none;border-radius:3px;border:2px solid var(--mdf-color-primary-light);font-size:1rem}.mdf-button:hover{background-color:var(--mdf-color-primary)}.mdf-button.mdf-button-secondary{background-color:var(--mdf-color-secondary-light);border-color:var(--mdf-color-secondary-light)}.mdf-button.mdf-button-secondary:hover{background-color:var(--mdf-color-secondary)}.mdf-button.mdf-button-tertiary{background-color:var(--mdf-color-tertiary-light);border-color:var(--mdf-color-tertiary-light)}.mdf-button.mdf-button-tertiary:hover{background-color:var(--mdf-color-tertiary)}.mdf-input:focus-visible,.mdf-textarea:focus-visible,.mdf-color:focus-visible,.mdf-select:focus-visible{outline:2px solid var(--mdf-color-primary);outline-offset:3px}.mdf-select-control{display:inline-flex;flex-direction:column}.mdf-select{display:block;cursor:pointer;padding:.375rem 2.25rem .375rem .75rem;line-height:1.5rem;background-color:var(--mdf-color-primary-transparent);background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:2px solid var(--mdf-color-primary);border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:1rem;color:#000;width:250px}.mdf-select:hover,.mdf-select:focus{background-color:var(--mdf-color-primary-transparent-2)}.mdf-select:hover{background-color:var(--mdf-color-primary-transparent-2)}.mdf-input-control,.mdf-textarea-control{display:inline-flex;flex-direction:column}.mdf-input[type=text],.mdf-input[type=search],.mdf-input[type=password],.mdf-textarea{border:2px solid var(--mdf-color-primary);border-radius:.25rem;font-size:16px;padding:.375rem .75rem;line-height:1.5rem;background-color:var(--mdf-color-primary-transparent);width:250px}:is(.mdf-input[type=text],.mdf-input[type=search],.mdf-input[type=password],.mdf-textarea):hover,:is(.mdf-input[type=text],.mdf-input[type=search],.mdf-input[type=password],.mdf-textarea):focus{background-color:var(--mdf-color-primary-transparent-2)}.mdf-textarea{width:320px;height:150px}.mdf-checkbox-control{font-size:1rem;display:flex;align-items:center;gap:.5em;cursor:pointer}.mdf-checkbox{-webkit-appearance:none;appearance:none;margin:0;width:1.4em;height:1.4em;border:.15em solid var(--mdf-color-primary);border-radius:.25rem;padding:0;cursor:pointer;display:grid;place-content:center}.mdf-checkbox:hover,.mdf-checkbox:focus{background-color:var(--mdf-color-primary-transparent-2)}.mdf-checkbox:before{content:"";width:.8em;height:.8em;clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);transform:scale(0);transform-origin:bottom left;box-shadow:inset 1em 1em var(--mdf-color-primary);background-color:CanvasText}.mdf-checkbox:checked:before{transform:scale(1)}.mdf-checkbox:focus-visible{border:2px solid var(--mdf-color-primary);outline:2px solid var(--mdf-color-primary);outline-offset:3px}.mdf-checkbox:focus-visible:before{box-shadow:inset 1em 1em var(--mdf-color-primary)}.mdf-color-control{display:flex;flex-direction:column;width:8rem}.mdf-color-label{padding:.5rem;background-color:#fff;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.mdf-color{appearance:none;-moz-appearance:none;-webkit-appearance:none;background:none;border:0;cursor:pointer;padding:0;width:100%;height:4rem;position:relative;z-index:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.mdf-color:focus{border-radius:.25rem}.mdf-color::-webkit-color-swatch{border-top-left-radius:.25rem;border-top-right-radius:.25rem;border-bottom-left-radius:0;border-bottom-right-radius:0;border:2px solid black}.mdf-color::-webkit-color-swatch-wrapper{padding:0}.mdf-td,.mdf-th{padding:.5rem;border:1px solid var(--mdf-color-secondary)}.mdf-th,:nth-child(2n)>.mdf-td{background-color:var(--mdf-color-secondary-transparent)}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}`, o = ":root{--mdf-color-primary: #04675d;--mdf-color-primary-light: #048275;--mdf-color-primary-transparent: #bcecce3b;--mdf-color-primary-transparent-2: #bcecce7a;--mdf-color-secondary: #534534;--mdf-color-secondary-light: #806b53;--mdf-color-secondary-transparent: #b1a49527;--mdf-color-secondary-transparent-2: #b1a4957a;--mdf-color-tertiary: #482c68;--mdf-color-tertiary-light: #805bab;--mdf-color-tertiary-transparent: #7e6d9127;--mdf-color-tertiary-transparent-2: #7e6d917a;--mdf-color-error: #a43030;--mdf-color-error-transparent: #a4303027;--mdf-color-info: #167792;--mdf-color-info-transparent: #16779227;--mdf-color-success: #3c843f;--mdf-color-success-transparent: #3c843f27;--mdf-color-text-muted: #595959;--mdf-background-gradient: linear-gradient( 121deg, var(--mdf-color-secondary-transparent), var(--mdf-color-tertiary-transparent) 100% )}", e = '@layer reset{*{box-sizing:border-box}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}}';
|
|
1
|
+
const r = `.mdf-title1,.mdf-title2,.mdf-title3,.mdf-title4{font-weight:700}.mdf-title1{font-size:3rem}.mdf-title2{font-size:2.4rem}.mdf-title3{font-size:1.7rem}.mdf-title4{font-size:1.2rem}.mdf-emphasis{font-weight:700}.mdf-italic{font-style:italic}.mdf-highlighted{font-weight:700;color:var(--mdf-color-text-brand-primary-default)}.mdf-highlighted.mdf-highlighted-secondary{color:var(--mdf-color-text-brand-secondary-default)}.mdf-muted{color:var(--mdf-color-text-muted)}.mdf-block{padding:1rem;background-color:var(--mdf-color-background-muted);border-radius:8px;border:1px solid var(--mdf-color-border-default);box-shadow:0 1px 1px var(--mdf-color-transparent-300)}.mdf-block.mdf-block-brand-primary{background-color:var(--mdf-color-background-brand-primary);border-color:var(--mdf-color-border-brand-primary)}.mdf-block.mdf-block-brand-secondary{background-color:var(--mdf-color-background-brand-secondary);border-color:var(--mdf-color-border-brand-secondary)}.mdf-block.mdf-block-error{background-color:var(--mdf-color-background-error);border-color:var(--mdf-color-border-error)}.mdf-block.mdf-block-success{background-color:var(--mdf-color-background-success);border-color:var(--mdf-color-border-success)}.mdf-block.mdf-block-warning{background-color:var(--mdf-color-background-warning);border-color:var(--mdf-color-border-warning)}.mdf-badge{display:inline-block;--background: var(--mdf-color-background-default);--background-dark: hsl(from var(--background) h s calc(l - 5) );background:var(--background);background:linear-gradient(var(--background),var(--background-dark));padding:5px 7px;border-radius:8px;white-space:nowrap;box-shadow:var(--mdf-color-transparent-100) -1px -2px .5px inset}.mdf-link{display:inline;line-height:1rem;padding:1px 3px;border-radius:5px;--color-visited: var(--mdf-color-brand-primary-muted);--hover-luminosity-reduction: 5;--text-luminosity-reduction: 85;color:var(--mdf-color-text-default);background-color:var(--mdf-color-background-muted);text-decoration:underline;text-underline-offset:1.5px;text-decoration-thickness:1.5px}.mdf-link:visited{background-color:var(--mdf-color-background-brand-secondary);color:var(--mdf-color-text-brand-secondary)}.mdf-link:hover{background-color:hsl(from var(--mdf-color-background-muted) h s calc(l - 5))}.mdf-link:hover:visited{background-color:hsl(from var(--mdf-color-background-brand-secondary) h s calc(l - 5))}.mdf-link:focus-visible{outline:2px solid var(--mdf-color-outline-default);outline-offset:1px}.mdf-button-container{border:3px solid transparent;border-radius:11px;background-clip:padding-box;position:relative;display:inline-block;--color: var(--mdf-color-background-muted);--color-dark: hsl(from var(--color) h s calc(l - 2) );--color-border-light: hsl(from var(--color) h s calc(l + 3) );--color-border-dark: hsl(from var(--color) h s calc(l - 5) );--color-border-light-2: hsl(from var(--color) h calc(s - 10) l);--color-border-dark-2: hsl(from var(--color) h s calc(l - 20) )}.mdf-button-container:hover:before{content:"";position:absolute;inset:0;z-index:-1;margin:-3px;border-radius:inherit;background:linear-gradient(var(--color-border-light-2),var(--color-border-dark-2))}.mdf-button-container .mdf-button{color:inherit;background:linear-gradient(var(--color-border-light) 10%,var(--color-border-dark) 50%);cursor:pointer;line-height:1.5rem;text-decoration:none;border-radius:8px;box-shadow:0 0 2px var(--mdf-color-transparent-300);font-size:1rem;padding:0;border:none;transition:box-shadow .2s}.mdf-button-container .mdf-button .mdf-button-content{display:flex;align-items:center;margin:5px;border-radius:5px;padding:5px 1rem;background-color:var(--color);transition:background-color .2s}.mdf-button-container .mdf-button:active{box-shadow:0 0 1px var(--mdf-color-transparent-200)}.mdf-button-container .mdf-button:active .mdf-button-content{background-color:var(--color-dark)}.mdf-button-container .mdf-button:focus-visible{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-select-field{cursor:pointer;background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--mdf-color-border-muted);border-radius:8px;font-size:inherit;padding:9px 12px;line-height:1.5rem;background-color:var(--mdf-color-background-muted);width:250px;box-shadow:0 1px 1px var(--mdf-color-transparent-300);font-family:inherit;color:inherit}.mdf-select-field:hover,.mdf-select-field:focus{background-color:var(--mdf-color-background-default)}.mdf-select-field:focus{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-input-label,.mdf-select-label,.mdf-textarea-label{margin-bottom:2px}.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field{border:1px solid var(--mdf-color-border-muted);border-radius:8px;font-size:inherit;padding:9px 12px;line-height:1.5rem;background-color:var(--mdf-color-background-muted);width:250px;box-shadow:0 1px 1px var(--mdf-color-transparent-300);font-family:inherit}:is(.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field):hover,:is(.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field):focus{background-color:var(--mdf-color-background-default)}:is(.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field):focus{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-textarea-field{width:320px;height:150px}.mdf-checkbox{font-size:1rem;display:flex;align-items:center;gap:.5em;cursor:pointer}.mdf-checkbox-field{-webkit-appearance:none;appearance:none;margin:0;width:1.4em;height:1.4em;border:.15em solid var(--mdf-color-border-brand-primary);background-color:var(--mdf-color-background-brand-primary);border-radius:.25rem;padding:0;cursor:pointer;display:grid;place-content:center}.mdf-checkbox-field:hover,.mdf-checkbox-field:focus{background-color:var(--mdf-color-background-default)}.mdf-checkbox-field:before{content:"";width:20px;height:20px;clip-path:path("M 6.9101 9.3579 C 6.4728 8.9207 5.7636 8.9207 5.3259 9.3579 S 4.8887 10.5044 5.3259 10.9421 L 7.4069 13.023 C 8.056 13.6722 9.108 13.6722 9.7571 13.023 L 10.1661 12.614 L 6.9101 9.3579 Z M 14.5261 6.6699 C 14.0888 6.2327 13.3796 6.2327 12.9419 6.6699 L 8.582 11.0299 L 10.1661 12.614 L 14.5261 8.2541 C 14.9633 7.8164 14.9633 7.1072 14.5261 6.6699 Z");transform:scale(0);transform-origin:bottom left;box-shadow:inset 1em 1em var(--mdf-color-text-brand-primary-default);background-color:CanvasText}.mdf-checkbox-field:checked:before{transform:scale(1)}.mdf-checkbox-field:focus-visible{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-color{--border-radius: 8px;--background: var(--mdf-color-background-muted);--border: 1px solid var(--mdf-color-border-muted);display:flex;flex-direction:column;width:auto}.mdf-color .mdf-color-label{padding:.5rem;background-color:var(--background);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border:var(--border);box-shadow:0 1px 0 var(--mdf-color-transparent-300);border-top:none}.mdf-color .mdf-color-field{appearance:none;-moz-appearance:none;-webkit-appearance:none;background:none;border:0;cursor:pointer;padding:0;width:100%;height:4rem;position:relative;z-index:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.mdf-color .mdf-color-field:focus{border-radius:var(--border-radius)}.mdf-color .mdf-color-field::-webkit-color-swatch{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border:var(--border)}.mdf-color .mdf-color-field::-webkit-color-swatch-wrapper{padding:0}.mdf-table{border-radius:8px;border-style:hidden;box-shadow:0 1px 2px var(--mdf-color-transparent-200)}.mdf-table .mdf-th:first-child{border-top-left-radius:8px}.mdf-table .mdf-th:last-child{border-top-right-radius:8px}.mdf-table tbody>tr:last-child>td:first-child{border-bottom-left-radius:8px}.mdf-table tbody>tr:last-child>td:last-child{border-bottom-right-radius:8px}.mdf-table .mdf-td,.mdf-table .mdf-th{padding:.5rem;border:1px solid var(--mdf-color-border-muted)}.mdf-table .mdf-th{font-weight:600}.mdf-table .mdf-th,.mdf-table :nth-child(2n)>.mdf-td{background-color:var(--mdf-color-background-muted);text-align:start}.mdf-code-inline{line-height:1rem;padding:1px 3px;border-radius:5px;background-color:var(--mdf-color-background-muted);font-weight:600;font-family:monospace}.mdf-code-block{line-height:1rem;padding:10px 1rem;border-radius:8px;background-color:var(--mdf-color-background-brand-primary);font-family:monospace;margin:0;box-shadow:0 1px 1px var(--mdf-color-transparent-300)}.mdf-quote{padding:1rem 2rem;border-top-right-radius:8px;border-bottom-right-radius:8px;background-color:var(--mdf-color-background-brand-secondary);box-shadow:0 1px 1px var(--mdf-color-transparent-300);border-left:5px solid var(--mdf-color-border-brand-secondary)}.mdf-quote .mdf-quote-source{margin-top:1rem;font-style:italic;color:var(--mdf-color-text-muted)}.mdf-menu{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.mdf-menu .mdf-menu-item{color:inherit;text-decoration:none;padding:8px 20px;border:none;text-align:center;display:flex;align-items:center;cursor:pointer;background:transparent;border-radius:12px;transition:border .2s,background .2s,box-shadow .2s}.mdf-menu .mdf-menu-item .mdf-menu-item-dot{width:0;height:0;display:block;background-color:var(--mdf-color-text-brand-primary-default);border-radius:2px;margin-right:0;transition:width .1s,margin-right .2s ease-out,background-color .5s}.mdf-menu .mdf-menu-item:hover,.mdf-menu .mdf-menu-item.mdf-menu-item-current{background:linear-gradient(var(--mdf-color-background-default),var(--mdf-color-background-muted));box-shadow:0 1px 2px var(--mdf-color-transparent-300)}:is(.mdf-menu .mdf-menu-item:hover,.mdf-menu .mdf-menu-item.mdf-menu-item-current) .mdf-menu-item-dot{margin-right:10px;width:8px;height:8px;background-color:var(--mdf-color-text-brand-primary-muted)}.mdf-menu .mdf-menu-item:hover .mdf-menu-item-dot{background-color:var(--mdf-color-text-brand-primary-default)}.mdf-menu .mdf-menu-item:active{box-shadow:0 0 1px var(--mdf-color-transparent-300)}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}`, o = ":root{--mdf-color-grey-100: rgb(36, 36, 36);--mdf-color-grey-200: rgb(51, 51, 51);--mdf-color-grey-300: rgb(71, 71, 71);--mdf-color-grey-400: rgb(101, 101, 101);--mdf-color-grey-500: rgb(135, 135, 135);--mdf-color-grey-600: rgb(170, 170, 170);--mdf-color-grey-700: rgb(201, 201, 201);--mdf-color-grey-800: rgb(225, 225, 225);--mdf-color-grey-900: rgb(242, 242, 242);--mdf-color-grey-1000: rgb(250, 250, 250);--mdf-color-blue-100: rgb(0, 99, 192);--mdf-color-blue-500: hsl(from var(--mdf-color-blue-100) h s calc(l + 20) );--mdf-color-blue-900: hsl(from var(--mdf-color-blue-100) h s calc(l + 60) );--mdf-color-purple-100: rgb(83, 47, 128);--mdf-color-purple-500: hsl(from var(--mdf-color-purple-100) h s calc(l + 20) );--mdf-color-purple-900: hsl(from var(--mdf-color-purple-100) h s calc(l + 60) );--mdf-color-green-100: rgb(49, 148, 59);--mdf-color-green-500: hsl(from var(--mdf-color-green-100) h s calc(l + 20) );--mdf-color-green-900: hsl(from var(--mdf-color-green-100) h s calc(l + 55) );--mdf-color-red-100: rgb(175, 0, 35);--mdf-color-red-500: hsl(from var(--mdf-color-red-100) h s calc(l + 20) );--mdf-color-red-900: hsl(from var(--mdf-color-red-100) h s calc(l + 62) );--mdf-color-yellow-100: rgb(255, 207, 33);--mdf-color-yellow-500: hsl(from var(--mdf-color-yellow-100) h s calc(l + 16) );--mdf-color-yellow-900: hsl(from var(--mdf-color-yellow-100) h s calc(l + 38) );--mdf-color-transparent-100: rgba(0, 0, 0, .1);--mdf-color-transparent-200: rgba(0, 0, 0, .2);--mdf-color-transparent-300: rgba(0, 0, 0, .3);--mdf-color-transparent-500: rgba(0, 0, 0, .5);--mdf-color-text-default: var(--mdf-color-grey-100);--mdf-color-text-muted: var(--mdf-color-grey-200);--mdf-color-text-brand-primary-default: var(--mdf-color-blue-100);--mdf-color-text-brand-primary-muted: var(--mdf-color-blue-500);--mdf-color-text-brand-secondary-default: var(--mdf-color-purple-100);--mdf-color-text-brand-secondary-muted: var(--mdf-color-purple-500);--mdf-color-background-default: var(--mdf-color-grey-1000);--mdf-color-background-muted: var(--mdf-color-grey-900);--mdf-color-background-brand-primary: var(--mdf-color-blue-900);--mdf-color-background-brand-secondary: var(--mdf-color-purple-900);--mdf-color-background-error: var(--mdf-color-red-900);--mdf-color-background-warning: var(--mdf-color-yellow-900);--mdf-color-background-success: var(--mdf-color-green-900);--mdf-color-border-default: var(--mdf-color-grey-700);--mdf-color-border-muted: var(--mdf-color-grey-800);--mdf-color-border-brand-primary: var(--mdf-color-blue-500);--mdf-color-border-brand-secondary: var(--mdf-color-purple-500);--mdf-color-border-error: var(--mdf-color-red-500);--mdf-color-border-warning: var(--mdf-color-yellow-500);--mdf-color-border-success: var(--mdf-color-green-500);--mdf-color-outline-default: var(--mdf-color-grey-200);--mdf-color-box-shadow-default: }", d = '@layer reset{*{box-sizing:border-box}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}}';
|
|
2
2
|
export {
|
|
3
3
|
r as kitCss,
|
|
4
|
-
|
|
4
|
+
d as resetCss,
|
|
5
5
|
o as variablesCss
|
|
6
6
|
};
|
package/examples/index.html
CHANGED
|
@@ -282,6 +282,35 @@
|
|
|
282
282
|
</div>
|
|
283
283
|
</div>
|
|
284
284
|
|
|
285
|
+
<!-- MENU -->
|
|
286
|
+
<div class="block">
|
|
287
|
+
<h2 class="mdf-title2">Menu</h2>
|
|
288
|
+
<nav>
|
|
289
|
+
<ul class="mdf-menu">
|
|
290
|
+
<li>
|
|
291
|
+
<a href="/#" class="mdf-menu-item mdf-menu-item-current"
|
|
292
|
+
><span class="mdf-menu-item-dot"></span>Home</a
|
|
293
|
+
>
|
|
294
|
+
</li>
|
|
295
|
+
<li>
|
|
296
|
+
<a href="" class="mdf-menu-item"
|
|
297
|
+
><span class="mdf-menu-item-dot"></span>About</a
|
|
298
|
+
>
|
|
299
|
+
</li>
|
|
300
|
+
<li>
|
|
301
|
+
<a href="" class="mdf-menu-item"
|
|
302
|
+
><span class="mdf-menu-item-dot"></span>Collection</a
|
|
303
|
+
>
|
|
304
|
+
</li>
|
|
305
|
+
<li>
|
|
306
|
+
<a href="" class="mdf-menu-item"
|
|
307
|
+
><span class="mdf-menu-item-dot"></span>Contact</a
|
|
308
|
+
>
|
|
309
|
+
</li>
|
|
310
|
+
</ul>
|
|
311
|
+
</nav>
|
|
312
|
+
</div>
|
|
313
|
+
|
|
285
314
|
<!-- COLORS -->
|
|
286
315
|
<div class="block">
|
|
287
316
|
<h2 class="mdf-title2">Color</h2>
|
|
@@ -391,7 +420,7 @@
|
|
|
391
420
|
</div>
|
|
392
421
|
</main>
|
|
393
422
|
<footer class="footer">
|
|
394
|
-
<p>v2.0.
|
|
423
|
+
<p>v2.0.2</p>
|
|
395
424
|
</footer>
|
|
396
425
|
</body>
|
|
397
426
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guillaumemmm/marquedefabrique",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Marque de Fabrique is a minimalistic UI kit. It includes a set of core styles and CSS variables centralizing design elements to maintain consistency across personal projects.",
|
|
5
5
|
"main": "index.css",
|
|
6
6
|
"type": "module",
|
package/src/kit.css
CHANGED
|
@@ -443,6 +443,60 @@
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
+
/* MENU */
|
|
447
|
+
.mdf-menu {
|
|
448
|
+
display: flex;
|
|
449
|
+
flex-wrap: wrap;
|
|
450
|
+
align-items: center;
|
|
451
|
+
gap: 10px;
|
|
452
|
+
|
|
453
|
+
.mdf-menu-item {
|
|
454
|
+
color: inherit;
|
|
455
|
+
text-decoration: none;
|
|
456
|
+
padding: 8px 20px;
|
|
457
|
+
border: none;
|
|
458
|
+
text-align: center;
|
|
459
|
+
display: flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
cursor: pointer;
|
|
462
|
+
background: transparent;
|
|
463
|
+
border-radius: 12px;
|
|
464
|
+
transition: border 0.2s, background 0.2s, box-shadow 0.2s;
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
.mdf-menu-item-dot {
|
|
468
|
+
width: 0;
|
|
469
|
+
height: 0;
|
|
470
|
+
display: block;
|
|
471
|
+
background-color: var(--mdf-color-text-brand-primary-default);
|
|
472
|
+
border-radius: 2px;
|
|
473
|
+
margin-right: 0;
|
|
474
|
+
transition: width 0.1s, margin-right 0.2s ease-out, background-color 0.5s;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
&:hover,
|
|
478
|
+
&.mdf-menu-item-current {
|
|
479
|
+
background: linear-gradient(var(--mdf-color-background-default), var(--mdf-color-background-muted));
|
|
480
|
+
box-shadow: 0px 1px 2px var(--mdf-color-transparent-300);
|
|
481
|
+
|
|
482
|
+
.mdf-menu-item-dot {
|
|
483
|
+
margin-right: 10px;
|
|
484
|
+
width: 8px;
|
|
485
|
+
height: 8px;
|
|
486
|
+
background-color: var(--mdf-color-text-brand-primary-muted);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
&:hover .mdf-menu-item-dot {
|
|
491
|
+
background-color: var(--mdf-color-text-brand-primary-default);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
&:active {
|
|
495
|
+
box-shadow: 0px 0px 1px var(--mdf-color-transparent-300);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
446
500
|
/* UTILITIES */
|
|
447
501
|
.visually-hidden {
|
|
448
502
|
position: absolute !important;
|