2020-09-05 22:41:10 +08:00
|
|
|
.page-container {
|
2022-09-30 10:51:42 +08:00
|
|
|
position relative
|
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
|
|
|
height auto
|
|
|
|
background var(--background-color)
|
2020-11-25 16:54:44 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +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 {
|
2022-09-30 10:51:42 +08:00
|
|
|
position relative
|
2022-10-11 12:42:11 +08:00
|
|
|
box-sizing border-box
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-top $header-height
|
2020-11-25 16:54:44 +08:00
|
|
|
|
2022-10-11 16:27:04 +08:00
|
|
|
&.is-home {
|
2022-09-27 17:52:45 +08:00
|
|
|
.transparent-1 {
|
2022-09-30 10:51:42 +08:00
|
|
|
background var(--header-transparent-background-1)
|
2022-09-27 17:52:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.transparent-2 {
|
2022-09-30 10:51:42 +08:00
|
|
|
background var(--header-transparent-background-2)
|
2022-09-27 17:52:45 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
.header-shrink & {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-top $header-shrink-height
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
|
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-top $header-shrink-height * 0.9
|
2021-01-06 18:36:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
+keep-mobile() {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-top $header-shrink-height * 0.8
|
2021-01-06 18:36:28 +08:00
|
|
|
}
|
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() {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-top $header-height * 0.9
|
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
|
|
|
+keep-mobile() {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-top $header-height * 0.8
|
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-top {
|
2022-09-30 10:51:42 +08:00
|
|
|
position fixed
|
|
|
|
top 0
|
|
|
|
right 0
|
|
|
|
z-index $z-index-5
|
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
|
|
|
height $header-height
|
2022-10-11 12:37:06 +08:00
|
|
|
transition-t("transform, height", "0, 0", "0.3, 0.2", "ease-out, ease")
|
2021-01-06 18:36:28 +08:00
|
|
|
|
|
|
|
&.hide {
|
2022-09-30 10:51:42 +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 & {
|
2022-09-30 10:51:42 +08:00
|
|
|
height $header-shrink-height
|
2021-01-05 11:48:58 +08:00
|
|
|
|
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
height $header-shrink-height * 0.9
|
2021-01-05 11:48:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
+keep-mobile() {
|
2022-09-30 10:51:42 +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() {
|
2022-09-30 10:51:42 +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() {
|
2022-09-30 10:51:42 +08:00
|
|
|
height $header-height * 0.8
|
2020-09-05 22:41:10 +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 {
|
2022-09-30 10:51:42 +08:00
|
|
|
display flex
|
|
|
|
justify-content center
|
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
|
|
|
padding $component-spacing-value 0
|
2021-01-05 11:48:58 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +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() {
|
2022-09-30 10:51:42 +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 {
|
2022-09-30 10:51:42 +08:00
|
|
|
position relative
|
|
|
|
box-sizing border-box
|
|
|
|
width $main-content-width
|
|
|
|
max-width $content-max-width
|
|
|
|
height 100%
|
2022-10-11 23:05:45 +08:00
|
|
|
transition-t("max-width, width", "0, 0", "0.1, 0.1", "ease, ease")
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2022-10-11 16:27:04 +08:00
|
|
|
.has-toc & {
|
|
|
|
max-width $has-toc-content-max-width
|
|
|
|
}
|
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +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() {
|
2022-09-30 10:51:42 +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 {
|
2022-09-30 10:51:42 +08:00
|
|
|
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
|
|
|
|
2021-01-06 23:53:17 +08:00
|
|
|
.post-tools {
|
2022-09-30 10:51:42 +08:00
|
|
|
position fixed
|
|
|
|
top $header-height + $component-spacing-value
|
2022-10-12 15:55:47 +08:00
|
|
|
left 'calc((100vw - %s / 2) - 5rem)' % $content-max-width
|
|
|
|
opacity 0
|
|
|
|
transition-t("top, transform, opacity", "0, 0, 0.2", "0.2, 0.2, 0.2", "ease, ease, ease")
|
2020-09-07 16:25:37 +08:00
|
|
|
|
2021-01-05 11:48:58 +08:00
|
|
|
.header-shrink & {
|
2022-09-30 10:51:42 +08:00
|
|
|
top $header-shrink-height + $component-spacing-value
|
2021-01-04 21:16:07 +08:00
|
|
|
|
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
top $header-shrink-height * 0.9 + $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() {
|
2022-09-30 10:51:42 +08:00
|
|
|
top $header-height * 0.9 + $component-spacing-value
|
|
|
|
transform scale(0.82)
|
2020-09-07 16:25:37 +08:00
|
|
|
}
|
|
|
|
|
2021-01-05 11:48:58 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-mobile() {
|
2022-10-12 15:55:47 +08:00
|
|
|
display none
|
2020-09-07 16:25:37 +08:00
|
|
|
}
|
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 {
|
2022-09-30 10:51:42 +08:00
|
|
|
position fixed
|
|
|
|
right 0
|
|
|
|
bottom 5%
|
2020-09-11 15:06:38 +08:00
|
|
|
}
|
2020-09-02 19:17:24 +08:00
|
|
|
}
|