Skip to content

Commit 876f797

Browse files
authored
Center meta bar & style reading time as pill badge on blog post page
Agent-Logs-Url: https://github.com/recodehive/recode-website/sessions/81f7f1af-9f9f-4951-be52-b5bc642853ad
1 parent fb36eff commit 876f797

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/theme/BlogPostItem/Header/styles.module.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.metaSection {
44
display: flex;
55
flex-direction: column;
6+
align-items: center;
67
gap: 0.65rem;
78
margin-top: 0.75rem;
89
margin-bottom: 1.25rem;
@@ -14,6 +15,7 @@
1415
.metaRow {
1516
display: flex;
1617
align-items: center;
18+
justify-content: center;
1719
flex-wrap: wrap;
1820
gap: 0.45rem;
1921
font-size: 0.9rem;
@@ -71,14 +73,21 @@
7173
.readTime {
7274
display: inline-flex;
7375
align-items: center;
74-
gap: 0.3rem;
76+
gap: 0.35rem;
77+
padding: 3px 10px 3px 8px;
78+
border-radius: 20px;
79+
font-size: 0.8rem;
80+
font-weight: 500;
7581
color: var(--ifm-color-emphasis-700);
82+
background: var(--ifm-color-emphasis-100);
83+
border: 1px solid var(--ifm-color-emphasis-300);
7684
}
7785

7886
/* ── Tag pills ── */
7987
.tagsRow {
8088
display: flex;
8189
flex-wrap: wrap;
90+
justify-content: center;
8291
gap: 0.45rem;
8392
}
8493

0 commit comments

Comments
 (0)