Skip to content

Commit 39950fb

Browse files
committed
fix: Fix style issue.
1 parent 9f2c350 commit 39950fb

File tree

8 files changed

+535
-551
lines changed

8 files changed

+535
-551
lines changed

src/components/CodeMirror/codemirror.less

Lines changed: 273 additions & 275 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11

2-
:global {
3-
.CodeMirror {
4-
font-family: 'source-code-pro', Menlo, 'Courier New', Consolas, monospace;
5-
font-size: 14px;
6-
z-index: 0;
7-
border-radius: 5px;
8-
background: transparent;
9-
}
2+
.CodeMirror {
3+
font-family: 'source-code-pro', Menlo, 'Courier New', Consolas, monospace;
4+
font-size: 14px;
5+
z-index: 0;
6+
border-radius: 5px;
7+
background: transparent;
108
}
Lines changed: 41 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,52 @@
1-
:global {
2-
.hljs {
3-
.comment {
4-
color: #6a737d;
5-
}
1+
2+
.hljs {
3+
.comment {
4+
color: #6a737d;
5+
}
6+
.keyword {
7+
color: #d73a49;
8+
}
9+
.attr {
10+
color: #032f62;
11+
}
12+
.string {
13+
color: #032f62;
14+
}
15+
.class {
616
.keyword {
717
color: #d73a49;
818
}
9-
.attr {
10-
color: #032f62;
11-
}
12-
.string {
13-
color: #032f62;
14-
}
15-
.class {
16-
.keyword {
17-
color: #d73a49;
18-
}
19-
.title {
20-
color: #6f42c1;
21-
}
22-
.title {
23-
color: #6f42c1;
24-
}
19+
.title {
20+
color: #6f42c1;
2521
}
26-
.tag {
27-
.name {
28-
color: #22863a;
29-
}
30-
.attr {
31-
color: #6f42c1;
32-
}
22+
.title {
23+
color: #6f42c1;
3324
}
3425
}
35-
36-
.hljs {
37-
.selector-tag {
38-
color: #22863a;
26+
.tag {
27+
.name {
28+
color: #22863a;
3929
}
40-
.selector-class {
30+
.attr {
4131
color: #6f42c1;
4232
}
43-
.selector-pseudo {
44-
font-weight: bold;
45-
}
46-
.attribute {
47-
color: #005cc5;
48-
}
49-
.number {
50-
color: #005cc5;
51-
}
5233
}
5334
}
35+
36+
.hljs {
37+
.selector-tag {
38+
color: #22863a;
39+
}
40+
.selector-class {
41+
color: #6f42c1;
42+
}
43+
.selector-pseudo {
44+
font-weight: bold;
45+
}
46+
.attribute {
47+
color: #005cc5;
48+
}
49+
.number {
50+
color: #005cc5;
51+
}
52+
}
Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
@editor-prefix:~"md-editor";
22

3-
:global {
4-
.@{editor-prefix} {
5-
&-preview {
6-
width: 0%;
7-
overflow: hidden;
8-
border-left: 0;
9-
position: absolute;
10-
right: 0;
11-
top: 0;
12-
bottom: 0;
13-
}
14-
&-visble {
15-
border-left: 1px solid #dfdfe0;
16-
overflow: auto;
17-
width: 50%;
18-
}
19-
&-markdown {
20-
padding: 20px;
21-
// @import "./default.less";
22-
// @import "./hljs.less";
23-
// @import "./css.less";
24-
}
3+
.@{editor-prefix} {
4+
&-preview {
5+
width: 0%;
6+
overflow: hidden;
7+
border-left: 0;
8+
position: absolute;
9+
right: 0;
10+
top: 0;
11+
bottom: 0;
2512
}
26-
}
13+
&-visble {
14+
border-left: 1px solid #dfdfe0;
15+
overflow: auto;
16+
width: 50%;
17+
}
18+
&-markdown {
19+
padding: 20px;
20+
// @import "./default.less";
21+
// @import "./hljs.less";
22+
// @import "./css.less";
23+
}
24+
}

0 commit comments

Comments
 (0)