From b584bbda091533e3a5f5860b52bb53d597f3388a Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sat, 3 Dec 2016 02:15:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/styl/index.styl | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/template/styl/index.styl b/template/styl/index.styl index 174f9e042b..5d1d33654a 100644 --- a/template/styl/index.styl +++ b/template/styl/index.styl @@ -2,6 +2,7 @@ @import('mixins/highlight.styl') @import('mixins/markdown.styl') +mq-mobile = "screen and (max-width: 479px)" a.github-corner { position: fixed @@ -30,7 +31,6 @@ a.github-corner { 20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)} 40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)} } - .header{ width 517px @@ -228,3 +228,41 @@ a.github-corner { } } + + +@media mq-mobile{ + .header{ + width inherit + .logo svg{ + height: 26px; + width: 96px; + } + .search { + .query{ + height: 34px; + } + .enter-input button{ + padding: 6px 12px; + } + } + } + .header_list .logo{ + float: inherit; + padding-right: 10px; + padding-top: 8px; + padding-bottom: 14px; + text-align: center; + } + div.markdown-body{ + padding: 10px 10px 10px 13px; + } + div.markdown-body .edit_btn + *{ + margin-top: 0 !important; + } + div.markdown-body .edit_btn{ + top: 9px; + } + div.markdown-body pre{ + padding: 0.6em; + } +} \ No newline at end of file