Skip to content

Commit 54392f3

Browse files
committed
style: update MarkdownEditor styles with SCSS and add new styles for improved UI
1 parent 9769c10 commit 54392f3

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

custom/MarkdownEditor.vue

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ onBeforeUnmount(() => {
186186
});
187187
</script>
188188

189-
<style>
189+
<style lang="scss">
190190
#editor [contenteditable="true"] {
191191
@apply bg-transparent outline-none border-none shadow-none transition-none min-h-10 p-2 bg-gray-700 dark:placeholder-gray-400;
192192
}
@@ -224,4 +224,39 @@ onBeforeUnmount(() => {
224224
}
225225
226226
227+
#editor div {
228+
border-radius: 6px;
229+
}
230+
231+
.ProseMirror [data-placeholder]::before {
232+
color: #6b7280;
233+
}
234+
235+
.milkdown milkdown-block-handle .operation-item:hover {
236+
@apply bg-gray-200 dark:bg-gray-600;
237+
}
238+
239+
.milkdown milkdown-slash-menu .tab-group ul li:hover {
240+
@apply bg-gray-200 dark:bg-gray-600;
241+
}
242+
243+
.milkdown milkdown-toolbar {
244+
@apply bg-gray-50 border border-gray-300 text-gray-900 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white;
245+
}
246+
247+
.milkdown milkdown-toolbar .toolbar-item:hover {
248+
@apply bg-gray-200 dark:bg-gray-600;
249+
}
250+
251+
.milkdown milkdown-latex-inline-edit {
252+
@apply bg-gray-200
253+
}
254+
255+
.milkdown milkdown-latex-inline-edit .container button:hover {
256+
@apply bg-gray-300 dark:bg-gray-500;
257+
}
258+
259+
.milkdown milkdown-link-edit > .link-edit {
260+
@apply bg-gray-50 border border-gray-300 text-gray-900 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white;
261+
}
227262
</style>

0 commit comments

Comments
 (0)