Skip to content

Commit

Permalink
Make usage of <code> in headers *not* ugly
Browse files Browse the repository at this point in the history
0.688is 11/16 (16px being the default font size specified in the rule for <body>).
This way usage of <code> elements will not be ugly since the font size will be relatively scaled (e.g. 28px instead of 14px for <h2> with default size 32px).

Explained here:
pages-themes#34

Example of ugliness:
https://toughengineer.github.io/talks/C++%20Siberia%202020/
  • Loading branch information
abdullahkavakli authored Mar 31, 2021
1 parent f54146d commit b246e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _sass/jekyll-theme-slate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ Small Device Styles
}

code, pre {
font-size: 11px;
font-size: 0,688em;
}

}
Expand Down Expand Up @@ -468,7 +468,7 @@ Small Device Styles
code, pre {
min-width: 240px;
max-width: 320px;
font-size: 11px;
font-size: 0,688em;
}

}

0 comments on commit b246e0d

Please sign in to comment.