@techie_doubts/editor-plugin-code-syntax-highlight 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +310 -0
- package/dist/td-editor-plugin-code-syntax-highlight-all.js +20658 -0
- package/dist/td-editor-plugin-code-syntax-highlight.css +377 -0
- package/dist/td-editor-plugin-code-syntax-highlight.js +803 -0
- package/dist/toastui-editor-plugin-code-syntax-highlight-all.js +20658 -0
- package/dist/toastui-editor-plugin-code-syntax-highlight.css +377 -0
- package/dist/toastui-editor-plugin-code-syntax-highlight.js +803 -0
- package/package.json +58 -0
- package/types/index.d.ts +21 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* TOAST UI Editor : Code Syntax Highlight Plugin
|
|
3
|
+
* @version 3.1.0 | Fri Feb 20 2026
|
|
4
|
+
* @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
/* prevent to create draggable box in IE with prism */
|
|
8
|
+
pre[class*="language-"] {
|
|
9
|
+
overflow: visible;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.toastui-editor-ww-code-block-highlighting {
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Override Prism default theme that sets text-shadow, different line-height and font */
|
|
17
|
+
.toastui-editor-ww-code-block-highlighting pre[class*="language-"],
|
|
18
|
+
.toastui-editor-ww-code-block-highlighting code[class*="language-"] {
|
|
19
|
+
text-shadow: none;
|
|
20
|
+
line-height: 160%;
|
|
21
|
+
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
22
|
+
font-size: 13px;
|
|
23
|
+
white-space: pre;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.toastui-editor-ww-code-block-highlighting pre {
|
|
27
|
+
overflow-x: auto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.toastui-editor-ww-code-block-highlighting pre code {
|
|
31
|
+
display: block;
|
|
32
|
+
white-space: pre;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Legacy ::after badge (hidden when toolbar is present) */
|
|
36
|
+
.toastui-editor-ww-code-block-highlighting:after {
|
|
37
|
+
content: attr(data-language);
|
|
38
|
+
position: absolute;
|
|
39
|
+
display: inline-block;
|
|
40
|
+
top: 10px;
|
|
41
|
+
right: 10px;
|
|
42
|
+
height: 24px;
|
|
43
|
+
padding: 3px 30px 0 10px;
|
|
44
|
+
font-weight: bold;
|
|
45
|
+
font-size: 13px;
|
|
46
|
+
color: #333;
|
|
47
|
+
background-color: #e5e9ea;
|
|
48
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuugiOydtOyWtF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCgkgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMzAgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMwIDMwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6IzU1NTU1NTt9Cjwvc3R5bGU+CjxnPgoJPGc+CgkJPGc+CgkJCTxnPgoJCQkJPGc+CgkJCQkJPHBhdGggY2xhc3M9InN0MCIgZD0iTTE1LjUsMTIuNWwyLDJMMTIsMjBoLTJ2LTJMMTUuNSwxMi41eiBNMTgsMTBsMiwybC0xLjUsMS41bC0yLTJMMTgsMTB6Ii8+CgkJCQk8L2c+CgkJCTwvZz4KCQk8L2c+Cgk8L2c+CjwvZz4KPC9zdmc+Cg==);
|
|
49
|
+
background-repeat: no-repeat;
|
|
50
|
+
background-position: right;
|
|
51
|
+
background-size: 30px 30px;
|
|
52
|
+
border-radius: 2px;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.toastui-editor-ww-code-block-highlighting.has-toolbar::after {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Toolbar container (holds language label + line number badge side by side) */
|
|
61
|
+
.toastui-editor-code-block-toolbar {
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 10px;
|
|
64
|
+
right: 10px;
|
|
65
|
+
display: flex;
|
|
66
|
+
gap: 6px;
|
|
67
|
+
z-index: 2;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Language label (real DOM element replacing ::after) */
|
|
71
|
+
.toastui-editor-code-block-lang-label {
|
|
72
|
+
height: 24px;
|
|
73
|
+
padding: 3px 30px 0 10px;
|
|
74
|
+
font-weight: bold;
|
|
75
|
+
font-size: 13px;
|
|
76
|
+
color: #333;
|
|
77
|
+
background-color: #e5e9ea;
|
|
78
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuugiOydtOyWtF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCgkgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMzAgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMwIDMwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6IzU1NTU1NTt9Cjwvc3R5bGU+CjxnPgoJPGc+CgkJPGc+CgkJCTxnPgoJCQkJPGc+CgkJCQkJPHBhdGggY2xhc3M9InN0MCIgZD0iTTE1LjUsMTIuNWwyLDJMMTIsMjBoLTJ2LTJMMTUuNSwxMi41eiBNMTgsMTBsMiwybC0xLjUsMS41bC0yLTJMMTgsMTB6Ii8+CgkJCQk8L2c+CgkJCTwvZz4KCQk8L2c+Cgk8L2c+CjwvZz4KPC9zdmc+Cg==);
|
|
79
|
+
background-repeat: no-repeat;
|
|
80
|
+
background-position: right;
|
|
81
|
+
background-size: 30px 30px;
|
|
82
|
+
border-radius: 2px;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Line number badge with native <input> (inline in toolbar) */
|
|
87
|
+
.toastui-editor-line-number-badge {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
gap: 2px;
|
|
91
|
+
height: 24px;
|
|
92
|
+
padding: 3px 6px 0 8px;
|
|
93
|
+
font-size: 13px;
|
|
94
|
+
font-weight: bold;
|
|
95
|
+
color: #555;
|
|
96
|
+
background-color: #e5e9ea;
|
|
97
|
+
border-radius: 2px;
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
line-height: 24px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.toastui-editor-line-number-input {
|
|
103
|
+
border: none;
|
|
104
|
+
background: transparent;
|
|
105
|
+
color: inherit;
|
|
106
|
+
font-size: inherit;
|
|
107
|
+
font-weight: inherit;
|
|
108
|
+
outline: none;
|
|
109
|
+
padding: 0;
|
|
110
|
+
margin: 0;
|
|
111
|
+
width: 42px;
|
|
112
|
+
line-height: 24px;
|
|
113
|
+
text-align: center;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Copy code button */
|
|
117
|
+
.toastui-editor-code-block-copy {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
height: 24px;
|
|
122
|
+
width: 28px;
|
|
123
|
+
padding: 3px 0 0 0;
|
|
124
|
+
background-color: #e5e9ea;
|
|
125
|
+
border: none;
|
|
126
|
+
border-radius: 2px;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
color: #555;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.toastui-editor-code-block-copy:hover {
|
|
132
|
+
background-color: #d0d4d6;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.toastui-editor-code-block-copy.copied svg {
|
|
136
|
+
display: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.toastui-editor-code-block-copy.copied::after {
|
|
140
|
+
content: "✓";
|
|
141
|
+
color: #4caf50;
|
|
142
|
+
font-size: 14px;
|
|
143
|
+
font-weight: bold;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.toastui-editor-line-number-input::placeholder {
|
|
147
|
+
color: #999;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.toastui-editor-line-number-input:focus {
|
|
151
|
+
background: rgba(0, 0, 0, 0.05);
|
|
152
|
+
border-radius: 2px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.toastui-editor-code-block-lang-label:hover {
|
|
156
|
+
background-color: #d0d4d6;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Flex layout for code blocks with line numbers */
|
|
160
|
+
.toastui-editor-ww-code-block-highlighting.has-line-numbers {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: row;
|
|
163
|
+
align-items: stretch;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.toastui-editor-ww-code-block-highlighting.has-line-numbers pre {
|
|
167
|
+
flex: 1;
|
|
168
|
+
min-width: 0;
|
|
169
|
+
margin: 0;
|
|
170
|
+
padding: 0;
|
|
171
|
+
border-top-left-radius: 0;
|
|
172
|
+
border-bottom-left-radius: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.toastui-editor-ww-code-block-highlighting.has-line-numbers pre code {
|
|
176
|
+
padding: 18px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.toastui-editor-ww-code-block-gutter {
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
box-sizing: border-box;
|
|
182
|
+
padding: 18px 10px 18px 10px;
|
|
183
|
+
text-align: right;
|
|
184
|
+
white-space: pre;
|
|
185
|
+
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
186
|
+
font-size: 13px;
|
|
187
|
+
line-height: 160%;
|
|
188
|
+
color: #999;
|
|
189
|
+
background: #f4f5f6;
|
|
190
|
+
border-right: 1px solid #dadde0;
|
|
191
|
+
border-radius: 4px 0 0 4px;
|
|
192
|
+
user-select: none;
|
|
193
|
+
cursor: default;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Dark mode */
|
|
197
|
+
.toastui-editor-dark .toastui-editor-ww-code-block-gutter {
|
|
198
|
+
color: #555;
|
|
199
|
+
background: #1a1b1e;
|
|
200
|
+
border-right-color: #393b42;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.toastui-editor-dark .toastui-editor-code-block-lang-label {
|
|
204
|
+
background-color: #232428;
|
|
205
|
+
border: 1px solid #393b42;
|
|
206
|
+
color: #eee;
|
|
207
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuugiOydtOyWtF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCgkgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMzAgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMwIDMwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6I2ZmZjt9Cjwvc3R5bGU+CjxnPgoJPGc+CgkJPGc+CgkJCTxnPgoJCQkJPGc+CgkJCQkJPHBhdGggY2xhc3M9InN0MCIgZD0iTTE1LjUsMTIuNWwyLDJMMTIsMjBoLTJ2LTJMMTUuNSwxMi41eiBNMTgsMTBsMiwybC0xLjUsMS41bC0yLTJMMTgsMTB6Ii8+CgkJCQk8L2c+CgkJCTwvZz4KCQk8L2c+Cgk8L2c+CjwvZz4KPC9zdmc+Cg==);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.toastui-editor-dark .toastui-editor-code-block-lang-label:hover {
|
|
211
|
+
background-color: #2a2b30;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.toastui-editor-dark .toastui-editor-line-number-badge {
|
|
215
|
+
background-color: #232428;
|
|
216
|
+
border: 1px solid #393b42;
|
|
217
|
+
color: #aaa;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.toastui-editor-dark .toastui-editor-line-number-input {
|
|
221
|
+
color: #aaa;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.toastui-editor-dark .toastui-editor-line-number-input::placeholder {
|
|
225
|
+
color: #666;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.toastui-editor-dark .toastui-editor-line-number-input:focus {
|
|
229
|
+
background: rgba(255, 255, 255, 0.08);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.toastui-editor-dark .toastui-editor-code-block-copy {
|
|
233
|
+
background-color: #232428;
|
|
234
|
+
border: 1px solid #393b42;
|
|
235
|
+
color: #aaa;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.toastui-editor-dark .toastui-editor-code-block-copy:hover {
|
|
239
|
+
background-color: #2a2b30;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.toastui-editor-code-block-language {
|
|
243
|
+
position: fixed;
|
|
244
|
+
display: inline-block;
|
|
245
|
+
right: 35px;
|
|
246
|
+
z-index: 30;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.toastui-editor-code-block-language-input {
|
|
250
|
+
position: relative;
|
|
251
|
+
display: inline-block;
|
|
252
|
+
padding: 0 22px 0 10px;
|
|
253
|
+
width: 112px;
|
|
254
|
+
height: 26px;
|
|
255
|
+
border: 1px solid #ccc;
|
|
256
|
+
border-radius: 2px;
|
|
257
|
+
background-color: #fff;
|
|
258
|
+
cursor: pointer;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.toastui-editor-code-block-language-input input {
|
|
262
|
+
margin: 0;
|
|
263
|
+
padding: 0;
|
|
264
|
+
height: 100%;
|
|
265
|
+
width: 100%;
|
|
266
|
+
background-color: #fff;
|
|
267
|
+
color: #222;
|
|
268
|
+
border: none;
|
|
269
|
+
outline: none;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.toastui-editor-code-block-language-input input::placeholder {
|
|
273
|
+
color: #ccc;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.toastui-editor-code-block-language-input input::-ms-clear {
|
|
277
|
+
display: none;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.toastui-editor-code-block-language .toastui-editor-code-block-language-input::after {
|
|
281
|
+
content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuugiOydtOyWtF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCgkgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIgMTQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEyIDE0OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6IzIyMjIyMjt9Cjwvc3R5bGU+CjxkZXNjPkNyZWF0ZWQgd2l0aCBza2V0Y2h0b29sLjwvZGVzYz4KPGcgaWQ9IlN5bWJvbHMiPgoJPGcgaWQ9ImNvbS10cmFuZ2xlLWQtc2lkZSI+CgkJPHBvbHlnb24gaWQ9IlJlY3RhbmdsZS03IiBjbGFzcz0ic3QwIiBwb2ludHM9IjIsNSAxMCw1IDYsMTAgCQkiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K);
|
|
282
|
+
position: absolute;
|
|
283
|
+
display: inline-block;
|
|
284
|
+
top: 7px;
|
|
285
|
+
right: 5px;
|
|
286
|
+
width: 12px;
|
|
287
|
+
height: 14px;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.toastui-editor-code-block-language.active .toastui-editor-code-block-language-input::after {
|
|
291
|
+
content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuugiOydtOyWtF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCgkgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIgMTQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEyIDE0OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6IzIyMjIyMjt9Cjwvc3R5bGU+CjxkZXNjPkNyZWF0ZWQgd2l0aCBza2V0Y2h0b29sLjwvZGVzYz4KPGcgaWQ9IlN5bWJvbHMiPgoJPGcgaWQ9ImNvbS10cmFuZ2xlLXVwLXNpZGUiPgoJCTxwb2x5Z29uIGlkPSJSZWN0YW5nbGUtNyIgY2xhc3M9InN0MCIgcG9pbnRzPSIyLDkgMTAsOSA2LDQgCQkiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.toastui-editor-code-block-language-list {
|
|
295
|
+
position: fixed;
|
|
296
|
+
margin-top: -1px;
|
|
297
|
+
width: 144px;
|
|
298
|
+
border: solid 1px #ccc;
|
|
299
|
+
border-bottom-left-radius: 2px;
|
|
300
|
+
border-bottom-right-radius: 2px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.toastui-editor-code-block-language-list .buttons {
|
|
304
|
+
max-height: 169px;
|
|
305
|
+
overflow: auto;
|
|
306
|
+
padding: 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.toastui-editor-code-block-language-list button {
|
|
310
|
+
width: 100%;
|
|
311
|
+
background-color: #fff;
|
|
312
|
+
border: none;
|
|
313
|
+
outline: 0;
|
|
314
|
+
padding: 0 10px;
|
|
315
|
+
font-size: 13px;
|
|
316
|
+
line-height: 24px;
|
|
317
|
+
text-align: left;
|
|
318
|
+
color: #222;
|
|
319
|
+
cursor: pointer;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.toastui-editor-code-block-language-list button.active {
|
|
323
|
+
color: #4b96e6;
|
|
324
|
+
font-weight: bold;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.toastui-editor-code-block-language-list button:hover {
|
|
328
|
+
background-color: #f4f7f8;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.toastui-editor-dark .toastui-editor-code-block-language-input input::placeholder {
|
|
332
|
+
color: #eee;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.toastui-editor-dark .toastui-editor-ww-code-block-highlighting:after {
|
|
336
|
+
background-color: #232428;
|
|
337
|
+
border: 1px solid #393b42;
|
|
338
|
+
color: #eee;
|
|
339
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuugiOydtOyWtF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCgkgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMzAgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMwIDMwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6I2ZmZjt9Cjwvc3R5bGU+CjxnPgoJPGc+CgkJPGc+CgkJCTxnPgoJCQkJPGc+CgkJCQkJPHBhdGggY2xhc3M9InN0MCIgZD0iTTE1LjUsMTIuNWwyLDJMMTIsMjBoLTJ2LTJMMTUuNSwxMi41eiBNMTgsMTBsMiwybC0xLjUsMS41bC0yLTJMMTgsMTB6Ii8+CgkJCQk8L2c+CgkJCTwvZz4KCQk8L2c+Cgk8L2c+CjwvZz4KPC9zdmc+Cg==);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.toastui-editor-dark .toastui-editor-code-block-language span {
|
|
343
|
+
border: 1px solid #494c56;
|
|
344
|
+
background-color: #121212;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.toastui-editor-dark .toastui-editor-code-block-language input {
|
|
348
|
+
background-color: #121212;
|
|
349
|
+
color: #eee;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.toastui-editor-dark .toastui-editor-code-block-language-list {
|
|
353
|
+
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
|
|
354
|
+
border: 1px solid #494c56;
|
|
355
|
+
border-radius: 2px;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.toastui-editor-dark .toastui-editor-code-block-language-list button {
|
|
359
|
+
color: #eee;
|
|
360
|
+
background-color: #121212;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.toastui-editor-dark .toastui-editor-code-block-language-list button.active {
|
|
364
|
+
color: #4b96e6;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.toastui-editor-dark .toastui-editor-code-block-language-list button:hover {
|
|
368
|
+
background-color: #36383f;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.toastui-editor-dark .toastui-editor-code-block-language .toastui-editor-code-block-language-input::after {
|
|
372
|
+
content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuugiOydtOyWtF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCgkgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIgMTQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEyIDE0OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6I2ZmZjt9Cjwvc3R5bGU+CjxkZXNjPkNyZWF0ZWQgd2l0aCBza2V0Y2h0b29sLjwvZGVzYz4KPGcgaWQ9IlN5bWJvbHMiPgoJPGcgaWQ9ImNvbS10cmFuZ2xlLWQtc2lkZSI+CgkJPHBvbHlnb24gaWQ9IlJlY3RhbmdsZS03IiBjbGFzcz0ic3QwIiBwb2ludHM9IjIsNSAxMCw1IDYsMTAgCQkiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.toastui-editor-dark .toastui-editor-code-block-language.active .toastui-editor-code-block-language-input::after {
|
|
376
|
+
content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuugiOydtOyWtF8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCgkgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIgMTQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEyIDE0OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6I2ZmZjt9Cjwvc3R5bGU+CjxkZXNjPkNyZWF0ZWQgd2l0aCBza2V0Y2h0b29sLjwvZGVzYz4KPGcgaWQ9IlN5bWJvbHMiPgoJPGcgaWQ9ImNvbS10cmFuZ2xlLXVwLXNpZGUiPgoJCTxwb2x5Z29uIGlkPSJSZWN0YW5nbGUtNyIgY2xhc3M9InN0MCIgcG9pbnRzPSIyLDkgMTAsOSA2LDQgCQkiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K);
|
|
377
|
+
}
|