hexo-theme-keep/source/css/layout/page.styl

197 lines
3.7 KiB
Stylus
Raw Normal View History

$temp-width = hexo-config('style.left_side_width');
2021-01-04 21:16:07 +08:00
$page-aside-width = $temp-width ? convert($temp-width):260px;
.page-container {
position: relative;
padding-top: $header-progress-height;
transition();
2020-11-20 12:02:22 +08:00
+keep-tablet() {
padding-left: 0 !important;
}
.page-header {
.header-progress {
2020-10-26 12:23:55 +08:00
visibility: hidden;
position: fixed;
width: 0;
height: $header-progress-height;
top: 0;
left: 0;
background: var(--primary-color);
transition: all 0.1s ease;
z-index: $z-index-7;
}
}
2020-04-01 12:09:06 +08:00
.page-main {
.page-main-content {
padding-top: $header-height;
position: relative;
2021-01-05 11:48:58 +08:00
.header-shrink & {
padding-top: $header-shrink-height;
transition();
+keep-tablet() {
padding-top: $header-shrink-height * 0.9;
}
+keep-mobile() {
padding-top: $header-shrink-height * 0.8;
}
}
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2021-01-05 11:48:58 +08:00
padding-top: $header-height * 0.9;
}
2020-04-29 16:37:13 +08:00
2020-11-20 12:02:22 +08:00
+keep-mobile() {
2021-01-05 11:48:58 +08:00
padding-top: $header-height * 0.8;
}
2020-04-29 16:37:13 +08:00
.page-main-content-top {
position: fixed;
top: 0;
right: 0;
width: 100%;
height: $header-height;
2021-01-05 11:48:58 +08:00
z-index: $z-index-5;
box-sizing: border-box;
transition();
.header-shrink & {
height: $header-shrink-height;
+keep-tablet() {
height: $header-shrink-height * 0.9;
}
+keep-mobile() {
height: $header-shrink-height * 0.8;
}
}
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2021-01-04 21:16:07 +08:00
height: $header-height * 0.9;
padding-left: 0 !important;
}
2021-01-05 11:48:58 +08:00
2020-11-20 12:02:22 +08:00
+keep-mobile() {
2021-01-04 21:16:07 +08:00
height: $header-height * 0.8;
2020-04-29 16:37:13 +08:00
}
2020-04-21 10:47:36 +08:00
}
.page-main-content-middle {
2020-11-25 23:39:24 +08:00
box-sizing: border-box;
width: 100%;
display: flex;
justify-content: center;
padding: $component-interspace 0;
2020-04-21 10:47:36 +08:00
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2020-11-18 11:15:03 +08:00
padding: $component-interspace * 0.8 0;
}
2020-11-20 12:02:22 +08:00
+keep-mobile() {
2020-11-18 11:15:03 +08:00
padding: $component-interspace * 0.6 0;
}
.main-content {
2020-11-25 23:39:24 +08:00
position: relative;
box-sizing: border-box;
width: $main-content-width;
2020-11-25 23:39:24 +08:00
max-width: $content-max-width;
height: 100%;
transition();
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2020-11-25 23:39:24 +08:00
width: $main-content-width-tablet;
}
2020-11-20 12:02:22 +08:00
+keep-mobile() {
2020-11-25 23:39:24 +08:00
width: $main-content-width-mobile;
}
}
}
.page-main-content-bottom {
width: 100%;
}
}
2020-04-03 18:18:42 +08:00
}
2020-04-21 10:47:36 +08:00
2020-04-03 18:18:42 +08:00
.page-aside {
position: fixed;
top: 0;
bottom: 0;
left: - $page-aside-width;
width: $page-aside-width;
2020-11-19 11:58:54 +08:00
height: 100%;
z-index: $z-index-6;
overflow-y: auto;
2020-11-13 14:43:22 +08:00
border-radius: 0 !important;
keep-container(1.02, 1.02, 18px, 0);
2020-06-04 22:11:27 +08:00
2020-11-20 12:02:22 +08:00
+keep-tablet() {
left: 0 !important;
display: none !important;
}
2020-06-04 22:11:27 +08:00
the-transition-ease-out();
}
2020-04-05 00:42:07 +08:00
2020-04-05 00:42:07 +08:00
.sidebar-tools {
position: fixed;
top: $header-height + $component-interspace;
right: $component-interspace;
transition();
2020-09-07 16:25:37 +08:00
2021-01-05 11:48:58 +08:00
.header-shrink & {
2021-01-04 21:16:07 +08:00
top: $header-shrink-height + $component-interspace;
+keep-tablet() {
top: $header-shrink-height * 0.9 + $component-interspace;
}
+keep-mobile() {
top: $header-shrink-height * 0.8 + $component-interspace;
}
}
2021-01-05 11:48:58 +08:00
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2021-01-04 21:16:07 +08:00
top: $header-height * 0.9 + $component-interspace;
2020-09-07 16:25:37 +08:00
right: 10px;
transform: scale(0.82);
transform-origin: right top;
}
2021-01-05 11:48:58 +08:00
2020-11-20 12:02:22 +08:00
+keep-mobile() {
2021-01-04 21:16:07 +08:00
top: $header-height * 0.8 + $component-interspace;
2020-09-07 16:25:37 +08:00
right: 5px;
transform: scale(0.72);
}
2020-04-21 10:47:36 +08:00
}
.right-bottom-side-tools {
position: fixed;
2021-01-05 11:48:58 +08:00
bottom: 5%;
right: 0;
}
2020-09-02 19:17:24 +08:00
}