@anyblades/blades 3.0.0 → 3.1.0-alpha.1

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 (51) hide show
  1. package/.prettierignore +3 -0
  2. package/README.md +35 -12
  3. package/css/blades.css +1 -33
  4. package/css/blades.min.css +1 -1
  5. package/css/pico.conditional.css +1 -33
  6. package/css/pico.conditional.min.css +1 -1
  7. package/css/pico.css +1 -33
  8. package/css/pico.layered.css +3158 -0
  9. package/css/pico.layered.min.css +107 -0
  10. package/css/pico.min.css +1 -1
  11. package/package.json +17 -6
  12. package/src/pico/_index.css +4 -4
  13. package/src/pico/_utilities.css +0 -21
  14. package/src/pico/components/_accordion.css +74 -0
  15. package/src/pico/components/_card.css +31 -0
  16. package/src/pico/components/_dropdown.css +179 -0
  17. package/src/pico/components/_group.css +167 -0
  18. package/src/pico/components/_index.css +9 -0
  19. package/src/pico/components/_loading.css +31 -0
  20. package/src/pico/components/_modal.css +144 -0
  21. package/src/pico/components/_nav.css +108 -0
  22. package/src/pico/components/_progress.css +67 -0
  23. package/src/pico/components/_tooltip.css +167 -0
  24. package/src/pico/content/_button.css +205 -0
  25. package/src/pico/content/_code.css +61 -0
  26. package/src/pico/content/_embedded-content.css +37 -0
  27. package/src/pico/content/_figure.css +12 -0
  28. package/src/pico/content/_index.css +8 -0
  29. package/src/pico/content/_link.css +81 -0
  30. package/src/pico/content/_misc.css +19 -0
  31. package/src/pico/content/_table.css +30 -0
  32. package/src/pico/content/_typography.css +156 -0
  33. package/src/pico/forms/_basics.css +335 -0
  34. package/src/pico/forms/_checkbox-radio-switch.css +148 -0
  35. package/src/pico/forms/_index.css +7 -0
  36. package/src/pico/forms/_input-color.css +17 -0
  37. package/src/pico/forms/_input-datetime.css +48 -0
  38. package/src/pico/forms/_input-file.css +26 -0
  39. package/src/pico/forms/_input-range.css +109 -0
  40. package/src/pico/forms/_input-search.css +58 -0
  41. package/src/pico/layout/_container.css +39 -0
  42. package/src/pico/layout/_document.css +36 -0
  43. package/src/pico/layout/_grid.css +19 -0
  44. package/src/pico/layout/_index.css +6 -0
  45. package/src/pico/layout/_landmarks.css +17 -0
  46. package/src/pico/layout/_overflow-auto.css +6 -0
  47. package/src/pico/layout/_section.css +6 -0
  48. package/src/pico/_components.css +0 -974
  49. package/src/pico/_content.css +0 -608
  50. package/src/pico/_forms.css +0 -747
  51. package/src/pico/_layout.css +0 -128
