@jotx-labs/editor 2.4.130 → 2.4.131

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.
Files changed (45) hide show
  1. package/dist/styles/BlockMenu.css +111 -0
  2. package/dist/styles/ButtonNodeView.css +169 -0
  3. package/dist/styles/ChartNodeView.css +99 -0
  4. package/dist/styles/CodeBlockNodeView.css +90 -0
  5. package/dist/styles/DateTimeNodeView.css +89 -0
  6. package/dist/styles/GridCardNodeView.css +231 -0
  7. package/dist/styles/ImageToolbar.css +67 -0
  8. package/dist/styles/ImageVideoBlocks.css +441 -0
  9. package/dist/styles/JotxEditor.css +691 -0
  10. package/dist/styles/JotxLinkNodeView.css +149 -0
  11. package/dist/styles/LinkDialog.css +118 -0
  12. package/dist/styles/MathNodeView.css +97 -0
  13. package/dist/styles/MermaidNodeView.css +146 -0
  14. package/dist/styles/NodePickerDialog.css +189 -0
  15. package/dist/styles/ReadonlyBlockRenderer.css +389 -0
  16. package/dist/styles/SearchBar.css +167 -0
  17. package/dist/styles/SearchHighlight.css +48 -0
  18. package/dist/styles/SectionNodeView.css +90 -0
  19. package/dist/styles/SlashMenu.css +135 -0
  20. package/dist/styles/SpellCheck.css +16 -0
  21. package/dist/styles/TableToolbar.css +137 -0
  22. package/dist/styles/ToggleNodeView.css +56 -0
  23. package/package.json +4 -3
  24. package/src/styles/BlockMenu.css +111 -0
  25. package/src/styles/ButtonNodeView.css +169 -0
  26. package/src/styles/ChartNodeView.css +99 -0
  27. package/src/styles/CodeBlockNodeView.css +90 -0
  28. package/src/styles/DateTimeNodeView.css +89 -0
  29. package/src/styles/GridCardNodeView.css +231 -0
  30. package/src/styles/ImageToolbar.css +67 -0
  31. package/src/styles/ImageVideoBlocks.css +441 -0
  32. package/src/styles/JotxEditor.css +691 -0
  33. package/src/styles/JotxLinkNodeView.css +149 -0
  34. package/src/styles/LinkDialog.css +118 -0
  35. package/src/styles/MathNodeView.css +97 -0
  36. package/src/styles/MermaidNodeView.css +146 -0
  37. package/src/styles/NodePickerDialog.css +189 -0
  38. package/src/styles/ReadonlyBlockRenderer.css +389 -0
  39. package/src/styles/SearchBar.css +167 -0
  40. package/src/styles/SearchHighlight.css +48 -0
  41. package/src/styles/SectionNodeView.css +90 -0
  42. package/src/styles/SlashMenu.css +135 -0
  43. package/src/styles/SpellCheck.css +16 -0
  44. package/src/styles/TableToolbar.css +137 -0
  45. package/src/styles/ToggleNodeView.css +56 -0
