2020-11-17 10:50:55 +08:00
|
|
|
$temp-width = hexo-config('style.left_side_width');
|
2021-10-19 23:21:32 +08:00
|
|
|
$page-aside-width = $temp-width ? convert($temp-width) : 260px;
|
2020-09-05 22:41:10 +08:00
|
|
|
|
|
|
|
.page-container {
|
2020-04-02 11:01:24 +08:00
|
|
|
position: relative;
|
2021-10-19 23:21:32 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
background: var(--background-color);
|
2021-01-21 16:47:13 +08:00
|
|
|
transition-t("padding-left", "0", "0.3", "ease-out");
|
|
|
|
|
2020-11-25 16:54:44 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-tablet() {
|
2020-09-05 22:41:10 +08:00
|
|
|
padding-left: 0 !important;
|
2020-04-01 10:14:18 +08:00
|
|
|
}
|
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
.page-main-content {
|
|
|
|
padding-top: $header-height;
|
|
|
|
position: relative;
|
2020-11-25 16:54:44 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
.header-shrink & {
|
|
|
|
padding-top: $header-shrink-height;
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
|
|
|
|
+keep-tablet() {
|
|
|
|
padding-top: $header-shrink-height * 0.9;
|
|
|
|
}
|
|
|
|
|
|
|
|
+keep-mobile() {
|
|
|
|
padding-top: $header-shrink-height * 0.8;
|
|
|
|
}
|
2020-09-05 22:41:10 +08:00
|
|
|
}
|
2020-04-01 12:09:06 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
+keep-tablet() {
|
|
|
|
padding-top: $header-height * 0.9;
|
|
|
|
}
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
+keep-mobile() {
|
|
|
|
padding-top: $header-height * 0.8;
|
|
|
|
}
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
.page-main-content-top {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: $header-height;
|
|
|
|
z-index: $z-index-5;
|
|
|
|
box-sizing: border-box;
|
2021-01-21 18:59:22 +08:00
|
|
|
transition-t("transform, padding-left, height", "0, 0, 0", "0.3, 0.2, 0.2", "ease-out, linear, ease");
|
2021-01-06 18:36:28 +08:00
|
|
|
|
|
|
|
&.hide {
|
2021-01-21 18:59:22 +08:00
|
|
|
transform: translateY(-105%);
|
2021-01-06 18:36:28 +08:00
|
|
|
}
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2021-01-05 11:48:58 +08:00
|
|
|
.header-shrink & {
|
2021-01-06 18:36:28 +08:00
|
|
|
height: $header-shrink-height;
|
2021-01-05 11:48:58 +08:00
|
|
|
|
|
|
|
+keep-tablet() {
|
2021-01-06 18:36:28 +08:00
|
|
|
height: $header-shrink-height * 0.9;
|
2021-01-05 11:48:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
+keep-mobile() {
|
2021-01-06 18:36:28 +08:00
|
|
|
height: $header-shrink-height * 0.8;
|
2021-01-05 11:48:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-tablet() {
|
2021-01-06 18:36:28 +08:00
|
|
|
height: $header-height * 0.9;
|
|
|
|
padding-left: 0 !important;
|
2020-09-05 22:41:10 +08:00
|
|
|
}
|
2020-04-29 16:37:13 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-mobile() {
|
2021-01-06 18:36:28 +08:00
|
|
|
height: $header-height * 0.8;
|
2020-09-05 22:41:10 +08:00
|
|
|
}
|
2020-04-29 16:37:13 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
}
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
.page-main-content-middle {
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2021-01-07 15:15:39 +08:00
|
|
|
padding: $component-spacing-value 0;
|
2021-01-05 11:48:58 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
+keep-tablet() {
|
2021-01-07 15:15:39 +08:00
|
|
|
padding: $component-spacing-value * 0.8 0;
|
2021-01-06 18:36:28 +08:00
|
|
|
}
|
2020-09-05 22:41:10 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
+keep-mobile() {
|
2021-01-07 15:15:39 +08:00
|
|
|
padding: $component-spacing-value * 0.6 0;
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
.main-content {
|
|
|
|
position: relative;
|
2020-11-25 23:39:24 +08:00
|
|
|
box-sizing: border-box;
|
2021-01-06 18:36:28 +08:00
|
|
|
width: $main-content-width;
|
|
|
|
max-width: $content-max-width;
|
|
|
|
height: 100%;
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-tablet() {
|
2021-01-06 18:36:28 +08:00
|
|
|
width: $main-content-width-tablet;
|
2020-10-28 18:01:59 +08:00
|
|
|
}
|
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-mobile() {
|
2021-01-06 18:36:28 +08:00
|
|
|
width: $main-content-width-mobile;
|
2020-09-05 22:41:10 +08:00
|
|
|
}
|
2020-04-25 21:45:45 +08:00
|
|
|
}
|
2021-01-06 18:36:28 +08:00
|
|
|
}
|
2020-04-25 21:45:45 +08:00
|
|
|
|
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
.page-main-content-bottom {
|
|
|
|
width: 100%;
|
2020-04-25 21:45:45 +08:00
|
|
|
}
|
2020-04-03 18:18:42 +08:00
|
|
|
}
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2020-04-03 18:18:42 +08:00
|
|
|
|
2020-09-05 22:41:10 +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%;
|
2020-09-05 22:41:10 +08:00
|
|
|
z-index: $z-index-6;
|
|
|
|
overflow-y: auto;
|
2021-01-21 16:47:13 +08:00
|
|
|
padding: 20px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background: var(--background-color);
|
|
|
|
|
2021-01-21 18:23:22 +08:00
|
|
|
hover-style(false, 0, 0);
|
2020-11-13 14:43:22 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
transition-t("left, transform", "0, 0", "0.3, 0.2", "ease-out, linear");
|
2020-06-04 22:11:27 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-tablet() {
|
2020-09-05 22:41:10 +08:00
|
|
|
left: 0 !important;
|
|
|
|
display: none !important;
|
|
|
|
}
|
2020-06-04 22:11:27 +08:00
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
}
|
2020-04-05 00:42:07 +08:00
|
|
|
|
2020-09-11 15:06:38 +08:00
|
|
|
|
2021-01-06 23:53:17 +08:00
|
|
|
.post-tools {
|
2020-09-05 22:41:10 +08:00
|
|
|
position: fixed;
|
2021-01-07 15:15:39 +08:00
|
|
|
top: $header-height + $component-spacing-value;
|
|
|
|
right: $component-spacing-value;
|
2021-01-21 16:47:13 +08:00
|
|
|
transition-t("top", "0", "0.2", "ease");
|
2020-09-07 16:25:37 +08:00
|
|
|
|
2021-01-05 11:48:58 +08:00
|
|
|
.header-shrink & {
|
2021-01-07 15:15:39 +08:00
|
|
|
top: $header-shrink-height + $component-spacing-value;
|
2021-01-04 21:16:07 +08:00
|
|
|
|
|
|
|
+keep-tablet() {
|
2021-01-07 15:15:39 +08:00
|
|
|
top: $header-shrink-height * 0.9 + $component-spacing-value;
|
2021-01-04 21:16:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
+keep-mobile() {
|
2021-01-07 15:15:39 +08:00
|
|
|
top: $header-shrink-height * 0.8 + $component-spacing-value;
|
2021-01-04 21:16:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-05 11:48:58 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-tablet() {
|
2021-01-07 15:15:39 +08:00
|
|
|
top: $header-height * 0.9 + $component-spacing-value;
|
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-07 15:15:39 +08:00
|
|
|
top: $header-height * 0.8 + $component-spacing-value;
|
2020-09-07 16:25:37 +08:00
|
|
|
right: 5px;
|
|
|
|
transform: scale(0.72);
|
|
|
|
}
|
2020-04-21 10:47:36 +08:00
|
|
|
}
|
2020-09-11 15:06:38 +08:00
|
|
|
|
|
|
|
|
2020-11-25 16:54:44 +08:00
|
|
|
.right-bottom-side-tools {
|
2020-10-25 10:48:07 +08:00
|
|
|
position: fixed;
|
2021-01-05 11:48:58 +08:00
|
|
|
bottom: 5%;
|
2020-11-25 16:54:44 +08:00
|
|
|
right: 0;
|
2020-09-11 15:06:38 +08:00
|
|
|
}
|
2020-09-02 19:17:24 +08:00
|
|
|
}
|