@anyblades/blades 3.1.0-alpha.2 → 3.1.0-beta.4

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 (93) hide show
  1. package/README.md +48 -23
  2. package/css/blades.css +301 -593
  3. package/css/blades.min.css +4 -148
  4. package/css/blades.ninja.css +4204 -0
  5. package/css/blades.ninja.min.css +12 -0
  6. package/css/float-label.css +207 -0
  7. package/css/float-label.min.css +6 -0
  8. package/css/{pico.layered.css → layered/blades.layered.css} +589 -17
  9. package/css/layered/blades.layered.min.css +14 -0
  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 +61 -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 +1099 -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 +34 -16
  48. package/css/pico.conditional.min.css +2 -111
  49. package/css/pico.css +34 -16
  50. package/css/pico.min.css +2 -111
  51. package/package.json +16 -12
  52. package/src/blades/_compact.css +51 -0
  53. package/src/blades/_dropdown-popover.css +107 -0
  54. package/src/blades/_index.css +28 -0
  55. package/src/blades/_modal.css +26 -0
  56. package/src/blades/float-label/_index.css +2 -0
  57. package/src/{standalone/forms/_float-label.theme.css → blades/float-label/_theme.css} +5 -1
  58. package/src/blades.css +2 -2
  59. package/src/blades.ninja.css +3 -0
  60. package/src/float-label.css +1 -0
  61. package/src/ninja/LICENSE +22 -0
  62. package/src/ninja/README.md +1 -0
  63. package/src/ninja/_index.css +19 -0
  64. package/src/{standalone → ninja}/_theme.css +0 -2
  65. package/src/{ninja.css → ninja/_utilities.css} +55 -6
  66. package/src/pico/_variables.css +6 -5
  67. package/src/pico/components/_loading.css +27 -1
  68. package/src/pico/content/_button.css +1 -1
  69. package/src/pico/layout/_document.css +9 -0
  70. package/src/pico/layout/_index.css +0 -1
  71. package/src/pico/layout/_landmarks.css +1 -9
  72. package/src/pico.css +1 -0
  73. package/css/blades.standalone.css +0 -860
  74. package/css/blades.standalone.min.css +0 -37
  75. package/css/ninja.css +0 -83
  76. package/css/ninja.min.css +0 -5
  77. package/css/pico.layered.min.css +0 -118
  78. package/src/blades.standalone.css +0 -2
  79. package/src/standalone/_core.css +0 -32
  80. package/src/standalone/_utilities.css +0 -55
  81. package/src/standalone/forms/_float-label.css +0 -2
  82. /package/src/{standalone/content → blades}/_code.css +0 -0
  83. /package/src/{standalone/layout → blades}/_columns.css +0 -0
  84. /package/src/{standalone/components/_icon-helper.css → blades/_icon.css} +0 -0
  85. /package/src/{standalone/components → blades}/_timeline.css +0 -0
  86. /package/src/{standalone → blades}/_variables.css +0 -0
  87. /package/src/{standalone/forms/_float-label.core.css → blades/float-label/_core.css} +0 -0
  88. /package/src/{standalone/layout/_breakout.css → ninja/_container-breakout.css} +0 -0
  89. /package/src/{standalone/content/_typography.css → ninja/_heading-anchor.css} +0 -0
  90. /package/src/{standalone/content/_list.css → ninja/_list-helpers.css} +0 -0
  91. /package/src/{standalone/layout/_scroller.css → ninja/_page-anchors.css} +0 -0
  92. /package/src/{standalone/content/_table.css → ninja/_table-helpers.css} +0 -0
  93. /package/src/{standalone/content → ninja}/_table-responsive.css +0 -0
