more consistent line height
This commit is contained in:
parent
c37455d587
commit
5404ce85b4
2 changed files with 7 additions and 4 deletions
|
@ -143,20 +143,22 @@
|
|||
}
|
||||
|
||||
body {
|
||||
font-size: calc(var(--base-font-size) * 1);
|
||||
font-size: var(--base-font-size);
|
||||
}
|
||||
|
||||
.font-body-serif body {
|
||||
.font-hidpi body {
|
||||
font-family: "BodySerif", sans-serif;
|
||||
line-height: 1.475;
|
||||
}
|
||||
|
||||
.font-body-sans body {
|
||||
.font-lodpi body {
|
||||
font-family: "BodySans", serif;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: "Heading";
|
||||
font-style: italic;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
h2,
|
||||
|
@ -167,6 +169,7 @@ h6 {
|
|||
font-family: "Subheading";
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<link rel="stylesheet" href="/css/index.css">
|
||||
<link rel="icon" type="image/png" href="/assets/favicon.png">
|
||||
<script>
|
||||
const class_ = window.devicePixelRatio > 1 ? "font-body-serif" : "font-body-sans";
|
||||
const class_ = `font-${window.devicePixelRatio >= 1.3 ? 'hidpi' : 'lodpi'}`;
|
||||
document.documentElement.className = class_;
|
||||
</script>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue