@anyblades/blades 3.1.0-alpha.2 → 3.1.0-beta.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.
Files changed (87) hide show
  1. package/README.md +46 -15
  2. package/css/blades.css +158 -597
  3. package/css/blades.min.css +38 -12
  4. package/css/blades.ninja.css +4057 -0
  5. package/css/blades.ninja.min.css +190 -0
  6. package/css/float-label.css +207 -0
  7. package/css/float-label.min.css +55 -0
  8. package/css/{pico.layered.css → layered/blades.layered.css} +441 -16
  9. package/css/{pico.layered.min.css → layered/blades.layered.min.css} +74 -8
  10. package/css/layered/compact.css +54 -0
  11. package/css/layered/components/accordion.css +85 -0
  12. package/css/layered/components/card.css +48 -0
  13. package/css/layered/components/dropdown.css +191 -0
  14. package/css/layered/components/group.css +208 -0
  15. package/css/layered/components/loading.css +43 -0
  16. package/css/layered/components/modal.css +158 -0
  17. package/css/layered/components/nav.css +117 -0
  18. package/css/layered/components/progress.css +76 -0
  19. package/css/layered/components/tooltip.css +176 -0
  20. package/css/layered/components.css +1082 -0
  21. package/css/layered/content/button.css +208 -0
  22. package/css/layered/content/code.css +64 -0
  23. package/css/layered/content/embedded-content.css +41 -0
  24. package/css/layered/content/figure.css +15 -0
  25. package/css/layered/content/link.css +84 -0
  26. package/css/layered/content/misc.css +22 -0
  27. package/css/layered/content/table.css +33 -0
  28. package/css/layered/content/typography.css +159 -0
  29. package/css/layered/content.css +611 -0
  30. package/css/layered/forms/basics.css +338 -0
  31. package/css/layered/forms/checkbox-radio-switch.css +164 -0
  32. package/css/layered/forms/input-color.css +20 -0
  33. package/css/layered/forms/input-datetime.css +57 -0
  34. package/css/layered/forms/input-file.css +29 -0
  35. package/css/layered/forms/input-range.css +121 -0
  36. package/css/layered/forms/input-search.css +66 -0
  37. package/css/layered/forms.css +778 -0
  38. package/css/layered/layout/container.css +42 -0
  39. package/css/layered/layout/document.css +48 -0
  40. package/css/layered/layout/grid.css +22 -0
  41. package/css/layered/layout/landmarks.css +12 -0
  42. package/css/layered/layout/overflow-auto.css +9 -0
  43. package/css/layered/layout/section.css +9 -0
  44. package/css/layered/layout.css +119 -0
  45. package/css/layered/utilities.css +35 -0
  46. package/css/layered/variables.css +365 -0
  47. package/css/pico.conditional.css +16 -15
  48. package/css/pico.conditional.min.css +7 -7
  49. package/css/pico.css +16 -15
  50. package/css/pico.min.css +7 -7
  51. package/package.json +15 -11
  52. package/src/_compact.css +51 -0
  53. package/src/blades/_index.css +23 -0
  54. package/src/blades/float-label/_index.css +2 -0
  55. package/src/{standalone/forms/_float-label.theme.css → blades/float-label/_theme.css} +5 -1
  56. package/src/blades.css +3 -2
  57. package/src/blades.ninja.css +3 -0
  58. package/src/float-label.css +1 -0
  59. package/src/ninja/_index.css +19 -0
  60. package/src/{standalone → ninja}/_theme.css +0 -2
  61. package/src/{ninja.css → ninja/_utilities.css} +55 -6
  62. package/src/pico/_variables.css +6 -5
  63. package/src/pico/content/_button.css +1 -1
  64. package/src/pico/layout/_document.css +9 -0
  65. package/src/pico/layout/_index.css +0 -1
  66. package/src/pico/layout/_landmarks.css +1 -9
  67. package/src/pico.css +1 -0
  68. package/css/blades.standalone.css +0 -860
  69. package/css/blades.standalone.min.css +0 -37
  70. package/css/ninja.css +0 -83
  71. package/css/ninja.min.css +0 -5
  72. package/src/blades.standalone.css +0 -2
  73. package/src/standalone/_core.css +0 -32
  74. package/src/standalone/_utilities.css +0 -55
  75. package/src/standalone/forms/_float-label.css +0 -2
  76. /package/src/{standalone/content → blades}/_code.css +0 -0
  77. /package/src/{standalone/layout → blades}/_columns.css +0 -0
  78. /package/src/{standalone/components/_icon-helper.css → blades/_icon.css} +0 -0
  79. /package/src/{standalone/components → blades}/_timeline.css +0 -0
  80. /package/src/{standalone → blades}/_variables.css +0 -0
  81. /package/src/{standalone/forms/_float-label.core.css → blades/float-label/_core.css} +0 -0
  82. /package/src/{standalone/layout/_breakout.css → ninja/_container-breakout.css} +0 -0
  83. /package/src/{standalone/content/_typography.css → ninja/_heading-anchor.css} +0 -0
  84. /package/src/{standalone/content/_list.css → ninja/_list-helpers.css} +0 -0
  85. /package/src/{standalone/layout/_scroller.css → ninja/_page-anchors.css} +0 -0
  86. /package/src/{standalone/content/_table.css → ninja/_table-helpers.css} +0 -0
  87. /package/src/{standalone/content → ninja}/_table-responsive.css +0 -0
