Skip to content

Commit dbc5202

Browse files
committed
more
1 parent c8ab86b commit dbc5202

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

apps/svelte.dev/src/lib/icons/terminal.svg

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

apps/svelte.dev/src/lib/icons/user-dark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/svelte.dev/src/routes/tutorial/[...slug]/Chrome.svelte

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252

5353
<button
5454
disabled={loading || !toggle_terminal}
55-
class="terminal icon raised"
55+
class="terminal raised"
5656
onclick={() => toggle_terminal?.()}
57-
aria-label="toggle terminal"
58-
></button>
57+
aria-label="toggle terminal"><span class="icon"></span></button
58+
>
5959
</div>
6060

6161
<style>
@@ -88,14 +88,17 @@
8888
8989
.icon,
9090
.icon::after {
91-
position: relative;
9291
width: 3.2rem;
9392
aspect-ratio: 1;
9493
background-size: 1.8rem;
9594
}
9695
9796
.terminal {
98-
background-image: url($lib/icons/terminal.svg);
97+
.icon {
98+
background: currentColor;
99+
mask: url(icons/terminal) 50% 50% no-repeat;
100+
mask-size: 1.8rem;
101+
}
99102
}
100103
101104
.reload::after {

packages/icons/icons/terminal.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)