Skip to content

refine highlight's spacing and border-radius #1165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions src/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,12 @@ h3 {
.highlight {
height: 12px;
position: relative;
top: -6px;
top: 0;
left: -10px;
width: 120%;
max-width: 90vw;
line-height: 1.6;
border-radius: 2px;
}

footer {
Expand Down Expand Up @@ -625,6 +626,13 @@ blockquote::before {
font-weight: 600;
}

@media screen and (max-width: 769px) {
.highlight {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
}

// Temporary HACK: switch away from this when we switch to using Tachyons for
// the page titles -- at that time, we should make a simple component class that
// just composes those classes.
Expand All @@ -635,11 +643,6 @@ blockquote::before {
font-size: 4rem;
}

.highlight {
height: 20px;
top: -20px;
}

h2.subtitle {
font-size: 2.5rem;
line-height: 1.1;
Expand Down