Skip to content

Commit

Permalink
various typography and styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Jul 23, 2023
1 parent ab22874 commit 27a5f7e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
2 changes: 1 addition & 1 deletion quartz/components/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default (() => {
<head>
<title>{title}</title>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content={title} />
<meta property="og:description" content={title} />
<meta property="og:image" content={ogImagePath} />
Expand Down
2 changes: 1 addition & 1 deletion quartz/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header {
display: flex;
flex-direction: row;
align-items: center;
margin: 2em 0;
margin: 2rem 0;
gap: 1.5rem;
}
Expand Down
31 changes: 29 additions & 2 deletions quartz/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

html {
scroll-behavior: smooth;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}

body {
Expand Down Expand Up @@ -221,13 +223,38 @@ h6 {
font-family: var(--codeFont);
user-select: none;
}

&[id]:hover > a {
opacity: 1;
}
}

// typography improvements
h1 {
font-size: 1.75rem;
margin-top: 2.75rem;
}

h2 {
font-size: 1.4rem;
opacity: 0.95;
margin-top: 2.4rem;
}

h3 {
font-size: 1.12rem;
margin-top: 2.12rem;
opacity: 0.9;
}

h4, h5, h6 {
font-size: 1rem;
margin-top: 2rem;
opacity: 0.85;
}

div[data-rehype-pretty-code-fragment] {
line-height: 1.5rem;
line-height: 1.6rem;
position: relative;

& > div[data-rehype-pretty-code-title] {
Expand Down Expand Up @@ -313,7 +340,7 @@ code {
tbody,
li,
p {
line-height: 1.5rem;
line-height: 1.6rem;
}

table {
Expand Down

0 comments on commit 27a5f7e

Please sign in to comment.