Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change font and adjust padding #95

Merged
merged 3 commits into from
Mar 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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