diff --git a/settings.yaml b/settings.yaml index 5d3551ea..2599554c 100644 --- a/settings.yaml +++ b/settings.yaml @@ -49,6 +49,9 @@ spec: travelling: true article: true darkMode: true + navLogin: false + console: + consoleEnable: true children: - $formkit: radio name: travelling @@ -78,15 +81,21 @@ spec: value: true - label: 隐藏 value: false + - $formkit: radio + name: navLogin + label: 登入按钮 + help: 右上角登入按钮 + options: + - label: 显示 + value: true + - label: 隐藏 + value: false - $formkit: group name: console label: 中控台 - value: - consoleLink: false children: - $formkit: radio - name: consoleLink - label: 前往控制台 + name: consoleEnable options: - label: 显示 value: true @@ -184,6 +193,28 @@ spec: value: true - label: 隐藏 value: false + - $formkit: group + name: climb + label: 宠物挂件 + help: 需要瞬间丶顶部 Banner显示 + value: + climbEnable: true + climbImg: https://imgapi.yyds.pink/random?sort=animals + children: + - $formkit: radio + name: climbEnable + key: climbEnable + id: climbEnable + options: + - label: 显示 + value: true + - label: 隐藏 + value: false + - $formkit: url + name: climbImg + if: $get(climbEnable).value + label: 图片 + help: 随机图地址:https://imgapi.yyds.pink/random?sort=animals - $formkit: radio name: recentTop id: recentTop @@ -718,7 +749,7 @@ spec: - $formkit: group name: music label: 音乐卡片 - help: 文档请看:https://github.com/zonemeen/netease-recent-profile + help: 文档请看:https://githubfast.com/zonemeen/netease-recent-profile value: musicUrl: lightMsimg: @@ -753,7 +784,7 @@ spec: - $formkit: group name: steam label: Steam卡片 - help: 文档请看:https://github.com/yuyinws/steam-card + help: 文档请看:https://githubfast.com/yuyinws/steam-card value: steamUrl: cardSteam: @@ -1461,7 +1492,7 @@ spec: - $formkit: url name: buttonUrl validation: url - value: https://github.com/halo-sigs/plugin-moments + value: https://githubfast.com/halo-sigs/plugin-moments label: 按钮跳转连链接 placeholder: 请输入跳转 url @@ -1526,7 +1557,7 @@ spec: - $formkit: url name: buttonUrl validation: url - value: https://github.com/Rock-Candy-Tea/hexo-circle-of-friends + value: https://githubfast.com/Rock-Candy-Tea/hexo-circle-of-friends label: 按钮跳转连链接 placeholder: 请输入跳转 url - $formkit: url diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js index 0363101e..024f1738 100644 --- a/templates/assets/zhheo/blogex.js +++ b/templates/assets/zhheo/blogex.js @@ -586,9 +586,11 @@ function checkUrlAndAddHideBanner() { var e = window.location.href; if (/\/page\//.test(e)) { var t = document.getElementById("recent-top-post-group") - , o = document.getElementById("bbTimeList"); + , o = document.getElementById("bbTimeList") + , c = document.getElementById("climb"); t && (t.classList.add("more-page"), - o && o.classList.add("more-page")); + o && o.classList.add("more-page"), + c && c.classList.add("more-page")); } } diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index e0657260..056a764a 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -5023,7 +5023,7 @@ html { height: 100%; align-items: center; margin-right: 1.5rem; - overflow: hidden; + /*overflow: hidden;*/ } #page-header #nav #nav-left { @@ -5065,6 +5065,7 @@ html { #page-header #nav #nav-left div { margin-left: 0.5rem; padding: 0; + position: relative; } @@ -5271,6 +5272,106 @@ html { right: 0; } + +/* 登入按钮 */ + +#page-header #nav #nav-right div .back-menu-list-groups{ + position: absolute; + right: 0; + left: auto; + top: 34px; +} + +#page-header #nav #nav-right .console-button .nav-login{ + width: 35px; + display: flex; + align-items: center; + justify-content: center; + border-radius: 40px; + margin-top: 4.8px; +} + +#page-header.not-top-img #nav .nav-login { + color: var(--heo-fontcolor); + text-shadow: none; +} + +.console-button{ + cursor: pointer; +} + +.console-button .back-menu-list-groups .back-menu-list { + display: flex; + flex-direction: row; + flex-wrap: wrap; + width: 140px; + justify-content: space-between; +} +.console-button .back-menu-list-group { + display: flex; + flex-direction: column; +} + +.console-button .back-menu-list-groups { + position: absolute; + top: 45px; + transform: scale(.8); + transform-origin: top left; + left: 1.8rem; + background-color: var(--heo-maskbgdeep); + border-radius: 7.8px; + /* border: var(--style-border); */ + flex-direction: column; + font-size: 12px; + color: var(--heo-secondtext); + box-shadow: var(--heo-shadow-border); + transition: .1s; + opacity: 0; + pointer-events: none; + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px) +} + +.console-button .back-menu-list-groups:hover { + /* border: var(--style-border-hover); */ +} + +.console-button .back-menu-list-group .back-menu-list-title { + margin: 8px 0 0 16px; + transition: 0.3s; +} + +.console-button .back-menu-list-group:hover .back-menu-list-title { + color: var(--heo-main); +} + +.console-button:hover .back-menu-list-groups { + display: flex; + opacity: 1; + transition: 0.3s; + top: 50px; + pointer-events: auto; + left: 1.8rem; + transform: scale(1); +} + +.console-button .back-menu-list .back-menu-item { + width: 140px; +} + +@media screen and (max-width: 768px) { + + .console-button .back-menu-list-groups { + left: 0; + } + + .console-button:hover .back-menu-list-groups { + padding-bottom: 8px; + box-shadow: var(--heo-shadow-border); + left: 0; + } +} + /* 导航栏图标 */ #nav #site-name i { font-size: 50px; @@ -8374,6 +8475,23 @@ li { color: var(--heo-theme); } +/*宠物挂件*/ +.climb { + display: block; + position: absolute; + max-width: 270px; + z-index: 1; + margin-top: -26.6px; + margin-left: 5px; + cursor: pointer +} +@media screen and (max-width: 1200px) { + .climb { + display:none!important + } +} + + /* 文章卡片相关 */ #recent-posts > .recent-post-item > .recent-post-info { padding: 0; @@ -8918,7 +9036,7 @@ ins.adsbygoogle { margin-bottom: 0rem; } -.recent-top-post-group.more-page { +.recent-top-post-group.more-page,.climb.more-page { display: none; } diff --git a/templates/modules/moment.html b/templates/modules/moment.html index d7f0dc3d..f8681e26 100644 --- a/templates/modules/moment.html +++ b/templates/modules/moment.html @@ -31,6 +31,9 @@ + \ No newline at end of file diff --git a/templates/modules/widgets/console.html b/templates/modules/widgets/console.html index c35aac34..15c62b36 100644 --- a/templates/modules/widgets/console.html +++ b/templates/modules/widgets/console.html @@ -134,11 +134,6 @@ -
- - - -
diff --git a/templates/modules/widgets/nav-right.html b/templates/modules/widgets/nav-right.html index 3d3cba11..3a0d5000 100644 --- a/templates/modules/widgets/nav-right.html +++ b/templates/modules/widgets/nav-right.html @@ -36,9 +36,33 @@ -