mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
site: improve responsive layout
This commit is contained in:
parent
f0a4afd388
commit
9bb7e3d10c
@ -11,7 +11,7 @@ title:
|
||||
|
||||
## en-US
|
||||
|
||||
Basic usage example
|
||||
Basic usage example.
|
||||
|
||||
````jsx
|
||||
import { Input } from 'antd';
|
||||
|
@ -54,7 +54,7 @@
|
||||
#search-box .ant-select {
|
||||
font-size: 14px;
|
||||
margin-top: -3px;
|
||||
width: 230px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
#search-box .ant-select-selection {
|
||||
|
@ -9,13 +9,22 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 0px) and (max-width: 1280px) {
|
||||
#search-box {
|
||||
@media only screen and (min-width: 0) and (max-width: 1280px) {
|
||||
.en-us #search-box {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 0px) and (max-width: 992px) {
|
||||
@media only screen and (min-width: 0) and (max-width: 1080px) {
|
||||
.zh-cn #search-box {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 0) and (max-width: 992px) {
|
||||
#search-box {
|
||||
display: none;
|
||||
}
|
||||
.code-boxes-col-2-1, .code-boxes-col-1-1 {
|
||||
float: none;
|
||||
width: 100%;
|
||||
|
@ -74,6 +74,7 @@
|
||||
if (!window.Promise) {
|
||||
document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"' + '>' + '<' + '/' + 'script>');
|
||||
}
|
||||
document.documentElement.className += /-cn\/?$/.test(location.pathname) ? 'zh-cn' : 'en-us';
|
||||
</script>
|
||||
<script>
|
||||
// Enable Google Analytics
|
||||
|
Loading…
Reference in New Issue
Block a user