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

212 lines
3.3 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;
2016-11-06 17:09:06 +08:00
height: 22px;
2016-09-26 12:12:44 +08:00
cursor: pointer;
}
2017-02-21 23:26:10 +08:00
@media only screen and (min-width: 0) and (max-width: 1280px) {
.en-us #search-box {
display: none;
}
}
@media only screen and (min-width: 0) and (max-width: 1180px) {
2017-02-21 23:26:10 +08:00
.zh-cn #search-box {
2016-09-23 10:14:57 +08:00
display: none;
}
}
2017-02-21 23:26:10 +08:00
@media only screen and (min-width: 0) and (max-width: 992px) {
#search-box {
display: none;
}
2016-03-24 17:13:19 +08:00
.code-boxes-col-2-1, .code-boxes-col-1-1 {
float: none;
width: 100%;
}
.preview-image-boxes {
2017-08-04 17:58:32 +08:00
margin: 0 !important;
2016-03-24 17:13:19 +08:00
float: none;
width: 100%;
}
.preview-image-box {
padding-left: 0;
margin: 10px 0;
}
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;
}
.image-wrapper {
display: none;
}
.banner-wrapper {
background-position: 40%;
}
.content-wrapper .text-wrapper {
float: none;
text-align: center;
left: 0;
width: 100%;
padding: 0;
> p {
max-width: 100% !important;
padding: 0 40px;
}
}
.content-wrapper.page {
min-height: 300px;
height: 300px;
}
.banner-text-wrapper {
left: 50%;
transform: translateX(-50%);
text-align: center;
.start-button {
text-align: center;
> a {
margin: 0 4px;
}
}
.github-btn {
text-align: center;
float: none;
display: inline-block;
}
.line {
display: 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: @text-color;
border-color: @text-color;
2016-03-24 17:13:19 +08:00
}
div.version {
display: block;
margin: 29px auto 16px;
& > .ant-select-selection {
color: @text-color;
&:not(:hover) {
border-color: @text-color;
}
}
}
2016-11-06 17:09:06 +08:00
.popover-menu {
width: 300px;
button.lang {
margin: 16px auto;
float: none;
2016-09-26 12:12:44 +08:00
}
div.version {
margin: 32px auto 16px;
float: none;
}
2016-11-06 17:09:06 +08:00
.ant-popover-inner {
overflow: hidden;
&-content {
padding: 0;
}
2016-09-26 12:12:44 +08:00
}
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-11-06 17:09:06 +08:00
border: 0;
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;
2017-02-27 13:52:09 +08:00
border-right: 0;
2016-03-24 17:13:19 +08:00
margin-bottom: 30px;
}
.main-container {
2017-02-21 12:07:28 +08:00
padding-left: 16px;
padding-right: 16px;
margin-right: 0;
2016-04-06 12:23:41 +08:00
> .markdown > * {
2017-08-04 17:58:32 +08:00
width: 100% !important;
2016-03-24 17:13:19 +08:00
}
}
.main-wrapper {
width: 100%;
border-radius: 0;
margin: 0;
2016-03-24 17:13:19 +08:00
}
footer {
text-align: center;
2017-02-21 12:07:28 +08:00
ul li {
float: none;
width: auto;
> h2 .anticon {
display: none;
}
}
2016-03-24 17:13:19 +08:00
}
}