@riebeckite/plugin-map 0.0.18 → 0.0.20

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 CHANGED
@@ -173,5 +173,5 @@ to inject a fake Leaflet).
173
173
 
174
174
  ## See also
175
175
 
176
- - [Plugin system](../../../docs/docs/reference/plugin-api.en.md)
176
+ - [Plugin system](../../../docs/docs/reference/plugin-api.md)
177
177
 
package/README_ja.md CHANGED
@@ -139,5 +139,5 @@ Leaflet(`leaflet.js` と `leaflet.css`)は、`[data-rr-map="pending"]` の f
139
139
 
140
140
  ## 関連資料
141
141
 
142
- - [プラグインシステム](../../../docs/docs/reference/plugin-api.md)
142
+ - [プラグインシステム](../../../docs/docs/reference/plugin-api.ja.md)
143
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-map",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "./style.css": "./style.css"
22
22
  },
23
23
  "dependencies": {
24
- "@riebeckite/core": "0.0.18"
24
+ "@riebeckite/core": "0.0.20"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"
package/style.css CHANGED
@@ -100,8 +100,14 @@
100
100
  color: var(--rr-map-muted);
101
101
  }
102
102
 
103
- html[data-theme="dark"] .rr-map,
104
- html.dark .rr-map {
103
+ :is(:root, .rb-theme-root)[data-theme="dark"] .rr-map {
105
104
  --rr-map-paper: var(--rb-color-ink, #000000);
106
105
  --rr-map-ink: var(--rb-color-paper, #ffffff);
107
106
  }
107
+
108
+ @media (prefers-color-scheme: dark) {
109
+ :is(:root, .rb-theme-root):not([data-theme]) .rr-map {
110
+ --rr-map-paper: var(--rb-color-ink, #000000);
111
+ --rr-map-ink: var(--rb-color-paper, #ffffff);
112
+ }
113
+ }