8000 Improve responsive design on mobile devices (#428) · kazupon/vuejs.org@7bd44b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7bd44b5

Browse files
lin-lukazupon
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 4f737b9 commit 7bd44b5

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
@@ -140,7 +140,7 @@
140140
bottom 12px
141141
left 140px
142142

143-
@media screen and (max-width: 720px)
143+
@media screen and (max-width: 900px)
144144
#ad
145145
width 100%
146146
body
@@ -162,7 +162,7 @@
162162
padding 1.2em 1em
163163
.content
164164
&.with-sidebar
165-
margin-left 0
165+
margin auto
166166
.footer
167167
margin-left 0
168168
text-align center

0 commit comments

Comments
 (0)
0