forked from mxx1111/mdlook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.less
More file actions
147 lines (122 loc) · 2.35 KB
/
Copy paththeme.less
File metadata and controls
147 lines (122 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
@nightPreviewColor: #191919;
@nightCodeMirrorColor: #191919;
@nightActiveCodeMirrorColor: gray;
@nightFontColor: gray;
@nightLinkColor: #8e9eb9;
@nightLinkTextColor: #84868b;
@nightLineColor: #84868b;
.dark {
.container {
// CodeMirror v6 兼容
.cm-editor,
.CodeMirror-wrap {
background-color: @nightCodeMirrorColor;
}
.output_night {
.preview {
background-color: @nightPreviewColor;
box-shadow: 0 0 70px rgba(0, 0, 0, 0.3);
}
.preview-wrapper {
background-color: @nightCodeMirrorColor;
box-shadow: inset 0 0 0 1px rgba(233, 231, 231, 0.102);
}
.code-snippet__fix {
background-color: rgb(238, 238, 238);
}
}
::-webkit-scrollbar {
background-color: @nightCodeMirrorColor;
}
}
}
// CodeMirror v5 兼容样式
.CodeMirror {
padding-bottom: 0;
height: 100% !important;
font-size: 16px;
font-family: Consolas, 'Courier New', monospace !important;
}
.CodeMirror-vscrollbar:focus {
outline: none;
}
.CodeMirror-vscrollbar {
width: 0px;
height: 0px;
}
.CodeMirror-wrap {
padding-top: 20px;
padding-bottom: 20px;
box-sizing: border-box;
}
// CodeMirror v6 样式
.cm-editor {
height: 100% !important;
font-size: 16px;
font-family: Consolas, 'Courier New', monospace !important;
.cm-scroller {
overflow-x: auto !important;
overflow-y: auto !important;
// 只隐藏 x 方向的滚动条
&::-webkit-scrollbar:horizontal {
display: none; /* Chrome/Safari/Webkit - 横向滚动条 */
}
}
.cm-content {
padding-bottom: 20px;
}
&.cm-focused {
outline: none;
}
}
.is-tauri {
.cm-editor {
font-size: 17px;
line-height: 1.75;
}
.codemirror-container {
.cm-scroller {
padding: 22px 28px 96px;
}
}
}
.codemirror-container {
height: 100%;
width: 100%;
.cm-scroller {
padding: 10px;
}
}
.cssEditor-wrapper {
.CodeMirror-scroll,
.cm-scroller {
margin-right: 0;
}
}
.cm-em {
font-style: normal;
}
.cm-comment {
font-style: normal !important;
}
// CodeMirror v6 折叠装订线样式
.cm-foldGutter {
.cm-gutterElement {
cursor: pointer;
color: #aaa;
line-height: inherit;
&:hover {
color: #555;
}
}
}
.dark {
.cm-foldGutter {
.cm-gutterElement {
color: #666;
&:hover {
color: #bbb;
}
}
}
}