docs: update mobile site

pull/165/head
tangjinzhou 2018-08-05 23:19:36 +08:00
parent 49e2e5f51f
commit 7dcf1b8c12
1 changed files with 13 additions and 2 deletions

View File

@ -100,9 +100,10 @@
z-index: 1; z-index: 1;
overflow-y: scroll; overflow-y: scroll;
} }
@media (min-width: 576px) and (max-width: 768px) { @media only screen and (max-width: 767.99px) {
.main-wrapper { .main-wrapper {
z-index: 11; z-index: 11;
margin-top: 0px;
} }
.site-sidebar{ .site-sidebar{
width: 100%; width: 100%;
@ -112,6 +113,7 @@
width: 80%; width: 80%;
z-index: 1; z-index: 1;
position: relative; position: relative;
min-height: 100%;
} }
} }
.drawer-mask{ .drawer-mask{
@ -141,7 +143,7 @@
border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0;
} }
.open-drawer{ .open-drawer{
position: absolute; position: fixed;
top: 72px; top: 72px;
width: 41px; width: 41px;
height: 40px; height: 40px;
@ -160,6 +162,15 @@
.toc-affix { .toc-affix {
display: none !important; display: none !important;
} }
.header-left .header-lang-button{
margin-right: 10px;
position: absolute;
right: 10px;
top: 0px;
}
#header {
position: relative;
}
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.site-sidebar { .site-sidebar {