This commit is contained in:
xaoxuu 2021-02-24 22:07:32 +08:00
parent cbac326975
commit ac673cf967
10 changed files with 49 additions and 61 deletions

View File

@ -5,16 +5,8 @@ if (post.categories && post.categories.length > 0) {
}
%>
<% if (post.cover) { %>
<div class='post-cover-wrap'>
<% if (theme.plugins.lazyload && theme.plugins.lazyload.enable) { %>
<% if (theme.plugins.lazyload.loadingImg) { %>
<div class='post-cover lazyload placeholder' data-bg='<%- post.cover %>'></div>
<% } else { %>
<div class='post-cover lazyload' data-bg='<%- post.cover %>'></div>
<% } %>
<% } else { %>
<div class='post-cover' style='background-image:url(<%- post.cover %>)'></div>
<% } %>
<div class='post-cover'>
<img src='<%- post.cover %>'/>
</div>
<% } %>
<h2 class="post-title">

View File

@ -22,7 +22,7 @@
// pc
@media screen and (min-width: $device-tablet)
.l_main
margin-top: $gap * 2
margin-top: $gap
//
@media screen and (max-width: $device-tablet)

View File

@ -14,5 +14,5 @@
font-weight: 500
&.unread
color: var(--text-p1)
font-size: 1.75rem
font-size: 2rem
font-weight: 400

View File

@ -22,8 +22,6 @@ div.related-posts-wrap
flex-direction: column
overflow: hidden
width: 360px
// opacity: 0.7
border: 1px solid var(--hover-block)
.img
height: 180px
@ -32,6 +30,7 @@ div.related-posts-wrap
width: 100%
height: 100%
object-fit: cover
&:not(.lazyload)
trans1: transform 1s
@media screen and (max-width: $device-tablet)
width: 300px

View File

@ -50,15 +50,16 @@
trans1 color
.excerpt
font-size: $fs14
.post-cover-wrap
overflow: hidden
margin-left: 0 - 1.5 * $gap
margin-top: 0 - 1.5 * $gap
margin-bottom: 1.25 * $gap
width: "calc(100% + 3 * %s)" % $gap
.post-cover
background-position: center
background-size: cover
overflow: hidden
margin-left: -1rem
margin-top: -1rem
margin-right: -1rem
img
object-fit: cover
disable-select()
width: 100%
border-radius: 0
height: 320px
@media screen and (max-width: 900px)
height: 280px
@ -75,7 +76,7 @@
.post-list .post-card.post:hover
.post-title
color: $color-hover
.post-cover
.post-cover img
transform: scale(1.04)
// wiki

View File

@ -1,8 +1,8 @@
.l_left .wrap
display: flex
flex-direction: column
height: "calc(100% - 4 * %s)" % $gap
margin-top: $gap * 2
height: "calc(100% - 3 * %s)" % $gap
margin-top: $gap
padding: $gap
@media screen and (max-width: $device-tablet)
height: "calc(100% - 2 * %s)" % $gap

View File

@ -1,3 +1,9 @@
.tag-plugin.ghcard
line-height: 0
a.ghcard
display: inline-block
line-height: 0
img
border-radius: 5px
transition: box-shadow
&:hover img
box-shadow: $boxshadow-float, $boxshadow-card-float

View File

@ -12,11 +12,9 @@
cursor: pointer
min-width 280px
max-width: 100%
width: 320px
box-shadow: $boxshadow-card
transition: box-shadow
@media screen and (max-width: $device-mobile-l)
max-width: 100%
width: 100%
border-radius: 8px
&:hover
box-shadow: $boxshadow-float, $boxshadow-card-float
@ -26,23 +24,15 @@
div.left,div.right
pointer-events: none
div.right
width: 54px
height: 54px
margin: 12px
width: 3rem
height: 3rem
margin: 0.75rem
overflow: hidden
flex-shrink: 0
position: relative
i
font-size: 32px
line-height: 48px
margin-left: 4px
img
display: block
position: absolute
border-radius: $border-card / 4
top: 50%
left: 50%
transform: translate(-50%, -50%)
width: 100%
height: 100%
object-fit: cover
div.left
overflow: hidden
margin-left: 16px
@ -56,7 +46,7 @@
font-size: $fs14
span.url
flex-shrink: 0
color: var(--text-p2)
color: var(--text-p3)
font-size: $fs13
.md .link-group

View File

@ -46,7 +46,7 @@ div.timenode
span
font-weight: 500
color: var(--text-p1)
padding: 0.8rem 16px
padding: 0.75rem 16px
a
visibility: hidden
margin-left: 4px

View File

@ -1,13 +1,13 @@
if hexo-config('plugins.lazyload.blurIn') == true
img.lazyload:not(.placeholder)
trans2pro: transform 0.75s filter 0.25s
trans2pro: transform 1s filter 0.25s
&:not(.loaded)
filter blur(8px)
&.loaded
filter none
else
img.lazyload:not(.placeholder)
trans2pro: transform 0.75s opacity 0.5s
trans2pro: transform 1s opacity 0.5s
&:not(.loaded)
opacity: 0
&.loaded