@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.
- package/README.md +79 -12
- package/css/blades.css +219 -419
- package/css/blades.min.css +41 -30
- package/css/pico.conditional.css +219 -419
- package/css/pico.conditional.min.css +41 -30
- package/css/pico.css +219 -419
- package/css/pico.layered.css +2990 -0
- package/css/pico.layered.min.css +118 -0
- package/css/pico.min.css +41 -30
- package/package.json +27 -7
- package/src/pico/_index.css +4 -4
- package/src/pico/_utilities.css +0 -21
- package/src/pico/_variables.css +76 -386
- package/src/pico/components/_accordion.css +82 -0
- package/src/pico/components/_card.css +45 -0
- package/src/pico/components/_dropdown.css +188 -0
- package/src/pico/components/_group.css +205 -0
- package/src/pico/components/_index.css +9 -0
- package/src/pico/components/_loading.css +40 -0
- package/src/pico/components/_modal.css +157 -0
- package/src/pico/components/_nav.css +114 -0
- package/src/pico/components/_progress.css +73 -0
- package/src/pico/components/_tooltip.css +173 -0
- package/src/pico/content/_button.css +205 -0
- package/src/pico/content/_code.css +61 -0
- package/src/pico/content/_embedded-content.css +37 -0
- package/src/pico/content/_figure.css +12 -0
- package/src/pico/content/_index.css +8 -0
- package/src/pico/content/_link.css +81 -0
- package/src/pico/content/_misc.css +19 -0
- package/src/pico/content/_table.css +30 -0
- package/src/pico/content/_typography.css +156 -0
- package/src/pico/forms/_basics.css +335 -0
- package/src/pico/forms/_checkbox-radio-switch.css +161 -0
- package/src/pico/forms/_index.css +7 -0
- package/src/pico/forms/_input-color.css +17 -0
- package/src/pico/forms/_input-datetime.css +54 -0
- package/src/pico/forms/_input-file.css +26 -0
- package/src/pico/forms/_input-range.css +118 -0
- package/src/pico/forms/_input-search.css +63 -0
- package/src/pico/layout/_container.css +39 -0
- package/src/pico/layout/_document.css +36 -0
- package/src/pico/layout/_grid.css +19 -0
- package/src/pico/layout/_index.css +6 -0
- package/src/pico/layout/_landmarks.css +17 -0
- package/src/pico/layout/_overflow-auto.css +6 -0
- package/src/pico/layout/_section.css +6 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -25
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/CODE_OF_CONDUCT.md +0 -92
- package/context7.json +0 -4
- package/css/postcss.config.js +0 -23
- package/index.html +0 -63
- package/src/pico/_components.css +0 -974
- package/src/pico/_content.css +0 -608
- package/src/pico/_forms.css +0 -747
- package/src/pico/_layout.css +0 -128
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkboxes, Radios and Switches
|
|
3
|
+
*/
|
|
4
|
+
:where(:scope),
|
|
5
|
+
:host {
|
|
6
|
+
--pico-icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
|
|
7
|
+
--pico-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
|
|
8
|
+
}
|
|
9
|
+
:where(:scope, [data-theme="light"], [data-theme="dark"]),
|
|
10
|
+
:host {
|
|
11
|
+
--pico-switch-background-color: light-dark(#bfc7d9, #333c4e);
|
|
12
|
+
--pico-switch-checked-background-color: var(--pico-primary-background);
|
|
13
|
+
--pico-switch-color: #fff;
|
|
14
|
+
--pico-switch-thumb-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
label:has([type="checkbox"], [type="radio"]) {
|
|
18
|
+
width: -moz-fit-content;
|
|
19
|
+
width: fit-content;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[type="checkbox"],
|
|
24
|
+
[type="radio"] {
|
|
25
|
+
-webkit-appearance: none;
|
|
26
|
+
-moz-appearance: none;
|
|
27
|
+
appearance: none;
|
|
28
|
+
width: 1.25em;
|
|
29
|
+
height: 1.25em;
|
|
30
|
+
margin-top: -0.125em;
|
|
31
|
+
margin-inline-end: 0.5em;
|
|
32
|
+
border-width: var(--pico-border-width);
|
|
33
|
+
vertical-align: middle;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
[type="checkbox"]::-ms-check,
|
|
37
|
+
[type="radio"]::-ms-check {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
[type="checkbox"]:checked,
|
|
41
|
+
[type="checkbox"]:checked:active,
|
|
42
|
+
[type="checkbox"]:checked:focus,
|
|
43
|
+
[type="radio"]:checked,
|
|
44
|
+
[type="radio"]:checked:active,
|
|
45
|
+
[type="radio"]:checked:focus {
|
|
46
|
+
--pico-background-color: var(--pico-primary-background);
|
|
47
|
+
--pico-border-color: var(--pico-primary-border);
|
|
48
|
+
background-image: var(--pico-icon-checkbox);
|
|
49
|
+
background-position: center;
|
|
50
|
+
background-size: 0.75em auto;
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
}
|
|
53
|
+
[type="checkbox"] ~ label,
|
|
54
|
+
[type="radio"] ~ label {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
margin-bottom: 0;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
[type="checkbox"] ~ label:not(:last-of-type),
|
|
60
|
+
[type="radio"] ~ label:not(:last-of-type) {
|
|
61
|
+
margin-inline-end: 1em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[type="checkbox"]:indeterminate {
|
|
65
|
+
--pico-background-color: var(--pico-primary-background);
|
|
66
|
+
--pico-border-color: var(--pico-primary-border);
|
|
67
|
+
background-image: var(--pico-icon-minus);
|
|
68
|
+
background-position: center;
|
|
69
|
+
background-size: 0.75em auto;
|
|
70
|
+
background-repeat: no-repeat;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[type="radio"] {
|
|
74
|
+
border-radius: 50%;
|
|
75
|
+
}
|
|
76
|
+
[type="radio"]:checked,
|
|
77
|
+
[type="radio"]:checked:active,
|
|
78
|
+
[type="radio"]:checked:focus {
|
|
79
|
+
--pico-background-color: var(--pico-primary-inverse);
|
|
80
|
+
border-width: 0.35em;
|
|
81
|
+
background-image: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[type="checkbox"][role="switch"] {
|
|
85
|
+
--pico-background-color: var(--pico-switch-background-color);
|
|
86
|
+
--pico-color: var(--pico-switch-color);
|
|
87
|
+
width: 2.25em;
|
|
88
|
+
height: 1.25em;
|
|
89
|
+
border: var(--pico-border-width) solid var(--pico-border-color);
|
|
90
|
+
border-radius: 1.25em;
|
|
91
|
+
background-color: var(--pico-background-color);
|
|
92
|
+
line-height: 1.25em;
|
|
93
|
+
}
|
|
94
|
+
[type="checkbox"][role="switch"]:not([aria-invalid]) {
|
|
95
|
+
--pico-border-color: var(--pico-switch-background-color);
|
|
96
|
+
}
|
|
97
|
+
[type="checkbox"][role="switch"]:before {
|
|
98
|
+
display: block;
|
|
99
|
+
aspect-ratio: 1;
|
|
100
|
+
height: 100%;
|
|
101
|
+
border-radius: 50%;
|
|
102
|
+
background-color: var(--pico-color);
|
|
103
|
+
box-shadow: var(--pico-switch-thumb-box-shadow);
|
|
104
|
+
content: "";
|
|
105
|
+
transition: margin 0.1s ease-in-out;
|
|
106
|
+
}
|
|
107
|
+
[type="checkbox"][role="switch"]:focus {
|
|
108
|
+
--pico-background-color: var(--pico-switch-background-color);
|
|
109
|
+
--pico-border-color: var(--pico-switch-background-color);
|
|
110
|
+
}
|
|
111
|
+
[type="checkbox"][role="switch"]:checked {
|
|
112
|
+
--pico-background-color: var(--pico-switch-checked-background-color);
|
|
113
|
+
--pico-border-color: var(--pico-switch-checked-background-color);
|
|
114
|
+
background-image: none;
|
|
115
|
+
}
|
|
116
|
+
[type="checkbox"][role="switch"]:checked::before {
|
|
117
|
+
margin-inline-start: calc(2.25em - 1.25em);
|
|
118
|
+
}
|
|
119
|
+
[type="checkbox"][role="switch"][disabled] {
|
|
120
|
+
--pico-background-color: var(--pico-border-color);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[type="checkbox"][aria-invalid="false"]:checked,
|
|
124
|
+
[type="checkbox"][aria-invalid="false"]:checked:active,
|
|
125
|
+
[type="checkbox"][aria-invalid="false"]:checked:focus,
|
|
126
|
+
[type="checkbox"][role="switch"][aria-invalid="false"]:checked,
|
|
127
|
+
[type="checkbox"][role="switch"][aria-invalid="false"]:checked:active,
|
|
128
|
+
[type="checkbox"][role="switch"][aria-invalid="false"]:checked:focus {
|
|
129
|
+
--pico-background-color: var(--pico-form-element-valid-border-color);
|
|
130
|
+
}
|
|
131
|
+
[type="checkbox"]:checked[aria-invalid="true"],
|
|
132
|
+
[type="checkbox"]:checked:active[aria-invalid="true"],
|
|
133
|
+
[type="checkbox"]:checked:focus[aria-invalid="true"],
|
|
134
|
+
[type="checkbox"][role="switch"]:checked[aria-invalid="true"],
|
|
135
|
+
[type="checkbox"][role="switch"]:checked:active[aria-invalid="true"],
|
|
136
|
+
[type="checkbox"][role="switch"]:checked:focus[aria-invalid="true"] {
|
|
137
|
+
--pico-background-color: var(--pico-form-element-invalid-border-color);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
[type="checkbox"][aria-invalid="false"]:checked,
|
|
141
|
+
[type="checkbox"][aria-invalid="false"]:checked:active,
|
|
142
|
+
[type="checkbox"][aria-invalid="false"]:checked:focus,
|
|
143
|
+
[type="radio"][aria-invalid="false"]:checked,
|
|
144
|
+
[type="radio"][aria-invalid="false"]:checked:active,
|
|
145
|
+
[type="radio"][aria-invalid="false"]:checked:focus,
|
|
146
|
+
[type="checkbox"][role="switch"][aria-invalid="false"]:checked,
|
|
147
|
+
[type="checkbox"][role="switch"][aria-invalid="false"]:checked:active,
|
|
148
|
+
[type="checkbox"][role="switch"][aria-invalid="false"]:checked:focus {
|
|
149
|
+
--pico-border-color: var(--pico-form-element-valid-border-color);
|
|
150
|
+
}
|
|
151
|
+
[type="checkbox"]:checked[aria-invalid="true"],
|
|
152
|
+
[type="checkbox"]:checked:active[aria-invalid="true"],
|
|
153
|
+
[type="checkbox"]:checked:focus[aria-invalid="true"],
|
|
154
|
+
[type="radio"]:checked[aria-invalid="true"],
|
|
155
|
+
[type="radio"]:checked:active[aria-invalid="true"],
|
|
156
|
+
[type="radio"]:checked:focus[aria-invalid="true"],
|
|
157
|
+
[type="checkbox"][role="switch"]:checked[aria-invalid="true"],
|
|
158
|
+
[type="checkbox"][role="switch"]:checked:active[aria-invalid="true"],
|
|
159
|
+
[type="checkbox"][role="switch"]:checked:focus[aria-invalid="true"] {
|
|
160
|
+
--pico-border-color: var(--pico-form-element-invalid-border-color);
|
|
161
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type color
|
|
3
|
+
*/
|
|
4
|
+
[type="color"]::-webkit-color-swatch-wrapper {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
[type="color"]::-moz-focus-inner {
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
[type="color"]::-webkit-color-swatch {
|
|
11
|
+
border: 0;
|
|
12
|
+
border-radius: calc(var(--pico-border-radius) * 0.5);
|
|
13
|
+
}
|
|
14
|
+
[type="color"]::-moz-color-swatch {
|
|
15
|
+
border: 0;
|
|
16
|
+
border-radius: calc(var(--pico-border-radius) * 0.5);
|
|
17
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type datetime
|
|
3
|
+
*/
|
|
4
|
+
:where(:scope),
|
|
5
|
+
:host {
|
|
6
|
+
--pico-icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
|
|
7
|
+
--pico-icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]):is(
|
|
11
|
+
[type="date"],
|
|
12
|
+
[type="datetime-local"],
|
|
13
|
+
[type="month"],
|
|
14
|
+
[type="time"],
|
|
15
|
+
[type="week"]
|
|
16
|
+
) {
|
|
17
|
+
--pico-icon-position: 0.75rem;
|
|
18
|
+
--pico-icon-width: 1rem;
|
|
19
|
+
padding-right: calc(var(--pico-icon-width) + var(--pico-icon-position));
|
|
20
|
+
background-image: var(--pico-icon-date);
|
|
21
|
+
background-position: center right var(--pico-icon-position);
|
|
22
|
+
background-size: var(--pico-icon-width) auto;
|
|
23
|
+
background-repeat: no-repeat;
|
|
24
|
+
min-width: 0;
|
|
25
|
+
}
|
|
26
|
+
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])[type="time"] {
|
|
27
|
+
background-image: var(--pico-icon-time);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[type="date"]::-webkit-calendar-picker-indicator,
|
|
31
|
+
[type="datetime-local"]::-webkit-calendar-picker-indicator,
|
|
32
|
+
[type="month"]::-webkit-calendar-picker-indicator,
|
|
33
|
+
[type="time"]::-webkit-calendar-picker-indicator,
|
|
34
|
+
[type="week"]::-webkit-calendar-picker-indicator {
|
|
35
|
+
width: var(--pico-icon-width);
|
|
36
|
+
margin-right: calc(var(--pico-icon-width) * -1);
|
|
37
|
+
margin-left: var(--pico-icon-position);
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@-moz-document url-prefix() {
|
|
42
|
+
[type="date"],
|
|
43
|
+
[type="datetime-local"],
|
|
44
|
+
[type="month"],
|
|
45
|
+
[type="time"],
|
|
46
|
+
[type="week"] {
|
|
47
|
+
padding-right: var(--pico-form-element-spacing-horizontal) !important;
|
|
48
|
+
background-image: none !important;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
[dir="rtl"]
|
|
52
|
+
:is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
|
|
53
|
+
text-align: end;
|
|
54
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type file
|
|
3
|
+
*/
|
|
4
|
+
[type="file"] {
|
|
5
|
+
--pico-color: var(--pico-muted-color);
|
|
6
|
+
margin-left: calc(var(--pico-outline-width) * -1);
|
|
7
|
+
padding: calc(var(--pico-form-element-spacing-vertical) * 0.5) 0;
|
|
8
|
+
padding-left: var(--pico-outline-width);
|
|
9
|
+
border: 0;
|
|
10
|
+
border-radius: 0;
|
|
11
|
+
background: none;
|
|
12
|
+
}
|
|
13
|
+
[type="file"]::file-selector-button {
|
|
14
|
+
margin-right: calc(var(--pico-spacing) / 2);
|
|
15
|
+
padding: calc(var(--pico-form-element-spacing-vertical) * 0.5)
|
|
16
|
+
var(--pico-form-element-spacing-horizontal);
|
|
17
|
+
}
|
|
18
|
+
[type="file"]:is(:hover, :active, :focus)::file-selector-button {
|
|
19
|
+
--pico-background-color: var(--pico-secondary-hover-background);
|
|
20
|
+
--pico-border-color: var(--pico-secondary-hover-border);
|
|
21
|
+
}
|
|
22
|
+
[type="file"]:focus::file-selector-button {
|
|
23
|
+
--pico-box-shadow:
|
|
24
|
+
var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
|
25
|
+
0 0 0 var(--pico-outline-width) var(--pico-secondary-focus);
|
|
26
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type range
|
|
3
|
+
*/
|
|
4
|
+
:where(:scope, [data-theme="light"], [data-theme="dark"]),
|
|
5
|
+
:host {
|
|
6
|
+
--pico-range-border-color: light-dark(#dfe3eb, #202632);
|
|
7
|
+
--pico-range-active-border-color: light-dark(#bfc7d9, #2a3140);
|
|
8
|
+
--pico-range-thumb-border-color: var(--pico-background-color);
|
|
9
|
+
--pico-range-thumb-color: var(--pico-secondary-background);
|
|
10
|
+
--pico-range-thumb-active-color: var(--pico-primary-background);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[type="range"] {
|
|
14
|
+
-webkit-appearance: none;
|
|
15
|
+
-moz-appearance: none;
|
|
16
|
+
appearance: none;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 1.25rem;
|
|
19
|
+
background: none;
|
|
20
|
+
}
|
|
21
|
+
[type="range"]::-webkit-slider-runnable-track {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 0.375rem;
|
|
24
|
+
border-radius: var(--pico-border-radius);
|
|
25
|
+
background-color: var(--pico-range-border-color);
|
|
26
|
+
-webkit-transition:
|
|
27
|
+
background-color var(--pico-transition),
|
|
28
|
+
box-shadow var(--pico-transition);
|
|
29
|
+
transition:
|
|
30
|
+
background-color var(--pico-transition),
|
|
31
|
+
box-shadow var(--pico-transition);
|
|
32
|
+
}
|
|
33
|
+
[type="range"]::-moz-range-track {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 0.375rem;
|
|
36
|
+
border-radius: var(--pico-border-radius);
|
|
37
|
+
background-color: var(--pico-range-border-color);
|
|
38
|
+
-moz-transition:
|
|
39
|
+
background-color var(--pico-transition),
|
|
40
|
+
box-shadow var(--pico-transition);
|
|
41
|
+
transition:
|
|
42
|
+
background-color var(--pico-transition),
|
|
43
|
+
box-shadow var(--pico-transition);
|
|
44
|
+
}
|
|
45
|
+
[type="range"]::-ms-track {
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 0.375rem;
|
|
48
|
+
border-radius: var(--pico-border-radius);
|
|
49
|
+
background-color: var(--pico-range-border-color);
|
|
50
|
+
-ms-transition:
|
|
51
|
+
background-color var(--pico-transition),
|
|
52
|
+
box-shadow var(--pico-transition);
|
|
53
|
+
transition:
|
|
54
|
+
background-color var(--pico-transition),
|
|
55
|
+
box-shadow var(--pico-transition);
|
|
56
|
+
}
|
|
57
|
+
[type="range"]::-webkit-slider-thumb {
|
|
58
|
+
-webkit-appearance: none;
|
|
59
|
+
width: 1.25rem;
|
|
60
|
+
height: 1.25rem;
|
|
61
|
+
margin-top: -0.4375rem;
|
|
62
|
+
border: 2px solid var(--pico-range-thumb-border-color);
|
|
63
|
+
border-radius: 50%;
|
|
64
|
+
background-color: var(--pico-range-thumb-color);
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
-webkit-transition:
|
|
67
|
+
background-color var(--pico-transition),
|
|
68
|
+
transform var(--pico-transition);
|
|
69
|
+
transition:
|
|
70
|
+
background-color var(--pico-transition),
|
|
71
|
+
transform var(--pico-transition);
|
|
72
|
+
}
|
|
73
|
+
[type="range"]::-moz-range-thumb {
|
|
74
|
+
-webkit-appearance: none;
|
|
75
|
+
width: 1.25rem;
|
|
76
|
+
height: 1.25rem;
|
|
77
|
+
margin-top: -0.4375rem;
|
|
78
|
+
border: 2px solid var(--pico-range-thumb-border-color);
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
background-color: var(--pico-range-thumb-color);
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
-moz-transition:
|
|
83
|
+
background-color var(--pico-transition),
|
|
84
|
+
transform var(--pico-transition);
|
|
85
|
+
transition:
|
|
86
|
+
background-color var(--pico-transition),
|
|
87
|
+
transform var(--pico-transition);
|
|
88
|
+
}
|
|
89
|
+
[type="range"]::-ms-thumb {
|
|
90
|
+
-webkit-appearance: none;
|
|
91
|
+
width: 1.25rem;
|
|
92
|
+
height: 1.25rem;
|
|
93
|
+
margin-top: -0.4375rem;
|
|
94
|
+
border: 2px solid var(--pico-range-thumb-border-color);
|
|
95
|
+
border-radius: 50%;
|
|
96
|
+
background-color: var(--pico-range-thumb-color);
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
-ms-transition:
|
|
99
|
+
background-color var(--pico-transition),
|
|
100
|
+
transform var(--pico-transition);
|
|
101
|
+
transition:
|
|
102
|
+
background-color var(--pico-transition),
|
|
103
|
+
transform var(--pico-transition);
|
|
104
|
+
}
|
|
105
|
+
[type="range"]:active,
|
|
106
|
+
[type="range"]:focus-within {
|
|
107
|
+
--pico-range-border-color: var(--pico-range-active-border-color);
|
|
108
|
+
--pico-range-thumb-color: var(--pico-range-thumb-active-color);
|
|
109
|
+
}
|
|
110
|
+
[type="range"]:active::-webkit-slider-thumb {
|
|
111
|
+
transform: scale(1.25);
|
|
112
|
+
}
|
|
113
|
+
[type="range"]:active::-moz-range-thumb {
|
|
114
|
+
transform: scale(1.25);
|
|
115
|
+
}
|
|
116
|
+
[type="range"]:active::-ms-thumb {
|
|
117
|
+
transform: scale(1.25);
|
|
118
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type search
|
|
3
|
+
*/
|
|
4
|
+
:where(:scope),
|
|
5
|
+
:host {
|
|
6
|
+
--pico-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])[type="search"] {
|
|
10
|
+
padding-inline-start: calc(var(--pico-form-element-spacing-horizontal) + 1.75rem);
|
|
11
|
+
background-image: var(--pico-icon-search);
|
|
12
|
+
background-position: center left calc(var(--pico-form-element-spacing-horizontal) + 0.125rem);
|
|
13
|
+
background-size: 1rem auto;
|
|
14
|
+
background-repeat: no-repeat;
|
|
15
|
+
}
|
|
16
|
+
input:not(
|
|
17
|
+
[type="checkbox"],
|
|
18
|
+
[type="radio"],
|
|
19
|
+
[type="range"],
|
|
20
|
+
[type="file"]
|
|
21
|
+
)[type="search"][aria-invalid] {
|
|
22
|
+
padding-inline-start: calc(var(--pico-form-element-spacing-horizontal) + 1.75rem) !important;
|
|
23
|
+
background-position:
|
|
24
|
+
center left 1.125rem,
|
|
25
|
+
center right 0.75rem;
|
|
26
|
+
}
|
|
27
|
+
input:not(
|
|
28
|
+
[type="checkbox"],
|
|
29
|
+
[type="radio"],
|
|
30
|
+
[type="range"],
|
|
31
|
+
[type="file"]
|
|
32
|
+
)[type="search"][aria-invalid="false"] {
|
|
33
|
+
background-image: var(--pico-icon-search), var(--pico-icon-valid);
|
|
34
|
+
}
|
|
35
|
+
input:not(
|
|
36
|
+
[type="checkbox"],
|
|
37
|
+
[type="radio"],
|
|
38
|
+
[type="range"],
|
|
39
|
+
[type="file"]
|
|
40
|
+
)[type="search"][aria-invalid="true"] {
|
|
41
|
+
background-image: var(--pico-icon-search), var(--pico-icon-invalid);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[dir="rtl"]
|
|
45
|
+
:where(input):not(
|
|
46
|
+
[type="checkbox"],
|
|
47
|
+
[type="radio"],
|
|
48
|
+
[type="range"],
|
|
49
|
+
[type="file"]
|
|
50
|
+
)[type="search"] {
|
|
51
|
+
background-position: center right 1.125rem;
|
|
52
|
+
}
|
|
53
|
+
[dir="rtl"]
|
|
54
|
+
:where(input):not(
|
|
55
|
+
[type="checkbox"],
|
|
56
|
+
[type="radio"],
|
|
57
|
+
[type="range"],
|
|
58
|
+
[type="file"]
|
|
59
|
+
)[type="search"][aria-invalid] {
|
|
60
|
+
background-position:
|
|
61
|
+
center right 1.125rem,
|
|
62
|
+
center left 0.75rem;
|
|
63
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Container
|
|
3
|
+
*/
|
|
4
|
+
.container,
|
|
5
|
+
.container-fluid {
|
|
6
|
+
width: 100%;
|
|
7
|
+
margin-right: auto;
|
|
8
|
+
margin-left: auto;
|
|
9
|
+
padding-right: var(--pico-spacing);
|
|
10
|
+
padding-left: var(--pico-spacing);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (min-width: 576px) {
|
|
14
|
+
.container {
|
|
15
|
+
max-width: 510px;
|
|
16
|
+
padding-right: 0;
|
|
17
|
+
padding-left: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@media (min-width: 768px) {
|
|
21
|
+
.container {
|
|
22
|
+
max-width: 700px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@media (min-width: 1024px) {
|
|
26
|
+
.container {
|
|
27
|
+
max-width: 950px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 1280px) {
|
|
31
|
+
.container {
|
|
32
|
+
max-width: 1200px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@media (min-width: 1536px) {
|
|
36
|
+
.container {
|
|
37
|
+
max-width: 1450px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document
|
|
3
|
+
* Content-box & Responsive typography
|
|
4
|
+
*/
|
|
5
|
+
*,
|
|
6
|
+
*::before,
|
|
7
|
+
*::after {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
background-repeat: no-repeat;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::before,
|
|
13
|
+
::after {
|
|
14
|
+
text-decoration: inherit;
|
|
15
|
+
vertical-align: inherit;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(:scope),
|
|
19
|
+
:where(:host) {
|
|
20
|
+
-webkit-tap-highlight-color: transparent;
|
|
21
|
+
-webkit-text-size-adjust: 100%;
|
|
22
|
+
-moz-text-size-adjust: 100%;
|
|
23
|
+
text-size-adjust: 100%;
|
|
24
|
+
background-color: var(--pico-background-color);
|
|
25
|
+
color: var(--pico-color);
|
|
26
|
+
font-weight: var(--pico-font-weight);
|
|
27
|
+
font-size: var(--pico-font-size);
|
|
28
|
+
line-height: var(--pico-line-height);
|
|
29
|
+
font-family: var(--pico-font-family);
|
|
30
|
+
text-underline-offset: var(--pico-text-underline-offset);
|
|
31
|
+
text-rendering: optimizeLegibility;
|
|
32
|
+
overflow-wrap: break-word;
|
|
33
|
+
-moz-tab-size: 4;
|
|
34
|
+
-o-tab-size: 4;
|
|
35
|
+
tab-size: 4;
|
|
36
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grid
|
|
3
|
+
* Minimal grid system with auto-layout columns
|
|
4
|
+
*/
|
|
5
|
+
.grid {
|
|
6
|
+
grid-column-gap: var(--pico-grid-column-gap);
|
|
7
|
+
grid-row-gap: var(--pico-grid-row-gap);
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 1fr;
|
|
10
|
+
}
|
|
11
|
+
@media (min-width: 768px) {
|
|
12
|
+
.grid {
|
|
13
|
+
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.grid > *:not(.does-not-exist) {
|
|
17
|
+
min-width: 0;
|
|
18
|
+
margin-bottom: 0; /* https://github.com/picocss/pico/issues/738 */
|
|
19
|
+
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a bug report if you've already asked for help with a problem and confirmed something is broken with Blades CSS.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Please search for duplicate or closed issues first.
|
|
7
|
-
|
|
8
|
-
## Describe the issue
|
|
9
|
-
|
|
10
|
-
### Current Behavior
|
|
11
|
-
|
|
12
|
-
A concise description of the bug.
|
|
13
|
-
|
|
14
|
-
### Expected Behavior
|
|
15
|
-
|
|
16
|
-
A concise description of what you expected.
|
|
17
|
-
|
|
18
|
-
### Reproduction URL
|
|
19
|
-
|
|
20
|
-
We recommend including a link to a minimal reproduction of the bug using CodePen or a similar tool.
|
|
21
|
-
**Please do not link to your actual project.** Instead, we need a reduced test case in a new project without any unnecessary code.
|
|
22
|
-
|
|
23
|
-
### Environment
|
|
24
|
-
|
|
25
|
-
Example: OS, versions, browser details.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
blank_issues_enabled: false
|
|
2
|
-
contact_links:
|
|
3
|
-
- name: Get Help
|
|
4
|
-
url: https://github.com/orgs/anyblades/discussions/categories/help
|
|
5
|
-
about: If you can't get something to work the way you expect, open a question in our discussion forums.
|
|
6
|
-
- name: Feature Request
|
|
7
|
-
url: https://github.com/orgs/anyblades/discussions/categories/ideas
|
|
8
|
-
about: Suggest any ideas you have using our discussion forums.
|