2020-04-01 12:09:06 +08:00
|
|
|
@require "common/variables.styl"
|
2020-04-01 10:14:18 +08:00
|
|
|
|
|
|
|
.page-template {
|
2020-04-01 12:09:06 +08:00
|
|
|
padding-top: $header-height;
|
2020-04-02 11:01:24 +08:00
|
|
|
position: relative;
|
|
|
|
|
2020-04-01 10:14:18 +08:00
|
|
|
|
|
|
|
.page-top {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
2020-04-01 12:09:06 +08:00
|
|
|
height: $header-height;
|
2020-04-01 23:03:38 +08:00
|
|
|
z-index: $z-index-5;
|
2020-04-01 10:14:18 +08:00
|
|
|
transition: all 0.5s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-middle {
|
|
|
|
width: 100%;
|
2020-04-01 12:09:06 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
.main-content {
|
2020-04-01 17:55:34 +08:00
|
|
|
width: $main-content-width;
|
2020-04-01 12:09:06 +08:00
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
2020-04-01 16:41:30 +08:00
|
|
|
padding: 40px 0;
|
2020-04-01 12:09:06 +08:00
|
|
|
}
|
2020-04-02 11:01:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
.sidebar-tools {
|
|
|
|
position: fixed;
|
2020-04-02 20:37:34 +08:00
|
|
|
top: $header-height + 50px;
|
2020-04-02 11:01:24 +08:00
|
|
|
right: 5%;
|
|
|
|
transition: all 0.5s ease;
|
|
|
|
}
|
|
|
|
|
2020-04-05 00:42:07 +08:00
|
|
|
.scroll-to-top {
|
2020-04-05 08:32:44 +08:00
|
|
|
display: none;
|
2020-04-05 00:42:07 +08:00
|
|
|
position: fixed;
|
|
|
|
right: 5%;
|
|
|
|
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 {
|
2020-04-07 11:57:53 +08:00
|
|
|
font-size: 1.2em;
|
2020-04-05 00:42:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-01 10:14:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.page-bottom {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-top-shrink {
|
2020-04-01 12:09:06 +08:00
|
|
|
padding-top: $header-shrink-height;
|
2020-04-01 10:14:18 +08:00
|
|
|
|
|
|
|
.page-top {
|
2020-04-01 12:09:06 +08:00
|
|
|
height: $header-shrink-height;
|
2020-04-01 10:14:18 +08:00
|
|
|
}
|
2020-04-02 11:01:24 +08:00
|
|
|
|
|
|
|
.sidebar-tools {
|
2020-04-03 18:18:42 +08:00
|
|
|
top: $header-shrink-height + 50px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: $media-max-width) {
|
|
|
|
.main-content {
|
|
|
|
width: $main-content-width * 1.2 !important;
|
2020-04-02 11:01:24 +08:00
|
|
|
}
|
2020-04-05 00:42:07 +08:00
|
|
|
|
|
|
|
.sidebar-tools {
|
|
|
|
right: 2% !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll-to-top {
|
|
|
|
right: 2% !important;
|
|
|
|
}
|
|
|
|
|
2020-04-01 10:14:18 +08:00
|
|
|
}
|