Skip to content

Commit 768482f

Browse files
lin-luchrisvfritz
authored andcommitted
Improve responsive design on mobile devices (vuejs#428)
* Fix menu button on tablets * Hide menu, collapse header on tablets * Center content on mobile devices
1 parent 7fd4dae commit 768482f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

themes/vue/source/css/_sidebar.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
display none
5959
padding-left 0
6060

61-
@media screen and (max-width: 720px)
61+
@media screen and (max-width: 900px)
6262
.sidebar
6363
position fixed
6464
z-index 8

themes/vue/source/css/page.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
bottom 12px
143143
left 140px
144144

145-
@media screen and (max-width: 720px)
145+
@media screen and (max-width: 900px)
146146
#ad
147147
width 100%
148148
body
@@ -164,7 +164,7 @@
164164
padding 1.2em 1em
165165
.content
166166
&.with-sidebar
167-
margin-left 0
167+
margin auto
168168
.footer
169169
margin-left 0
170170
text-align center

0 commit comments

Comments
 (0)