Skip to content

Commit b33ab1b

Browse files
committed
more
1 parent dbc5202 commit b33ab1b

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

apps/svelte.dev/src/routes/docs/+page.svelte

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,24 @@
150150
}
151151
152152
h2 {
153+
position: relative;
153154
padding-right: 4rem;
154-
background: url(./arrow-right.svg) no-repeat 100% 50%;
155-
background-size: 3rem;
156155
157-
.external & {
158-
background-image: url(./external-link.svg);
159-
background-size: 3rem;
156+
&::after {
157+
content: '';
158+
position: absolute;
159+
width: 3rem;
160+
height: 3rem;
161+
top: 0.2rem;
162+
right: 0;
163+
164+
background: var(--sk-fg-accent);
165+
mask: url(icons/arrow-right) no-repeat 100% 50%;
166+
mask-size: 100%;
167+
}
168+
169+
.external &::after {
170+
mask-image: url(icons/external-link);
160171
}
161172
}
162173
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)