Skip to content

Commit a387b1e

Browse files
committed
nicer icons/styles
1 parent 579b6ad commit a387b1e

File tree

8 files changed

+17
-15
lines changed

8 files changed

+17
-15
lines changed

packages/site-kit/src/lib/components/Text.svelte

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,18 +174,30 @@
174174
height: 100%;
175175
left: 0;
176176
top: 0;
177-
background: url(../icons/check.svg) no-repeat 50% 50% / 1.6rem 1.6rem;
177+
background: no-repeat 50% 50% / 1.6rem 1.6rem;
178178
transition: opacity 0.2s;
179179
transition-delay: 0.6s;
180180
}
181181
182182
&::before {
183-
background-image: url(../icons/copy-to-clipboard-empty-light.svg);
183+
background-image: url(../icons/copy-to-clipboard-light.svg);
184184
}
185185
186186
&::after {
187-
background-image: url(../icons/check.svg);
187+
background-image: url(../icons/check-light.svg);
188188
opacity: 0;
189+
190+
html.dark & {
191+
background-image: url(../icons/check-dark.svg);
192+
}
193+
}
194+
195+
html.dark &::before {
196+
background-image: url(../icons/copy-to-clipboard-dark.svg);
197+
}
198+
199+
html.dark &::after {
200+
background-image: url(../icons/check-dark.svg);
189201
}
190202
191203
&:active::before {
Lines changed: 1 addition & 0 deletions
Loading
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Loading

packages/site-kit/src/lib/icons/copy-to-clipboard-empty-dark.svg

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

packages/site-kit/src/lib/icons/copy-to-clipboard-filled-dark.svg

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

packages/site-kit/src/lib/icons/copy-to-clipboard-filled-light.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)