Skip to content

Commit 3a2ab9c

Browse files
committed
fix(docs): responsive css for posts layout
1 parent 8dec0c5 commit 3a2ab9c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/docs/client/global.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
--content-width-landing: 1200px;
2323
--content-width-posts: 1100px;
2424
--content-padding-horizontal: 100px;
25+
--posts-padding-horizontal: 80px;
2526

2627
--docsearch-primary-color: var(--blue-5) !important;
2728
}
@@ -279,6 +280,7 @@ a {
279280
--font-text-small-spacing: 0.03rem;
280281
--content-width-landing: 100%;
281282
--content-padding-horizontal: 64px;
283+
--posts-padding-horizontal: 24px;
282284
}
283285

284286

packages/docs/client/posts.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ html, body {
77
}
88

99
main.content-padding {
10-
padding: 50px 80px;
10+
padding: 50px var(--posts-padding-horizontal);
1111
max-width: var(--content-width-posts);
1212
margin: auto;
1313
}

0 commit comments

Comments
 (0)