Skip to content

Commit f510a30

Browse files
committed
Improve styling of tags pages
1 parent eb74f60 commit f510a30

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/css/custom.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,20 @@ nav[aria-label='Docs sidebar']:hover {
11111111
overflow-y: auto !important;
11121112
}
11131113

1114+
/* Styling changes for the tags page */
1115+
.blog-tags-list-page {
1116+
section.margin-vert--lg {
1117+
margin-top: 2rem !important;
1118+
}
1119+
}
1120+
11141121
.blog-list-page {
1122+
h1 {
1123+
margin-top: 2rem;
1124+
}
1125+
}
1126+
/* Landing page at /docs/knowledgebase and the page shown when you click a tag */
1127+
.blog-list-page, .blog-tags-post-list-page {
11151128

11161129
.container_mt6G {
11171130
font-size: 0.85rem;
@@ -1172,6 +1185,17 @@ nav[aria-label='Docs sidebar']:hover {
11721185
}
11731186
}
11741187

1188+
.tag_zVej span {
1189+
border-radius: 9999px !important;
1190+
}
1191+
.tag_zVej::after {
1192+
display: none;
1193+
}
1194+
1195+
.tag_zVej::before {
1196+
display: none;
1197+
}
1198+
11751199
[data-theme='dark'] .tag_zVej {
11761200
padding: 2px 12px;
11771201
color: #C0C0C0;

src/theme/BlogListPage/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function BlogListPageContent(props) {
3030
const {metadata, items, sidebar} = props;
3131
return (
3232
<BlogLayout sidebar={sidebar}>
33+
<h1>Recently Added</h1>
3334
<BlogPostItems items={items} />
3435
<BlogListPaginator metadata={metadata} />
3536
</BlogLayout>

0 commit comments

Comments
 (0)