website/assets/scss/docs.scss
Patrick-LuoYu bd1b2549a1 Change doc URL form docs to docs/v3.3
Signed-off-by: Patrick-LuoYu <patrickluo@yunify.com>
2022-06-27 10:28:24 +08:00

354 lines
8.0 KiB
SCSS

@import 'variables';
@import 'mixin';
.section-1 {
position: relative;
padding-top: 129px;
.title-div {
padding-bottom: 80px;
h1 {
width: 1060px;
}
p {
width: 1060px;
margin-top: 25px;
letter-spacing: -0.04px;
color: #ffffff;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
@media only screen and (max-width: $mobile-max-width) {
width: 100%;
top: 100px;
h1 {
width: 100%;
}
p {
width: 100%;
}
}
.search-div {
width: 560px;
margin-top: 20px;
@media only screen and (max-width: $mobile-max-width) {
width: 100%;
}
}
}
}
.section-link {
transform: translateY(-40px);
.common-layout {
display: flex;
box-sizing: border-box;
padding: 30px 40px;
border-radius: 10px;
color: #ffffff;
background-color: #36435c;
background-repeat: no-repeat;
background-position: left bottom;
background-image: url("/images/docs/v3.3/26.svg");
@media only screen and (max-width: $mobile-max-width) {
display: block;
padding: 20px;
}
}
.left {
flex: 1;
@media only screen and (max-width: $mobile-max-width) {
margin-bottom: 20px;
}
ul {
margin-top: 20px;
display: flex;
flex-wrap: wrap;
@media only screen and (max-width: $mobile-max-width) {
display: block;
}
li {
width: 50%;
@media only screen and (max-width: $mobile-max-width) {
width: 100%;
}
margin-bottom: 10px;
font-size: 14px;
line-height: 1.43;
color: #84f5be;
list-style: circle;
list-style-position: inside;
@include ellipsis;
a {
color: #84f5be;
}
&:last-child {
margin-bottom: 0;
}
}
}
}
.right {
width: 333px;
@media only screen and (max-width: $mobile-max-width) {
width: 100%;
}
ul {
margin-top: 20px;
li {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
padding: 8px 20px;
box-shadow: 0 4px 8px 0 rgba(36, 46, 66, 0.06), 0 8px 16px 0 rgba(36, 46, 66, 0.05);
background-color: #ffffff;
&:last-child {
margin-bottom: 0;
}
span {
flex: 1;
font-size: 14px;
color: #31383e;
line-height: 24px;
}
a {
display: inline-block;
width: 40px;
height: 40px;
background-image: url("/images/docs/v3.3/22.svg");
&:hover {
background-image: url("/images/docs/v3.3/22-hover.svg");
}
}
}
}
}
h2 {
font-size: 28px;
line-height: 34px;
}
p {
margin-top: 12px;
font-size: 14px;
line-height: 1.43;
}
}
.section-2 {
& > div {
position: relative;
& > ul {
@media only screen and (max-width: $mobile-max-width) {
justify-content: center;
}
& > li {
width: 373px;
height: 470px;
margin-bottom: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px 0 rgba(36, 46, 66, 0.06), 0 8px 16px 0 rgba(36, 46, 66, 0.05);
background-color: #ffffff;
background-repeat: no-repeat;
background-position: bottom;
& > p {
display: flex;
align-items: center;
padding: 30px 40px;
font-weight: 600;
line-height: 1.2;
color: #333333;
border-bottom: 1px solid #d2e0d8;
font-size: 0;
& > span {
width: 40px;
height: 40px;
margin-right: 10px;
border-radius: 7px;
background-image: linear-gradient(59deg, #ffffff -34%, #d5dee7 161%);
& > img {
margin: 8px;
}
}
& > a {
font-size: 20px;
}
}
& > ul {
padding: 0 40px;
& > li {
height: 46px;
font-size: 14px;
line-height: 46px;
overflow: hidden;
text-overflow:ellipsis;
white-space:nowrap;
border-bottom: 1px solid #d2e0d8;
& > a {
color: #31383e;
&:hover {
color: #00aa72
}
}
}
}
}
& > li:nth-child(3n + 1) {
background-image: url("/images/docs/v3.3/bg-1.svg");
}
& > li:nth-child(3n + 2) {
background-image: url("/images/docs/v3.3/bg-2.svg");
}
& > li:nth-child(3n + 3) {
background-image: url("/images/docs/v3.3/bg-3.svg");
}
}
}
}
.section-3 {
margin-top: 60px;
.common-layout {
box-sizing: border-box;
position: relative;
padding-right: 373px;
border-radius: 8px;
overflow: hidden;
@media only screen and (max-width: $mobile-max-width) {
padding: 0 20px;
}
.left-part-div {
padding: 37px 67px 18px 40px;
background-image: linear-gradient(102deg, #4a499a 28%, #8552c3 119%);
@media only screen and (max-width: $mobile-max-width) {
padding: 20px;
border-radius: 8px;
}
h2 {
font-size: 28px;
color: #ffffff;
}
p {
margin-top: 18px;
font-size: 14px;
line-height: 1.43;
color: #ffffff;
}
.common-flex-layout {
margin-top: 33px;
justify-content: space-around;
div {
position: relative;
img {
width: 186px;
height: 114px;
border-radius: 11px;
object-fit: contain;
}
p {
position: relative;
margin: 0 auto;
top: -10px;
width: 148px;
height: 34px;
font-size: 11px;
line-height: 34px;
text-align: center;
border-radius: 17px;
box-shadow: 0 10px 50px 0 rgba(34, 43, 62, 0.1), 0 8px 16px 0 rgba(33, 43, 61, 0.2);
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1) 97%), linear-gradient(to bottom, #242e42, #242e42);
&:hover {
box-shadow: none;
}
a {
color: #ffffff;
}
}
}
}
}
.right-part-div {
position: absolute;
top: 0;
bottom: 0;
right: 0;
width: 373px;
box-sizing: border-box;
padding: 124px 66px;
text-align: center;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-color: #ffffff;
background-image: url('/images/docs/v3.3/bg-line.png');
@media only screen and (max-width: $mobile-max-width) {
position: relative;
width: 100%;
margin-top: 20px;
border-radius: 8px;
}
h3 {
font-size: 20px;
color: #3d3e49;
}
button {
width: 148px;
height: 34px;
margin-top: 22px;
border-radius: 17px;
border: none;
font-size: 11px;
font-weight: 600;
color: #ffffff;
cursor: pointer;
box-shadow: 0 10px 50px 0 rgba(34, 43, 62, 0.1), 0 8px 16px 0 rgba(33, 43, 61, 0.2);
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1) 97%), linear-gradient(to bottom, #55bc8a, #55bc8a);
&:hover {
box-shadow: none;
}
}
}
}
}