Skip to content

Commit

Permalink
fix(typography): adjust heading sizes and set small font-style to italic
Browse files Browse the repository at this point in the history
  • Loading branch information
talha131 committed Dec 2, 2019
1 parent d631603 commit d3bbf04
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 29 deletions.
2 changes: 1 addition & 1 deletion static/css/elegant.prod.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 23 additions & 28 deletions static/css/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,56 +15,51 @@ h6 {
Times, Serif;
font-weight: normal;
margin: 10px 0px;
& small {
font-style: italic;
}
}
h1 {
font-size: 3rem;
border-bottom: var(--heading-border-bottom-width)
var(--heading-border-bottom-style) darkgray;
font-size: 2.5rem;
}
h2 {
font-size: 2.5rem;
border-bottom: var(--heading-border-bottom-width)
var(--heading-border-bottom-style) silver;
font-size: 2.2rem;
}
h3 {
border-bottom: var(--heading-border-bottom-width)
var(--heading-border-bottom-style) lightgray;
font-size: 2.3rem;
font-size: 2rem;
}
h4 {
font-size: 2rem;
font-size: 1.8rem;
}
h5 {
font-size: 1.8rem;
font-size: 1.6rem;
}
h6 {
font-size: 1.6rem;
font-size: 1.4rem;
}
h1,
h2,
h3 {
line-height: 1.3em;
border-bottom: var(--heading-border-bottom-width)
var(--heading-border-bottom-style) lightgray;
& code {
font-size: 80%;
}
& small {
font-size: 70%;
}
}
h4,
h5,
h6 {
line-height: 1.1em;
}
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code {
font-size: 80%;
}
h1 small,
h2 small,
h3 small,
h4 small,
h5 small,
h6 small {
font-size: 70%;
& code {
font-size: 80%;
}
& small {
font-size: 80%;
}
}
h1 small,
h1 a,
Expand Down

0 comments on commit d3bbf04

Please sign in to comment.