File tree Expand file tree Collapse file tree 2 files changed +65
-5
lines changed Expand file tree Collapse file tree 2 files changed +65
-5
lines changed Original file line number Diff line number Diff line change 197
197
} ) ;
198
198
}
199
199
} ;
200
+
201
+
202
+ function copyCode ( num ) {
203
+ const shadowContainer = document . getElementById ( 'container' ) . shadowRoot ;
204
+ const codes = shadowContainer . querySelectorAll ( 'code' ) ;
205
+
206
+ window . navigator . clipboard . writeText ( codes [ num ] . textContent ) ;
207
+ }
200
208
</ script >
201
209
</ head >
202
210
206
214
< canvas > </ canvas >
207
215
</ div >
208
216
< div class ="container ">
209
- < zero-md
217
+ < zero-md id =" container "
210
218
manual-render ="true ">
211
219
< template >
212
220
< link rel ="stylesheet "
218
226
contain: content;
219
227
box- sizing: bor der- box;
220
228
min- width: 200px;
221
- max- width: 980px ;
229
+ max- width: 850px ;
222
230
margin: 0 auto ;
223
231
padding: 0px;
224
232
width: calc(50% - 20px * 2);
225
233
height: 100vh;
226
234
overflow: scroll;
235
+
227
236
}
228
237
229
238
.markdown-body {
230
239
height : inherit;
240
+ font-size : small;
241
+ }
242
+
243
+ h1 {
244
+ color : white;
245
+ padding : 20px 20px ;
246
+ }
247
+
248
+ ol > li {
249
+ margin-left : 30px ;
250
+ font-size : 1.2em ;
251
+ }
252
+
253
+ pre {
254
+ width : 80% ;
255
+ margin-left : 60px ;
256
+ border : 1px solid rgb (124 , 124 , 124 );
257
+ }
258
+
259
+ p {
260
+ margin-left : 40px ;
261
+ }
262
+
263
+ strong {
264
+ color : rgb (38 , 114 , 255 );
265
+ }
266
+
267
+ img {
268
+ margin-left : 20px ;
269
+ width : 90%
270
+ }
271
+
272
+ span {
273
+ color : rgb (86 , 117 , 255 );
274
+ }
275
+
276
+ button {
277
+ position : absolute;
278
+ margin-left : 78% ;
279
+ margin-top : 20px ;
280
+ width : 45px ;
281
+ height : 30px ;
282
+ background-color : rgb (0 , 89 , 255 );
283
+ border : 1px solid rgb (0 , 89 , 255 );
284
+ border-radius : 0.4em ;
285
+ }
286
+
287
+ button : hover {
288
+ background-color : rgb (0 , 58 , 167 );
289
+ border : rgb (0 , 58 , 167 );
231
290
}
291
+
232
292
</ style >
233
293
</ template >
234
294
</ zero-md >
235
- < div class ="xterminal " style ="width: calc(50 % + 16px * 2); height: calc(100% - 18px * 2 ); ">
295
+ < div class ="xterminal " style ="width: calc(60 % + 16px * 2); height: calc(100% - 18px * 2 ); ">
236
296
< div id ="terminal "> </ div >
237
297
</ div >
238
298
</ div >
239
- </ body >
299
+ </ body >
Original file line number Diff line number Diff line change 1
1
body {
2
2
margin : 0 ;
3
3
padding : 0 ;
4
- background-color : # 252735 ;
5
4
}
6
5
7
6
.container {
10
9
display : flex;
11
10
align-items : center;
12
11
justify-content : center;
12
+ background-color : # 1a1b20 ;
13
13
}
14
14
15
15
input [type = "button" ] {
You can’t perform that action at this time.
0 commit comments