@rmdes/indiekit-frontend 1.0.0-beta.37 → 1.0.0-beta.39
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.
|
@@ -29,16 +29,6 @@ checkboxes-field {
|
|
|
29
29
|
position: absolute;
|
|
30
30
|
z-index: 1;
|
|
31
31
|
|
|
32
|
-
&:checked {
|
|
33
|
-
background: var(--color-background)
|
|
34
|
-
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.5 13 2 8.5 3.5 7l3 3 6-6L14 5.5z"/></svg>')
|
|
35
|
-
center center / 100% auto no-repeat;
|
|
36
|
-
|
|
37
|
-
@media (prefers-color-scheme: dark) {
|
|
38
|
-
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M6.5 13 2 8.5 3.5 7l3 3 6-6L14 5.5z"/></svg>');
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
32
|
&:focus-visible {
|
|
43
33
|
border-color: var(--color-on-background);
|
|
44
34
|
border-width: var(--input-border-width-focus);
|
|
@@ -55,6 +45,20 @@ checkboxes-field {
|
|
|
55
45
|
cursor: default;
|
|
56
46
|
}
|
|
57
47
|
}
|
|
48
|
+
|
|
49
|
+
&:checked {
|
|
50
|
+
background: var(--color-background)
|
|
51
|
+
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.5 13 2 8.5 3.5 7l3 3 6-6L14 5.5z"/></svg>')
|
|
52
|
+
center center / 100% auto no-repeat;
|
|
53
|
+
|
|
54
|
+
[data-color-scheme="dark"] & {
|
|
55
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M6.5 13 2 8.5 3.5 7l3 3 6-6L14 5.5z"/></svg>');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media (prefers-color-scheme: dark) {
|
|
59
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M6.5 13 2 8.5 3.5 7l3 3 6-6L14 5.5z"/></svg>');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
.checkboxes__label.label {
|
|
@@ -37,16 +37,6 @@ radios-field {
|
|
|
37
37
|
position: absolute;
|
|
38
38
|
z-index: 1;
|
|
39
39
|
|
|
40
|
-
&:checked {
|
|
41
|
-
background: var(--color-background)
|
|
42
|
-
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="4"/></svg>')
|
|
43
|
-
center center / 100% auto no-repeat;
|
|
44
|
-
|
|
45
|
-
@media (prefers-color-scheme: dark) {
|
|
46
|
-
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle fill="white" cx="8" cy="8" r="4"/></svg>');
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
40
|
&:focus-visible {
|
|
51
41
|
border-color: var(--color-on-background);
|
|
52
42
|
border-width: var(--input-border-width-focus);
|
|
@@ -63,6 +53,14 @@ radios-field {
|
|
|
63
53
|
cursor: default;
|
|
64
54
|
}
|
|
65
55
|
}
|
|
56
|
+
|
|
57
|
+
&:checked {
|
|
58
|
+
background: radial-gradient(
|
|
59
|
+
currentColor 0%,
|
|
60
|
+
currentColor 40%,
|
|
61
|
+
transparent 40%
|
|
62
|
+
);
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
.radios__label.label {
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
[data-color-scheme="dark"] & {
|
|
31
|
+
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="white" d="M0 8h32L16 24z"/></svg%3E');
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
@media (prefers-color-scheme: dark) {
|
|
31
35
|
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="white" d="M0 8h32L16 24z"/></svg%3E');
|
|
32
36
|
}
|
package/lib/serviceworker.js
CHANGED
|
@@ -146,8 +146,14 @@ self.addEventListener("message", (event) => {
|
|
|
146
146
|
self.addEventListener("fetch", (event) => {
|
|
147
147
|
const request = event.request;
|
|
148
148
|
|
|
149
|
-
// Ignore non-GET requests
|
|
150
|
-
|
|
149
|
+
// Ignore cross-origin and non-GET requests.
|
|
150
|
+
// Cross-origin images (avatars, album covers, etc.) must be handled
|
|
151
|
+
// by the browser natively — opaque responses from SW fetch are unreliable
|
|
152
|
+
// and caching them wastes ~7MB each against storage quota.
|
|
153
|
+
if (
|
|
154
|
+
new URL(request.url).origin !== self.location.origin ||
|
|
155
|
+
request.method !== "GET"
|
|
156
|
+
) {
|
|
151
157
|
return;
|
|
152
158
|
}
|
|
153
159
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-frontend",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.39",
|
|
4
4
|
"description": "Frontend components for Indiekit (fork with floating toolbar)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"express",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@accessible-components/tag-input": "^0.2.0",
|
|
44
|
-
"@indiekit/error": "^1.0.0-beta.
|
|
44
|
+
"@indiekit/error": "^1.0.0-beta.27",
|
|
45
45
|
"@indiekit/util": "^1.0.0-beta.25",
|
|
46
46
|
"color": "^5.0.0",
|
|
47
47
|
"easymde": "^2.18.0",
|