Skip to content

Commit d201101

Browse files
committed
Fix styling of <h1> in article content
1 parent 6ff565a commit d201101

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

assets/widgets/Article.less

+26-22
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ article {
4848

4949
.content-colors;
5050

51-
h1, h2, h3, h4, h5, h6, p, blockquote {
52-
margin: 0;
53-
padding: 0;
54-
}
5551
h1 {
5652
font: normal 24px / 32px sans-serif;
5753
padding: 10px 0 2px 0;
@@ -60,29 +56,37 @@ article {
6056
text-decoration: none;
6157
}
6258
}
63-
h2, h3, h4, h5, h6 {
64-
font: inherit;
65-
font-weight: bold;
66-
margin: 12px 0;
67-
}
6859
.meta {
6960
color: @quiet_text_color;
7061
}
71-
p {
72-
margin: 12px 0;
73-
}
7462

75-
blockquote {
76-
margin: 12px;
77-
}
63+
.content {
64+
h1, h2, h3, h4, h5, h6, p, blockquote {
65+
margin: 0;
66+
padding: 0;
67+
}
68+
h1, h2, h3, h4, h5, h6 {
69+
font: inherit;
70+
font-weight: bold;
71+
margin: 12px 0;
72+
}
7873

79-
img {
80-
max-width: 100%;
81-
height: auto;
82-
}
74+
p {
75+
margin: 12px 0;
76+
}
77+
78+
blockquote {
79+
margin: 12px;
80+
}
8381

84-
hr {
85-
margin: 16px 32px;
86-
border: 0.5px solid @quiet_text_color;
82+
img {
83+
max-width: 100%;
84+
height: auto;
85+
}
86+
87+
hr {
88+
margin: 16px 32px;
89+
border: 0.5px solid @quiet_text_color;
90+
}
8791
}
8892
}

0 commit comments

Comments
 (0)