ant-design/site/theme/static/responsive.less

147 lines
2.2 KiB
Plaintext
Raw Normal View History

2016-09-26 12:12:44 +08:00
.nav-phone-icon {
display: none;
position: absolute;
right: 30px;
top: 32px;
z-index: 1;
width: 16px;
height: 50px;
cursor: pointer;
}
2016-09-23 10:14:57 +08:00
@media only screen and (min-width: 320px) and (max-width: 1200px) {
#search-box {
display: none;
}
}
2016-03-24 17:13:19 +08:00
@media only screen and (min-width: 320px) and (max-width: 1024px) {
.code-boxes-col-2-1, .code-boxes-col-1-1 {
float: none;
width: 100%;
padding: 0!important;
}
.preview-image-boxes {
margin: 0!important;
float: none;
width: 100%;
}
.preview-image-box {
padding-left: 0;
margin: 10px 0;
}
}
2016-09-23 10:14:57 +08:00
@media only screen and (min-width: 320px) and (max-width: 940px) {
2016-03-24 17:13:19 +08:00
#list,
#search-box {
display: none;
}
a#logo {
2016-05-15 20:09:47 +08:00
width: 150px;
2016-03-24 17:13:19 +08:00
margin-left: auto;
margin-right: auto;
float: none;
display: block;
}
.banner-entry {
position: relative;
top: 30px;
left: 0;
text-align: center;
}
2016-10-07 14:33:08 +08:00
#nav, .lang {
2016-09-26 12:12:44 +08:00
float: none;
}
2016-10-07 14:33:08 +08:00
button.lang {
2016-09-26 12:12:44 +08:00
display: block;
margin: 29px auto 16px;
color: #666;
border-color: #666;
2016-03-24 17:13:19 +08:00
}
2016-09-26 12:12:44 +08:00
.nav {
.ant-popover-inner-content {
padding: 0;
}
.ant-menu-item-selected {
border-right: 1px solid #e9e9e9;
}
2016-03-24 17:13:19 +08:00
}
2016-05-15 20:09:47 +08:00
ul#nav,
ul#nav li {
2016-03-24 17:13:19 +08:00
width: 100%;
2016-05-15 20:09:47 +08:00
font-size: 14px;
}
ul#nav li {
line-height: 60px;
height: 60px;
2016-06-27 11:57:56 +08:00
padding: 0 !important;
2016-05-15 20:09:47 +08:00
a {
color: #333;
}
2016-03-24 17:13:19 +08:00
}
.toc {
display: none;
}
.nav-phone-icon {
display: block;
}
.nav-phone-icon:before {
content: "";
display: block;
border-radius: 2px;
width: 16px;
height: 2px;
background: #777;
box-shadow: 0 6px 0 0 #777, 0 12px 0 0 #777;
position: absolute;
}
.main {
height: calc(100% - 86px);
}
.aside-container {
float: none;
width: auto;
padding-bottom: 30px;
border-bottom: 1px solid #e9e9e9;
margin-bottom: 30px;
}
.main-container {
margin-left: 0;
2016-04-06 12:23:41 +08:00
> .markdown > * {
2016-03-24 17:13:19 +08:00
width: 100%!important;
}
}
.main-wrapper {
width: 100%;
border-radius: 0;
}
.main-container {
padding-left: 30px;
padding-right: 30px;
}
footer {
text-align: center;
}
footer ul li {
float: none;
width: auto;
}
}