Skip to content

Commit 61422f5

Browse files
authored
Merge pull request #209 from OUCC/blog-fix-208
#208 ブログ内の全ての要素の行頭を揃える
2 parents 52c629a + d0a952f commit 61422f5

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/components/blog/BlogContent.astro

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ const { Content } = await render(blog)
3232
{blog.data.title}
3333
</h1>
3434
<article
35-
class="my-10 w-full max-w-padded-container bg-white p-4 md:rounded-2xl"
35+
class="my-10 w-full max-w-padded-container bg-white p-8 md:rounded-2xl"
3636
>
37-
<div class="mb-1 p-1 text-lg">
37+
<div class="mb-1 pb-1 text-lg">
3838
<a
3939
class="flex items-center gap-2 hover:underline"
4040
href={`/blog/authors/${author.id}/`}
4141
><AuthorIcon {...author.data} size={28} />{author.data.name}</a
4242
>
4343
</div>
4444
<TagSmallList blogCategory={blog.data.category} tags={tags} />
45-
<div class="flex gap-3 p-2 text-sm text-gray-700">
45+
<div class="flex gap-3 py-2 text-sm text-gray-700">
4646
{
4747
blogMeta.updateDate && (
4848
<div>
@@ -80,15 +80,12 @@ const { Content } = await render(blog)
8080
@apply content-none;
8181
}
8282

83-
.prose > *:where(:not(pre, iframe, img, svg, table)) {
84-
@apply mx-4;
85-
}
8683
.prose > *:where(h1, h2) {
8784
@apply border-b-2;
8885
}
8986

9087
.prose > table {
91-
@apply block w-full overflow-x-auto whitespace-nowrap px-2;
88+
@apply block w-full overflow-x-auto whitespace-nowrap;
9289
}
9390
}
9491
</style>

0 commit comments

Comments
 (0)