Skip to content

Commit

Permalink
Merge pull request otoyo#95 from otoyo/change-font-and-adjust-padding
Browse files Browse the repository at this point in the history
Change font and adjust padding
  • Loading branch information
otoyo committed Mar 5, 2023
2 parents 0133d25 + ecdbadc commit f411d19
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/PostExcerpt.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { post } = Astro.props

<style>
.post-excerpt {
padding: 0.4rem 0;
padding: 0.2rem 0;
font-size: 1rem;
}
</style>
2 changes: 1 addition & 1 deletion src/components/PostRelativeLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const { prevPost, nextPost } = Astro.props
}
div.post-relative-link > div > a.colored > div:nth-child(2) {
width: auto;
padding: 0 0 0.4rem;
padding: 0.2rem 0 0.4rem;
text-align: left;
font-size: 1rem;
font-weight: bold;
Expand Down
12 changes: 7 additions & 5 deletions src/components/PostTitle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ let title = post.Title

<style>
.post-title {
padding: 0.2rem 0;
font-size: 1.6rem;
color: var(--fg);
}
Expand All @@ -62,15 +63,16 @@ let title = post.Title
.post-title span,
.post-title img {
display: inline-block;
margin-right: 0.2rem;
margin-right: 0.4rem;
}
.post-title img {
width: 1.6rem;
height: 1.6rem;
width: 2rem;
height: 2rem;
vertical-align: sub;
}
.post-title a > img {
width: 1.2rem;
height: 1.2rem;
width: 1.6rem;
height: 1.6rem;
}
@media (max-width: 640px) {
.post-title {
Expand Down
10 changes: 4 additions & 6 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,10 @@ const siteOGImage = new URL('/default-og-image.png', Astro.site)
min-height: 100vh;
background: var(--bg);
color: var(--fg);
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Segoe UI,
Hiragino Kaku Gothic ProN, Hiragino Sans, 銉掋儵銈儙瑙掋偞 ProN W3, Arial,
銉°偆銉偑, Meiryo, sans-serif;
/*-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
*/
font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont,
"Segoe UI", Helvetica, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
"Hiragino Sans GB", 銉°偆銉偑, Meiryo, "Apple Color Emoji",
Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";

/*background-image: radial-gradient(#ddd 1px, transparent 1px),
radial-gradient(#ddd 1px, transparent 1px);*/
Expand Down

0 comments on commit f411d19

Please sign in to comment.