Skip to content

Commit 4fd5d40

Browse files
committed
use rem so size is consistent between h2 and h3
1 parent 2ad929a commit 4fd5d40

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 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,
@@ -336,10 +336,10 @@
336336
position: absolute !important;
337337
display: block;
338338
background: url(../icons/hash-light.svg) 50% 50% no-repeat;
339-
background-size: 1em 1em;
340-
width: 1.2em;
341-
height: 0.8em;
342-
top: 0.2em;
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;
@@ -351,7 +351,7 @@
351351
}
352352
353353
@media (min-width: 768px) {
354-
left: 0.7em;
354+
left: 1.6rem;
355355
opacity: 0;
356356
transition: opacity 0.2s;
357357

0 commit comments

Comments
 (0)