@skeletonlabs/skeleton 5.0.0-next.4 → 5.0.0-next.5

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.
@@ -1,5 +1,8 @@
1
1
  /* Components: Typography */
2
2
 
3
+ /* Headings --- */
4
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements */
5
+
3
6
  @utility h1 {
4
7
  color: var(--typo-heading--color-light);
5
8
  font-family: var(--typo-heading--font-family);
@@ -151,6 +154,9 @@
151
154
  }
152
155
  }
153
156
 
157
+ /* Anchor --- */
158
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a */
159
+
154
160
  @utility anchor {
155
161
  color: var(--typo-anchor--color-light);
156
162
  font-family: var(--typo-anchor--font-family);
@@ -201,27 +207,44 @@
201
207
  }
202
208
  }
203
209
 
210
+ /* Blockquote --- */
211
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote */
212
+
204
213
  @utility blockquote {
205
- border-left-width: 3px;
206
- border-left-color: var(--color-primary-500);
214
+ border-left-width: 2px;
215
+ border-left-color: light-dark(var(--color-brand-light), var(--color-brand-dark));
216
+ display: flex;
217
+ flex-direction: column;
218
+ gap: --spacing(4);
207
219
  padding-left: --spacing(4);
208
220
  font-style: italic;
209
221
  }
210
222
 
223
+ /* Keyboard Input --- */
224
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd */
225
+
211
226
  @utility kbd {
212
- background-color: var(--color-surface-300-700);
227
+ background-color: var(--color-surface-100-900);
213
228
  border-width: 1px;
229
+ border-right-width: 2px;
230
+ border-bottom-width: 3px;
214
231
  border-color: var(--color-surface-600-400);
215
- border-radius: var(--radius-base);
216
- color: var(--color-surface-contrast-500);
232
+ border-radius: 4px;
233
+ color: var(--color-surface-contrast-100);
217
234
  font-family: var(--font-mono);
218
235
  font-size: var(--text-sm);
219
236
  white-space: nowrap;
220
237
  overflow-x: auto;
221
- padding-inline: --spacing(1.5);
222
- padding-block: --spacing(0.25);
238
+ padding-inline: --spacing(1.25);
239
+
240
+ @variant dark {
241
+ color: var(--color-surface-contrast-900);
242
+ }
223
243
  }
224
244
 
245
+ /* Preformatted Text --- */
246
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre */
247
+
225
248
  @utility pre {
226
249
  background-color: rgba(0, 0, 0, 0.85);
227
250
  backdrop-filter: blur(var(--blur-sm));
@@ -233,8 +256,13 @@
233
256
  overflow-x: auto;
234
257
  }
235
258
 
236
- @utility code {
237
- &:not(pre &, .ec-line &) {
259
+ /* Code --- */
260
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code */
261
+
262
+ /* Affects <code>, but not <pre><code></code></pre> */
263
+ /* This enables the use of presets-* styling for standalone <code> */
264
+ @layer base {
265
+ code {
238
266
  background-color: var(--color-primary-100-900);
239
267
  border-radius: var(--radius-base);
240
268
  color: var(--color-primary-contrast-50-950);
@@ -245,6 +273,20 @@
245
273
  padding-block: --spacing(0.75);
246
274
  overflow-x: auto;
247
275
  }
276
+
277
+ /* Reset when code is inside pre or .ec-line */
278
+ pre code,
279
+ .ec-line code {
280
+ background-color: unset;
281
+ border-radius: unset;
282
+ color: unset;
283
+ font-family: unset;
284
+ font-size: unset;
285
+ white-space: unset;
286
+ padding-inline: unset;
287
+ padding-block: unset;
288
+ overflow-x: unset;
289
+ }
248
290
  }
249
291
 
250
292
  /* Insertions / Deletions --- */
@@ -291,9 +333,59 @@
291
333
  }
292
334
  }
293
335
 
336
+ /* Mark --- */
337
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark */
338
+
294
339
  @utility mark {
295
340
  color: var(--color-tertiary-contrast-500);
296
341
  background-color: var(--color-tertiary-500);
297
342
  border-radius: var(--radius-sm);
298
343
  padding-inline: --spacing(1);
299
344
  }
345
+
346
+ /* Abbreviation --- */
347
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr */
348
+
349
+ @utility abbr {
350
+ font-weight: bold;
351
+ text-decoration: underline dotted;
352
+ text-decoration-color: var(--color-surface-600-400);
353
+ text-underline-offset: --spacing(1);
354
+ }
355
+
356
+ /* Citation --- */
357
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite */
358
+
359
+ @utility cite {
360
+ font-style: italic;
361
+ }
362
+
363
+ /* Quote --- */
364
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q */
365
+
366
+ @utility quote {
367
+ font-style: italic;
368
+ }
369
+
370
+ /* Subscript / Superscript --- */
371
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub */
372
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup */
373
+
374
+ @utility sub {
375
+ font-size: var(--text-xs);
376
+ line-height: 0;
377
+ vertical-align: sub;
378
+ }
379
+
380
+ @utility sup {
381
+ font-size: var(--text-xs);
382
+ line-height: 0;
383
+ vertical-align: super;
384
+ }
385
+
386
+ /* Time --- */
387
+ /* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time */
388
+
389
+ @utility time {
390
+ font-weight: bold;
391
+ }