This commit is contained in:
xaoxuu 2022-11-13 00:45:15 +08:00
parent 6eb9a06f8d
commit db7b35190f
3 changed files with 23 additions and 22 deletions

View File

@ -14,23 +14,21 @@
float: right float: right
z-index: 10 z-index: 10
display: flex display: flex
border-radius: $border-block 0 0 $border-block border-radius: 2rem
padding-right: 1rem margin-right: 1rem
border: 1px solid var(--block-border)
border-right: 0
overflow: hidden overflow: hidden
--blur-px: 24px --blur-px: 16px
--blur-bg: alpha(#eaeaea, .6) --blur-bg: alpha(#fff, .4)
trans1: all
if hexo-config('style.darkmode') == 'auto' if hexo-config('style.darkmode') == 'auto'
@media (prefers-color-scheme: dark) @media (prefers-color-scheme: dark)
--blur-bg: alpha(#555, .6) --blur-bg: alpha(#000, .4)
if hexo-config('style.darkmode') == 'always' if hexo-config('style.darkmode') == 'always'
--blur-bg: alpha(#555, .6) --blur-bg: alpha(#000, .4)
.sidebar-toggle.mobile .sidebar-toggle.mobile
cursor: pointer cursor: pointer
color: var(--text-p2) color: var(--text-p0)
border-right: 1px solid transparent
background: none background: none
padding: 0.5rem padding: 0.5rem
line-height: 0 line-height: 0
@ -39,6 +37,9 @@
.l_body.mobile.sidebar .l_body.mobile.sidebar
.float-panel
box-shadow: $boxshadow-float
transform: translateY(-2px)
.sidebar-toggle.mobile .sidebar-toggle.mobile
background: var(--card) background: var(--card)
color: $color-hover color: $color-hover

View File

@ -116,12 +116,12 @@ article.md>div
article.md blockquote article.md blockquote
margin-left: 0 margin-left: 0
margin-right: 0 margin-right: 0
padding: 1rem padding: 0.75rem
background: var(--card) background: var(--block)
border-left: 6px solid $color-theme $bd-left = 4px
border-radius: $border-block border-left: $bd-left solid var(--text-meta)
border-radius: $bd-left $border-block $border-block $bd-left
color: var(--text-p2) color: var(--text-p2)
box-shadow: $boxshadow-card
article.md img article.md img

View File

@ -1,5 +1,5 @@
.md .tag-plugin.link .md .tag-plugin.link
max-width: 400px max-width: 100%
margin: 1em auto margin: 1em auto
display: flex display: flex
justify-content: center justify-content: center
@ -12,8 +12,8 @@
justify-content: space-between justify-content: space-between
align-items: center align-items: center
cursor: pointer cursor: pointer
min-width 280px // min-width 280px
max-width: 100% // max-width: 100%
width: 320px width: 320px
@media screen and (max-width: $device-mobile-375) @media screen and (max-width: $device-mobile-375)
width: 100% width: 100%
@ -31,7 +31,7 @@
.md .link-card.rich .md .link-card.rich
flex-direction: column flex-direction: column
align-items: stretch align-items: stretch
width: 400px width: 460px
text-align: justify text-align: justify
.md .link-card .md .link-card
@ -50,7 +50,7 @@
flex-shrink: 0 flex-shrink: 0
>.top >.top
display: flex display: flex
margin: .75rem 0.75rem .25rem margin: 1rem 1rem 0.75rem
overflow: hidden overflow: hidden
max-width: 'calc(100% - %s * 2)' % 1rem max-width: 'calc(100% - %s * 2)' % 1rem
align-items: center align-items: center
@ -67,10 +67,10 @@
txt-ellipsis() txt-ellipsis()
max-width: 100% max-width: 100%
>.bottom >.bottom
margin: 0 0.75rem 0.75rem 0.75rem margin: 0 1rem 1rem
.title .title
font-size: $fs-15 font-size: $fs-15
margin: 4px 0 8px 0 margin-bottom: 0.5rem
.md .link-card .md .link-card
line-height: 1.2 line-height: 1.2