@anyblades/blades 3.0.0 → 3.1.0-alpha.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 (57) hide show
  1. package/README.md +79 -12
  2. package/css/blades.css +219 -419
  3. package/css/blades.min.css +41 -30
  4. package/css/pico.conditional.css +219 -419
  5. package/css/pico.conditional.min.css +41 -30
  6. package/css/pico.css +219 -419
  7. package/css/pico.layered.css +2990 -0
  8. package/css/pico.layered.min.css +118 -0
  9. package/css/pico.min.css +41 -30
  10. package/package.json +27 -7
  11. package/src/pico/_index.css +4 -4
  12. package/src/pico/_utilities.css +0 -21
  13. package/src/pico/_variables.css +76 -386
  14. package/src/pico/components/_accordion.css +82 -0
  15. package/src/pico/components/_card.css +45 -0
  16. package/src/pico/components/_dropdown.css +188 -0
  17. package/src/pico/components/_group.css +205 -0
  18. package/src/pico/components/_index.css +9 -0
  19. package/src/pico/components/_loading.css +40 -0
  20. package/src/pico/components/_modal.css +157 -0
  21. package/src/pico/components/_nav.css +114 -0
  22. package/src/pico/components/_progress.css +73 -0
  23. package/src/pico/components/_tooltip.css +173 -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 +161 -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 +54 -0
  38. package/src/pico/forms/_input-file.css +26 -0
  39. package/src/pico/forms/_input-range.css +118 -0
  40. package/src/pico/forms/_input-search.css +63 -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/.github/ISSUE_TEMPLATE/bug_report.md +0 -25
  49. package/.github/ISSUE_TEMPLATE/config.yml +0 -8
  50. package/CODE_OF_CONDUCT.md +0 -92
  51. package/context7.json +0 -4
  52. package/css/postcss.config.js +0 -23
  53. package/index.html +0 -63
  54. package/src/pico/_components.css +0 -974
  55. package/src/pico/_content.css +0 -608
  56. package/src/pico/_forms.css +0 -747
  57. package/src/pico/_layout.css +0 -128
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Nav
3
+ */
4
+ :where(:scope),
5
+ :host {
6
+ --pico-nav-element-spacing-horizontal: 0.5rem;
7
+ --pico-nav-breadcrumb-divider: ">";
8
+ }
9
+
10
+ :where(nav li)::before {
11
+ float: left;
12
+ content: "​";
13
+ }
14
+
15
+ nav,
16
+ nav ul {
17
+ display: flex;
18
+ }
19
+
20
+ nav {
21
+ justify-content: space-between;
22
+ overflow: visible;
23
+ }
24
+ nav ol,
25
+ nav ul {
26
+ align-items: center;
27
+ margin-bottom: 0;
28
+ padding: 0;
29
+ list-style: none;
30
+ }
31
+ nav ol:first-of-type,
32
+ nav ul:first-of-type {
33
+ margin-left: calc(var(--pico-nav-element-spacing-horizontal) * -1);
34
+ }
35
+ nav ol:last-of-type,
36
+ nav ul:last-of-type {
37
+ margin-right: calc(var(--pico-nav-element-spacing-horizontal) * -1);
38
+ }
39
+ nav li {
40
+ display: inline-block;
41
+ margin: 0;
42
+ padding: var(--pico-nav-element-spacing-vertical) var(--pico-nav-element-spacing-horizontal);
43
+ }
44
+ nav li :where(a, [role="link"]) {
45
+ display: inline-block;
46
+ margin: calc(var(--pico-nav-link-spacing-vertical) * -1)
47
+ calc(var(--pico-nav-link-spacing-horizontal) * -1);
48
+ padding: var(--pico-nav-link-spacing-vertical) var(--pico-nav-link-spacing-horizontal);
49
+ border-radius: var(--pico-border-radius);
50
+ }
51
+ nav li :where(a, [role="link"]):not(:hover) {
52
+ text-decoration: none;
53
+ }
54
+ nav li button,
55
+ nav li [role="button"],
56
+ nav li [type="button"],
57
+ nav li input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]),
58
+ nav li select {
59
+ height: auto;
60
+ margin-right: inherit;
61
+ margin-bottom: 0;
62
+ margin-left: inherit;
63
+ padding: calc(var(--pico-nav-link-spacing-vertical) - var(--pico-border-width) * 2)
64
+ var(--pico-nav-link-spacing-horizontal);
65
+ }
66
+ nav[aria-label="breadcrumb"] {
67
+ align-items: center;
68
+ justify-content: start;
69
+ }
70
+ nav[aria-label="breadcrumb"] ul li:not(:first-child) {
71
+ margin-inline-start: var(--pico-nav-link-spacing-horizontal);
72
+ }
73
+ nav[aria-label="breadcrumb"] ul li a {
74
+ margin: calc(var(--pico-nav-link-spacing-vertical) * -1) 0;
75
+ margin-inline-start: calc(var(--pico-nav-link-spacing-horizontal) * -1);
76
+ }
77
+ nav[aria-label="breadcrumb"] ul li:not(:last-child)::after {
78
+ display: inline-block;
79
+ position: absolute;
80
+ width: calc(var(--pico-nav-link-spacing-horizontal) * 4);
81
+ margin: 0 calc(var(--pico-nav-link-spacing-horizontal) * -1);
82
+ content: var(--pico-nav-breadcrumb-divider);
83
+ color: var(--pico-muted-color);
84
+ text-align: center;
85
+ text-decoration: none;
86
+ white-space: nowrap;
87
+ }
88
+ nav[aria-label="breadcrumb"] a[aria-current]:not([aria-current="false"]) {
89
+ background-color: transparent;
90
+ color: inherit;
91
+ text-decoration: none;
92
+ pointer-events: none;
93
+ }
94
+
95
+ aside nav,
96
+ aside ol,
97
+ aside ul,
98
+ aside li {
99
+ display: block;
100
+ }
101
+ aside li {
102
+ padding: calc(var(--pico-nav-element-spacing-vertical) * 0.5)
103
+ var(--pico-nav-element-spacing-horizontal);
104
+ }
105
+ aside li a {
106
+ display: block;
107
+ }
108
+ aside li [role="button"] {
109
+ margin: inherit;
110
+ }
111
+
112
+ [dir="rtl"] nav[aria-label="breadcrumb"] ul li:not(:last-child)::after {
113
+ content: "\\";
114
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Progress
3
+ */
4
+ :where(:scope, [data-theme="light"], [data-theme="dark"]),
5
+ :host {
6
+ --pico-progress-background-color: light-dark(#dfe3eb, #202632);
7
+ --pico-progress-color: var(--pico-primary-background);
8
+ }
9
+
10
+ progress {
11
+ display: inline-block;
12
+ vertical-align: baseline;
13
+ }
14
+
15
+ progress {
16
+ -webkit-appearance: none;
17
+ -moz-appearance: none;
18
+ display: inline-block;
19
+ appearance: none;
20
+ width: 100%;
21
+ height: 0.5rem;
22
+ margin-bottom: calc(var(--pico-spacing) * 0.5);
23
+ overflow: hidden;
24
+ border: 0;
25
+ border-radius: var(--pico-border-radius);
26
+ background-color: var(--pico-progress-background-color);
27
+ color: var(--pico-progress-color);
28
+ }
29
+ progress::-webkit-progress-bar {
30
+ border-radius: var(--pico-border-radius);
31
+ background: none;
32
+ }
33
+ progress[value]::-webkit-progress-value {
34
+ background-color: var(--pico-progress-color);
35
+ -webkit-transition: inline-size var(--pico-transition);
36
+ transition: inline-size var(--pico-transition);
37
+ }
38
+ progress::-moz-progress-bar {
39
+ background-color: var(--pico-progress-color);
40
+ }
41
+ @media (prefers-reduced-motion: no-preference) {
42
+ progress:indeterminate {
43
+ background: var(--pico-progress-background-color)
44
+ linear-gradient(
45
+ to right,
46
+ var(--pico-progress-color) 30%,
47
+ var(--pico-progress-background-color) 30%
48
+ )
49
+ top left/150% 150% no-repeat;
50
+ animation: progress-indeterminate 1s linear infinite;
51
+ }
52
+ progress:indeterminate[value]::-webkit-progress-value {
53
+ background-color: transparent;
54
+ }
55
+ progress:indeterminate::-moz-progress-bar {
56
+ background-color: transparent;
57
+ }
58
+ }
59
+
60
+ @media (prefers-reduced-motion: no-preference) {
61
+ [dir="rtl"] progress:indeterminate {
62
+ animation-direction: reverse;
63
+ }
64
+ }
65
+
66
+ @keyframes progress-indeterminate {
67
+ 0% {
68
+ background-position: 200% 0;
69
+ }
70
+ 100% {
71
+ background-position: -200% 0;
72
+ }
73
+ }
@@ -0,0 +1,173 @@
1
+ /**
2
+ * Tooltip ([data-tooltip])
3
+ */
4
+ :where(:scope, [data-theme="light"], [data-theme="dark"]),
5
+ :host {
6
+ --pico-tooltip-background-color: var(--pico-contrast-background);
7
+ --pico-tooltip-color: var(--pico-contrast-inverse);
8
+ }
9
+
10
+ [data-tooltip] {
11
+ position: relative;
12
+ }
13
+ [data-tooltip]:not(a, button, input, [role="button"]) {
14
+ border-bottom: 1px dotted;
15
+ text-decoration: none;
16
+ cursor: help;
17
+ }
18
+ [data-tooltip][data-placement="top"]::before,
19
+ [data-tooltip][data-placement="top"]::after,
20
+ [data-tooltip]::before,
21
+ [data-tooltip]::after {
22
+ display: block;
23
+ z-index: 99;
24
+ position: absolute;
25
+ bottom: 100%;
26
+ left: 50%;
27
+ padding: 0.25rem 0.5rem;
28
+ overflow: hidden;
29
+ transform: translate(-50%, -0.25rem);
30
+ border-radius: var(--pico-border-radius);
31
+ background: var(--pico-tooltip-background-color);
32
+ content: attr(data-tooltip);
33
+ color: var(--pico-tooltip-color);
34
+ font-style: normal;
35
+ font-weight: var(--pico-font-weight);
36
+ font-size: 0.875rem;
37
+ text-decoration: none;
38
+ text-overflow: ellipsis;
39
+ white-space: nowrap;
40
+ opacity: 0;
41
+ pointer-events: none;
42
+ }
43
+ [data-tooltip][data-placement="top"]::after,
44
+ [data-tooltip]::after {
45
+ padding: 0;
46
+ transform: translate(-50%, 0rem);
47
+ border-top: 0.3rem solid;
48
+ border-right: 0.3rem solid transparent;
49
+ border-left: 0.3rem solid transparent;
50
+ border-radius: 0;
51
+ background-color: transparent;
52
+ content: "";
53
+ color: var(--pico-tooltip-background-color);
54
+ }
55
+ [data-tooltip][data-placement="bottom"]::before,
56
+ [data-tooltip][data-placement="bottom"]::after {
57
+ top: 100%;
58
+ bottom: auto;
59
+ transform: translate(-50%, 0.25rem);
60
+ }
61
+ [data-tooltip][data-placement="bottom"]:after {
62
+ transform: translate(-50%, -0.3rem);
63
+ border: 0.3rem solid transparent;
64
+ border-bottom: 0.3rem solid;
65
+ }
66
+ [data-tooltip][data-placement="left"]::before,
67
+ [data-tooltip][data-placement="left"]::after {
68
+ top: 50%;
69
+ right: 100%;
70
+ bottom: auto;
71
+ left: auto;
72
+ transform: translate(-0.25rem, -50%);
73
+ }
74
+ [data-tooltip][data-placement="left"]:after {
75
+ transform: translate(0.3rem, -50%);
76
+ border: 0.3rem solid transparent;
77
+ border-left: 0.3rem solid;
78
+ }
79
+ [data-tooltip][data-placement="right"]::before,
80
+ [data-tooltip][data-placement="right"]::after {
81
+ top: 50%;
82
+ right: auto;
83
+ bottom: auto;
84
+ left: 100%;
85
+ transform: translate(0.25rem, -50%);
86
+ }
87
+ [data-tooltip][data-placement="right"]:after {
88
+ transform: translate(-0.3rem, -50%);
89
+ border: 0.3rem solid transparent;
90
+ border-right: 0.3rem solid;
91
+ }
92
+ [data-tooltip]:focus::before,
93
+ [data-tooltip]:focus::after,
94
+ [data-tooltip]:hover::before,
95
+ [data-tooltip]:hover::after {
96
+ opacity: 1;
97
+ }
98
+ @media (hover: hover) and (pointer: fine) {
99
+ [data-tooltip]:focus::before,
100
+ [data-tooltip]:focus::after,
101
+ [data-tooltip]:hover::before,
102
+ [data-tooltip]:hover::after {
103
+ --pico-tooltip-slide-to: translate(-50%, -0.25rem);
104
+ transform: translate(-50%, 0.75rem);
105
+ animation-duration: 0.2s;
106
+ animation-fill-mode: forwards;
107
+ animation-name: tooltip-slide;
108
+ opacity: 0;
109
+ }
110
+ [data-tooltip]:focus::after,
111
+ [data-tooltip]:hover::after {
112
+ --pico-tooltip-caret-slide-to: translate(-50%, 0rem);
113
+ transform: translate(-50%, -0.25rem);
114
+ animation-name: tooltip-caret-slide;
115
+ }
116
+ [data-tooltip][data-placement="bottom"]:focus::before,
117
+ [data-tooltip][data-placement="bottom"]:focus::after,
118
+ [data-tooltip][data-placement="bottom"]:hover::before,
119
+ [data-tooltip][data-placement="bottom"]:hover::after {
120
+ --pico-tooltip-slide-to: translate(-50%, 0.25rem);
121
+ transform: translate(-50%, -0.75rem);
122
+ animation-name: tooltip-slide;
123
+ }
124
+ [data-tooltip][data-placement="bottom"]:focus::after,
125
+ [data-tooltip][data-placement="bottom"]:hover::after {
126
+ --pico-tooltip-caret-slide-to: translate(-50%, -0.3rem);
127
+ transform: translate(-50%, -0.5rem);
128
+ animation-name: tooltip-caret-slide;
129
+ }
130
+ [data-tooltip][data-placement="left"]:focus::before,
131
+ [data-tooltip][data-placement="left"]:focus::after,
132
+ [data-tooltip][data-placement="left"]:hover::before,
133
+ [data-tooltip][data-placement="left"]:hover::after {
134
+ --pico-tooltip-slide-to: translate(-0.25rem, -50%);
135
+ transform: translate(0.75rem, -50%);
136
+ animation-name: tooltip-slide;
137
+ }
138
+ [data-tooltip][data-placement="left"]:focus::after,
139
+ [data-tooltip][data-placement="left"]:hover::after {
140
+ --pico-tooltip-caret-slide-to: translate(0.3rem, -50%);
141
+ transform: translate(0.05rem, -50%);
142
+ animation-name: tooltip-caret-slide;
143
+ }
144
+ [data-tooltip][data-placement="right"]:focus::before,
145
+ [data-tooltip][data-placement="right"]:focus::after,
146
+ [data-tooltip][data-placement="right"]:hover::before,
147
+ [data-tooltip][data-placement="right"]:hover::after {
148
+ --pico-tooltip-slide-to: translate(0.25rem, -50%);
149
+ transform: translate(-0.75rem, -50%);
150
+ animation-name: tooltip-slide;
151
+ }
152
+ [data-tooltip][data-placement="right"]:focus::after,
153
+ [data-tooltip][data-placement="right"]:hover::after {
154
+ --pico-tooltip-caret-slide-to: translate(-0.3rem, -50%);
155
+ transform: translate(-0.05rem, -50%);
156
+ animation-name: tooltip-caret-slide;
157
+ }
158
+ }
159
+ @keyframes tooltip-slide {
160
+ to {
161
+ transform: var(--pico-tooltip-slide-to);
162
+ opacity: 1;
163
+ }
164
+ }
165
+ @keyframes tooltip-caret-slide {
166
+ 50% {
167
+ opacity: 0;
168
+ }
169
+ to {
170
+ transform: var(--pico-tooltip-caret-slide-to);
171
+ opacity: 1;
172
+ }
173
+ }
@@ -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";