@nextblock-cms/editor 0.0.3 → 0.0.5

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.
@@ -0,0 +1,89 @@
1
+ /* libs/editor/src/styles/editor.css */
2
+
3
+ /* Import drag handle styles */
4
+ @import './drag-handle.css';
5
+
6
+ .is-editor-empty,
7
+ .is-empty {
8
+ position: relative;
9
+ }
10
+
11
+ .ProseMirror .is-editor-empty::before,
12
+ .ProseMirror .is-empty::before {
13
+ content: attr(data-placeholder);
14
+ color: #94a3b8;
15
+ font-style: italic;
16
+ pointer-events: none;
17
+ opacity: 0.7;
18
+ }
19
+
20
+ .ProseMirror .is-empty::before {
21
+ float: left;
22
+ height: 0;
23
+ }
24
+
25
+ .ProseMirror .is-empty-heading-1::before {
26
+ font-size: 2.25rem;
27
+ font-weight: 600;
28
+ }
29
+
30
+ .ProseMirror .is-empty-heading-2::before {
31
+ font-size: 1.875rem;
32
+ font-weight: 600;
33
+ }
34
+
35
+ .ProseMirror .is-empty-heading-3::before {
36
+ font-size: 1.5rem;
37
+ font-weight: 600;
38
+ }
39
+
40
+ .ProseMirror .is-empty-blockquote::before {
41
+ font-style: italic;
42
+ opacity: 0.6;
43
+ }
44
+
45
+ .ProseMirror .is-empty-code-block::before {
46
+ font-family: var(--font-mono, ui-monospace, SFMono-Regular, SFMono, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
47
+ font-size: 0.9rem;
48
+ opacity: 0.5;
49
+ }
50
+
51
+ /* Suppress placeholder floats inside table cells to keep caret aligned */
52
+ .ProseMirror td .is-empty::before,
53
+ .ProseMirror th .is-empty::before,
54
+ .ProseMirror td.is-empty::before,
55
+ .ProseMirror th.is-empty::before {
56
+ content: none;
57
+ display: none;
58
+ float: none;
59
+ height: auto;
60
+ }
61
+
62
+ .ProseMirror td.is-empty,
63
+ .ProseMirror th.is-empty {
64
+ position: static;
65
+ }
66
+
67
+ .ProseMirror table .is-empty::before {
68
+ content: none !important;
69
+ display: none !important;
70
+ float: none !important;
71
+ height: auto !important;
72
+ }
73
+
74
+
75
+ .ProseMirror table .is-empty {
76
+ position: static !important;
77
+ }
78
+
79
+
80
+ /* Custom text selection style */
81
+ ::selection {
82
+ background: rgba(0, 0, 0, 0.05);
83
+ color: inherit;
84
+ }
85
+
86
+ ::-moz-selection {
87
+ background: rgba(0, 0, 0, 0.05);
88
+ color: inherit;
89
+ }
@@ -0,0 +1,7 @@
1
+ .ProseMirror p.is-editor-empty:first-child::before {
2
+ content: attr(data-placeholder);
3
+ float: left;
4
+ color: #adb5bd;
5
+ pointer-events: none;
6
+ height: 0;
7
+ }