119 lines
1.9 KiB
Stylus
119 lines
1.9 KiB
Stylus
@require "common/variables.styl"
|
|
|
|
.page-template {
|
|
padding-top: $header-height;
|
|
position: relative;
|
|
|
|
.page-top {
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
height: $header-height;
|
|
z-index: $z-index-5;
|
|
transition: all 0.5s ease;
|
|
}
|
|
|
|
|
|
.page-middle {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
.main-content {
|
|
width: $main-content-width;
|
|
height: 100%;
|
|
position: relative;
|
|
|
|
.main-content-left {
|
|
position: relative;
|
|
float: left;
|
|
padding: 40px 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.main-content-right {
|
|
position: relative;
|
|
float: right;
|
|
width: 0;
|
|
}
|
|
}
|
|
|
|
|
|
.sidebar-toc {
|
|
position: fixed;
|
|
top: $header-height + 50px;
|
|
right: 3%;
|
|
transition: all 0.5s ease;
|
|
width: 180px;
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.sidebar-tools {
|
|
position: fixed;
|
|
top: $header-height + 50px;
|
|
left: 4%;
|
|
transition: all 0.5s ease;
|
|
}
|
|
|
|
|
|
.scroll-to-top {
|
|
display: none;
|
|
position: fixed;
|
|
right: 4%;
|
|
bottom: 20px;
|
|
border-radius: 2px;
|
|
padding: 2px 6px;
|
|
color: var(--frist-text-color);
|
|
background: var(--border-color);
|
|
cursor: pointer;
|
|
|
|
button {
|
|
color: var(--frist-text-color);
|
|
|
|
i {
|
|
font-size: 1.2em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.page-bottom {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.page-top-shrink {
|
|
padding-top: $header-shrink-height;
|
|
|
|
.page-top {
|
|
height: $header-shrink-height;
|
|
}
|
|
|
|
.sidebar-tools {
|
|
top: $header-shrink-height + 50px !important;
|
|
}
|
|
|
|
.sidebar-toc {
|
|
top: $header-shrink-height + 50px !important;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: $media-max-width) {
|
|
.main-content {
|
|
width: $main-content-width * 1.2 !important;
|
|
}
|
|
|
|
.sidebar-tools {
|
|
left: 2% !important;
|
|
}
|
|
|
|
.sidebar-toc {
|
|
right: 2% !important;
|
|
}
|
|
|
|
.scroll-to-top {
|
|
right: 2% !important;
|
|
}
|
|
|
|
} |