Skip to content

Commit 466044d

Browse files
committed
more
1 parent 8177fbc commit 466044d

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed
File renamed without changes.
File renamed without changes.

packages/repl/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"codemirror": "^6.0.1",
9797
"esm-env": "^1.0.0",
9898
"esrap": "^1.2.2",
99+
"icons": "workspace:*",
99100
"locate-character": "^3.0.0",
100101
"marked": "^14.1.2",
101102
"resolve.exports": "^2.0.2",

packages/repl/src/lib/Input/RunesInfo.svelte

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,32 +73,33 @@
7373
}
7474
7575
span.lightning {
76-
--icon-size: 1.8rem;
7776
width: 1.8rem;
7877
height: 1.8rem;
7978
z-index: 9999;
80-
background: url(./runes-off-light.svg) no-repeat 50% 50%;
81-
background-size: contain;
79+
background: #ccc;
80+
mask: url(icons/runes-off) no-repeat 50% 50%;
81+
mask-size: contain;
8282
8383
:root.dark &:not(.active) {
84-
background-image: url(./runes-off-dark.svg);
84+
background: #777;
8585
}
8686
8787
&.active {
88-
background-image: url(./runes-on-light.svg);
88+
background: var(--sk-fg-accent);
89+
mask-image: url(icons/runes-on);
8990
animation: bump 0.4s;
9091
}
9192
}
9293
9394
@keyframes bump {
9495
0% {
95-
background-size: var(--icon-size);
96+
scale: 1;
9697
}
9798
50% {
98-
background-size: calc(1.3 * var(--icon-size));
99+
scale: 1.3;
99100
}
100101
100% {
101-
background-size: var(--icon-size);
102+
scale: 1;
102103
}
103104
}
104105

packages/repl/src/lib/Input/runes-off-dark.svg

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

packages/repl/src/lib/Input/runes-on-dark.svg

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

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)