Skip to content

Commit f9e6a4b

Browse files
trueadmRich-Harris
andauthored
chore: replace permlink icon with hash icon (#401)
* chore: replace permlink icon with hash icon * Update packages/site-kit/src/lib/components/Text.svelte * use rem so size is consistent between h2 and h3 --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 parent 2302b3f commit f9e6a4b

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@
7575
h2,
7676
h3 {
7777
max-width: 100%;
78-
padding: 0 1em 0 0;
78+
padding: 0 2.4rem 0 0;
7979
8080
@media (min-width: 768px) {
81-
margin: 0 0 0 -2em;
82-
padding: 0 1em 0 2em;
81+
margin: 0 0 0 -4.8rem;
82+
padding: 0 2.4rem 0 4.8rem;
8383
}
8484
8585
/* we can't use `text-overflow` on the heading itself,
@@ -335,19 +335,23 @@
335335
a.permalink {
336336
position: absolute !important;
337337
display: block;
338-
background: url(../icons/link.svg) 50% 50% no-repeat;
339-
background-size: 1em 1em;
340-
width: 1.2em;
341-
height: 0.8em;
342-
top: 0.2em;
338+
background: url(../icons/hash-light.svg) 50% 50% no-repeat;
339+
background-size: 2.4rem 2.4rem;
340+
width: 2.6rem;
341+
height: 2.2rem;
342+
top: calc(50% - 1rem);
343343
344344
@media (max-width: 767px) {
345345
right: 0;
346346
scale: 0.8;
347347
}
348348
349+
:root.dark & {
350+
background-image: url(../icons/hash-dark.svg);
351+
}
352+
349353
@media (min-width: 768px) {
350-
left: 0.7em;
354+
left: 1.6rem;
351355
opacity: 0;
352356
transition: opacity 0.2s;
353357

0 commit comments

Comments
 (0)