css
This commit is contained in:
parent
cbac326975
commit
ac673cf967
|
@ -5,16 +5,8 @@ if (post.categories && post.categories.length > 0) {
|
||||||
}
|
}
|
||||||
%>
|
%>
|
||||||
<% if (post.cover) { %>
|
<% if (post.cover) { %>
|
||||||
<div class='post-cover-wrap'>
|
<div class='post-cover'>
|
||||||
<% if (theme.plugins.lazyload && theme.plugins.lazyload.enable) { %>
|
<img src='<%- post.cover %>'/>
|
||||||
<% 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>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
<h2 class="post-title">
|
<h2 class="post-title">
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// pc上右边顶部留白
|
// pc上右边顶部留白
|
||||||
@media screen and (min-width: $device-tablet)
|
@media screen and (min-width: $device-tablet)
|
||||||
.l_main
|
.l_main
|
||||||
margin-top: $gap * 2
|
margin-top: $gap
|
||||||
|
|
||||||
// 移动端显示主导航栏
|
// 移动端显示主导航栏
|
||||||
@media screen and (max-width: $device-tablet)
|
@media screen and (max-width: $device-tablet)
|
||||||
|
|
|
@ -14,5 +14,5 @@
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
&.unread
|
&.unread
|
||||||
color: var(--text-p1)
|
color: var(--text-p1)
|
||||||
font-size: 1.75rem
|
font-size: 2rem
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
|
|
|
@ -22,8 +22,6 @@ div.related-posts-wrap
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
width: 360px
|
width: 360px
|
||||||
// opacity: 0.7
|
|
||||||
|
|
||||||
border: 1px solid var(--hover-block)
|
border: 1px solid var(--hover-block)
|
||||||
.img
|
.img
|
||||||
height: 180px
|
height: 180px
|
||||||
|
@ -32,7 +30,8 @@ div.related-posts-wrap
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 100%
|
height: 100%
|
||||||
object-fit: cover
|
object-fit: cover
|
||||||
trans1: transform 1s
|
&:not(.lazyload)
|
||||||
|
trans1: transform 1s
|
||||||
@media screen and (max-width: $device-tablet)
|
@media screen and (max-width: $device-tablet)
|
||||||
width: 300px
|
width: 300px
|
||||||
.img
|
.img
|
||||||
|
|
|
@ -50,32 +50,33 @@
|
||||||
trans1 color
|
trans1 color
|
||||||
.excerpt
|
.excerpt
|
||||||
font-size: $fs14
|
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
|
.post-cover
|
||||||
background-position: center
|
overflow: hidden
|
||||||
background-size: cover
|
margin-left: -1rem
|
||||||
height: 320px
|
margin-top: -1rem
|
||||||
@media screen and (max-width: 900px)
|
margin-right: -1rem
|
||||||
height: 280px
|
img
|
||||||
@media screen and (max-width: $device-tablet)
|
object-fit: cover
|
||||||
|
disable-select()
|
||||||
|
width: 100%
|
||||||
|
border-radius: 0
|
||||||
height: 320px
|
height: 320px
|
||||||
@media screen and (max-width: $device-mobile)
|
@media screen and (max-width: 900px)
|
||||||
height: 280px
|
height: 280px
|
||||||
@media screen and (max-width: $device-mobile-l)
|
@media screen and (max-width: $device-tablet)
|
||||||
height: 240px
|
height: 320px
|
||||||
@media screen and (max-width: $device-mobile-m)
|
@media screen and (max-width: $device-mobile)
|
||||||
height: 200px
|
height: 280px
|
||||||
&:not(.lazyload)
|
@media screen and (max-width: $device-mobile-l)
|
||||||
trans1: transform 1s
|
height: 240px
|
||||||
|
@media screen and (max-width: $device-mobile-m)
|
||||||
|
height: 200px
|
||||||
|
&:not(.lazyload)
|
||||||
|
trans1: transform 1s
|
||||||
.post-list .post-card.post:hover
|
.post-list .post-card.post:hover
|
||||||
.post-title
|
.post-title
|
||||||
color: $color-hover
|
color: $color-hover
|
||||||
.post-cover
|
.post-cover img
|
||||||
transform: scale(1.04)
|
transform: scale(1.04)
|
||||||
|
|
||||||
// wiki
|
// wiki
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
.l_left .wrap
|
.l_left .wrap
|
||||||
display: flex
|
display: flex
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
height: "calc(100% - 4 * %s)" % $gap
|
height: "calc(100% - 3 * %s)" % $gap
|
||||||
margin-top: $gap * 2
|
margin-top: $gap
|
||||||
padding: $gap
|
padding: $gap
|
||||||
@media screen and (max-width: $device-tablet)
|
@media screen and (max-width: $device-tablet)
|
||||||
height: "calc(100% - 2 * %s)" % $gap
|
height: "calc(100% - 2 * %s)" % $gap
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
a.ghcard
|
.tag-plugin.ghcard
|
||||||
display: inline-block
|
|
||||||
line-height: 0
|
line-height: 0
|
||||||
|
a.ghcard
|
||||||
|
display: inline-block
|
||||||
|
img
|
||||||
|
border-radius: 5px
|
||||||
|
transition: box-shadow
|
||||||
|
&:hover img
|
||||||
|
box-shadow: $boxshadow-float, $boxshadow-card-float
|
||||||
|
|
|
@ -12,11 +12,9 @@
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
min-width 280px
|
min-width 280px
|
||||||
max-width: 100%
|
max-width: 100%
|
||||||
|
width: 320px
|
||||||
box-shadow: $boxshadow-card
|
box-shadow: $boxshadow-card
|
||||||
transition: box-shadow
|
transition: box-shadow
|
||||||
@media screen and (max-width: $device-mobile-l)
|
|
||||||
max-width: 100%
|
|
||||||
width: 100%
|
|
||||||
border-radius: 8px
|
border-radius: 8px
|
||||||
&:hover
|
&:hover
|
||||||
box-shadow: $boxshadow-float, $boxshadow-card-float
|
box-shadow: $boxshadow-float, $boxshadow-card-float
|
||||||
|
@ -26,23 +24,15 @@
|
||||||
div.left,div.right
|
div.left,div.right
|
||||||
pointer-events: none
|
pointer-events: none
|
||||||
div.right
|
div.right
|
||||||
width: 54px
|
width: 3rem
|
||||||
height: 54px
|
height: 3rem
|
||||||
margin: 12px
|
margin: 0.75rem
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
position: relative
|
|
||||||
i
|
|
||||||
font-size: 32px
|
|
||||||
line-height: 48px
|
|
||||||
margin-left: 4px
|
|
||||||
img
|
img
|
||||||
display: block
|
width: 100%
|
||||||
position: absolute
|
height: 100%
|
||||||
border-radius: $border-card / 4
|
object-fit: cover
|
||||||
top: 50%
|
|
||||||
left: 50%
|
|
||||||
transform: translate(-50%, -50%)
|
|
||||||
div.left
|
div.left
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
margin-left: 16px
|
margin-left: 16px
|
||||||
|
@ -56,7 +46,7 @@
|
||||||
font-size: $fs14
|
font-size: $fs14
|
||||||
span.url
|
span.url
|
||||||
flex-shrink: 0
|
flex-shrink: 0
|
||||||
color: var(--text-p2)
|
color: var(--text-p3)
|
||||||
font-size: $fs13
|
font-size: $fs13
|
||||||
|
|
||||||
.md .link-group
|
.md .link-group
|
||||||
|
|
|
@ -46,7 +46,7 @@ div.timenode
|
||||||
span
|
span
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
color: var(--text-p1)
|
color: var(--text-p1)
|
||||||
padding: 0.8rem 16px
|
padding: 0.75rem 16px
|
||||||
a
|
a
|
||||||
visibility: hidden
|
visibility: hidden
|
||||||
margin-left: 4px
|
margin-left: 4px
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
if hexo-config('plugins.lazyload.blurIn') == true
|
if hexo-config('plugins.lazyload.blurIn') == true
|
||||||
img.lazyload:not(.placeholder)
|
img.lazyload:not(.placeholder)
|
||||||
trans2pro: transform 0.75s filter 0.25s
|
trans2pro: transform 1s filter 0.25s
|
||||||
&:not(.loaded)
|
&:not(.loaded)
|
||||||
filter blur(8px)
|
filter blur(8px)
|
||||||
&.loaded
|
&.loaded
|
||||||
filter none
|
filter none
|
||||||
else
|
else
|
||||||
img.lazyload:not(.placeholder)
|
img.lazyload:not(.placeholder)
|
||||||
trans2pro: transform 0.75s opacity 0.5s
|
trans2pro: transform 1s opacity 0.5s
|
||||||
&:not(.loaded)
|
&:not(.loaded)
|
||||||
opacity: 0
|
opacity: 0
|
||||||
&.loaded
|
&.loaded
|
||||||
|
|
Loading…
Reference in New Issue