Skip to content

Commit 5c3ce40

Browse files
kyu08claude
andauthored
#同士の間隔を狭める + h2-h6要素の下マージンを小さくする (#234)
* h2-h6要素の下マージンを半分(30px → 15px)に縮小 見出し要素の下マージンを削減し、より読みやすいレイアウトに調整しました。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * 上マージンを30pxに維持、下マージンのみ15pxに縮小 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * h1とh2のフォントサイズを大きくしてh1 > h2 > h3の順に h1: 2.5em、h2: 2em、h3: デフォルト(1.17em相当)に設定 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * Revert "h1とh2のフォントサイズを大きくしてh1 > h2 > h3の順に" This reverts commit dddc85d. * update * refactor * blockquote * update --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1ecb455 commit 5c3ce40

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

static/style.css

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,17 @@ h1, h2, h3, h4, h5, h6 {
2929
}
3030

3131
/* Markdown記号の表示 (h1は記事タイトルに使用されるため除外) */
32-
h2::before {
33-
content: "##";
32+
h2::before, h3::before, h4::before, h5::before, h6::before {
33+
letter-spacing: -0.1em; /* #同士の間隔を狭める */
3434
color: var(--color-gray);
35-
margin-right: 2px;
35+
margin-right: 6px;
3636
}
3737

38-
h3::before {
39-
content: "###";
40-
color: var(--color-gray);
41-
margin-right: 2px;
42-
}
43-
44-
h4::before {
45-
content: "####";
46-
color: var(--color-gray);
47-
margin-right: 2px;
48-
}
49-
50-
h5::before {
51-
content: "#####";
52-
color: var(--color-gray);
53-
margin-right: 2px;
54-
}
55-
56-
h6::before {
57-
content: "######";
58-
color: var(--color-gray);
59-
margin-right: 2px;
60-
}
38+
h2::before { content: "##"; }
39+
h3::before { content: "###"; }
40+
h4::before { content: "####"; }
41+
h5::before { content: "#####"; }
42+
h6::before { content: "######"; }
6143

6244
html,
6345
body {
@@ -96,15 +78,23 @@ img {
9678
max-height: 600px;
9779
}
9880

81+
h2, h3, h4, h5, h6 {
82+
margin-top: 20px;
83+
margin-bottom: 0px;
84+
}
85+
9986
h2 {
10087
border-bottom: solid 2px var(--color-gray);
10188
padding-bottom: 4px;
102-
/* margin: 30px 0; */
89+
margin-bottom: 10px;
10390
}
10491

10592
h3 {
10693
padding-bottom: 4px;
107-
margin: 30px 0;
94+
}
95+
96+
p {
97+
margin-top: 5px;
10898
}
10999

110100
.post-cover, a.read-more {
@@ -150,20 +140,31 @@ article.on-list {
150140

151141
ul {
152142
margin-top: 30px;
143+
margin-bottom: 30px;
144+
}
145+
146+
ul ul {
147+
margin-bottom: 0px;
153148
}
154149

155150
ol {
151+
margin-top: 30px;
152+
margin-bottom: 30px;
153+
}
154+
155+
ol ol {
156156
margin-bottom: 0px;
157157
}
158158

159159
blockquote {
160160
position: relative;
161161
border-left: 2px solid var(--color-gray);
162-
border-top: none;;
163-
border-bottom: none;;
162+
border-top: none;
163+
border-bottom: none;
164164
margin: 0;
165165
padding: 10px 25px;
166166
color: var(--color-gray);
167+
margin: 20px 0;
167168
}
168169

169170
blockquote::before {

0 commit comments

Comments
 (0)