Skip to content

Commit 218c729

Browse files
authored
fix(sidebar): no margin on mobile (#89)
1 parent 8435e36 commit 218c729

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/client/theme-default/styles/layout.css

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ main {
9191
}
9292
}
9393

94+
@media screen and (max-width: 719px) {
95+
main {
96+
margin-left: 0;
97+
}
98+
}
99+
94100
a {
95101
text-decoration: none;
96102
}

src/client/theme-default/styles/vars.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.theme {
22
--border-color: rgb(226, 232, 240);
33
--header-height: 3.6rem;
4-
--sidebar-width: 20rem;
4+
--sidebar-width: 16.4rem;
55
--text-color: #2c3e50;
66
--text-color-light: #476582;
77
--code-bg-color: #282c34;

0 commit comments

Comments
 (0)