Skip to content

Commit 7dcf1b8

Browse files
committed
docs: update mobile site
1 parent 49e2e5f commit 7dcf1b8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

site/index.less

+13-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@
100100
z-index: 1;
101101
overflow-y: scroll;
102102
}
103-
@media (min-width: 576px) and (max-width: 768px) {
103+
@media only screen and (max-width: 767.99px) {
104104
.main-wrapper {
105105
z-index: 11;
106+
margin-top: 0px;
106107
}
107108
.site-sidebar{
108109
width: 100%;
@@ -112,6 +113,7 @@
112113
width: 80%;
113114
z-index: 1;
114115
position: relative;
116+
min-height: 100%;
115117
}
116118
}
117119
.drawer-mask{
@@ -141,7 +143,7 @@
141143
border-radius: 0 4px 4px 0;
142144
}
143145
.open-drawer{
144-
position: absolute;
146+
position: fixed;
145147
top: 72px;
146148
width: 41px;
147149
height: 40px;
@@ -160,6 +162,15 @@
160162
.toc-affix {
161163
display: none !important;
162164
}
165+
.header-left .header-lang-button{
166+
margin-right: 10px;
167+
position: absolute;
168+
right: 10px;
169+
top: 0px;
170+
}
171+
#header {
172+
position: relative;
173+
}
163174
}
164175
@media (min-width: 768px) {
165176
.site-sidebar {

0 commit comments

Comments
 (0)