diff --git a/src/components/editor/KUNGalgameEditor.vue b/src/components/editor/KUNGalgameEditor.vue index c5a2000a..a05cff6d 100644 --- a/src/components/editor/KUNGalgameEditor.vue +++ b/src/components/editor/KUNGalgameEditor.vue @@ -1,11 +1,17 @@ - - \ No newline at end of file + diff --git a/src/styles/editor/editor.scss b/src/styles/editor/editor.scss deleted file mode 100644 index b78ce46c..00000000 --- a/src/styles/editor/editor.scss +++ /dev/null @@ -1,54 +0,0 @@ -/* wangEditor5 使用了 Shadow DOM,不能直接修改颜色,在全局覆盖 */ - -.w-e-scroll { - &::-webkit-scrollbar { - display: inline; - width: 6px; - height: 0; - } - &::-webkit-scrollbar-thumb { - background: var(--kungalgame-blue-4); - border-radius: 3px; - } -} - -/* 删除线,不然会不显示 */ -s { - text-decoration: line-through; -} - -/* 下划线,不然会不显示 */ -u { - text-decoration: underline; -} - -/* 设置为 none,不然黑夜模式代码块会花屏 */ -* { - text-shadow: none; -} - -:root { - /* textarea - css vars */ - --w-e-textarea-bg-color: var(--kungalgame-white); - --w-e-textarea-color: var(--kungalgame-font-color-3); - --w-e-textarea-border-color: var(--kungalgame-blue-1); - --w-e-textarea-slight-border-color: var(--kungalgame-blue-4); - --w-e-textarea-slight-color: var(--kungalgame-font-color-0); - --w-e-textarea-slight-bg-color: var(--kungalgame-white); - --w-e-textarea-selected-border-color: var(--kungalgame-blue-1); - /* 选中的元素,如选中了分割线 */ - --w-e-textarea-handler-bg-color: var(--kungalgame-blue-4); - /* 工具,如图片拖拽按钮 */ - - /* toolbar - css vars */ - --w-e-toolbar-color: var(--kungalgame-font-color-1); - --w-e-toolbar-bg-color: var(--kungalgame-white); - --w-e-toolbar-active-color: var(--kungalgame-font-color-3); - --w-e-toolbar-active-bg-color: var(--kungalgame-white); - --w-e-toolbar-disabled-color: var(--kungalgame-red-4); - --w-e-toolbar-border-color: var(--kungalgame-blue-4); - - /* modal - css vars */ - --w-e-modal-button-bg-color: var(--kungalgame-white); - --w-e-modal-button-border-color: var(--kungalgame-blue-4); -} diff --git a/src/views/edit/Edit.vue b/src/views/edit/Edit.vue index c9e8b40e..a89a4344 100644 --- a/src/views/edit/Edit.vue +++ b/src/views/edit/Edit.vue @@ -1,51 +1,9 @@