Skip to content

Commit b584bbd

Browse files
committed
添加移动端界面展示
1 parent 89a5f47 commit b584bbd

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

template/styl/index.styl

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@import('mixins/highlight.styl')
33
@import('mixins/markdown.styl')
44

5+
mq-mobile = "screen and (max-width: 479px)"
56

67
a.github-corner {
78
position: fixed
@@ -30,7 +31,6 @@ a.github-corner {
3031
20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}
3132
40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}
3233
}
33-
3434

3535
.header{
3636
width 517px
@@ -228,3 +228,41 @@ a.github-corner {
228228
}
229229

230230
}
231+
232+
233+
@media mq-mobile{
234+
.header{
235+
width inherit
236+
.logo svg{
237+
height: 26px;
238+
width: 96px;
239+
}
240+
.search {
241+
.query{
242+
height: 34px;
243+
}
244+
.enter-input button{
245+
padding: 6px 12px;
246+
}
247+
}
248+
}
249+
.header_list .logo{
250+
float: inherit;
251+
padding-right: 10px;
252+
padding-top: 8px;
253+
padding-bottom: 14px;
254+
text-align: center;
255+
}
256+
div.markdown-body{
257+
padding: 10px 10px 10px 13px;
258+
}
259+
div.markdown-body .edit_btn + *{
260+
margin-top: 0 !important;
261+
}
262+
div.markdown-body .edit_btn{
263+
top: 9px;
264+
}
265+
div.markdown-body pre{
266+
padding: 0.6em;
267+
}
268+
}

0 commit comments

Comments
 (0)