kun-galgame-vue/src/styles/editor/editor.scss
2023-08-21 17:56:30 +08:00

50 lines
1.5 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 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;
}
/* 设置为 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);
}