Skip to content

Commit 4064b31

Browse files
committed
Blogs: Align first article box on homepage with first sidebar heading
This has been misaligned this way for a long time (not a recent regression), but seems easy to fix. Basically, the margin on `hentry` makes sense in almost every context: single articles (there's a page title with horizontal rule before it), and category/tag/search etc all have a similar page title and horizontal rule. The exception is the homepage where there is no explicit inline page title, and instead the first element is the first article box, in which case its margin is not separating it from anything else but from the place where it should start.
1 parent 45e59a1 commit 4064b31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

themes/jquery/css/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,10 @@ footer .books li a cite {
20252025
background-color: #eee;
20262026
position: relative;
20272027
}
2028+
.listing .hentry:first-child {
2029+
/* align top of first sidebar heading, with top of first homepage article */
2030+
margin-top: 0;
2031+
}
20282032

20292033
.listing #content .entry-title {
20302034
font-size: 1.3em;

0 commit comments

Comments
 (0)