@@ -0,0 +1,167 @@
1
+ /**
2
+ * Tooltip ([data-tooltip])
3
+ */
4
+ [data-tooltip] {
5
+ position: relative;
6
+ }
7
+ [data-tooltip]:not(a, button, input, [role="button"]) {
8
+ border-bottom: 1px dotted;
9
+ text-decoration: none;
10
+ cursor: help;
11
+ }
12
+ [data-tooltip][data-placement="top"]::before,
13
+ [data-tooltip][data-placement="top"]::after,
14
+ [data-tooltip]::before,
15
+ [data-tooltip]::after {
16
+ display: block;
17
+ z-index: 99;
18
+ position: absolute;
19
+ bottom: 100%;
20
+ left: 50%;
21
+ padding: 0.25rem 0.5rem;
22
+ overflow: hidden;
23
+ transform: translate(-50%, -0.25rem);
24
+ border-radius: var(--pico-border-radius);
25
+ background: var(--pico-tooltip-background-color);
26
+ content: attr(data-tooltip);
27
+ color: var(--pico-tooltip-color);
28
+ font-style: normal;
29
+ font-weight: var(--pico-font-weight);
30
+ font-size: 0.875rem;
31
+ text-decoration: none;
32
+ text-overflow: ellipsis;
33
+ white-space: nowrap;
34
+ opacity: 0;
35
+ pointer-events: none;
36
+ }
37
+ [data-tooltip][data-placement="top"]::after,
38
+ [data-tooltip]::after {
39
+ padding: 0;
40
+ transform: translate(-50%, 0rem);
41
+ border-top: 0.3rem solid;
42
+ border-right: 0.3rem solid transparent;
43
+ border-left: 0.3rem solid transparent;
44
+ border-radius: 0;
45
+ background-color: transparent;
46
+ content: "";
47
+ color: var(--pico-tooltip-background-color);
48
+ }
49
+ [data-tooltip][data-placement="bottom"]::before,
50
+ [data-tooltip][data-placement="bottom"]::after {
51
+ top: 100%;
52
+ bottom: auto;
53
+ transform: translate(-50%, 0.25rem);
54
+ }
55
+ [data-tooltip][data-placement="bottom"]:after {
56
+ transform: translate(-50%, -0.3rem);
57
+ border: 0.3rem solid transparent;
58
+ border-bottom: 0.3rem solid;
59
+ }
60
+ [data-tooltip][data-placement="left"]::before,
61
+ [data-tooltip][data-placement="left"]::after {
62
+ top: 50%;
63
+ right: 100%;
64
+ bottom: auto;
65
+ left: auto;
66
+ transform: translate(-0.25rem, -50%);
67
+ }
68
+ [data-tooltip][data-placement="left"]:after {
69
+ transform: translate(0.3rem, -50%);
70
+ border: 0.3rem solid transparent;
71
+ border-left: 0.3rem solid;
72
+ }
73
+ [data-tooltip][data-placement="right"]::before,
74
+ [data-tooltip][data-placement="right"]::after {
75
+ top: 50%;
76
+ right: auto;
77
+ bottom: auto;
78
+ left: 100%;
79
+ transform: translate(0.25rem, -50%);
80
+ }
81
+ [data-tooltip][data-placement="right"]:after {
82
+ transform: translate(-0.3rem, -50%);
83
+ border: 0.3rem solid transparent;
84
+ border-right: 0.3rem solid;
85
+ }
86
+ [data-tooltip]:focus::before,
87
+ [data-tooltip]:focus::after,
88
+ [data-tooltip]:hover::before,
89
+ [data-tooltip]:hover::after {
90
+ opacity: 1;
91
+ }
92
+ @media (hover: hover) and (pointer: fine) {
93
+ [data-tooltip]:focus::before,
94
+ [data-tooltip]:focus::after,
95
+ [data-tooltip]:hover::before,
96
+ [data-tooltip]:hover::after {
97
+ --pico-tooltip-slide-to: translate(-50%, -0.25rem);
98
+ transform: translate(-50%, 0.75rem);
99
+ animation-duration: 0.2s;
100
+ animation-fill-mode: forwards;
101
+ animation-name: tooltip-slide;
102
+ opacity: 0;
103
+ }
104
+ [data-tooltip]:focus::after,
105
+ [data-tooltip]:hover::after {
106
+ --pico-tooltip-caret-slide-to: translate(-50%, 0rem);
107
+ transform: translate(-50%, -0.25rem);
108
+ animation-name: tooltip-caret-slide;
109
+ }
110
+ [data-tooltip][data-placement="bottom"]:focus::before,
111
+ [data-tooltip][data-placement="bottom"]:focus::after,
112
+ [data-tooltip][data-placement="bottom"]:hover::before,
113
+ [data-tooltip][data-placement="bottom"]:hover::after {
114
+ --pico-tooltip-slide-to: translate(-50%, 0.25rem);
115
+ transform: translate(-50%, -0.75rem);
116
+ animation-name: tooltip-slide;
117
+ }
118
+ [data-tooltip][data-placement="bottom"]:focus::after,
119
+ [data-tooltip][data-placement="bottom"]:hover::after {
120
+ --pico-tooltip-caret-slide-to: translate(-50%, -0.3rem);
121
+ transform: translate(-50%, -0.5rem);
122
+ animation-name: tooltip-caret-slide;
123
+ }
124
+ [data-tooltip][data-placement="left"]:focus::before,
125
+ [data-tooltip][data-placement="left"]:focus::after,
126
+ [data-tooltip][data-placement="left"]:hover::before,
127
+ [data-tooltip][data-placement="left"]:hover::after {
128
+ --pico-tooltip-slide-to: translate(-0.25rem, -50%);
129
+ transform: translate(0.75rem, -50%);
130
+ animation-name: tooltip-slide;
131
+ }
132
+ [data-tooltip][data-placement="left"]:focus::after,
133
+ [data-tooltip][data-placement="left"]:hover::after {
134
+ --pico-tooltip-caret-slide-to: translate(0.3rem, -50%);
135
+ transform: translate(0.05rem, -50%);
136
+ animation-name: tooltip-caret-slide;
137
+ }
138
+ [data-tooltip][data-placement="right"]:focus::before,
139
+ [data-tooltip][data-placement="right"]:focus::after,
140
+ [data-tooltip][data-placement="right"]:hover::before,
141
+ [data-tooltip][data-placement="right"]:hover::after {
142
+ --pico-tooltip-slide-to: translate(0.25rem, -50%);
143
+ transform: translate(-0.75rem, -50%);
144
+ animation-name: tooltip-slide;
145
+ }
146
+ [data-tooltip][data-placement="right"]:focus::after,
147
+ [data-tooltip][data-placement="right"]:hover::after {
148
+ --pico-tooltip-caret-slide-to: translate(-0.3rem, -50%);
149
+ transform: translate(-0.05rem, -50%);
150
+ animation-name: tooltip-caret-slide;
151
+ }
152
+ }
153
+ @keyframes tooltip-slide {
154
+ to {
155
+ transform: var(--pico-tooltip-slide-to);
156
+ opacity: 1;
157
+ }
158
+ }
159
+ @keyframes tooltip-caret-slide {
160
+ 50% {
161
+ opacity: 0;
162
+ }
163
+ to {
164
+ transform: var(--pico-tooltip-caret-slide-to);
165
+ opacity: 1;
166
+ }
167
+ }
@@ -0,0 +1,205 @@
1
+ /**
2
+ * Button
3
+ */
4
+ button {
5
+ margin: 0;
6
+ overflow: visible;
7
+ font-family: inherit;
8
+ text-transform: none;
9
+ }
10
+
11
+ button,
12
+ [type="submit"],
13
+ [type="reset"],
14
+ [type="button"] {
15
+ -webkit-appearance: button;
16
+ }
17
+
18
+ button,
19
+ [type="submit"],
20
+ [type="reset"],
21
+ [type="button"],
22
+ [type="file"]::file-selector-button,
23
+ [role="button"] {
24
+ --pico-background-color: var(--pico-primary-background);
25
+ --pico-border-color: var(--pico-primary-border);
26
+ --pico-color: var(--pico-primary-inverse);
27
+ --pico-box-shadow: var(--pico-button-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
28
+ padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
29
+ border: var(--pico-border-width) solid var(--pico-border-color);
30
+ border-radius: var(--pico-border-radius);
31
+ outline: none;
32
+ background-color: var(--pico-background-color);
33
+ box-shadow: var(--pico-box-shadow);
34
+ color: var(--pico-color);
35
+ font-weight: var(--pico-font-weight);
36
+ font-size: 1rem;
37
+ line-height: var(--pico-line-height);
38
+ text-align: center;
39
+ text-decoration: none;
40
+ cursor: pointer;
41
+ -webkit-user-select: none;
42
+ -moz-user-select: none;
43
+ 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
+ }
50
+ button:is([aria-current]:not([aria-current="false"])),
51
+ button:is(:hover, :active, :focus),
52
+ [type="submit"]:is([aria-current]:not([aria-current="false"])),
53
+ [type="submit"]:is(:hover, :active, :focus),
54
+ [type="reset"]:is([aria-current]:not([aria-current="false"])),
55
+ [type="reset"]:is(:hover, :active, :focus),
56
+ [type="button"]:is([aria-current]:not([aria-current="false"])),
57
+ [type="button"]:is(:hover, :active, :focus),
58
+ [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])),
59
+ [type="file"]::file-selector-button:is(:hover, :active, :focus),
60
+ [role="button"]:is([aria-current]:not([aria-current="false"])),
61
+ [role="button"]:is(:hover, :active, :focus) {
62
+ --pico-background-color: var(--pico-primary-hover-background);
63
+ --pico-border-color: var(--pico-primary-hover-border);
64
+ --pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
65
+ --pico-color: var(--pico-primary-inverse);
66
+ }
67
+ button:focus,
68
+ button:is([aria-current]:not([aria-current="false"])):focus,
69
+ [type="submit"]:focus,
70
+ [type="submit"]:is([aria-current]:not([aria-current="false"])):focus,
71
+ [type="reset"]:focus,
72
+ [type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
73
+ [type="button"]:focus,
74
+ [type="button"]:is([aria-current]:not([aria-current="false"])):focus,
75
+ [type="file"]::file-selector-button:focus,
76
+ [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus,
77
+ [role="button"]:focus,
78
+ [role="button"]:is([aria-current]:not([aria-current="false"])):focus {
79
+ --pico-box-shadow:
80
+ var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
81
+ 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
82
+ }
83
+
84
+ [type="submit"],
85
+ [type="reset"],
86
+ [type="button"] {
87
+ margin-bottom: var(--pico-spacing);
88
+ }
89
+
90
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary,
91
+ [type="reset"],
92
+ [type="file"]::file-selector-button {
93
+ --pico-background-color: var(--pico-secondary-background);
94
+ --pico-border-color: var(--pico-secondary-border);
95
+ --pico-color: var(--pico-secondary-inverse);
96
+ cursor: pointer;
97
+ }
98
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is(
99
+ [aria-current]:not([aria-current="false"]),
100
+ :hover,
101
+ :active,
102
+ :focus
103
+ ),
104
+ [type="reset"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus),
105
+ [type="file"]::file-selector-button:is(
106
+ [aria-current]:not([aria-current="false"]),
107
+ :hover,
108
+ :active,
109
+ :focus
110
+ ) {
111
+ --pico-background-color: var(--pico-secondary-hover-background);
112
+ --pico-border-color: var(--pico-secondary-hover-border);
113
+ --pico-color: var(--pico-secondary-inverse);
114
+ }
115
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary:focus,
116
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is(
117
+ [aria-current]:not([aria-current="false"])
118
+ ):focus,
119
+ [type="reset"]:focus,
120
+ [type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
121
+ [type="file"]::file-selector-button:focus,
122
+ [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus {
123
+ --pico-box-shadow:
124
+ var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
125
+ 0 0 0 var(--pico-outline-width) var(--pico-secondary-focus);
126
+ }
127
+
128
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast {
129
+ --pico-background-color: var(--pico-contrast-background);
130
+ --pico-border-color: var(--pico-contrast-border);
131
+ --pico-color: var(--pico-contrast-inverse);
132
+ }
133
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is(
134
+ [aria-current]:not([aria-current="false"]),
135
+ :hover,
136
+ :active,
137
+ :focus
138
+ ) {
139
+ --pico-background-color: var(--pico-contrast-hover-background);
140
+ --pico-border-color: var(--pico-contrast-hover-border);
141
+ --pico-color: var(--pico-contrast-inverse);
142
+ }
143
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast:focus,
144
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is(
145
+ [aria-current]:not([aria-current="false"])
146
+ ):focus {
147
+ --pico-box-shadow:
148
+ var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
149
+ 0 0 0 var(--pico-outline-width) var(--pico-contrast-focus);
150
+ }
151
+
152
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline,
153
+ [type="reset"].outline {
154
+ --pico-background-color: transparent;
155
+ --pico-color: var(--pico-primary);
156
+ --pico-border-color: var(--pico-primary);
157
+ }
158
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline:is(
159
+ [aria-current]:not([aria-current="false"]),
160
+ :hover,
161
+ :active,
162
+ :focus
163
+ ),
164
+ [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
165
+ --pico-background-color: transparent;
166
+ --pico-color: var(--pico-primary-hover);
167
+ --pico-border-color: var(--pico-primary-hover);
168
+ }
169
+
170
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary,
171
+ [type="reset"].outline {
172
+ --pico-color: var(--pico-secondary);
173
+ --pico-border-color: var(--pico-secondary);
174
+ }
175
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary:is(
176
+ [aria-current]:not([aria-current="false"]),
177
+ :hover,
178
+ :active,
179
+ :focus
180
+ ),
181
+ [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
182
+ --pico-color: var(--pico-secondary-hover);
183
+ --pico-border-color: var(--pico-secondary-hover);
184
+ }
185
+
186
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.contrast {
187
+ --pico-color: var(--pico-contrast);
188
+ --pico-border-color: var(--pico-contrast);
189
+ }
190
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.contrast:is(
191
+ [aria-current]:not([aria-current="false"]),
192
+ :hover,
193
+ :active,
194
+ :focus
195
+ ) {
196
+ --pico-color: var(--pico-contrast-hover);
197
+ --pico-border-color: var(--pico-contrast-hover);
198
+ }
199
+
200
+ :where(button, [type="submit"], [type="reset"], [type="button"], [role="button"])[disabled],
201
+ :where(fieldset[disabled])
202
+ :is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]) {
203
+ opacity: 0.5;
204
+ pointer-events: none;
205
+ }
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Code
3
+ */
4
+ pre,
5
+ code,
6
+ var,
7
+ kbd,
8
+ samp {
9
+ font-size: 0.875em;
10
+ font-family: var(--pico-font-family);
11
+ }
12
+
13
+ pre code,
14
+ pre samp {
15
+ font-size: inherit;
16
+ font-family: inherit;
17
+ }
18
+
19
+ pre {
20
+ -ms-overflow-style: scrollbar;
21
+ overflow: auto;
22
+ }
23
+
24
+ pre,
25
+ code,
26
+ var,
27
+ kbd,
28
+ samp {
29
+ border-radius: var(--pico-border-radius);
30
+ background: var(--pico-code-background-color);
31
+ color: var(--pico-code-color);
32
+ font-weight: var(--pico-font-weight);
33
+ line-height: initial;
34
+ }
35
+
36
+ code,
37
+ var,
38
+ kbd,
39
+ samp {
40
+ display: inline-block;
41
+ padding: 0.375rem;
42
+ }
43
+
44
+ pre {
45
+ display: block;
46
+ margin-bottom: var(--pico-spacing);
47
+ overflow-x: auto;
48
+ }
49
+ pre > code,
50
+ pre > samp {
51
+ display: block;
52
+ padding: var(--pico-spacing);
53
+ background: none;
54
+ line-height: var(--pico-line-height);
55
+ }
56
+
57
+ kbd {
58
+ background-color: var(--pico-code-kbd-background-color);
59
+ color: var(--pico-code-kbd-color);
60
+ vertical-align: baseline;
61
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Embedded content
3
+ */
4
+ :where(audio, canvas, iframe, img, svg, video) {
5
+ vertical-align: middle;
6
+ }
7
+
8
+ audio,
9
+ video {
10
+ display: inline-block;
11
+ }
12
+
13
+ audio:not([controls]) {
14
+ display: none;
15
+ height: 0;
16
+ }
17
+
18
+ :where(iframe) {
19
+ border-style: none;
20
+ }
21
+
22
+ img {
23
+ &:not([height]) {
24
+ max-width: 100%;
25
+ height: auto;
26
+ }
27
+ border-style: none;
28
+ }
29
+
30
+ :where(svg:not([fill])) {
31
+ fill: currentColor;
32
+ }
33
+
34
+ svg:not(:scope),
35
+ svg:not(:host) {
36
+ overflow: hidden;
37
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Figure
3
+ */
4
+ figure {
5
+ display: block;
6
+ margin: 0;
7
+ padding: 0;
8
+ }
9
+ figure figcaption {
10
+ padding: calc(var(--pico-spacing) * 0.5) 0;
11
+ color: var(--pico-muted-color);
12
+ }
@@ -0,0 +1,8 @@
1
+ @import "./_typography";
2
+ @import "./_link";
3
+ @import "./_button";
4
+ @import "./_table";
5
+ @import "./_embedded-content";
6
+ @import "./_code";
7
+ @import "./_figure";
8
+ @import "./_misc";
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Link
3
+ */
4
+ :where(a:not([role="button"])),
5
+ [role="link"] {
6
+ --pico-color: var(--pico-primary);
7
+ --pico-background-color: transparent;
8
+ --pico-underline: var(--pico-primary-underline);
9
+ outline: none;
10
+ background-color: var(--pico-background-color);
11
+ color: var(--pico-color);
12
+ -webkit-text-decoration: var(--pico-text-decoration);
13
+ text-decoration: var(--pico-text-decoration);
14
+ text-decoration-color: var(--pico-underline);
15
+ text-underline-offset: 0.125em;
16
+ transition:
17
+ background-color var(--pico-transition),
18
+ color var(--pico-transition),
19
+ box-shadow var(--pico-transition),
20
+ -webkit-text-decoration var(--pico-transition);
21
+ transition:
22
+ background-color var(--pico-transition),
23
+ color var(--pico-transition),
24
+ text-decoration var(--pico-transition),
25
+ box-shadow var(--pico-transition);
26
+ transition:
27
+ background-color var(--pico-transition),
28
+ color var(--pico-transition),
29
+ text-decoration var(--pico-transition),
30
+ box-shadow var(--pico-transition),
31
+ -webkit-text-decoration var(--pico-transition);
32
+ }
33
+ :where(a:not([role="button"])):is(
34
+ [aria-current]:not([aria-current="false"]),
35
+ :hover,
36
+ :active,
37
+ :focus
38
+ ),
39
+ [role="link"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
40
+ --pico-color: var(--pico-primary-hover);
41
+ --pico-underline: var(--pico-primary-hover-underline);
42
+ --pico-text-decoration: underline;
43
+ }
44
+ :where(a:not([role="button"])):focus-visible,
45
+ [role="link"]:focus-visible {
46
+ box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
47
+ }
48
+ :where(a:not([role="button"])).secondary,
49
+ [role="link"].secondary {
50
+ --pico-color: var(--pico-secondary);
51
+ --pico-underline: var(--pico-secondary-underline);
52
+ }
53
+ :where(a:not([role="button"])).secondary:is(
54
+ [aria-current]:not([aria-current="false"]),
55
+ :hover,
56
+ :active,
57
+ :focus
58
+ ),
59
+ [role="link"].secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
60
+ --pico-color: var(--pico-secondary-hover);
61
+ --pico-underline: var(--pico-secondary-hover-underline);
62
+ }
63
+ :where(a:not([role="button"])).contrast,
64
+ [role="link"].contrast {
65
+ --pico-color: var(--pico-contrast);
66
+ --pico-underline: var(--pico-contrast-underline);
67
+ }
68
+ :where(a:not([role="button"])).contrast:is(
69
+ [aria-current]:not([aria-current="false"]),
70
+ :hover,
71
+ :active,
72
+ :focus
73
+ ),
74
+ [role="link"].contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
75
+ --pico-color: var(--pico-contrast-hover);
76
+ --pico-underline: var(--pico-contrast-hover-underline);
77
+ }
78
+
79
+ a[role="button"] {
80
+ display: inline-block;
81
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Misc
3
+ */
4
+ hr {
5
+ height: 0;
6
+ margin: var(--pico-typography-spacing-vertical) 0;
7
+ border: 0;
8
+ border-top: 1px solid var(--pico-muted-border-color);
9
+ color: inherit;
10
+ }
11
+
12
+ [hidden],
13
+ template {
14
+ display: none !important;
15
+ }
16
+
17
+ canvas {
18
+ display: inline-block;
19
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Table
3
+ */
4
+ :where(table) {
5
+ width: 100%;
6
+ border-collapse: collapse;
7
+ border-spacing: 0;
8
+ text-indent: 0;
9
+ }
10
+
11
+ th,
12
+ td {
13
+ padding: calc(var(--pico-spacing) / 2) var(--pico-spacing);
14
+ border-bottom: var(--pico-border-width) solid var(--pico-table-border-color);
15
+ background-color: var(--pico-background-color);
16
+ color: var(--pico-color);
17
+ font-weight: var(--pico-font-weight);
18
+ text-align: start;
19
+ }
20
+
21
+ tfoot th,
22
+ tfoot td {
23
+ border-top: var(--pico-border-width) solid var(--pico-table-border-color);
24
+ border-bottom: 0;
25
+ }
26
+
27
+ table.striped tbody tr:nth-child(odd) th,
28
+ table.striped tbody tr:nth-child(odd) td {
29
+ background-color: var(--pico-table-row-stripped-background-color);
30
+ }