aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/assets/css/jekyll-theme/posts.css
blob: b9b5b41940e4b6a0830b44f9a3c265c18eb2cb2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* This is a relatively popular workaround to align side-by-side columns.
 * I use it for post headers. */
.post-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 1em;
}
.post-date a.category {
  margin-right: .5em;
}

/* On the sidebar, don't shrink the date part, shrink the header. */
.list-group-item .post-header {
  flex-wrap: nowrap;
}
.list-group-item .post-date {
  flex-shrink: 0;
}

/* Don't use an actual <hr>, it's margins are too big, use a border instead. */
.feed-entry {
  margin-bottom: 15px;
  /* The color of <hr>. */
  border-bottom: 1px solid #eee;
}