File tree 2 files changed +32
-0
lines changed
src/routes/tutorial/[slug] 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 18
18
import SplitPane from ' $lib/components/SplitPane.svelte' ;
19
19
import Editor from ' ./_/Editor.svelte' ;
20
20
import Folder from ' ./_/Folder.svelte' ;
21
+ import refresh from ' ./_/refresh.svg' ;
21
22
import { monaco } from ' $lib/client/monaco/monaco.js' ;
22
23
import { Icon } from ' @sveltejs/site-kit' ;
23
24
247
248
248
249
<section class =" preview" slot =" b" >
249
250
<div class =" chrome" >
251
+ <button
252
+ on:click ={() => {
253
+ iframe .src = ' /loading.html' ;
254
+ iframe .src = adapter .base + path ;
255
+ }}
256
+ aria-label =" reload"
257
+ >
258
+ <img src ={refresh } alt =" Reload icon" />
259
+ </button >
260
+
250
261
<input
251
262
value ={path }
252
263
readonly
397
408
background : #f9f9f9 ;
398
409
}
399
410
411
+ .chrome button {
412
+ padding : 0.5rem 1rem ;
413
+ }
414
+
415
+ .chrome button img {
416
+ height : 100% ;
417
+ width : auto ;
418
+ transition : 0.2s ease-out ;
419
+ transform : none ;
420
+ }
421
+
422
+ .chrome button :active img {
423
+ transform : rotate (-180deg );
424
+ transition : none ;
425
+ }
426
+
400
427
.chrome input {
401
428
flex : 1 ;
402
429
padding : 0.5rem 1rem 0.4rem 1rem ;
You can’t perform that action at this time.
0 commit comments