Skip to content

Commit

Permalink
Adjust font in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
peng1999 committed Mar 3, 2024
1 parent 9deb368 commit f1d714a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ highlight_theme = "base16-ocean-light"

[extra]
# even configs
even_title = "pg999w's blog"
even_title = "pg999ws blog"

even_menu = [
{url = "$BASE_URL/rss.xml", name = "RSS"},
Expand Down
19 changes: 15 additions & 4 deletions sass/custom.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
#header .logo {
.logo {
font-family: "Noto Serif Display", serif;
font-weight: 400;
font-style: normal;
}

#mobile-navbar .logo {
font-size: 1.4rem;
font-family: "Source Serif 4", serif;
font-optical-sizing: auto;
font-weight: 400;
}

main .post {
font-family: "Noto Serif SC", serif;
font-weight: 400;
font-style: normal;
@media screen and (max-width: 800px) {
font-weight: 500;
}

.post-content h1 {
font-size: 24px;
Expand All @@ -15,7 +24,9 @@ main .post {
h1, h2, h3, h4, h5, h6, h1.post__title {
font-family: "Noto Sans SC", sans-serif;
font-weight: 320;
font-style: normal;
@media screen and (max-width: 800px) {
font-weight: 350;
}
}

.hashtag {
Expand Down
2 changes: 1 addition & 1 deletion templates/style.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:[email protected]&family=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&family=Noto+Serif+SC:wght@400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:[email protected]&family=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&family=Noto+Serif+SC:wght@400;500;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap" rel="stylesheet">

0 comments on commit f1d714a

Please sign in to comment.