Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 99b0add

Browse files
committed
fix: improve tui editor/viewer styles
1 parent 92bdec7 commit 99b0add

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

src/components/MarkdownEditor/styles.module.scss

-6
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@
3636
}
3737
}
3838

39-
.tui-editor-contents {
40-
b {
41-
font-weight: bold;
42-
}
43-
}
44-
4539
// reset border color
4640
.tui-editor-defaultUI {
4741
border: 1px solid #aaaaab;

src/styles/main.vendor.scss

+19-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,22 @@
77

88
// toast-ui.editor styles
99
@import "~codemirror/lib/codemirror.css";
10-
@import "~@toast-ui/editor/dist/toastui-editor.css"
10+
@import "~@toast-ui/editor/dist/toastui-editor.css";
11+
12+
// custom styles for TuiEditor
13+
.tui-editor-contents {
14+
b {
15+
font-weight: bold;
16+
}
17+
18+
code {
19+
background-color: transparent;
20+
color: inherit;
21+
}
22+
23+
pre {
24+
background-color: transparent;
25+
color: inherit;
26+
padding: 0;
27+
}
28+
}

0 commit comments

Comments
 (0)