website/assets/scss/doc.scss
TheYoungManLi 52fa19c656 fix: Remove Proxima Nova font file
Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
2023-06-13 11:31:20 +08:00

938 lines
22 KiB
SCSS

@import "variables";
@import "markdown";
html,
body {
background: #ffffff;
height: 100%;
min-height: 100%;
}
main {
min-height: calc(100% - 105px);
}
.section-1 {
position: relative;
padding-top: 129px;
padding-bottom: 20px;
background-image: url("/images/docs/v3.3/banner.png");
.common-layout {
position: relative;
}
.breadcrumbnav {
li {
display: inline;
font-size: 16px;
line-height: 1.5;
letter-spacing: -0.04px;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
a {
color: #ffffff;
}
}
.active {
opacity: 0.6;
}
}
.title-div {
height: 20px;
margin-top: 20px;
p {
display: inline-block;
vertical-align: middle;
font-size: 20px;
font-weight: bold;
line-height: 1;
letter-spacing: -0.06px;
color: #ffffff;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
a {
color: #ffffff;
}
}
.menu {
margin-left: 10px;
display: inline-block;
vertical-align: middle;
width: 16px;
cursor: pointer;
div {
margin: 3px 0;
height: 2px;
background-color: #ffffff;
}
}
}
.search-div {
position: absolute;
bottom: 0px;
right: 0px;
width: 560px;
margin-top: 20px;
@media only screen and (max-width: $mobile-max-width) {
position: relative;
width: 100%;
}
}
}
.section-menu {
display: none;
position: relative;
z-index: 2;
height: 0;
transform: translateY(-5px);
z-index: 5;
&>div {
padding: 30px 20px;
border-radius: 4px;
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;
&>ul {
&>li {
width: 243px;
float: left;
&>p {
padding-bottom: 12px;
font-size: 16px;
line-height: 1.5;
color: #333333;
border-bottom: 1px solid #d2e0d8;
img {
display: none;
}
}
ul {
li {
margin: 12px 0;
font-size: 14px;
line-height: 1.5;
&>a {
color: #31383e;
&:hover {
color: #00aa72
}
}
}
}
}
}
}
}
.section-2 {
padding-top: 20px;
&>div {
position: relative;
}
.second-section-menu {
display: none;
position: absolute;
top: 0;
left: 0px;
width: 16px;
cursor: pointer;
z-index: 1;
@media only screen and (max-width: $mobile-max-width) {
display: block;
}
div {
margin: 3px 0;
height: 2px;
background-color: #919aa3;
}
}
.left-div {
position: fixed;
top: 260px;
bottom: 20px;
left: 50%;
transform: translateX(-580px);
width: 180px;
z-index: 2;
@media only screen and (max-width: 1160px) {
left: 0;
transform: translateX(0px);
}
@media only screen and (max-width: $mobile-max-width) {
transition: all 0.5s;
left: -180px;
}
.inner-tree {
max-height: 100%;
position: relative;
overflow-y: auto;
background-color: #ffffff;
}
.nav-menu {
padding: 10px;
font-size: 14px;
color: #31383e;
background-color: #f6f8fa;
ul {
display: none;
}
.ul-active {
display: block;
}
li {
margin: 5px 0;
line-height: 24px;
a {
font-size: 14px;
color: #31383e;
}
}
p {
position: relative;
cursor: pointer;
margin: 5px 0;
font-size: 0;
padding-left: 15px;
span {
font-size: 14px;
}
.arrow {
display: inline-block;
position: absolute;
top: 5px;
left: 0;
width: 0;
height: 0;
margin-right: 5px;
border: 5px solid transparent;
border-left-color: #aeb8c1;
}
.arrow-open {
transform: rotate(90deg) translate(3px, 3px);
}
}
p+ul {
margin-left: 15px;
}
.active a {
color: rgb(85, 188, 138);
}
a:hover {
color: rgb(85, 188, 138);
}
}
.download-div {
height: 44px;
margin-top: 10px;
line-height: 44px;
background-color: #f6f8fa;
text-align: center;
font-size: 14px;
color: #3f5264;
cursor: pointer;
.download-icon {
display: inline-block;
width: 12px;
height: 11px;
background-repeat: no-repeat;
background-image: url("/images/docs/v3.3/downgrade.svg");
}
&:hover {
color: #56bc8a;
.download-icon {
background-image: url("/images/docs/v3.3/downgrade-hover.svg");
}
}
}
}
.middle-div {
position: relative;
margin-left: 180px;
margin-right: 180px;
padding: 10px;
border-right: 1px solid #dde1e6;
@media only screen and (max-width: $mobile-max-width) {
margin: 0;
padding: 0;
border-right: none;
}
.top-div {
margin-bottom: 20px;
}
.contributor-div {
margin-bottom: 10px;
span {
font-size: 12px;
line-height: 22px;
color: #8493a2;
}
.contributor-avatar {
display: inline;
vertical-align: middle;
font-size: 0;
margin-left: 10px;
li {
display: inline;
}
img {
width: 15px;
height: 15px;
margin: 0 3px;
border-radius: 50%;
}
span {
display: inline-block;
height: 15px;
font-size: 12px;
}
}
}
.mutual-div {
font-size: 14px;
line-height: 16px;
color: #3f5264;
&>div {
vertical-align: middle;
margin-left: 10px;
cursor: pointer;
span {
display: inline-block;
vertical-align: middle;
}
a {
color: #3f5264;
}
&:first-child {
margin-left: 0;
}
}
.edit-div {
.icon-span {
background-image: url("/images/docs/v3.3/edit.svg");
}
&:hover {
color: #56bc8a;
.icon-span {
background-image: url("/images/docs/v3.3/edit-hover.svg");
}
a {
color: #56bc8a;
}
}
}
.feedback-div {
.icon-span {
color: #56bc8a;
background-image: url("/images/docs/v3.3/feedback.svg");
}
&:hover {
.icon-span {
background-image: url("/images/docs/v3.3/feedback-hover.svg");
}
a {
color: #56bc8a;
}
}
}
.share-div {
position: relative;
.icon-span {
background-image: url("/images/docs/v3.3/share.svg");
}
&:hover {
color: #56bc8a;
.icon-span {
background-image: url("/images/docs/v3.3/share-hover.svg");
}
ul {
display: block;
}
}
ul {
display: none;
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, 100%);
width: 70px;
padding: 6px 12px;
border-radius: 3px;
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;
z-index: 2;
li {
margin: 6px 0;
img {
vertical-align: middle;
}
a {
font-size: 12px;
color: #3f5264;
&:hover {
color: #56bc8a;
}
}
}
}
}
.icon-span {
display: inline-block;
vertical-align: middle;
width: 16px;
height: 16px;
}
}
.content-div {
.md-body {
font-size: 16px;
line-height: 2.29;
color: #36435c;
}
.md-body h2 {
font-weight: 500;
line-height: 40px;
text-shadow: none;
text-align: left;
}
.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;
}
}
.popular-page-div {
position: relative;
display: inline-block;
box-sizing: border-box;
width: 373px;
padding: 20px;
margin-top: 17px;
margin-left: 5px;
border-radius: 3px;
background-color: #f6f8fa;
@media only screen and (max-width: $mobile-max-width) {
display: block;
width: 100%;
margin-left: 0;
}
img {
position: absolute;
top: 50%;
left: 20px;
transform: translateY(-50%);
width: 40px;
height: 40px;
padding: 12px;
border-radius: 7px;
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;
}
div {
margin-left: 84px;
h2 {
height: 24px;
margin: 0;
text-align: left;
font-size: 16px;
line-height: 1.5;
overflow: hidden;
a {
color: #333333;
&:hover {
color: #00a971;
}
}
}
p {
max-height: 42px;
margin-top: 8px;
margin-bottom: 0;
font-size: 14px;
line-height: 1.5;
color: #31383e;
overflow: hidden;
}
}
}
}
.page-div {
position: relative;
margin-top: 20px;
height: 30px;
a {
position: absolute;
top: 0;
font-size: 14px;
line-height: 1.71;
color: #3f5264;
img {
vertical-align: middle;
}
&:hover {
color: #00a971;
}
@media only screen and (max-width: $mobile-max-width) {
span {
display: none;
}
}
}
.last {
left: 0;
}
.next {
right: 0;
}
}
}
.aside {
position: fixed;
top: 260px;
bottom: 10px;
left: 50%;
transform: translateX(400px);
width: 180px;
@media only screen and (max-width: $mobile-max-width) {
display: none;
}
.inner-div {
max-height: 100%;
position: relative;
overflow-y: auto;
padding-left: 10px;
}
.title {
font-size: 14px;
line-height: 1.71;
color: #3e464c;
}
.tabs {
#TableOfContents>ul>li>a {
font-weight: 500;
}
li {
margin: 8px 0;
font-size: 14px;
a {
display: block;
width: 100%;
font-weight: 400;
line-height: 24px;
color: #68747f;
&:hover {
color: #00a971;
}
}
.active {
color: #00a971;
}
}
li li {
padding-left: 20px;
}
}
}
}
footer {
padding: 20px 0;
.down-main {
text-align: center;
.img-div {
font-size: 0;
svg {
width: 32px;
height: 32px;
color: #b6c2cd;
cursor: pointer;
transition: all 0.2s ease-in-out;
margin-right: 8px;
}
a {
display: inline-block;
width: 34px;
height: 34px;
margin: 0 6px;
background-position: center;
background-repeat: no-repeat;
}
.wechat {
position: relative;
.hide-div {
display: none;
position: absolute;
top: -10px;
left: 50%;
padding: 10px;
transform: translate(-50%, -100%);
background: #ffffff;
p {
font-size: 12px;
color: #b6c2cd;
}
img {
margin: 0 10px;
}
&::after {
content: '';
position: absolute;
bottom: -18px;
left: 50%;
transform: translateX(-50%);
border: 10px solid transparent;
border-top-color: #ffffff;
}
}
&:hover {
svg {
color: green;
}
div {
display: block;
}
}
}
.facebook-a {
background-image: url("/images/footer/facebook.svg");
&:hover {
background-image: url("/images/footer/facebook-hover.svg");
}
}
.youtube-a {
background-image: url("/images/footer/youtube.svg");
&:hover {
background-image: url("/images/footer/youtube-hover.svg");
}
}
.slack-a {
background-image: url("/images/footer/slack.svg");
&:hover {
background-image: url("/images/footer/slack-hover.svg");
}
}
.twitter-a {
background-image: url("/images/footer/twitter.svg");
&:hover {
background-image: url("/images/footer/twitter-hover.svg");
}
}
.github-a {
background-image: url("/images/footer/github.svg");
&:hover {
background-image: url("/images/footer/github-hover.svg");
}
}
.medium-a {
background-image: url("/images/footer/medium.svg");
&:hover {
background-image: url("/images/footer/medium-hover.svg");
}
}
.linkedin-a {
background-image: url("/images/footer/linkedin.svg");
&:hover {
background-image: url("/images/footer/linkedin-hover.svg");
}
}
}
.p1 {
height: 23px;
margin-top: 6px;
font-size: 14px;
line-height: 23px;
font-weight: 500;
letter-spacing: 1.08px;
color: #242e42;
}
.case {
margin-top: 20px;
}
}
}
.feedback-section {
margin-top: 40px;
.title {
font-family: PingFangSC;
font-size: 28px;
line-height: 32px;
color: #36435C;
}
button {
cursor: pointer;
width: 72px;
height: 40px;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.1) 96.81%), #FFFFFF;
border: 1px solid #CCD3DB;
border-radius: 4px;
}
button:hover {
background-color: #55BC8A;
}
}
.SubscribeForm {
.innerBox {
margin-top: 32px;
p {
width: 360px;
font-size: 16px;
line-height: 22px;
color: #919AA3;
margin: 0;
}
div {
width: 358px;
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;
}
}
}