@welshman/editor 0.0.11-pre.2 → 0.0.11-pre.4
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/build/src/index.css +105 -0
- package/package.json +2 -2
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--tiptap-object-bg: #eee;
|
|
3
|
+
--tiptap-object-fg: #111;
|
|
4
|
+
--tiptap-active-bg: #ddd;
|
|
5
|
+
--tiptap-active-fg: #111;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tiptap {
|
|
9
|
+
outline: none;
|
|
10
|
+
min-height: 0;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.tiptap p.is-editor-empty:first-child::before {
|
|
15
|
+
color: #adb5bd;
|
|
16
|
+
content: attr(data-placeholder);
|
|
17
|
+
float: left;
|
|
18
|
+
height: 0;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tiptap pre code {
|
|
23
|
+
display: block;
|
|
24
|
+
max-width: 100%;
|
|
25
|
+
overflow: auto;
|
|
26
|
+
padding: 0.25rem;
|
|
27
|
+
background-color: var(--tiptap-object-bg);
|
|
28
|
+
color: var(--tiptap-object-fg);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tiptap .tiptap-object,
|
|
32
|
+
.tiptap p code,
|
|
33
|
+
.tiptap [tag] {
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
border-radius: 3px;
|
|
39
|
+
padding: 0 0.25rem;
|
|
40
|
+
background-color: var(--tiptap-object-bg);
|
|
41
|
+
color: var(--tiptap-object-fg);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.tiptap .tiptap-active {
|
|
45
|
+
background-color: var(--tiptap-active-bg);
|
|
46
|
+
color: var(--tiptap-active-fg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.tiptap .tiptap-uploading {
|
|
50
|
+
animation: tiptapFileUpload 1.5s infinite;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.tiptap-suggestions {
|
|
54
|
+
margin-top: 0.5rem;
|
|
55
|
+
max-height: 350px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tiptap-suggestions__content {
|
|
59
|
+
border-radius: 3px;
|
|
60
|
+
box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.2);
|
|
61
|
+
overflow-y: auto;
|
|
62
|
+
overflow-x: hidden;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.tiptap-suggestions__create,
|
|
66
|
+
.tiptap-suggestions__item {
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
display: block;
|
|
69
|
+
width: 100%;
|
|
70
|
+
min-width: 0px;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
overflow-x: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
padding: 0.5rem 1rem;
|
|
75
|
+
text-align: left;
|
|
76
|
+
transition-duration: 100ms;
|
|
77
|
+
transition-property: color, background-color;
|
|
78
|
+
background-color: var(--tiptap-object-bg);
|
|
79
|
+
color: var(--tiptap-object-fg);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.tiptap-suggestions__selected,
|
|
83
|
+
.tiptap-suggestions__create:hover,
|
|
84
|
+
.tiptap-suggestions__item:hover {
|
|
85
|
+
background-color: var(--tiptap-active-bg);
|
|
86
|
+
color: var(--tiptap-active-fg);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.tiptap-suggestions__empty {
|
|
90
|
+
display: flex;
|
|
91
|
+
gap: 0.5rem;
|
|
92
|
+
padding: 0.5rem 1rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes tiptapFileUpload {
|
|
96
|
+
0% {
|
|
97
|
+
opacity: 0.2;
|
|
98
|
+
}
|
|
99
|
+
50% {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
100% {
|
|
103
|
+
opacity: 0.2;
|
|
104
|
+
}
|
|
105
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@welshman/editor",
|
|
3
|
-
"version": "0.0.11-pre.
|
|
3
|
+
"version": "0.0.11-pre.4",
|
|
4
4
|
"author": "hodlbod",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A batteries-included nostr editor.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"pub": "npm run lint && npm run build && npm publish",
|
|
25
|
-
"build": "gts clean && tsc",
|
|
25
|
+
"build": "gts clean && tsc && cp src/index.css build/src/index.css",
|
|
26
26
|
"lint": "gts lint",
|
|
27
27
|
"fix": "gts fix"
|
|
28
28
|
},
|