@@ -0,0 +1,208 @@
1
+ @layer blades {
2
+ /**
3
+ * Button
4
+ */
5
+ button {
6
+ margin: 0;
7
+ overflow: visible;
8
+ font-family: inherit;
9
+ text-transform: none;
10
+ }
11
+
12
+ button,
13
+ [type="submit"],
14
+ [type="reset"],
15
+ [type="button"] {
16
+ -webkit-appearance: button;
17
+ }
18
+
19
+ button,
20
+ [type="submit"],
21
+ [type="reset"],
22
+ [type="button"],
23
+ [type="file"]::file-selector-button,
24
+ [role="button"] {
25
+ --pico-background-color: var(--pico-primary-background);
26
+ --pico-border-color: var(--pico-primary-border);
27
+ --pico-color: var(--pico-primary-inverse);
28
+ --pico-box-shadow: var(--pico-button-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
29
+ padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
30
+ border: var(--pico-border-width) solid var(--pico-border-color);
31
+ border-radius: var(--pico-border-radius);
32
+ outline: none;
33
+ background-color: var(--pico-background-color);
34
+ box-shadow: var(--pico-box-shadow);
35
+ color: var(--pico-color);
36
+ font-weight: var(--pico-button-font-weight, var(--pico-font-weight));
37
+ font-size: 1rem;
38
+ line-height: var(--pico-line-height);
39
+ text-align: center;
40
+ text-decoration: none;
41
+ cursor: pointer;
42
+ -webkit-user-select: none;
43
+ -moz-user-select: none;
44
+ transition:
45
+ background-color var(--pico-transition),
46
+ border-color var(--pico-transition),
47
+ color var(--pico-transition),
48
+ box-shadow var(--pico-transition);
49
+ user-select: none;
50
+ }
51
+ button:is([aria-current]:not([aria-current="false"])),
52
+ button:is(:hover, :active, :focus),
53
+ [type="submit"]:is([aria-current]:not([aria-current="false"])),
54
+ [type="submit"]:is(:hover, :active, :focus),
55
+ [type="reset"]:is([aria-current]:not([aria-current="false"])),
56
+ [type="reset"]:is(:hover, :active, :focus),
57
+ [type="button"]:is([aria-current]:not([aria-current="false"])),
58
+ [type="button"]:is(:hover, :active, :focus),
59
+ [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])),
60
+ [type="file"]::file-selector-button:is(:hover, :active, :focus),
61
+ [role="button"]:is([aria-current]:not([aria-current="false"])),
62
+ [role="button"]:is(:hover, :active, :focus) {
63
+ --pico-background-color: var(--pico-primary-hover-background);
64
+ --pico-border-color: var(--pico-primary-hover-border);
65
+ --pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
66
+ --pico-color: var(--pico-primary-inverse);
67
+ }
68
+ button:focus,
69
+ button:is([aria-current]:not([aria-current="false"])):focus,
70
+ [type="submit"]:focus,
71
+ [type="submit"]:is([aria-current]:not([aria-current="false"])):focus,
72
+ [type="reset"]:focus,
73
+ [type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
74
+ [type="button"]:focus,
75
+ [type="button"]:is([aria-current]:not([aria-current="false"])):focus,
76
+ [type="file"]::file-selector-button:focus,
77
+ [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus,
78
+ [role="button"]:focus,
79
+ [role="button"]:is([aria-current]:not([aria-current="false"])):focus {
80
+ --pico-box-shadow:
81
+ var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
82
+ 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
83
+ }
84
+
85
+ [type="submit"],
86
+ [type="reset"],
87
+ [type="button"] {
88
+ margin-bottom: var(--pico-spacing);
89
+ }
90
+
91
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary,
92
+ [type="reset"],
93
+ [type="file"]::file-selector-button {
94
+ --pico-background-color: var(--pico-secondary-background);
95
+ --pico-border-color: var(--pico-secondary-border);
96
+ --pico-color: var(--pico-secondary-inverse);
97
+ cursor: pointer;
98
+ }
99
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is(
100
+ [aria-current]:not([aria-current="false"]),
101
+ :hover,
102
+ :active,
103
+ :focus
104
+ ),
105
+ [type="reset"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus),
106
+ [type="file"]::file-selector-button:is(
107
+ [aria-current]:not([aria-current="false"]),
108
+ :hover,
109
+ :active,
110
+ :focus
111
+ ) {
112
+ --pico-background-color: var(--pico-secondary-hover-background);
113
+ --pico-border-color: var(--pico-secondary-hover-border);
114
+ --pico-color: var(--pico-secondary-inverse);
115
+ }
116
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary:focus,
117
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is(
118
+ [aria-current]:not([aria-current="false"])
119
+ ):focus,
120
+ [type="reset"]:focus,
121
+ [type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
122
+ [type="file"]::file-selector-button:focus,
123
+ [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus {
124
+ --pico-box-shadow:
125
+ var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
126
+ 0 0 0 var(--pico-outline-width) var(--pico-secondary-focus);
127
+ }
128
+
129
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast {
130
+ --pico-background-color: var(--pico-contrast-background);
131
+ --pico-border-color: var(--pico-contrast-border);
132
+ --pico-color: var(--pico-contrast-inverse);
133
+ }
134
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is(
135
+ [aria-current]:not([aria-current="false"]),
136
+ :hover,
137
+ :active,
138
+ :focus
139
+ ) {
140
+ --pico-background-color: var(--pico-contrast-hover-background);
141
+ --pico-border-color: var(--pico-contrast-hover-border);
142
+ --pico-color: var(--pico-contrast-inverse);
143
+ }
144
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast:focus,
145
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is(
146
+ [aria-current]:not([aria-current="false"])
147
+ ):focus {
148
+ --pico-box-shadow:
149
+ var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
150
+ 0 0 0 var(--pico-outline-width) var(--pico-contrast-focus);
151
+ }
152
+
153
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline,
154
+ [type="reset"].outline {
155
+ --pico-background-color: transparent;
156
+ --pico-color: var(--pico-primary);
157
+ --pico-border-color: var(--pico-primary);
158
+ }
159
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline:is(
160
+ [aria-current]:not([aria-current="false"]),
161
+ :hover,
162
+ :active,
163
+ :focus
164
+ ),
165
+ [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
166
+ --pico-background-color: transparent;
167
+ --pico-color: var(--pico-primary-hover);
168
+ --pico-border-color: var(--pico-primary-hover);
169
+ }
170
+
171
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary,
172
+ [type="reset"].outline {
173
+ --pico-color: var(--pico-secondary);
174
+ --pico-border-color: var(--pico-secondary);
175
+ }
176
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary:is(
177
+ [aria-current]:not([aria-current="false"]),
178
+ :hover,
179
+ :active,
180
+ :focus
181
+ ),
182
+ [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
183
+ --pico-color: var(--pico-secondary-hover);
184
+ --pico-border-color: var(--pico-secondary-hover);
185
+ }
186
+
187
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.contrast {
188
+ --pico-color: var(--pico-contrast);
189
+ --pico-border-color: var(--pico-contrast);
190
+ }
191
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.contrast:is(
192
+ [aria-current]:not([aria-current="false"]),
193
+ :hover,
194
+ :active,
195
+ :focus
196
+ ) {
197
+ --pico-color: var(--pico-contrast-hover);
198
+ --pico-border-color: var(--pico-contrast-hover);
199
+ }
200
+
201
+ :where(button, [type="submit"], [type="reset"], [type="button"], [role="button"])[disabled],
202
+ :where(fieldset[disabled])
203
+ :is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]) {
204
+ opacity: 0.5;
205
+ pointer-events: none;
206
+ }
207
+
208
+ }
@@ -0,0 +1,64 @@
1
+ @layer blades {
2
+ /**
3
+ * Code
4
+ */
5
+ pre,
6
+ code,
7
+ var,
8
+ kbd,
9
+ samp {
10
+ font-size: 0.875em;
11
+ font-family: var(--pico-font-family);
12
+ }
13
+
14
+ pre code,
15
+ pre samp {
16
+ font-size: inherit;
17
+ font-family: inherit;
18
+ }
19
+
20
+ pre {
21
+ -ms-overflow-style: scrollbar;
22
+ overflow: auto;
23
+ }
24
+
25
+ pre,
26
+ code,
27
+ var,
28
+ kbd,
29
+ samp {
30
+ border-radius: var(--pico-border-radius);
31
+ background: var(--pico-code-background-color);
32
+ color: var(--pico-code-color);
33
+ font-weight: var(--pico-font-weight);
34
+ line-height: initial;
35
+ }
36
+
37
+ code,
38
+ var,
39
+ kbd,
40
+ samp {
41
+ display: inline-block;
42
+ padding: 0.375rem;
43
+ }
44
+
45
+ pre {
46
+ display: block;
47
+ margin-bottom: var(--pico-spacing);
48
+ overflow-x: auto;
49
+ }
50
+ pre > code,
51
+ pre > samp {
52
+ display: block;
53
+ padding: var(--pico-spacing);
54
+ background: none;
55
+ line-height: var(--pico-line-height);
56
+ }
57
+
58
+ kbd {
59
+ background-color: var(--pico-code-kbd-background-color);
60
+ color: var(--pico-code-kbd-color);
61
+ vertical-align: baseline;
62
+ }
63
+
64
+ }
@@ -0,0 +1,41 @@
1
+ @layer blades {
2
+ /**
3
+ * Embedded content
4
+ */
5
+ :where(audio, canvas, iframe, img, svg, video) {
6
+ vertical-align: middle;
7
+ }
8
+
9
+ audio,
10
+ video {
11
+ display: inline-block;
12
+ }
13
+
14
+ audio:not([controls]) {
15
+ display: none;
16
+ height: 0;
17
+ }
18
+
19
+ :where(iframe) {
20
+ border-style: none;
21
+ }
22
+
23
+ img:not([height]) {
24
+ max-width: 100%;
25
+ height: auto;
26
+ }
27
+
28
+ img {
29
+ border-style: none;
30
+ }
31
+
32
+ :where(svg:not([fill])) {
33
+ fill: currentColor;
34
+ }
35
+
36
+ svg:not(:scope),
37
+ svg:not(:host) {
38
+ overflow: hidden;
39
+ }
40
+
41
+ }
@@ -0,0 +1,15 @@
1
+ @layer blades {
2
+ /**
3
+ * Figure
4
+ */
5
+ figure {
6
+ display: block;
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+ figure figcaption {
11
+ padding: calc(var(--pico-spacing) * 0.5) 0;
12
+ color: var(--pico-muted-color);
13
+ }
14
+
15
+ }
@@ -0,0 +1,84 @@
1
+ @layer blades {
2
+ /**
3
+ * Link
4
+ */
5
+ :where(a:not([role="button"])),
6
+ [role="link"] {
7
+ --pico-color: var(--pico-primary);
8
+ --pico-background-color: transparent;
9
+ --pico-underline: var(--pico-primary-underline);
10
+ outline: none;
11
+ background-color: var(--pico-background-color);
12
+ color: var(--pico-color);
13
+ -webkit-text-decoration: var(--pico-text-decoration);
14
+ text-decoration: var(--pico-text-decoration);
15
+ text-decoration-color: var(--pico-underline);
16
+ text-underline-offset: 0.125em;
17
+ transition:
18
+ background-color var(--pico-transition),
19
+ color var(--pico-transition),
20
+ box-shadow var(--pico-transition),
21
+ -webkit-text-decoration var(--pico-transition);
22
+ transition:
23
+ background-color var(--pico-transition),
24
+ color var(--pico-transition),
25
+ text-decoration var(--pico-transition),
26
+ box-shadow var(--pico-transition);
27
+ transition:
28
+ background-color var(--pico-transition),
29
+ color var(--pico-transition),
30
+ text-decoration var(--pico-transition),
31
+ box-shadow var(--pico-transition),
32
+ -webkit-text-decoration var(--pico-transition);
33
+ }
34
+ :where(a:not([role="button"])):is(
35
+ [aria-current]:not([aria-current="false"]),
36
+ :hover,
37
+ :active,
38
+ :focus
39
+ ),
40
+ [role="link"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
41
+ --pico-color: var(--pico-primary-hover);
42
+ --pico-underline: var(--pico-primary-hover-underline);
43
+ --pico-text-decoration: underline;
44
+ }
45
+ :where(a:not([role="button"])):focus-visible,
46
+ [role="link"]:focus-visible {
47
+ box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
48
+ }
49
+ :where(a:not([role="button"])).secondary,
50
+ [role="link"].secondary {
51
+ --pico-color: var(--pico-secondary);
52
+ --pico-underline: var(--pico-secondary-underline);
53
+ }
54
+ :where(a:not([role="button"])).secondary:is(
55
+ [aria-current]:not([aria-current="false"]),
56
+ :hover,
57
+ :active,
58
+ :focus
59
+ ),
60
+ [role="link"].secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
61
+ --pico-color: var(--pico-secondary-hover);
62
+ --pico-underline: var(--pico-secondary-hover-underline);
63
+ }
64
+ :where(a:not([role="button"])).contrast,
65
+ [role="link"].contrast {
66
+ --pico-color: var(--pico-contrast);
67
+ --pico-underline: var(--pico-contrast-underline);
68
+ }
69
+ :where(a:not([role="button"])).contrast:is(
70
+ [aria-current]:not([aria-current="false"]),
71
+ :hover,
72
+ :active,
73
+ :focus
74
+ ),
75
+ [role="link"].contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
76
+ --pico-color: var(--pico-contrast-hover);
77
+ --pico-underline: var(--pico-contrast-hover-underline);
78
+ }
79
+
80
+ a[role="button"] {
81
+ display: inline-block;
82
+ }
83
+
84
+ }
@@ -0,0 +1,22 @@
1
+ @layer blades {
2
+ /**
3
+ * Misc
4
+ */
5
+ hr {
6
+ height: 0;
7
+ margin: var(--pico-typography-spacing-vertical) 0;
8
+ border: 0;
9
+ border-top: 1px solid var(--pico-muted-border-color);
10
+ color: inherit;
11
+ }
12
+
13
+ [hidden],
14
+ template {
15
+ display: none !important;
16
+ }
17
+
18
+ canvas {
19
+ display: inline-block;
20
+ }
21
+
22
+ }
@@ -0,0 +1,33 @@
1
+ @layer blades {
2
+ /**
3
+ * Table
4
+ */
5
+ :where(table) {
6
+ width: 100%;
7
+ border-collapse: collapse;
8
+ border-spacing: 0;
9
+ text-indent: 0;
10
+ }
11
+
12
+ th,
13
+ td {
14
+ padding: calc(var(--pico-spacing) / 2) var(--pico-spacing);
15
+ border-bottom: var(--pico-border-width) solid var(--pico-table-border-color);
16
+ background-color: var(--pico-background-color);
17
+ color: var(--pico-color);
18
+ font-weight: var(--pico-font-weight);
19
+ text-align: start;
20
+ }
21
+
22
+ tfoot th,
23
+ tfoot td {
24
+ border-top: var(--pico-border-width) solid var(--pico-table-border-color);
25
+ border-bottom: 0;
26
+ }
27
+
28
+ table.striped tbody tr:nth-child(odd) th,
29
+ table.striped tbody tr:nth-child(odd) td {
30
+ background-color: var(--pico-table-row-stripped-background-color);
31
+ }
32
+
33
+ }
@@ -0,0 +1,159 @@
1
+ @layer blades {
2
+ /**
3
+ * Typography
4
+ */
5
+ b,
6
+ strong {
7
+ font-weight: bolder;
8
+ }
9
+
10
+ sub,
11
+ sup {
12
+ position: relative;
13
+ font-size: 0.75em;
14
+ line-height: 0;
15
+ vertical-align: baseline;
16
+ }
17
+
18
+ sub {
19
+ bottom: -0.25em;
20
+ }
21
+
22
+ sup {
23
+ top: -0.5em;
24
+ }
25
+
26
+ address,
27
+ blockquote,
28
+ dl,
29
+ ol,
30
+ p,
31
+ pre,
32
+ table,
33
+ ul {
34
+ margin-top: 0;
35
+ margin-bottom: var(--pico-typography-spacing-vertical);
36
+ color: var(--pico-color);
37
+ font-style: normal;
38
+ font-weight: var(--pico-font-weight);
39
+ }
40
+
41
+ h1,
42
+ h2,
43
+ h3,
44
+ h4,
45
+ h5,
46
+ h6 {
47
+ margin-top: 0;
48
+ margin-bottom: var(--pico-typography-spacing-vertical);
49
+ color: var(--pico-color);
50
+ font-weight: var(--pico-font-weight);
51
+ font-size: var(--pico-font-size);
52
+ line-height: var(--pico-line-height);
53
+ font-family: var(--pico-font-family);
54
+ }
55
+
56
+ h1 {
57
+ --pico-color: var(--pico-h1-color);
58
+ }
59
+
60
+ h2 {
61
+ --pico-color: var(--pico-h2-color);
62
+ }
63
+
64
+ h3 {
65
+ --pico-color: var(--pico-h3-color);
66
+ }
67
+
68
+ h4 {
69
+ --pico-color: var(--pico-h4-color);
70
+ }
71
+
72
+ h5 {
73
+ --pico-color: var(--pico-h5-color);
74
+ }
75
+
76
+ h6 {
77
+ --pico-color: var(--pico-h6-color);
78
+ }
79
+
80
+ :where(article, address, blockquote, dl, figure, form, ol, p, pre, table, ul)
81
+ ~ :is(h1, h2, h3, h4, h5, h6) {
82
+ margin-top: var(--pico-typography-spacing-top);
83
+ }
84
+
85
+ p {
86
+ margin-bottom: var(--pico-typography-spacing-vertical);
87
+ }
88
+
89
+ hgroup {
90
+ margin-bottom: var(--pico-typography-spacing-vertical);
91
+ }
92
+ hgroup > * {
93
+ margin-top: 0;
94
+ margin-bottom: 0;
95
+ }
96
+ hgroup > *:not(:first-child):last-child {
97
+ --pico-color: var(--pico-muted-color);
98
+ --pico-font-weight: unset;
99
+ font-size: 1rem;
100
+ }
101
+
102
+ :where(ol, ul) li {
103
+ margin-bottom: calc(var(--pico-typography-spacing-vertical) * 0.25);
104
+ }
105
+
106
+ :where(dl, ol, ul) :where(dl, ol, ul) {
107
+ margin: 0;
108
+ margin-top: calc(var(--pico-typography-spacing-vertical) * 0.25);
109
+ }
110
+
111
+ ul li {
112
+ list-style: square;
113
+ }
114
+
115
+ mark {
116
+ padding: 0.125rem 0.25rem;
117
+ background-color: var(--pico-mark-background-color);
118
+ color: var(--pico-mark-color);
119
+ vertical-align: baseline;
120
+ }
121
+
122
+ blockquote {
123
+ display: block;
124
+ margin: var(--pico-typography-spacing-vertical) 0;
125
+ padding: var(--pico-spacing);
126
+ border-right: none;
127
+ border-left: 0.25rem solid var(--pico-blockquote-border-color);
128
+ border-inline-start: 0.25rem solid var(--pico-blockquote-border-color);
129
+ border-inline-end: none;
130
+ }
131
+ blockquote footer {
132
+ margin-top: calc(var(--pico-typography-spacing-vertical) * 0.5);
133
+ color: var(--pico-blockquote-footer-color);
134
+ }
135
+
136
+ abbr[title] {
137
+ border-bottom: 1px dotted;
138
+ text-decoration: none;
139
+ cursor: help;
140
+ }
141
+
142
+ ins {
143
+ color: var(--pico-ins-color);
144
+ text-decoration: none;
145
+ }
146
+
147
+ del {
148
+ color: var(--pico-del-color);
149
+ }
150
+
151
+ ::-moz-selection {
152
+ background-color: var(--pico-text-selection-color);
153
+ }
154
+
155
+ ::selection {
156
+ background-color: var(--pico-text-selection-color);
157
+ }
158
+
159
+ }