@@ -0,0 +1,135 @@
1
+ /**
2
+ * Slash Menu Styles - Beautiful, Notion-like
3
+ */
4
+
5
+ .jotx-slash-menu {
6
+ position: fixed;
7
+ min-width: 320px;
8
+ max-width: 400px;
9
+ background-color: var(--jotx-background);
10
+ border: 1px solid var(--jotx-border);
11
+ border-radius: 8px;
12
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
13
+ z-index: 1000;
14
+ overflow: hidden;
15
+ animation: slideIn 0.15s ease-out;
16
+ }
17
+
18
+ @keyframes slideIn {
19
+ from {
20
+ opacity: 0;
21
+ transform: translateY(-8px) scale(0.96);
22
+ }
23
+ to {
24
+ opacity: 1;
25
+ transform: translateY(0) scale(1);
26
+ }
27
+ }
28
+
29
+ .jotx-slash-menu-header {
30
+ padding: 12px 16px;
31
+ font-size: 11px;
32
+ font-weight: 600;
33
+ text-transform: uppercase;
34
+ letter-spacing: 0.5px;
35
+ color: var(--jotx-textSecondary);
36
+ background-color: var(--jotx-backgroundSecondary);
37
+ border-bottom: 1px solid var(--jotx-border);
38
+ }
39
+
40
+ .jotx-slash-menu-items {
41
+ max-height: 400px;
42
+ overflow-y: auto;
43
+ padding: 4px;
44
+ }
45
+
46
+ .jotx-slash-menu-items::-webkit-scrollbar {
47
+ width: 8px;
48
+ }
49
+
50
+ .jotx-slash-menu-items::-webkit-scrollbar-track {
51
+ background: transparent;
52
+ }
53
+
54
+ .jotx-slash-menu-items::-webkit-scrollbar-thumb {
55
+ background: var(--jotx-border);
56
+ border-radius: 4px;
57
+ }
58
+
59
+ .jotx-slash-menu-item {
60
+ display: flex;
61
+ align-items: flex-start;
62
+ gap: 12px;
63
+ width: 100%;
64
+ padding: 10px 12px;
65
+ background-color: transparent;
66
+ border: none;
67
+ border-radius: 6px;
68
+ cursor: pointer;
69
+ transition: all 0.15s;
70
+ text-align: left;
71
+ }
72
+
73
+ .jotx-slash-menu-item:hover,
74
+ .jotx-slash-menu-item.selected {
75
+ background-color: var(--jotx-backgroundSecondary);
76
+ }
77
+
78
+ .jotx-slash-menu-item.selected {
79
+ box-shadow: inset 0 0 0 1px var(--jotx-primary);
80
+ }
81
+
82
+ .jotx-slash-menu-icon {
83
+ font-size: 20px;
84
+ line-height: 1;
85
+ flex-shrink: 0;
86
+ margin-top: 2px;
87
+ }
88
+
89
+ .jotx-slash-menu-content {
90
+ flex: 1;
91
+ min-width: 0;
92
+ }
93
+
94
+ .jotx-slash-menu-label {
95
+ font-size: 14px;
96
+ font-weight: 500;
97
+ color: var(--jotx-text);
98
+ margin-bottom: 2px;
99
+ }
100
+
101
+ .jotx-slash-menu-description {
102
+ font-size: 12px;
103
+ color: var(--jotx-textSecondary);
104
+ line-height: 1.4;
105
+ }
106
+
107
+ .jotx-slash-menu-footer {
108
+ padding: 8px 16px;
109
+ font-size: 11px;
110
+ color: var(--jotx-textMuted);
111
+ background-color: var(--jotx-backgroundSecondary);
112
+ border-top: 1px solid var(--jotx-border);
113
+ display: flex;
114
+ align-items: center;
115
+ gap: 4px;
116
+ }
117
+
118
+ .jotx-slash-menu-footer kbd {
119
+ padding: 2px 6px;
120
+ font-size: 10px;
121
+ font-family: inherit;
122
+ font-weight: 600;
123
+ color: var(--jotx-textSecondary);
124
+ background-color: var(--jotx-backgroundTertiary);
125
+ border: 1px solid var(--jotx-border);
126
+ border-radius: 3px;
127
+ }
128
+
129
+ .jotx-slash-menu-empty {
130
+ padding: 24px 16px;
131
+ text-align: center;
132
+ font-size: 13px;
133
+ color: var(--jotx-textSecondary);
134
+ }
135
+
@@ -0,0 +1,16 @@
1
+ /* Spell Check Styles */
2
+
3
+ /* Red wavy underline for misspelled words */
4
+ .spelling-error {
5
+ text-decoration: underline wavy #ef4444;
6
+ text-decoration-skip-ink: none;
7
+ text-underline-offset: 2px;
8
+ }
9
+
10
+ /* Make sure the underline is visible but not too intrusive */
11
+ .spelling-error:hover {
12
+ background-color: rgba(239, 68, 68, 0.1);
13
+ border-radius: 2px;
14
+ }
15
+
16
+ /* Suggestions menu styling is inline in the extension */
@@ -0,0 +1,137 @@
1
+ .jotx-table-toolbar {
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: center;
5
+ gap: 12px;
6
+ padding: 8px 12px;
7
+ border: 1px solid var(--jotx-border);
8
+ background: var(--jotx-backgroundSecondary);
9
+ border-radius: 12px;
10
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
11
+ color: var(--jotx-text);
12
+ white-space: nowrap;
13
+ }
14
+
15
+ .jotx-table-toolbar-floating {
16
+ position: fixed;
17
+ z-index: 9999;
18
+ }
19
+
20
+ .jotx-table-handle {
21
+ display: inline-flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ width: 34px;
25
+ height: 34px;
26
+ border-radius: 10px;
27
+ border: 1px solid var(--jotx-border);
28
+ background: var(--jotx-backgroundSecondary);
29
+ color: var(--jotx-textSecondary);
30
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
31
+ cursor: pointer;
32
+ }
33
+
34
+ .jotx-table-handle:hover {
35
+ color: var(--jotx-text);
36
+ border-color: rgba(99, 102, 241, 0.35);
37
+ box-shadow: 0 10px 26px rgba(99, 102, 241, 0.14);
38
+ }
39
+
40
+ .jotx-table-filter-input {
41
+ width: 180px;
42
+ height: 30px;
43
+ padding: 0 10px;
44
+ border-radius: 10px;
45
+ border: 1px solid var(--jotx-border);
46
+ background: var(--jotx-background);
47
+ color: var(--jotx-text);
48
+ outline: none;
49
+ font-size: 13px;
50
+ }
51
+
52
+ .jotx-table-filter-input:focus {
53
+ border-color: rgba(99, 102, 241, 0.5);
54
+ box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
55
+ }
56
+
57
+ .jotx-table-filter-select {
58
+ height: 30px;
59
+ padding: 0 10px;
60
+ border-radius: 10px;
61
+ border: 1px solid var(--jotx-border);
62
+ background: var(--jotx-background);
63
+ color: var(--jotx-text);
64
+ outline: none;
65
+ font-size: 13px;
66
+ }
67
+
68
+ .jotx-table-toolbar-group {
69
+ display: flex;
70
+ align-items: center;
71
+ gap: 6px;
72
+ }
73
+
74
+ .jotx-table-toolbar-row {
75
+ display: flex;
76
+ align-items: center;
77
+ gap: 10px;
78
+ flex-wrap: wrap;
79
+ }
80
+
81
+ .jotx-table-toolbar-row-secondary {
82
+ padding-top: 2px;
83
+ }
84
+
85
+ .jotx-table-toolbar-label {
86
+ display: inline-flex;
87
+ align-items: center;
88
+ gap: 6px;
89
+ font-size: 12px;
90
+ font-weight: 700;
91
+ color: var(--jotx-textSecondary);
92
+ padding: 0 4px;
93
+ }
94
+
95
+ .jotx-table-toolbar-btn {
96
+ position: relative;
97
+ display: inline-flex;
98
+ align-items: center;
99
+ justify-content: center;
100
+ gap: 2px;
101
+ width: 34px;
102
+ height: 30px;
103
+ border-radius: 10px;
104
+ border: 1px solid var(--jotx-border);
105
+ background: var(--jotx-background);
106
+ color: var(--jotx-text);
107
+ cursor: pointer;
108
+ }
109
+
110
+ .jotx-table-toolbar-btn:disabled {
111
+ opacity: 0.45;
112
+ cursor: not-allowed;
113
+ transform: none !important;
114
+ box-shadow: none !important;
115
+ }
116
+
117
+ .jotx-table-toolbar-btn:hover {
118
+ transform: translateY(-1px);
119
+ border-color: rgba(99, 102, 241, 0.35);
120
+ box-shadow: 0 8px 18px rgba(99, 102, 241, 0.12);
121
+ }
122
+
123
+ .jotx-table-toolbar-danger {
124
+ border-color: rgba(239, 68, 68, 0.35);
125
+ }
126
+
127
+ .jotx-table-toolbar-danger:hover {
128
+ border-color: rgba(239, 68, 68, 0.65);
129
+ box-shadow: 0 8px 18px rgba(239, 68, 68, 0.14);
130
+ }
131
+
132
+ .jotx-table-toolbar-sep {
133
+ width: 1px;
134
+ height: 22px;
135
+ background: var(--jotx-border);
136
+ opacity: 0.9;
137
+ }
@@ -0,0 +1,56 @@
1
+ .jotx-toggle {
2
+ border: 1px solid var(--jotx-border);
3
+ background: var(--jotx-backgroundSecondary);
4
+ border-radius: 12px;
5
+ padding: 10px 12px;
6
+ margin: 1em 0;
7
+ }
8
+
9
+ .jotx-toggle-header {
10
+ display: flex;
11
+ align-items: center;
12
+ gap: 8px;
13
+ margin-bottom: 8px;
14
+ }
15
+
16
+ .jotx-toggle-chevron {
17
+ width: 28px;
18
+ height: 28px;
19
+ border: none;
20
+ background: transparent;
21
+ color: var(--jotx-textSecondary);
22
+ border-radius: 8px;
23
+ display: inline-flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ cursor: pointer;
27
+ }
28
+
29
+ .jotx-toggle-chevron:hover {
30
+ background: var(--jotx-background);
31
+ color: var(--jotx-text);
32
+ }
33
+
34
+ .jotx-toggle-title {
35
+ flex: 1;
36
+ min-width: 0;
37
+ border: none;
38
+ outline: none;
39
+ background: transparent;
40
+ color: var(--jotx-text);
41
+ font-weight: 700;
42
+ font-size: 13px;
43
+ padding: 4px 6px;
44
+ border-radius: 8px;
45
+ }
46
+
47
+ .jotx-toggle-title:focus {
48
+ background: var(--jotx-background);
49
+ box-shadow: 0 0 0 1px var(--jotx-border) inset;
50
+ }
51
+
52
+ .jotx-toggle-content-inner > *:first-child {
53
+ margin-top: 0;
54
+ }
55
+
56
+