Skip to content

Commit b72abad

Browse files
committed
reuse existing icon
1 parent 96b583e commit b72abad

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

packages/repl/src/lib/Output/Output.svelte

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@
198198
onclick={() => {
199199
view = 'result';
200200
resultTab.reset();
201-
}}
202-
></button>
201+
}}><span class="icon"></span></button
202+
>
203203
<button aria-current={view === 'js'} onclick={() => (view = 'js')}>JS output</button>
204204
<button aria-current={view === 'css'} onclick={() => (view = 'css')}>CSS output</button>
205205
<button aria-current={view === 'ast'} onclick={() => (view = 'ast')}>AST output</button>
@@ -292,14 +292,14 @@
292292
}
293293
294294
&.reset-result {
295-
width: 2em;
295+
height: 100%;
296296
vertical-align: bottom;
297-
background: url(./reset-light.svg) 50% 50% no-repeat;
298-
background-size: 1em;
299-
margin-left: -1ch;
297+
margin-left: -1em;
300298
cursor: pointer;
301-
:root.dark & {
302-
background-image: url(./reset-dark.svg);
299+
300+
.icon {
301+
background: currentColor;
302+
mask: url(icons/refresh) 50% / 1.2em no-repeat;
303303
}
304304
}
305305
}

packages/repl/src/lib/Output/reset-dark.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/repl/src/lib/Output/reset-light.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)