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

349 lines
6.0 KiB
Plaintext
Raw Normal View History

2018-12-07 16:17:45 +08:00
@import '../../../components/style/themes/default.less';
2016-09-26 12:12:44 +08:00
.nav-phone-icon {
display: none;
position: absolute;
right: 30px;
top: 25px;
2016-09-26 12:12:44 +08:00
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;
}
@media only screen and (max-width: @screen-xl) {
#search-box {
2016-09-23 10:14:57 +08:00
display: none;
}
#logo {
padding: 0 40px;
}
.banner-wrapper .banner-title-wrapper {
h1 {
font-size: 36px;
}
p {
font-size: 16px;
}
}
2016-09-23 10:14:57 +08:00
}
@media only screen and (max-width: 767.99px) {
2018-01-04 20:00:38 +08:00
#header {
text-align: center;
#logo {
float: initial;
}
}
2017-02-21 23:26:10 +08:00
#search-box {
display: none;
}
2018-12-07 16:17:45 +08:00
.code-boxes-col-2-1,
.code-boxes-col-1-1 {
2016-03-24 17:13:19 +08:00
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 {
margin: 10px 0;
2018-11-08 15:06:23 +08:00
width: 100%;
padding: 0;
2016-03-24 17:13:19 +08:00
}
.image-wrapper {
display: none;
}
div.version {
display: block;
margin: 29px auto 16px;
}
2016-11-06 17:09:06 +08:00
.popover-menu {
width: 300px;
div.version {
margin: 16px auto;
}
2016-11-06 17:09:06 +08:00
.ant-popover-inner {
overflow: hidden;
&-content {
padding: 0;
.ant-select {
width: 60%;
display: block;
}
.ant-btn {
2017-12-16 18:22:15 +08:00
margin: 16px 8% 0 8px;
}
2016-11-06 17:09:06 +08:00
}
2016-09-26 12:12:44 +08:00
}
#nav a.header-link {
color: #333;
}
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: 40px;
height: 40px;
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;
}
.main {
height: calc(100% - 86px);
}
.aside-container {
float: none;
width: auto;
padding-bottom: 30px;
2017-02-27 13:52:09 +08:00
border-right: 0;
2016-03-24 17:13:19 +08:00
}
.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 {
2016-03-24 17:13:19 +08:00
text-align: center;
.footer-wrap {
padding: 40px;
2018-01-04 20:00:38 +08:00
.ant-row {
2018-01-09 15:38:06 +08:00
padding: 0;
> div {
2018-01-04 20:00:38 +08:00
&:nth-child(2),
&:nth-child(4) {
display: none;
}
a {
font-weight: 300;
}
}
}
}
.footer-center {
text-align: center;
}
h2 {
margin-top: 16px;
}
2016-03-24 17:13:19 +08:00
}
.prev-next-nav {
margin-left: 16px;
2018-12-07 16:17:45 +08:00
width: ~'calc(100% - 32px)';
}
2017-11-21 11:18:31 +08:00
.drawer {
.ant-menu-inline .ant-menu-item:after,
.ant-menu-vertical .ant-menu-item:after {
left: 0;
right: auto;
}
}
2017-12-16 18:22:15 +08:00
#_hj_feedback_container {
display: none;
}
2018-01-04 20:00:38 +08:00
/** home 区块 **/
.home-page-wrapper {
.page {
h2 {
margin: 80px auto 64px;
}
}
.parallax-bg {
display: none;
}
}
.banner {
display: block;
height: 632px;
&-bg-wrapper {
display: none;
}
.img-wrapper,
.text-wrapper {
width: 100%;
display: inline-block;
text-align: center;
margin: auto;
2018-01-27 15:17:43 +08:00
max-width: unset;
min-width: unset;
2018-01-04 20:00:38 +08:00
}
.img-wrapper {
position: initial;
2018-05-12 14:02:34 +08:00
margin-top: 32px;
text-align: center;
2018-01-04 20:00:38 +08:00
svg {
width: 100%;
height: auto;
2018-05-12 14:02:34 +08:00
margin: 0 auto;
max-width: 360px;
2018-01-04 20:00:38 +08:00
}
}
.text-wrapper {
margin-top: 48px;
min-height: 200px;
padding: 0 16px;
h1 {
display: none;
}
p {
font-size: 14px;
line-height: 28px;
color: @home-text-color;
}
2018-05-12 14:02:34 +08:00
.banner-btns {
display: block;
text-align: center;
2018-05-14 00:07:39 +08:00
min-width: 100%;
2018-05-12 14:02:34 +08:00
white-space: nowrap;
}
2018-01-04 20:00:38 +08:00
}
}
.page1 {
2018-11-09 16:18:15 +08:00
min-height: 1300px;
2018-01-04 20:00:38 +08:00
.ant-row {
margin: 24px auto 64px;
2018-09-19 14:47:24 +08:00
> div {
2018-01-04 20:00:38 +08:00
margin-bottom: 48px;
}
}
}
.page2 {
min-height: 840px;
background: #fff;
&-content {
box-shadow: none;
}
&-components {
display: none;
}
&-product {
min-height: auto;
padding: 0 16px;
.product-block {
padding-bottom: 35px;
margin-bottom: 34px;
border-bottom: 1px solid #ebedf0;
&:last-child {
margin-bottom: 32px;
border-bottom: none;
.block-text-wrapper {
height: auto;
}
}
.block-image-wrapper {
height: 88px;
img {
height: 100%;
}
}
.block-text-wrapper {
border-bottom: none;
padding-bottom: 0;
h4 {
font-size: 18px;
line-height: 24px;
margin-bottom: 4px;
}
p {
font-size: 12px;
margin-bottom: 8px;
line-height: 20px;
}
a {
line-height: 20px;
}
.components-button-wrapper {
font-size: 12px;
margin-top: 16px;
a {
display: block;
}
}
2018-12-07 16:17:45 +08:00
a.more-mobile-react,
a.more-mobile-angular {
color: @link-color;
margin-top: 0;
}
2018-12-07 16:17:45 +08:00
a.more-mobile-react:hover,
a.more-mobile-angular:hover {
color: #40a9ff;
}
2018-01-04 20:00:38 +08:00
}
}
}
}
.page3 {
min-height: 688px;
background: url('https://gw.alipayobjects.com/zos/rmsportal/qICoJIqqQRMeRGhPHBBS.svg') no-repeat;
background-size: cover;
.ant-row {
margin: 0 8px;
}
.page3-block {
padding: 24px;
background: #fff;
border-radius: 4px;
box-shadow: 0 8px 16px rgba(174, 185, 193, 0.3);
margin-bottom: 32px;
&:nth-child(2) {
.page3-img-wrapper img {
width: 70%;
margin: auto;
display: block;
}
}
p {
font-size: 12px;
}
.page3-img-wrapper {
width: 20%;
img {
width: 100%;
}
}
.page3-text-wrapper {
width: 80%;
margin: 0;
max-width: initial;
padding-left: 16px;
}
}
}
2016-03-24 17:13:19 +08:00
}