feat: 增加 aside 最新評論部件

style: 部分css調整和html優化
improvements: 刪除pwa中的theme-color配置,默認生成meta theme-color  close #340
improvements: 優化最後更新時間顯示(1小時內顯示 剛剛,1小時到24小時 顯示 xx小時前,1天到365天 顯示 xx天前,365天后直接顯示日期)
This commit is contained in:
Jerry
2020-08-29 01:11:11 +08:00
Unverified
parent ee6f62f4bc
commit fe97d2e63f
23 changed files with 420 additions and 86 deletions

View File

@@ -104,20 +104,29 @@
.aside-list
margin: 10px 0 -15px
& > span
display: block
margin-bottom: .5rem
text-align: center
& > .aside-list-item
display: flex
align-items: center
margin-bottom: 10px
padding: .3rem 0
&:first-child
padding-top: 0
&:not(:last-child)
border-bottom: 1px dashed #f5f5f5
&:last-child
margin-bottom: .3rem
// padding 8px 0
// border-bottom: 1px dashed #f5f5f5
// height: 4.72em
.thumbnail
// float: left
overflow: hidden
width: w = 4.2em
height: w
border-radius: w
& > img
width: 100%
@@ -134,19 +143,19 @@
word-break: break-all
& > .name
@extend .limit-one-line
@extend .limit-more-line
-webkit-line-clamp: 1
& > time
& > time,
& > .name
color: $theme-meta-color
font-size: 85%
& > .comment
font-size: 90%
& > .title,
& > .comment
@extend .limit-more-line
color: var(--font-color)
font-size: 95%
line-height: 1.5
-webkit-line-clamp: 2

View File

@@ -123,6 +123,9 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
.gist,
.aplayer
filter: brightness(.7)
#aside_content .aside-list > .aside-list-item:not(:last-child)
border-bottom: 1px dashed alpha(#FFFFFF, .1)
//
// hexo-blog-encrypt