@riebeckite/plugin-excalidraw 0.0.1 → 0.0.3
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/package.json +2 -2
- package/style.css +50 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-excalidraw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@excalidraw/excalidraw": "^0.18.0",
|
|
25
25
|
"lz-string": "^1.5.0",
|
|
26
26
|
"unist-util-visit": "^5.0.0",
|
|
27
|
-
"@riebeckite/core": "0.0.
|
|
27
|
+
"@riebeckite/core": "0.0.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/mdast": "^4.0.4"
|
package/style.css
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
.rr-excalidraw {
|
|
2
|
-
--rr-excalidraw-paper: var(--rb-color-paper, #ffffff);
|
|
3
|
-
--rr-excalidraw-ink: var(--rb-color-ink, #000000);
|
|
4
|
-
--rr-excalidraw-muted: var(--rb-color-muted, #69645c);
|
|
5
|
-
--rr-excalidraw-rule: var(
|
|
6
|
-
--rb-color-border,
|
|
7
|
-
color-mix(in srgb, var(--rr-excalidraw-ink) 18%, transparent)
|
|
8
|
-
);
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
width: min(100%, var(--rr-excalidraw-width, 100%));
|
|
11
|
-
max-width: 100%;
|
|
12
|
-
margin: 2rem 0;
|
|
13
|
-
border: 1px solid var(--rr-excalidraw-rule);
|
|
14
|
-
background: var(--rr-excalidraw-paper);
|
|
15
|
-
color: var(--rr-excalidraw-ink);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.rr-excalidraw__canvas {
|
|
19
|
-
display: grid;
|
|
20
|
-
min-height: min(var(--rr-excalidraw-height, 18rem), 70vh);
|
|
21
|
-
overflow: auto;
|
|
22
|
-
place-items: center;
|
|
23
|
-
padding: 1rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.rr-excalidraw__canvas > svg {
|
|
27
|
-
display: block;
|
|
28
|
-
width: 100%;
|
|
29
|
-
max-width: 100%;
|
|
30
|
-
height: var(--rr-excalidraw-height, auto);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.rr-excalidraw__error {
|
|
34
|
-
margin: 0;
|
|
35
|
-
padding: 0 1rem 1rem;
|
|
36
|
-
color: var(--rr-excalidraw-muted);
|
|
37
|
-
font-size: 0.875rem;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.rr-excalidraw[data-excalidraw="pending"] .rr-excalidraw__canvas:empty::before,
|
|
41
|
-
.rr-excalidraw[data-excalidraw="error"] .rr-excalidraw__canvas:empty::before {
|
|
42
|
-
content: "Drawing could not be rendered.";
|
|
43
|
-
color: var(--rr-excalidraw-muted);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
html[data-theme="dark"] .rr-excalidraw,
|
|
47
|
-
html.dark .rr-excalidraw {
|
|
48
|
-
--rr-excalidraw-paper: var(--rb-color-ink, #000000);
|
|
49
|
-
--rr-excalidraw-ink: var(--rb-color-paper, #ffffff);
|
|
50
|
-
}
|
|
1
|
+
.rr-excalidraw {
|
|
2
|
+
--rr-excalidraw-paper: var(--rb-color-paper, #ffffff);
|
|
3
|
+
--rr-excalidraw-ink: var(--rb-color-ink, #000000);
|
|
4
|
+
--rr-excalidraw-muted: var(--rb-color-muted, #69645c);
|
|
5
|
+
--rr-excalidraw-rule: var(
|
|
6
|
+
--rb-color-border,
|
|
7
|
+
color-mix(in srgb, var(--rr-excalidraw-ink) 18%, transparent)
|
|
8
|
+
);
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
width: min(100%, var(--rr-excalidraw-width, 100%));
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
margin: 2rem 0;
|
|
13
|
+
border: 1px solid var(--rr-excalidraw-rule);
|
|
14
|
+
background: var(--rr-excalidraw-paper);
|
|
15
|
+
color: var(--rr-excalidraw-ink);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.rr-excalidraw__canvas {
|
|
19
|
+
display: grid;
|
|
20
|
+
min-height: min(var(--rr-excalidraw-height, 18rem), 70vh);
|
|
21
|
+
overflow: auto;
|
|
22
|
+
place-items: center;
|
|
23
|
+
padding: 1rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.rr-excalidraw__canvas > svg {
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
height: var(--rr-excalidraw-height, auto);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.rr-excalidraw__error {
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0 1rem 1rem;
|
|
36
|
+
color: var(--rr-excalidraw-muted);
|
|
37
|
+
font-size: 0.875rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.rr-excalidraw[data-excalidraw="pending"] .rr-excalidraw__canvas:empty::before,
|
|
41
|
+
.rr-excalidraw[data-excalidraw="error"] .rr-excalidraw__canvas:empty::before {
|
|
42
|
+
content: "Drawing could not be rendered.";
|
|
43
|
+
color: var(--rr-excalidraw-muted);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
html[data-theme="dark"] .rr-excalidraw,
|
|
47
|
+
html.dark .rr-excalidraw {
|
|
48
|
+
--rr-excalidraw-paper: var(--rb-color-ink, #000000);
|
|
49
|
+
--rr-excalidraw-ink: var(--rb-color-paper, #ffffff);
|
|
50
|
+
}
|