@@ -1,5 +1,9 @@
1
- @layer pico {
1
+ @layer blades {
2
2
  /*!
3
+ * Blades CSS v3 with Pico CSS 🥷✨
4
+ * Copyright 2026 (https://blades.ninja/)
5
+ * Licensed under MIT
6
+ *//*!
3
7
  * Blades CSS' Pico fork v2.5 🥷✨
4
8
  * Copyright 2019-2025 (https://picocss.com)
5
9
  * Copyright 2026 (https://blades.ninja/css/pico/)
@@ -231,7 +235,8 @@ details summary[role="button"]:not(.outline)::after {
231
235
  --pico-primary-hover-background: light-dark(#02659a, #017fc0);
232
236
  --pico-primary-hover-border: var(--pico-primary-hover-background);
233
237
  --pico-primary-hover-underline: var(--pico-primary-hover);
234
- --pico-primary-focus: light-dark(rgba(2, 154, 232, 0.5), rgba(1, 170, 255, 0.375));
238
+ /* Focus rings are opaque: at 25–50% alpha they composite below 3:1 (SC 1.4.11), see #167 */
239
+ --pico-primary-focus: light-dark(rgb(2, 138, 212), rgb(1, 170, 255));
235
240
  --pico-primary-inverse: #fff;
236
241
  --pico-secondary: light-dark(#5d6b89, #969eaf);
237
242
  --pico-secondary-background: #525f7a;
@@ -241,7 +246,7 @@ details summary[role="button"]:not(.outline)::after {
241
246
  --pico-secondary-hover-background: light-dark(#48536b, #5d6b89);
242
247
  --pico-secondary-hover-border: var(--pico-secondary-hover-background);
243
248
  --pico-secondary-hover-underline: var(--pico-secondary-hover);
244
- --pico-secondary-focus: light-dark(rgba(93, 107, 137, 0.25), rgba(144, 158, 190, 0.25));
249
+ --pico-secondary-focus: light-dark(rgb(93, 107, 137), rgb(144, 158, 190));
245
250
  --pico-secondary-inverse: #fff;
246
251
  --pico-contrast: light-dark(#181c25, #dfe3eb);
247
252
  --pico-contrast-background: light-dark(#181c25, #eff1f4);
@@ -254,7 +259,7 @@ details summary[role="button"]:not(.outline)::after {
254
259
  var(--pico-secondary-hover),
255
260
  var(--pico-contrast-hover)
256
261
  );
257
- --pico-contrast-focus: light-dark(rgba(93, 107, 137, 0.25), rgba(207, 213, 226, 0.25));
262
+ --pico-contrast-focus: light-dark(rgb(93, 107, 137), rgb(207, 213, 226));
258
263
  --pico-contrast-inverse: light-dark(#fff, #000);
259
264
  --pico-box-shadow: 0 0.5rem 2.5rem light-dark(rgba(129, 145, 181, 0.2), rgba(7, 8.5, 12, 0.2));
260
265
  --pico-h1-color: light-dark(#2d3138, #f0f1f3);
@@ -288,11 +293,11 @@ details summary[role="button"]:not(.outline)::after {
288
293
  --pico-form-element-disabled-opacity: 0.5;
289
294
  --pico-form-element-invalid-border-color: light-dark(
290
295
  rgb(183.5, 105.5, 106.5),
291
- rgb(149.5, 74, 80)
296
+ rgb(200.25, 79.25, 72.25)
292
297
  );
293
298
  --pico-form-element-invalid-active-border-color: light-dark(
294
299
  rgb(200.25, 79.25, 72.25),
295
- rgb(183.25, 63.5, 59)
300
+ rgb(214, 92, 86)
296
301
  );
297
302
  --pico-form-element-invalid-focus-color: var(--pico-form-element-invalid-active-border-color);
298
303
  --pico-form-element-valid-border-color: light-dark(rgb(76, 154.5, 137.5), #2a7b6f);
@@ -403,9 +408,6 @@ progress,
403
408
  tab-size: 4;
404
409
  }
405
410
 
406
- /**
407
- * Landmarks
408
- */
409
411
  body {
410
412
  width: 100%;
411
413
  margin: 0;
@@ -415,12 +417,6 @@ main {
415
417
  display: block;
416
418
  }
417
419
 
418
- body > header,
419
- body > main,
420
- body > footer {
421
- padding-block: var(--pico-block-spacing-vertical);
422
- }
423
-
424
420
  /**
425
421
  * Section
426
422
  */
@@ -764,7 +760,7 @@ button,
764
760
  background-color: var(--pico-background-color);
765
761
  box-shadow: var(--pico-box-shadow);
766
762
  color: var(--pico-color);
767
- font-weight: var(--pico-font-weight);
763
+ font-weight: var(--pico-button-font-weight, var(--pico-font-weight));
768
764
  font-size: 1rem;
769
765
  line-height: var(--pico-line-height);
770
766
  text-align: center;
@@ -2986,5 +2982,434 @@ progress::-moz-progress-bar {
2986
2982
  transition-duration: 0s !important;
2987
2983
  }
2988
2984
  }
2985
+ /*!
2986
+ * Blades CSS standalone kit v3 🥷
2987
+ * Copyright 2026 (https://blades.ninja/css/standalone/)
2988
+ * Licensed under MIT
2989
+ */
2990
+ /*\3c !--section:code-->```css */
2991
+
2992
+ /* Follows https://github.com/picocss/pico/blob/main/scss/_index.scss */
2993
+
2994
+ :scope,
2995
+ :host {
2996
+ /**
2997
+ * Design Tokens !!! NAMING NOT FINALIZED YET !!!
2998
+ * `--in-pico: *` props below are for reference only (not to be used)
2999
+ */
3000
+ --blades-token-primary: var(--pico-primary, dodgerblue);
3001
+ --in-pico: #01aaff;
3002
+ --blades-token-secondary: var(--pico-secondary, lightslategray);
3003
+ --in-pico: #969eaf;
3004
+
3005
+ /**
3006
+ * Inherited Variables
3007
+ */
3008
+ --blades-timeline-border-color: color-mix(
3009
+ in srgb,
3010
+ var(--blades-token-secondary) 50%,
3011
+ transparent
3012
+ );
3013
+ }
3014
+
3015
+ /* Layout */
3016
+
3017
+ /*\3c !--section:docs-->
3018
+
3019
+ `.columns` automatically creates columns with at least 30 characters each:
3020
+
3021
+ <article class="columns">
3022
+ <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p>
3023
+ </article>
3024
+
3025
+ The smaller the font size, the more columns will be created:
3026
+
3027
+ <article class="columns" style="font-size: 65%">
3028
+ <p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p>
3029
+ </article>
3030
+
3031
+ Useful for tables of contents and long lists.
3032
+
3033
+ \3c !--section:code-->
3034
+ ```css */
3035
+ .columns {
3036
+ -moz-columns: 25ch auto;
3037
+ columns: 25ch auto; /* common container 65ch / 25ch => 2 columns max, with a buffer for list paddings */
3038
+ }
3039
+ /* Avoid breaking inside elements, such as nested lists */
3040
+ .columns > * {
3041
+ -moz-column-break-inside: avoid;
3042
+ break-inside: avoid;
3043
+ }
3044
+ /* Content */
3045
+ /*\3c !--section:docs-->
3046
+
3047
+ The `<pre><code>` blocks are Prism-compatible and support captions via `data-caption="..."` attribute:
3048
+
3049
+ ```treeview {data-caption="Blades CSS ships:"}
3050
+ /css/
3051
+ ├── blades.css (Pico CSS successor)
3052
+ ├── blades.standalone.css (framework-agnostic)
3053
+ ├── ninja.css (experimental add-ons)
3054
+ └── pico.css (underlying fork)
3055
+ ```
3056
+
3057
+ \3c !--section:code-->
3058
+ ```css */
3059
+ @media (width < 768px) {
3060
+ pre {
3061
+ border-radius: 0
3062
+ }
3063
+ }
3064
+
3065
+ /* Code block caption via data-attr (to display filename, etc.) */
3066
+
3067
+ code[data-caption]::before {
3068
+ display: block;
3069
+ margin-bottom: 1rem;
3070
+ content: attr(data-caption);
3071
+ font-style: italic;
3072
+ opacity: 50%;
3073
+ }
3074
+
3075
+ /* Forms */
3076
+
3077
+ /*!
3078
+ * Float Label CSS v2 by Blades CSS 🥷🏷️
3079
+ * Copyright 2016–2026 (https://blades.ninja/css/float-label/)
3080
+ * Licensed under MIT
3081
+ */
3082
+ /*\3c !--section:docs-->
3083
+
3084
+ First, we target either:
3085
+ 1. `<label>` which `:has` inner form inputs (classless approach)
3086
+ 2. or explicit `.has-float-label` class (explicit approach)
3087
+
3088
+ ```css */
3089
+ label:has(> span):has(
3090
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3091
+ textarea,
3092
+ select
3093
+ ),
3094
+ .has-float-label {
3095
+ display: block;
3096
+ position: relative;
3097
+ /*```
3098
+ Finally, we detect if placeholder is shown, but not in focus. That means we can safely hide it, and enlarge the float label instead:
3099
+ ```css */
3100
+ }
3101
+ /*```
3102
+ Then, we define the default/fallback state (when the float label should be minimized):
3103
+ ```css */
3104
+ label:has(> span):has(
3105
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3106
+ textarea,
3107
+ select
3108
+ ) > span,
3109
+ label:has(> span):has(
3110
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3111
+ textarea,
3112
+ select
3113
+ ) label,
3114
+ .has-float-label > span,
3115
+ .has-float-label label {
3116
+ position: absolute;
3117
+ top: 0;
3118
+ left: 0;
3119
+ font-size: 75%;
3120
+ cursor: text;
3121
+ }
3122
+ label:has(> span):has(
3123
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3124
+ textarea,
3125
+ select
3126
+ ) *:placeholder-shown:not(:focus)::-moz-placeholder, .has-float-label *:placeholder-shown:not(:focus)::-moz-placeholder {
3127
+ opacity: 0;
3128
+ }
3129
+ label:has(> span):has(
3130
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3131
+ textarea,
3132
+ select
3133
+ ) *:-moz-placeholder:not(:focus)::placeholder, .has-float-label *:-moz-placeholder:not(:focus)::placeholder {
3134
+ opacity: 0;
3135
+ }
3136
+ label:has(> span):has(
3137
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3138
+ textarea,
3139
+ select
3140
+ ) *:placeholder-shown:not(:focus)::placeholder, .has-float-label *:placeholder-shown:not(:focus)::placeholder {
3141
+ opacity: 0;
3142
+ }
3143
+ label:has(> span):has(
3144
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3145
+ textarea,
3146
+ select
3147
+ ):has(*:-moz-placeholder:not(:focus)) > span, label:has(> span):has(
3148
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3149
+ textarea,
3150
+ select
3151
+ ):has(*:-moz-placeholder:not(:focus)) label, .has-float-label:has(*:-moz-placeholder:not(:focus)) > span, .has-float-label:has(*:-moz-placeholder:not(:focus)) label {
3152
+ font-size: inherit;
3153
+ opacity: 50%;
3154
+ }
3155
+ label:has(> span):has(
3156
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3157
+ textarea,
3158
+ select
3159
+ ):has(*:placeholder-shown:not(:focus)) > span,
3160
+ label:has(> span):has(
3161
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3162
+ textarea,
3163
+ select
3164
+ ):has(*:placeholder-shown:not(:focus)) label,
3165
+ .has-float-label:has(*:placeholder-shown:not(:focus)) > span,
3166
+ .has-float-label:has(*:placeholder-shown:not(:focus)) label {
3167
+ font-size: inherit;
3168
+ opacity: 50%;
3169
+ }
3170
+ /*```
3171
+
3172
+ The `:has(*:placeholder-shown:not(:focus))` trick allows this input state information to *propagate* to the parent level. This enables modern CSS to target inner float label (`<span>` or `<label>`) regardless of its position relative to the input field.
3173
+
3174
+ Historically, this was not possible: the float label had to be placed after the input field to be targeted using the `input:focus + label` selector.
3175
+
3176
+ */
3177
+ label:has(> span):has(
3178
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3179
+ textarea,
3180
+ select
3181
+ ),
3182
+ .has-float-label {
3183
+
3184
+ /* Enlarged state */
3185
+ }
3186
+ /* Default/fallback state */
3187
+ label:has(> span):has(
3188
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3189
+ textarea,
3190
+ select
3191
+ ) > span,
3192
+ label:has(> span):has(
3193
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3194
+ textarea,
3195
+ select
3196
+ ) label,
3197
+ .has-float-label > span,
3198
+ .has-float-label label {
3199
+ padding-inline-start: calc(1rem + 1px); /* match Pico's padding + border */
3200
+ padding-block-start: 0.25rem;
3201
+ opacity: 75%;
3202
+ transition: all 0.25s;
3203
+ }
3204
+ label:has(> span):has(
3205
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3206
+ textarea,
3207
+ select
3208
+ ) input,
3209
+ label:has(> span):has(
3210
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3211
+ textarea,
3212
+ select
3213
+ ) textarea,
3214
+ label:has(> span):has(
3215
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3216
+ textarea,
3217
+ select
3218
+ ) select,
3219
+ .has-float-label input,
3220
+ .has-float-label textarea,
3221
+ .has-float-label select {
3222
+ margin-block-start: 0; /* reset Pico */
3223
+ padding-inline-start: 1rem; /* match Pico */
3224
+ padding-block: 1.125rem 0.375rem; /* match Pico's total: 2 x 0.75rem = 1.5rem */
3225
+ }
3226
+ label:has(> span):has(
3227
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3228
+ textarea,
3229
+ select
3230
+ ) input::-moz-placeholder, label:has(> span):has(
3231
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3232
+ textarea,
3233
+ select
3234
+ ) textarea::-moz-placeholder, label:has(> span):has(
3235
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3236
+ textarea,
3237
+ select
3238
+ ) select::-moz-placeholder, .has-float-label input::-moz-placeholder, .has-float-label textarea::-moz-placeholder, .has-float-label select::-moz-placeholder {
3239
+ opacity: 100%;
3240
+ -moz-transition: all 0.25s;
3241
+ transition: all 0.25s;
3242
+ }
3243
+ label:has(> span):has(
3244
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3245
+ textarea,
3246
+ select
3247
+ ) input::placeholder, label:has(> span):has(
3248
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3249
+ textarea,
3250
+ select
3251
+ ) textarea::placeholder, label:has(> span):has(
3252
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3253
+ textarea,
3254
+ select
3255
+ ) select::placeholder, .has-float-label input::placeholder, .has-float-label textarea::placeholder, .has-float-label select::placeholder {
3256
+ opacity: 100%;
3257
+ transition: all 0.25s;
3258
+ }
3259
+ label:has(> span):has(
3260
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3261
+ textarea,
3262
+ select
3263
+ ):has(*:-moz-placeholder:not(:focus)) > span, label:has(> span):has(
3264
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3265
+ textarea,
3266
+ select
3267
+ ):has(*:-moz-placeholder:not(:focus)) label, .has-float-label:has(*:-moz-placeholder:not(:focus)) > span, .has-float-label:has(*:-moz-placeholder:not(:focus)) label {
3268
+ padding-block: 0.75rem; /* match Pico */
3269
+ }
3270
+ label:has(> span):has(
3271
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3272
+ textarea,
3273
+ select
3274
+ ):has(*:placeholder-shown:not(:focus)) > span,
3275
+ label:has(> span):has(
3276
+ input:not([type="checkbox"], [type="radio"], [type="range"]),
3277
+ textarea,
3278
+ select
3279
+ ):has(*:placeholder-shown:not(:focus)) label,
3280
+ .has-float-label:has(*:placeholder-shown:not(:focus)) > span,
3281
+ .has-float-label:has(*:placeholder-shown:not(:focus)) label {
3282
+ padding-block: 0.75rem; /* match Pico */
3283
+ }
3284
+ /* Components */
3285
+ /* Extends https://github.com/picocss/pico/blob/main/scss/content/_link.scss
3286
+ \3c !--section:code-->
3287
+ ```css */
3288
+ /* Use inline flex only if link contains an icon */
3289
+ a:not(.does-not-exist):has(> i) {
3290
+ display: inline-flex;
3291
+ overflow-y: clip; /* to work in pair with text-underline-offset in Safari */
3292
+ gap: 0.375ch; /* =3/8 */
3293
+ text-wrap: balance;
3294
+ }
3295
+ a:not(.does-not-exist) > i {
3296
+ float: left; /* ✅ Chrome ❌ Safari */
3297
+ font-style: normal;
3298
+ text-underline-offset: -2em; /* ❌ Chrome ✅ Safari - to clip it with overflow-y */
3299
+ }
3300
+ /* Favicons */
3301
+ a:not(.does-not-exist) > i > img {
3302
+ display: inline-block; /* for Tailwind CSS Typography */
3303
+ max-width: none; /* to keep ratio safe */
3304
+ height: 1.25em;
3305
+ margin-block-start: calc(-0.25em / 2);
3306
+ }
3307
+ a:not(.does-not-exist) > i[class^="fa-"],
3308
+ a:not(.does-not-exist) > i[class*=" fa-"] {
3309
+ line-height: inherit;
3310
+ --fa-width: auto;
3311
+ }
3312
+ /* Font Awesome */
3313
+ a:not(.does-not-exist) > i.fa-lg {
3314
+ line-height: normal;
3315
+ }
3316
+ /*```
3317
+ \3c !--section:summary-->
3318
+
3319
+ Use *Bl*ades `<i>`-helper to wrap emojis, favicons, or simply drop Font Awesome icons inside links.
3320
+ It automatically handles sizing and alignment while preventing underline on icons.
3321
+
3322
+ \3c !--section:docs-->
3323
+
3324
+ <article class="breakout-item">
3325
+
3326
+ | Use `<i>`-helper with | Clean HTML without `<span>ning` |
3327
+ | ------------------------------------------------------------------------------------- | ------------------------------------ |
3328
+ | [<i>🥷</i> Emojis](#) | `<a><i>🥷</i> Text</a>` |
3329
+ | [<i>![](https://www.google.com/s2/favicons?domain=any.digital&sz=64)</i> Favicons](#) | `<a><i><img src="..."></i> Text</a>` |
3330
+ | [<i class="fa-brands fa-github fa-lg"></i> Font Awesome icons](#) | `<a><i class="fa-..."></i> Text</a>` |
3331
+ </article>
3332
+
3333
+ Or even for:
3334
+
3335
+ <article>
3336
+ <a href="#" style="margin: 0 0 0 1rem"><i>🥷</i> very-very-very-very-very-<br>long-multiline-links</a>
3337
+ </article>
3338
+
3339
+ How we made it: https://codepen.io/editor/anydigital/pen/019d2b94-5616-75dc-a23e-e111869d5237
3340
+
3341
+ \3c !--section--> */
3342
+ /*\3c !--section:docs-->
3343
+
3344
+ Use `dl.timeline` or wrap a `<dl>` with `.has-timeline` to style it as a
3345
+ vertical timeline — each `<dd>` gets a left border strip acting as the track:
3346
+
3347
+ <article class="has-timeline">
3348
+
3349
+ May 11, 2026
3350
+ : First Blades CSS stable release (v2.2.0).
3351
+
3352
+ Mar 15, 2025
3353
+ : Last Pico CSS update (v2.1.1).
3354
+
3355
+ </article>
3356
+
3357
+ \3c !--section:code-->```css */
3358
+ dl.timeline dd, .has-timeline > dl dd {
3359
+ margin-block: 0;
3360
+ padding: 0.25rem 0 0.75rem 1rem;
3361
+ border-inline-start: 0.25rem solid var(--blades-timeline-border-color);
3362
+ }
3363
+ /*
3364
+ * Compact: opt-in denser sizing and a more current look, applied under `data-compact` on
3365
+ * <html> (whole page) or on any element such as a single <form>. Without the attribute it
3366
+ * changes nothing. Part of blades.css (and blades.layered.css); with per-part imports, import it
3367
+ * last (in the same layer as the other parts).
3368
+ *
3369
+ * The extra selectors keep the values winning where Pico re-declares them at the same
3370
+ * specificity: nested [data-theme] sections, the `.pico` root when combined with the conditional build,
3371
+ * and a shadow host.
3372
+ */
3373
+ [data-compact],
3374
+ [data-compact] :is([data-theme], .pico),
3375
+ .pico[data-compact],
3376
+ :host([data-compact]),
3377
+ :host([data-compact]) [data-theme] {
3378
+ --pico-border-radius: 0.5rem;
3379
+ --pico-outline-width: 0.1875rem;
3380
+ --pico-block-spacing-vertical: 1.5rem;
3381
+ --pico-block-spacing-horizontal: 1.5rem;
3382
+ --pico-form-element-spacing-vertical: 0.375rem;
3383
+ --pico-form-element-spacing-horizontal: 0.75rem;
3384
+ --pico-form-label-font-weight: 500;
3385
+ --pico-button-font-weight: 500;
3386
+ --pico-form-element-background-color: light-dark(#fff, rgb(28, 33, 43.5));
3387
+ --pico-card-border-color: var(--pico-muted-border-color);
3388
+ --pico-card-box-shadow:
3389
+ 0 0 0 var(--pico-border-width) var(--pico-card-border-color), 0 1px 2px rgba(0, 0, 0, 0.05);
3390
+ --pico-card-sectioning-background-color: var(--pico-card-background-color);
3391
+ }
3392
+
3393
+ /* Search fields keep their pill shape */
3394
+ [data-compact]:is([role="search"], [type="search"]) {
3395
+ --pico-border-radius: 5rem;
3396
+ }
3397
+
3398
+ /* Page-level only: everything is sized in rem, so the root size can't change per element */
3399
+ :root[data-compact],
3400
+ :host([data-compact]) {
3401
+ --pico-font-size: 100%;
3402
+ }
3403
+
3404
+ [data-compact] :is(h1, h2, h3, h4, h5, h6),
3405
+ :host([data-compact]) :is(h1, h2, h3, h4, h5, h6) {
3406
+ --pico-font-weight: 600;
3407
+ }
3408
+
3409
+ /* Keep helper text at the normal weight under the 500-weight labels */
3410
+ [data-compact] :where(input, select, textarea, fieldset, .grid) + small,
3411
+ :host([data-compact]) :where(input, select, textarea, fieldset, .grid) + small {
3412
+ font-weight: var(--pico-font-weight);
3413
+ }
2989
3414
 
2990
3415
  }