2022-10-11 12:37:06 +08:00
|
|
|
$avatarWidth = 3rem
|
|
|
|
$arrow-icon-width = 1rem
|
|
|
|
$post-nav-max-width = 14rem
|
2022-09-30 10:51:42 +08:00
|
|
|
$article-title-font-size = 1.6rem
|
2022-10-21 10:36:35 +08:00
|
|
|
$toc-container-width = 15rem
|
2020-10-27 18:11:10 +08:00
|
|
|
|
2020-03-18 23:14:09 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.post-page-container {
|
|
|
|
position relative
|
|
|
|
display flex
|
|
|
|
justify-content space-between
|
2022-10-11 12:42:11 +08:00
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
|
|
|
height 100%
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2022-10-09 17:17:28 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
&.show-toc {
|
|
|
|
.toc-content-container {
|
|
|
|
display block
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-content-container {
|
|
|
|
width 'calc(100% - %s)' % $toc-container-width
|
2022-10-09 17:17:28 +08:00
|
|
|
}
|
2022-09-27 15:45:18 +08:00
|
|
|
}
|
|
|
|
|
2020-03-14 16:17:04 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
+keep-tablet() {
|
|
|
|
.toc-content-container {
|
|
|
|
display none !important
|
2020-10-27 18:11:10 +08:00
|
|
|
}
|
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.article-content-container {
|
|
|
|
width 100% !important
|
2020-10-27 18:11:10 +08:00
|
|
|
}
|
|
|
|
}
|
2020-06-04 22:11:27 +08:00
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.article-content-container {
|
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
|
|
|
width 100%
|
2022-10-11 12:37:06 +08:00
|
|
|
height 100%
|
|
|
|
keep-container(false, 0, 0, 2rem, 2rem)
|
2020-10-27 18:11:10 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
+keep-mobile() {
|
|
|
|
padding 1.2rem 0.2rem
|
|
|
|
box-shadow none
|
2020-10-27 18:11:10 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
&:hover {
|
|
|
|
box-shadow none
|
2020-06-04 22:11:27 +08:00
|
|
|
}
|
2020-03-18 23:14:09 +08:00
|
|
|
}
|
2020-03-14 16:17:04 +08:00
|
|
|
|
2020-10-27 18:11:10 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.article-title {
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--text-color-2)
|
2022-10-11 12:37:06 +08:00
|
|
|
font-weight 600
|
|
|
|
font-size $article-title-font-size
|
|
|
|
|
|
|
|
+keep-tablet() {
|
|
|
|
font-size $article-title-font-size * 0.9
|
|
|
|
}
|
|
|
|
|
|
|
|
+keep-mobile() {
|
|
|
|
font-size $article-title-font-size * 0.8
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.article-header {
|
|
|
|
position relative
|
2022-09-30 10:51:42 +08:00
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
2022-10-11 12:37:06 +08:00
|
|
|
height $avatarWidth
|
|
|
|
padding-left $avatarWidth
|
2020-10-27 18:11:10 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.avatar {
|
|
|
|
position absolute
|
|
|
|
top 0
|
|
|
|
left 0
|
|
|
|
box-sizing border-box
|
|
|
|
width $avatarWidth
|
|
|
|
height $avatarWidth
|
|
|
|
padding 0.1rem
|
|
|
|
border 1px solid var(--border-color)
|
|
|
|
border-radius 50%
|
2020-10-27 18:11:10 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
img {
|
|
|
|
width 100%
|
|
|
|
height 100%
|
|
|
|
background var(--avatar-background-color)
|
|
|
|
border-radius 50%
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
2022-10-11 12:37:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.info {
|
|
|
|
display flex
|
|
|
|
flex-direction column
|
|
|
|
justify-content space-between
|
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
|
|
|
height 100%
|
2022-10-20 17:37:28 +08:00
|
|
|
margin-left 0.8rem
|
|
|
|
padding 0.2rem 0
|
2022-10-11 12:37:06 +08:00
|
|
|
|
|
|
|
.author {
|
|
|
|
display flex
|
|
|
|
align-items center
|
|
|
|
font-weight 600
|
|
|
|
font-size 1.18rem
|
|
|
|
|
|
|
|
.name {
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--text-color-3)
|
2022-10-11 12:37:06 +08:00
|
|
|
}
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.author-label {
|
2022-10-20 17:37:28 +08:00
|
|
|
margin-left 0.8rem
|
|
|
|
padding 0 0.4rem
|
2022-10-11 12:37:06 +08:00
|
|
|
color #fff
|
|
|
|
font-weight 500
|
|
|
|
font-size 0.8rem
|
|
|
|
background var(--selection-color)
|
2022-10-20 17:37:28 +08:00
|
|
|
border-radius 0.4rem
|
2022-10-11 12:37:06 +08:00
|
|
|
}
|
2020-10-27 18:11:10 +08:00
|
|
|
}
|
|
|
|
}
|
2020-03-14 16:17:04 +08:00
|
|
|
}
|
2020-03-15 15:45:38 +08:00
|
|
|
|
2020-03-14 16:17:04 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.article-header
|
|
|
|
.article-header-meta-info {
|
2022-10-20 17:37:28 +08:00
|
|
|
margin-top 1rem
|
2022-10-11 12:37:06 +08:00
|
|
|
+keep-tablet() {
|
|
|
|
transform scale(0.9)
|
|
|
|
transform-origin left top
|
|
|
|
}
|
2020-10-28 22:25:26 +08:00
|
|
|
}
|
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.article-content {
|
|
|
|
margin-top $component-spacing-value
|
2022-10-20 17:37:28 +08:00
|
|
|
padding-bottom 2rem
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--text-color-3)
|
2022-10-11 12:37:06 +08:00
|
|
|
word-wrap break-word
|
2022-10-20 17:37:28 +08:00
|
|
|
|
2022-10-28 15:06:33 +08:00
|
|
|
if (hexo-config('post.copyright_info') == true || hexo-config('copyright_info.enable') == true) {
|
2022-10-20 17:37:28 +08:00
|
|
|
border-bottom 0.1rem dashed var(--border-color)
|
|
|
|
}
|
2022-10-11 12:37:06 +08:00
|
|
|
}
|
2020-03-19 14:51:48 +08:00
|
|
|
|
2021-11-17 23:20:02 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.post-tags-box {
|
|
|
|
display none
|
|
|
|
justify-content center
|
|
|
|
margin-top 1.6rem
|
|
|
|
font-size 1.1rem
|
2021-11-17 23:20:02 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
+keep-tablet() {
|
|
|
|
display flex
|
|
|
|
}
|
2021-11-17 23:20:02 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
+keep-mobile() {
|
|
|
|
margin-top 1.2rem
|
|
|
|
font-size 1rem
|
|
|
|
}
|
2021-11-22 21:25:07 +08:00
|
|
|
|
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.tag-item {
|
|
|
|
margin 0 0.25rem
|
|
|
|
}
|
2021-11-17 23:20:02 +08:00
|
|
|
}
|
|
|
|
|
2020-03-19 14:51:48 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.post-copyright-info {
|
|
|
|
width 100%
|
|
|
|
margin-top $component-spacing-value
|
2021-11-17 23:20:02 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
+keep-tablet() {
|
|
|
|
margin-top $component-spacing-value * 0.8
|
|
|
|
}
|
|
|
|
}
|
2020-03-19 18:11:13 +08:00
|
|
|
|
2020-11-19 11:58:54 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.article-nav {
|
2022-10-20 17:37:28 +08:00
|
|
|
height 2.8rem
|
2022-10-11 12:37:06 +08:00
|
|
|
margin-top $component-spacing-value
|
2020-11-19 11:58:54 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.article-prev
|
|
|
|
.article-next {
|
2022-09-30 10:51:42 +08:00
|
|
|
box-sizing border-box
|
2022-10-11 12:37:06 +08:00
|
|
|
max-width $post-nav-max-width
|
2022-09-30 10:51:42 +08:00
|
|
|
height 100%
|
2020-11-19 11:58:54 +08:00
|
|
|
|
2022-10-20 17:37:28 +08:00
|
|
|
keep-container(true, 1.03, 1.03, 0.8rem, 0)
|
2020-11-19 11:58:54 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
a {
|
|
|
|
position relative
|
|
|
|
display block
|
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
2022-09-30 10:51:42 +08:00
|
|
|
height 100%
|
2020-11-19 11:58:54 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
&.prev {
|
|
|
|
padding-left $arrow-icon-width
|
2020-11-19 11:58:54 +08:00
|
|
|
}
|
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
&.next {
|
|
|
|
padding-right $arrow-icon-width
|
2020-11-19 11:58:54 +08:00
|
|
|
}
|
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.arrow-icon {
|
|
|
|
position absolute
|
|
|
|
top 0
|
|
|
|
width $arrow-icon-width
|
|
|
|
height 100%
|
|
|
|
|
|
|
|
&.left {
|
|
|
|
left 0
|
|
|
|
}
|
|
|
|
|
|
|
|
&.right {
|
|
|
|
right 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
width 100%
|
|
|
|
height 100%
|
|
|
|
}
|
2020-11-19 11:58:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.article-prev {
|
|
|
|
float left
|
|
|
|
}
|
2020-03-19 18:11:13 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.article-next {
|
|
|
|
float right
|
|
|
|
}
|
2020-06-06 18:16:50 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.post-nav-item {
|
|
|
|
display none
|
2020-06-06 18:16:50 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
+keep-tablet() {
|
|
|
|
display inline-block
|
|
|
|
}
|
2020-06-06 18:16:50 +08:00
|
|
|
}
|
|
|
|
|
2020-11-19 11:58:54 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
.post-nav-title-item {
|
|
|
|
overflow hidden
|
|
|
|
white-space nowrap
|
|
|
|
text-overflow ellipsis
|
2020-11-19 11:58:54 +08:00
|
|
|
|
2022-10-11 12:37:06 +08:00
|
|
|
+keep-tablet() {
|
|
|
|
display none
|
|
|
|
}
|
2020-06-06 18:16:50 +08:00
|
|
|
}
|
2020-03-19 18:11:13 +08:00
|
|
|
}
|
|
|
|
}
|
2022-10-11 12:37:06 +08:00
|
|
|
|
|
|
|
|
|
|
|
.toc-content-container {
|
|
|
|
position sticky
|
|
|
|
top $header-height + $component-spacing-value
|
2022-10-11 12:42:11 +08:00
|
|
|
display none
|
|
|
|
box-sizing border-box
|
2022-10-11 12:37:06 +08:00
|
|
|
width $toc-container-width
|
|
|
|
max-height 'calc(100vh - %s)' % ($header-height + $component-spacing-value)
|
2022-10-21 10:36:35 +08:00
|
|
|
padding 2rem 0 2rem 1.4rem
|
2022-10-11 12:37:06 +08:00
|
|
|
transition-t("top, display, max-height", "0, 0, 0", "0.2, 0.1, 0.2", "ease, ease, ease")
|
|
|
|
|
|
|
|
.header-shrink & {
|
|
|
|
top $header-shrink-height + $component-spacing-value
|
|
|
|
max-height 'calc(100vh - %s)' % ($header-shrink-height + $component-spacing-value)
|
|
|
|
}
|
|
|
|
}
|
2020-04-28 23:20:17 +08:00
|
|
|
}
|