ant-design/site/theme/template/Home/Banner/index.less

97 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-12-26 15:27:52 +08:00
@import '../../../../../components/style/themes/default.less';
@home-color: #0170fe;
.home-banner {
position: relative;
height: 512px;
overflow: hidden;
background: radial-gradient(rgba(255, 255, 255, 0.5), rgba(235, 245, 255, 0.58)),
linear-gradient(150deg, #fbfcfd, #f8fcff);
&-holder {
position: relative;
z-index: 1;
margin-top: 160px;
}
&-content {
margin: 0 auto;
padding: 0 16px;
font-size: 14px;
text-align: center;
p {
margin: 16px 0 0;
font-weight: lighter;
}
.banner-video {
display: none;
margin: 20px auto 0;
color: @home-color;
}
&-operations {
margin-top: 72px;
white-space: nowrap;
2019-12-31 14:52:53 +08:00
a {
margin: 0 8px;
}
2019-12-26 15:27:52 +08:00
button {
height: auto;
padding: 8px 24px;
2019-12-31 15:47:43 +08:00
color: @home-color;
2019-12-26 15:27:52 +08:00
font-size: 14px;
border-color: @home-color;
&:hover {
2019-12-31 14:52:53 +08:00
color: tint(@home-color, 20%);
border-color: tint(@home-color, 20%);
2019-12-26 15:27:52 +08:00
}
&.ant-btn-primary {
2019-12-31 14:52:53 +08:00
color: #fff;
2019-12-31 15:47:43 +08:00
background: @home-color;
2019-12-26 15:27:52 +08:00
2019-12-31 14:52:53 +08:00
&:hover {
background-color: tint(@home-color, 20%);
}
2019-12-26 15:27:52 +08:00
}
}
}
}
}
@media (min-width: @screen-sm-min) {
.home-banner {
height: 448px;
&-holder {
margin-top: 130px;
}
&-content {
font-size: 16px;
p {
margin-top: 24px;
}
.video {
margin: 8px auto;
}
&-operations {
margin-top: 40px;
button {
font-size: 16px;
}
}
}
}
}