Fix responsive of site

pull/209/head
afc163 10 years ago
parent c1ea01b0a6
commit a63ca0febd

@ -35,7 +35,7 @@ $(function () {
}, },
render() { render() {
return <Select combobox style={{width: 260}} return <Select combobox style={{width: '100%'}}
onSelect={this.handleSelect} onSelect={this.handleSelect}
optionLabelProp="text" optionLabelProp="text"
dropdownClassName="autoComplete" dropdownClassName="autoComplete"

@ -106,6 +106,7 @@
</li> </li>
</ul> </ul>
</nav> </nav>
<div class="nav-phone-icon"></div>
</header> </header>
<div class="main-wrapper"> <div class="main-wrapper">
{% block aside %}{% endblock %} {% block content %}{% endblock %} {% block aside %}{% endblock %} {% block content %}{% endblock %}

@ -37,6 +37,10 @@ $(function() {
// 移动 API 文档到演示下方 // 移动 API 文档到演示下方
$('.markdown #api').nextAll().andSelf().appendTo('.api-container'); $('.markdown #api').nextAll().andSelf().appendTo('.api-container');
$('.nav-phone-icon').click(function() {
$(this).prev().toggle();
});
$.easing['jswing'] = $.easing['swing']; $.easing['jswing'] = $.easing['swing'];
$.extend($.easing,{ $.extend($.easing,{
easeInCirc: function (x, t, b, c, d) { easeInCirc: function (x, t, b, c, d) {

@ -105,7 +105,7 @@ a.logo {
.search { .search {
float: left; float: left;
height: 22px; height: 22px;
padding: 0px 30px; padding: 0px 0 0 30px;
margin: 32px auto 0; margin: 32px auto 0;
border-left: 1px solid #EBEDEE; border-left: 1px solid #EBEDEE;
position: relative; position: relative;
@ -113,6 +113,7 @@ a.logo {
#autoComplete { #autoComplete {
margin-top: -2px; margin-top: -2px;
width: 230px;
} }
#autoComplete .ant-select { #autoComplete .ant-select {
@ -1883,10 +1884,31 @@ a.entry-link:hover .anticon-smile {
.logo { .logo {
margin: 10px; margin: 10px;
width: 110px;
height: auto; height: auto;
} }
.nav {
position: absolute;
z-index: 1000;
top: 50px;
right: 0;
background: #fff;
overflow: hidden;
height: auto;
line-height: 50px;
margin-right: 0;
border: 1px solid #e9e9e9;
width: 50%;
}
.nav .bar {
display: none!important;
}
.nav ul li {
width: 100%;
}
.nav-phone-icon { .nav-phone-icon {
display: block; display: block;
width: 49px; width: 49px;
@ -1915,11 +1937,25 @@ a.entry-link:hover .anticon-smile {
height: calc(100% - 86px); height: calc(100% - 86px);
} }
footer ul { .aside-container {
display: none; float: none;
width: auto;
} }
footer h3 { .main-container {
display: block; margin-left: 0;
}
.markdown {
width: 100%;
}
footer {
text-align: center;
}
footer ul li {
float: none;
width: auto;
} }
} }

Loading…
Cancel
Save