website/assets/scss/content.scss
lannyfu 7acac5a34b feat: Add features page and change top right video on home page
Signed-off-by: lannyfu <lannyfu@kubesphere.io>
2025-09-18 16:08:36 +08:00

342 lines
6.8 KiB
SCSS

@import "variables";
.navigation {
box-shadow: 0 4px 8px 0 rgba(36, 46, 66, 0.06), 0 8px 16px 0 rgba(36, 46, 66, 0.05);
background-image: linear-gradient(to bottom, rgba(134, 219, 162, 0.9), rgba(0, 170, 114, 0.9));
}
.main-section {
margin-top: 60px;
&>div {
position: relative;
padding-top: 93px;
.breadcrumb {
margin: 30px 0;
a {
color: #919aa3;
&:hover {
color: #55bc8a;
}
}
}
.main-div {
box-sizing: border-box;
width: 880px;
padding: 40px 60px;
background-color: #fff;
border-radius: 4px;
@media only screen and (max-width: $mobile-max-width) {
width: 100%;
padding: 0;
background-color: #f5f8f9;
}
.author {
font-size: 16px;
line-height: 1.5;
color: #171c34;
}
.date {
font-size: 14px;
line-height: 1.43;
color: #919aa3;
}
h1 {
margin-top: 20px;
margin-bottom: 40px;
text-shadow: 0 8px 16px rgba(35, 45, 65, .1);
font-size: 40px;
font-weight: 500;
line-height: 1.4;
color: #171c34;
@media only screen and (max-width: $mobile-max-width) {
font-size: 28px;
}
}
.share-1 {
margin-bottom: 20px;
}
.share-2 {
margin-top: 20px;
}
.content {
iframe {
max-width: 100%;
}
.md-body {
font-size: 16px;
line-height: 2.29;
color: #36435c;
}
.md-body h2 {
font-weight: 500;
line-height: 64px;
color: #171c34;
text-shadow: none;
text-align: left;
margin-bottom: 20px;
border-bottom: 1px solid #ccd3db;
}
.md-body h3 {
font-weight: 600;
line-height: 1.5;
color: #171c34;
}
.md-body img {
max-width: 100%;
box-sizing: content-box;
background-color: #fff;
border-radius: 5px;
box-shadow: none;
}
.md-body blockquote {
padding: 4px 20px 4px 12px;
border-radius: 4px;
background-color: #ecf0f2;
}
&-metadata {
margin-bottom: 28px;
&-title {
font-size: 16px;
font-weight: 500;
line-height: 1.5;
color: #171c34;
}
&-time {
font-size: 14px;
line-height: 1.43;
color: #919aa3;
}
}
&-title {
text-shadow: 0 8px 16px rgba(35, 45, 65, 0.1);
font-size: 40px;
font-weight: 500;
line-height: 1.4;
color: #171c34;
margin-bottom: 40px;
@media only screen and (max-width: $mobile-max-width) {
font-size: 28px;
}
}
}
}
.aside {
position: fixed;
top: 150px;
left: 50%;
bottom: 10px;
transform: translateX(350px);
width: 230px;
@media only screen and (max-width: $mobile-max-width) {
display: none;
}
.inner-div {
max-height: 100%;
position: relative;
overflow-y: auto;
}
.title {
height: 32px;
font-size: 24px;
line-height: 1.33;
color: #36435c;
padding-bottom: 10px;
border-bottom: solid 1px #ccd3db;
}
.tabs {
#TableOfContents>ul>li>a {
font-weight: 500;
}
li {
margin: 10px 0;
font-size: 16px;
line-height: 2;
color: #36435c;
a {
display: block;
width: 100%;
font-weight: 400;
line-height: 24px;
color: #36435c;
&:hover {
color: #55bc8a;
}
}
.active {
color: #55bc8a;
}
}
li li {
padding-left: 20px;
}
}
}
}
}
@media only screen and (min-width: $mobile-max-width) {
.SubscribeForm {
position: fixed;
right: 49px;
bottom: 32px;
box-shadow: 0px 8px 16px rgba(36, 46, 66, 0.05),
0px 4px 8px rgba(36, 46, 66, 0.06);
.innerBox {
width: 440px;
height: 246px;
overflow: hidden;
background: url('/images/home/modal-noText.svg');
position: relative;
padding: -8px -16px;
background-position: -16px -8px;
.close {
position: absolute;
top: 24px;
right: 24px;
cursor: pointer;
}
p {
width: 360px;
height: 44px;
left: 40px;
top: 103px;
right: 40px;
position: absolute;
font-family: ProximaNova;
font-size: 16px;
line-height: 22px;
color: #919AA3;
}
div {
bottom: 32px;
left: 40px;
position: absolute;
width: 358px;
height: 48px;
margin-top: 20px;
border-radius: 24px;
border: solid 1px #ccd3db;
background-color: #f5f8f9;
@mixin placeholder {
font-family: PingFangSC;
font-size: 14px;
line-height: 16px;
text-align: right;
color: #CCD3DB;
}
input {
width: 207px;
height: 20px;
font-size: 14px;
margin-left: 16px;
color: #ccd3db;
border: none;
outline: none;
background-color: #f5f8f9;
&:-webkit-input-placeholder {
@include placeholder();
}
&:-ms-input-placeholder {
@include placeholder();
}
&:-moz-placeholder {
@include placeholder();
}
&:-moz-placeholder {
@include placeholder();
}
}
button {
width: 111px;
height: 40px;
margin: 4px 5px 4px 14px;
border-radius: 20px;
border: none;
font-size: 14px;
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;
}
}
@media only screen and (max-width: $mobile-max-width) {
width: 326px;
input {
width: 196px;
}
button {
width: 90px;
}
}
span {
color: red;
}
}
}
}
}
@media only screen and (max-width: $mobile-max-width) {
.SubscribeForm {
display: none !important;
}
}
#videoPlayer {
width: 100%;
}