Skip to content

Commit cdfafe6

Browse files
authored
refine highlight's spacing and border-radius (#1165)
* refine highlight's spacing and border-radius * adjust mobile
1 parent 2a39796 commit cdfafe6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/styles/app.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,12 @@ h3 {
344344
.highlight {
345345
height: 12px;
346346
position: relative;
347-
top: -6px;
347+
top: 0;
348348
left: -10px;
349349
width: 120%;
350350
max-width: 90vw;
351351
line-height: 1.6;
352+
border-radius: 2px;
352353
}
353354

354355
footer {
@@ -625,6 +626,13 @@ blockquote::before {
625626
font-weight: 600;
626627
}
627628

629+
@media screen and (max-width: 769px) {
630+
.highlight {
631+
border-bottom-left-radius: 0;
632+
border-top-left-radius: 0;
633+
}
634+
}
635+
628636
// Temporary HACK: switch away from this when we switch to using Tachyons for
629637
// the page titles -- at that time, we should make a simple component class that
630638
// just composes those classes.
@@ -635,11 +643,6 @@ blockquote::before {
635643
font-size: 4rem;
636644
}
637645

638-
.highlight {
639-
height: 20px;
640-
top: -20px;
641-
}
642-
643646
h2.subtitle {
644647
font-size: 2.5rem;
645648
line-height: 1.1;

0 commit comments

Comments
 (0)