diff --git a/layout/_partial/main/navbar/article_top_area.ejs b/layout/_partial/main/navbar/article_top_area.ejs
index 5c5d303..58ff1ae 100644
--- a/layout/_partial/main/navbar/article_top_area.ejs
+++ b/layout/_partial/main/navbar/article_top_area.ejs
@@ -9,7 +9,7 @@ function layoutDiv() {
// 2.left
el += `
`
// 3.left.top: 面包屑导航
- el += `
`
+ el += `
`
// 首页
el += `${__("btn.home")}`
if (theme.wiki.tree[page.wiki]) {
diff --git a/layout/_partial/main/navbar/breadcrumb/blog.ejs b/layout/_partial/main/navbar/breadcrumb/blog.ejs
index 03d0bd7..9ca8c4e 100644
--- a/layout/_partial/main/navbar/breadcrumb/blog.ejs
+++ b/layout/_partial/main/navbar/breadcrumb/blog.ejs
@@ -28,12 +28,6 @@ function layoutDiv() {
})
}
}
- const author = theme.authors ? (theme.authors[page.author] || theme.default_author) : null
- if (author) {
- el += ``
- const link = `${author.name}`
- el += `${link}`
- }
return el
}
%>
diff --git a/layout/_partial/main/navbar/dateinfo.ejs b/layout/_partial/main/navbar/dateinfo.ejs
index 59a037c..d7d5bae 100644
--- a/layout/_partial/main/navbar/dateinfo.ejs
+++ b/layout/_partial/main/navbar/dateinfo.ejs
@@ -2,19 +2,24 @@
function layoutDiv() {
// 作者
var el = ''
- el += `
`
+ el += `
`
if (page.wiki) {
- el += `${__("meta.updated") + __("symbol.colon")}`
+ el += `${__("meta.updated") + __("symbol.colon")}`
el += ``
el += ``
} else {
+ const author = theme.authors ? (theme.authors[page.author] || theme.default_author) : null
+ if (author) {
+ el += `${author.name}`
+ el += ``
+ }
// 发布日期
- el += `${__("meta.created") + __("symbol.colon")}`
+ el += `${__("meta.created") + __("symbol.colon")}`
el += ``
el += ``
// 更新日期
- el += ``
- el += ``
+ el += ``
+ el += ``
el += `${__("meta.updated") + __("symbol.colon")}`
el += ``
el += ``
diff --git a/source/css/_layout/md.styl b/source/css/_layout/md.styl
index 0a43e55..d0b72be 100644
--- a/source/css/_layout/md.styl
+++ b/source/css/_layout/md.styl
@@ -116,35 +116,13 @@
.md-text
p:not([class]), li:not([class])
a:not([class])
- position: relative
- padding: 2px 0
- text-decoration: none
- line-height: 1.2
- &:before
- content: ''
- position: absolute
- border-radius: 2px
- bottom: 0
- left: 0
- right: 0
- height: 1px
- if hexo-config('style.link.underline') == true
- opacity: 0.8
- else
- opacity: 0
- background: var(--theme-link)
- trans1: all
+ padding: 0 2px
+ margin: 0 -2px
+ border-radius: 2px
+ trans1 all
+ text-decoration: underline
&:hover
- border-bottom: none
- color: var(--theme-link)
- z-index 0
- &:before
- height: 100%
- opacity: 0.2
- z-index -1
- bottom: 0
- left: -2px
- right: -2px
+ color: $color-hover
&:has(img)
- &:before
- content: none
+ text-decoration: none
+ padding: 0
diff --git a/source/css/_layout/partial/article-banner.styl b/source/css/_layout/partial/article-banner.styl
index 2f6af50..a85c729 100644
--- a/source/css/_layout/partial/article-banner.styl
+++ b/source/css/_layout/partial/article-banner.styl
@@ -1,6 +1,6 @@
.article.banner
--text-banner: var(--text-p0)
- --hover-bg: rgba(black, 0.08)
+ --button-hover-bg: rgba(black, 0.08)
background: var(--block)
margin: 0
height: unset
@@ -8,7 +8,7 @@
.article.banner
.bg+.content
--text-banner: white
- --hover-bg: rgba(white, 0.2)
+ --button-hover-bg: rgba(white, 0.2)
background: rgba(black, 0.1)
.article.banner .content
@@ -18,6 +18,29 @@
.title
font-size: $fs-h1
color: var(--text-banner)
+ .bottom
+ padding: 1.5rem 1rem
h1
line-height: 1.2
- margin: 0
\ No newline at end of file
+ margin: 0
+
+
+
+
+// 动画配置
+.article.banner
+ .bg+.content
+ trans1 all
+ --blur-bg: rgba(black, 0.1)
+ --blur-px: 0px
+ --blur-sat: 100%
+ background: var(--blur-bg)
+ @supports ((-webkit-backdrop-filter:blur(var(--blur-px))) or (backdrop-filter:blur(var(--blur-px))))
+ background: var(--blur-bg)
+ backdrop-filter: saturate(var(--blur-sat)) blur(var(--blur-px))
+ -webkit-backdrop-filter: saturate(var(--blur-sat)) blur(var(--blur-px))
+ &:hover
+ .bg+.content
+ --blur-bg: rgba(black, 0.2)
+ --blur-px: 20px
+ --blur-sat: 150%
diff --git a/source/css/_layout/partial/bread-nav.styl b/source/css/_layout/partial/bread-nav.styl
index b2ba078..4736650 100644
--- a/source/css/_layout/partial/bread-nav.styl
+++ b/source/css/_layout/partial/bread-nav.styl
@@ -3,7 +3,8 @@
font-weight: 500
display: flex
justify-content: space-between
- div#breadcrumb
+ color: var(--text-banner)
+ .flex-row
display: flex
align-items: baseline
flex-direction: row
@@ -11,20 +12,19 @@
color: var(--text-banner)
padding: 4px
border-radius: 2px
+ &:hover
+ background: var(--button-hover-bg)
span
color: var(--text-banner)
span.sep
opacity 0.5
margin: 0
- span.dot:before
- opacity 0.5
- margin: 0 8px
-
- a:hover
- background: var(--hover-bg)
- div#post-meta
+ span.text
padding: 4px
- color: var(--text-banner)
+
+ div#post-meta
+ span.sep:before
+ content: '|'
span.updated
visibility: hidden
&:hover
diff --git a/source/css/_layout/sidebar/sidebar.styl b/source/css/_layout/sidebar/sidebar.styl
index 3fe4a7e..0e7726e 100644
--- a/source/css/_layout/sidebar/sidebar.styl
+++ b/source/css/_layout/sidebar/sidebar.styl
@@ -1,5 +1,5 @@
.l_left
- margin: 8px
+ margin-right: 8px
height: 'calc(%s - 16px)' % 100vh
border-radius: $border-card
overflow: hidden
diff --git a/source/css/_layout/tag-plugins/banner.styl b/source/css/_layout/tag-plugins/banner.styl
index 89aec96..a2a2a5c 100644
--- a/source/css/_layout/tag-plugins/banner.styl
+++ b/source/css/_layout/tag-plugins/banner.styl
@@ -123,5 +123,5 @@
@media screen and (max-width: $device-mobile-max)
.banner.top
border-radius: 0
- .md-text.content .tag-plugin.banner:first-child
+ .md-text.content:first-child .tag-plugin.banner:first-child
margin-top: 1rem
\ No newline at end of file
diff --git a/source/css/_layout/tag-plugins/tabs.styl b/source/css/_layout/tag-plugins/tabs.styl
index c78fef8..4fc2fbf 100644
--- a/source/css/_layout/tag-plugins/tabs.styl
+++ b/source/css/_layout/tag-plugins/tabs.styl
@@ -82,7 +82,7 @@
.tab-content:has(.grid-box)
width: 100%
-.l_body[text-indent] .md-text .tag-plugin.tabs .tab-content p:not([class])
+.l_body[text-indent] .md-text .tag-plugin.tabs .tab-content .tab-pane>p:not([class])
text-indent: 'calc(%s * 2)' % var(--fs-p)
a
text-indent: 0
\ No newline at end of file