webxc 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/mg.js CHANGED
@@ -1,64 +1,75 @@
1
+ /** 复制提示 监听copy事件 */
2
+ document.addEventListener("copy", function(e) {
3
+ //复制的内容
4
+ btf.snackbarShow('复制成功,请遵循GPL协议', false, 3000)
5
+ })
6
+ // F12提示 检测按键
7
+ window.onkeydown = function(e) {
8
+ if (e.keyCode === 123) {
9
+ btf.snackbarShow('开发者模式已打开,请遵循GPL协议', false, 3000)
10
+ }
11
+ }
1
12
  // 返回顶部 显示网页阅读进度
2
13
  window.onscroll = percent; // 执行函数
3
14
  // 页面百分比
4
15
  function percent() {
5
- let a = document.documentElement.scrollTop || window.pageYOffset, // 卷去高度
6
- b =
7
- Math.max(
8
- document.body.scrollHeight,
9
- document.documentElement.scrollHeight,
10
- document.body.offsetHeight,
11
- document.documentElement.offsetHeight,
12
- document.body.clientHeight,
13
- document.documentElement.clientHeight
14
- ) - document.documentElement.clientHeight, // 整个网页高度 减去 可视高度
15
- result = Math.round((a / b) * 100), // 计算百分比
16
- btn = document.querySelector("#percent"); // 获取图标
16
+ let a = document.documentElement.scrollTop || window.pageYOffset, // 卷去高度
17
+ b =
18
+ Math.max(
19
+ document.body.scrollHeight,
20
+ document.documentElement.scrollHeight,
21
+ document.body.offsetHeight,
22
+ document.documentElement.offsetHeight,
23
+ document.body.clientHeight,
24
+ document.documentElement.clientHeight
25
+ ) - document.documentElement.clientHeight, // 整个网页高度 减去 可视高度
26
+ result = Math.round((a / b) * 100), // 计算百分比
27
+ btn = document.querySelector("#percent"); // 获取图标
17
28
 
18
- result <= 99 || (result = 99), (btn.innerHTML = result);
29
+ result <= 99 || (result = 99), (btn.innerHTML = result);
19
30
  }
20
31
 
21
32
  document.getElementById("page-name").innerText = document.title.split(" | XC's Blog")[0];
22
33
  window.onscroll = percent; // 执行函数
23
34
  // 页面百分比
24
35
  function percent() {
25
- let a = document.documentElement.scrollTop || window.pageYOffset, // 卷去高度
26
- b =
27
- Math.max(
28
- document.body.scrollHeight,
29
- document.documentElement.scrollHeight,
30
- document.body.offsetHeight,
31
- document.documentElement.offsetHeight,
32
- document.body.clientHeight,
33
- document.documentElement.clientHeight
34
- ) - document.documentElement.clientHeight, // 整个网页高度
35
- result = Math.round((a / b) * 100), // 计算百分比
36
- up = document.querySelector("#go-up"); // 获取按钮
36
+ let a = document.documentElement.scrollTop || window.pageYOffset, // 卷去高度
37
+ b =
38
+ Math.max(
39
+ document.body.scrollHeight,
40
+ document.documentElement.scrollHeight,
41
+ document.body.offsetHeight,
42
+ document.documentElement.offsetHeight,
43
+ document.body.clientHeight,
44
+ document.documentElement.clientHeight
45
+ ) - document.documentElement.clientHeight, // 整个网页高度
46
+ result = Math.round((a / b) * 100), // 计算百分比
47
+ up = document.querySelector("#go-up"); // 获取按钮
37
48
 
38
- if (result <= 95) {
39
- up.childNodes[0].style.display = "none";
40
- up.childNodes[1].style.display = "block";
41
- up.childNodes[1].innerHTML = result;
42
- } else {
43
- up.childNodes[1].style.display = "none";
44
- up.childNodes[0].style.display = "block";
45
- }
49
+ if (result <= 95) {
50
+ up.childNodes[0].style.display = "none";
51
+ up.childNodes[1].style.display = "block";
52
+ up.childNodes[1].innerHTML = result;
53
+ } else {
54
+ up.childNodes[1].style.display = "none";
55
+ up.childNodes[0].style.display = "block";
56
+ }
46
57
  }
47
58
  //切换夜间
48
- function switchDarkMode(){
49
- const nowMode = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light'
50
- if (nowMode === 'light') {
51
- activateDarkMode()
52
- saveToLocal.set('theme', 'dark', 2)
53
- GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)
54
- } else {
55
- activateLightMode()
56
- saveToLocal.set('theme', 'light', 2)
57
- GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)
58
- }
59
- // handle some cases
60
- typeof utterancesTheme === 'function' && utterancesTheme()
61
- typeof changeGiscusTheme === 'function' && changeGiscusTheme()
62
- typeof FB === 'object' && window.loadFBComment()
63
- typeof runMermaid === 'function' && window.runMermaid()
64
- }
59
+ function switchDarkMode() {
60
+ const nowMode = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light'
61
+ if (nowMode === 'light') {
62
+ activateDarkMode()
63
+ saveToLocal.set('theme', 'dark', 2)
64
+ GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)
65
+ } else {
66
+ activateLightMode()
67
+ saveToLocal.set('theme', 'light', 2)
68
+ GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)
69
+ }
70
+ // handle some cases
71
+ typeof utterancesTheme === 'function' && utterancesTheme()
72
+ typeof changeGiscusTheme === 'function' && changeGiscusTheme()
73
+ typeof FB === 'object' && window.loadFBComment()
74
+ typeof runMermaid === 'function' && window.runMermaid()
75
+ }
package/css/mg1.css ADDED
@@ -0,0 +1 @@
1
+ #recent-posts>.recent-post-item{position:relative;}.newPost-left,.newPost-right{position:absolute;top:0;color:#fff;padding:0 18px;background-color:#3b70fc;border-radius:0 0 10px 10px;}.newPost-left{left:15px;}.newPost-right{right:15px;}#recent-posts>.recent-post-item .post_cover{overflow:hidden;border-radius:12px;position:relative;width:44%;height:100%;}#recent-posts > .recent-post-item:hover .post_cover::after{-webkit-transform:scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);-moz-transform:scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);-o-transform:scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);-ms-transform:scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);transform:scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);}#recent-posts > .recent-post-item .post_cover::after{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(255,255,255,.5);content:'';-webkit-transition:-webkit-transform .3s;-moz-transition:-moz-transform .3s;-o-transition:-o-transform .3s;-ms-transition:-ms-transform .3s;transition:transform .5s;-webkit-transform:scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);-moz-transform:scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);-o-transform:scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);-ms-transform:scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);transform:scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);}#nav .menus_items{top:0 !important;}#nav .menus_items .menus_item:hover .menus_item_child{border-radius:16px;}#menus > div.menus_items > div > a{font-size:13px !important;text-shadow:1px 1px 1px transparent !important;}#nav.show{background:#f7f9fe;}@media screen and (min-width:980px){[data-theme='dark'] #recent-posts>.recent-post-item,#aside-content .card-widget{border:1px solid #42444a !important;}}@media screen and (min-width:980px){[data-theme='dark'] #aside-content .card-widget,.layout>div:first-child:not(.recent-posts){border:1px solid #42444a !important;}}@media screen and (min-width:980px){[data-theme='dark'] .layout>div:first-child:not(.recent-posts){border:1px solid #42444a !important;}}.iconfont{vertical-align:bottom;}#nav a:hover{background:var(--anzhiyu-main);transition:0.3s;}#nav-totop:hover .totopbtn i{opacity:1;}#nav-totop #percent{font-size:12px;background:var(--anzhiyu-white);color:var(--anzhiyu-main);width:25px;height:25px;border-radius:35px;display:flex;justify-content:center;align-items:center;transition:0.3s;}.nav-fixed #nav-totop #percent,.page #nav-totop #percent{background:var(--font-color);color:var(--card-bg);font-size:13px;}#nav-totop{width:35px;}#page-header:not(.is-top-bar) #percent{transition:0.3s;}#page-header:not(.is-top-bar) #nav-totop{width:0;opacity:0;transition:width 0.3s,opacity 0.2s;margin-left:0 !important;}#nav-totop #percent{font-weight:700;}#nav-totop:hover #percent{opacity:0;transform:scale(1.5);font-weight:700;}#page-header #nav #nav-right div{margin-left:0.5rem;padding:0;}#nav-totop{display:flex;align-items:center;justify-content:center;transition:0.3s;}.nav-button{cursor:pointer;}div#menus{display:flex;align-items:center;}#page-header #nav .nav-button a{height:35px;width:35px;display:flex;align-items:center;justify-content:center;}#nav .site-page{padding-bottom:0px;}#nav *::after{background-color:transparent !important;}#nav .menus_items .menus_item .menus_item_child li a{padding:2px 16px;}#nav .menus_items .menus_item .menus_item_child li:hover a{color:white !important;}#nav .menus_items .menus_item .menus_item_child li{margin:6px;border-radius:5px;transition:all 0.3s;display:inline-block;margin:0 3px;}#nav .menus_items .menus_item .menus_item_child:before{top:-19px;}#site-name,.shuoshuo{white-space:nowrap;overflow:hidden;}#site-name{padding:0 8px;position:relative;display:flex;align-items:center;justify-content:center;transition:0.3s;}#blog_name #site-name i{opacity:0;position:absolute;}#blog_name #site-name:hover .title{opacity:0;}#blog_name #site-name:hover i{opacity:1;transform:scale(1.01);color:white;}ul.menus_item_child{border-radius:5px;}#nav .menus_items{position:absolute;width:fit-content;left:50%;transform:translateX(-50%);display:flex;flex-direction:row;justify-content:center;align-items:center;height:60px;}#nav .menus_items .menus_item:hover .menus_item_child{display:block;transform:translateX(-50%);right:auto;left:auto !important;padding:6px 4px;box-sizing:content-box;line-height:35px;}#nav .menus_items .menus_item:hover{padding:0 5px 27px 5px !important;margin-bottom:-14.5px !important;}#nav .menus_items .menus_item .menus_item_child{top:44px;}@media screen and (min-width:768px){.page .menus_item:hover > a.site-page{color:var(--anzhiyu-white) !important;background:var(--anzhiyu-main);transition:0.3s;box-shadow:var(--anzhiyu-shadow-main);}}#nav{padding:0 calc((100% - 1420px) / 2);backdrop-filter:saturate(180%) blur(20px);}#nav a{border-radius:8px;color:var(--font-color);}.page #nav a:hover{color:var(--anzhiyu-white) !important;background:var(--anzhiyu-main);transition:0.3s;box-shadow:var(--anzhiyu-shadow-main);}#menus > div.menus_items > div > a{letter-spacing:0.3rem;font-weight:700;padding:0em 0.1em 0em 0.5em;height:35px;line-height:35px;}#nav .menus_items .menus_item{padding:0 5px;display:flex;flex-direction:column;margin:auto;align-items:center;}#nav div#toggle-menu{padding:2px 0 4px 6px;}#nav-totop .totopbtn i{position:absolute;display:flex;opacity:0;}#page-name::before{font-size:18px;position:absolute;width:100%;height:100%;border-radius:8px;color:white !important;top:0;left:0;content:"回到顶部";background-color:var(--anzhiyu-theme);transition:all 0.3s;-webkit-transition:all 0.3s;-moz-transition:all 0.3s;-ms-transition:all 0.3s;-o-transition:all 0.3s;opacity:0;box-shadow:0 0 3px var(--anzhiyu-theme);line-height:45px;}#page-name:hover:before{opacity:1;}#name-container{transition:all 0.3s;-webkit-transition:all 0.3s;-moz-transition:all 0.3s;-ms-transition:all 0.3s;-o-transition:all 0.3s;}#name-container:hover{transform:translateX(-50%) scale(1.03);}#page-name{position:relative;padding:10px 30px;}center#name-container{position:absolute;width:100%;left:50%;transform:translateX(-50%);font-family:"ZhuZiAYuanJWD";}.nav-fixed.nav-visible #name-container{transition:0.3s;transform:translate(-50%,60px);}.nav-fixed.nav-visible #menus .menus_items{transform:translate(-50%);transition:0.3s;line-height:60px;}.nav-fixed #menus .menus_items{transform:translate(-50%,-60px);transition:0.3s;}.nav-fixed #name-container{top:15%;transition:0.3s;}#name-container{bottom:60px;}.mask-name-container{max-width:1200px;width:50%;height:100%;position:absolute;overflow:hidden;left:50%;transform:translateX(-50%);}@media screen and (max-width:980px){.mask-name-container{width:65%;}}@media screen and (max-width:768px){.mask-name-container{display:none;}}#sidebar #sidebar-menus .menus_items .site-page:hover{color:var(--anzhiyu-white);border-radius:var(--anzhiyu-border-radius);}#nav .menus_items .menus_item > a > i:last-child{display:none;}#nav #search-button{font-size:1.3em;}@media screen and (min-width:900px){#nav .back-home-button:hover{box-shadow:var(--anzhiyu-shadow-main);}}.back-home-button:hover{background:var(--anzhiyu-main);color:var(--anzhiyu-white) !important;}.back-home-button{display:flex;width:35px;height:35px;padding:0 !important;align-items:center;justify-content:center;margin-right:4px;transition:0.3s;border-radius:8px;}.back-home-button:hover .back-menu-list-groups{display:flex;opacity:1;transition:0.3s;top:55px;pointer-events:auto;left:0;}.back-home-button .back-menu-list-groups{position:absolute;top:65px;left:0;background:var(--anzhiyu-card-bg);border-radius:12px;border:var(--style-border);flex-direction:column;font-size:12px;color:var(--anzhiyu-secondtext);box-shadow:var(--anzhiyu-shadow-border);transition:0s;opacity:0;pointer-events:none;}.back-home-button .back-menu-list-group{display:flex;flex-direction:column;}.back-home-button .back-menu-list-group .back-menu-list-title{margin:8px 0 0 16px;transition:0.3s;}.back-home-button .back-menu-list{display:flex;flex-direction:column;}.back-home-button .back-menu-list::before{position:absolute;top:-22px;left:0px;width:100%;height:25px;content:"";}.back-home-button .back-menu-list-group:hover .back-menu-list-title{color:var(--anzhiyu-main);}.back-home-button .back-menu-list-groups:hover{border:var(--style-border-hover);}.back-home-button .back-menu-list .back-menu-item{display:flex;align-items:center;margin:4px 8px;padding:4px 8px !important;transition:0.3s;border-radius:8px;}.back-home-button .back-menu-list .back-menu-item .back-menu-item-text{font-size:var(--global-font-size);margin-left:0.5rem;color:var(--anzhiyu-fontcolor);white-space:nowrap;}#nav #blog_name{flex-wrap:nowrap;height:60px;display:flex;align-items:center;transition:0.3s;}.back-home-button .back-menu-list .back-menu-item .back-menu-item-icon{width:24px;height:24px;border-radius:24px;background:var(--anzhiyu-secondbg);}#page-header #nav .back-home-button{cursor:pointer;position:relative;}@media screen and (min-width:1300px){#nav a:hover{transform:scale(1.03);}}.back-home-button .back-menu-list .back-menu-item:hover .back-menu-item-text{color:var(--anzhiyu-white);}.back-menu-item-icon.loading img{width:25px;}#page-header #nav #menus .nav-button.long a.totopbtn,#page-header #nav #menus .nav-button.long,#page-header #nav #menus .nav-button.long a.totopbtn span{width:70px;}#page-header #nav #menus .nav-button.long a.totopbtn span{border-radius:35px;display:flex;justify-content:center;align-items:center;transition:0.3s;white-space:nowrap;}#page-header #nav #menus .nav-button.long a.totopbtn:hover{border-radius:35px;height:30px;}#nav #search-button{padding-left:0;}#page-header #nav .nav-button{margin-left:0.5rem;padding:0;}#page-header:not(.is-top-bar) #nav-totop a{display:none;}#search-button a.site-page.social-icon.search span{display:none;}:root{--anzhiyu-theme-op:#4259ef23;--anzhiyu-white:#fff;--anzhiyu-black:#000;--anzhiyu-none:rgba(0,0,0,0);--anzhiyu-gray:#999999;--anzhiyu-yellow:#ffc93e;--anzhiyu-border-radius:8px;--anzhiyu-main:var(--anzhiyu-theme);--anzhiyu-main-op:var(--anzhiyu-theme-op);--anzhiyu-shadow-theme:0 8px 12px -3px var(--anzhiyu-theme-op);--anzhiyu-shadow-main:0 8px 12px -3px var(--anzhiyu-main-op);--anzhiyu-shadow-blue:0 8px 12px -3px rgba(40,109,234,0.2);--anzhiyu-shadow-white:0 8px 12px -3px rgba(255,255,255,0.2);--anzhiyu-shadow-black:0 0 12px 4px rgba(0,0,0,0.05);--anzhiyu-shadow-yellow:0px 38px 77px -26px rgba(255,201,62,0.12);--anzhiyu-shadow-red:0 8px 12px -3px #ee7d7936;--anzhiyu-shadow-green:0 8px 12px -3px #87ee7936;--anzhiyu-shadow-border:0 8px 16px -4px #2c2d300c;--anzhiyu-logo-color:linear-gradient(215deg,#4584ff 30%,#ff7676 70%);--style-border:1px solid var(--anzhiyu-card-border);--anzhiyu-blue-main:#3b70fc;--style-border-hover:1px solid var(--anzhiyu-main);--style-border-dashed:1px dashed var(--anzhiyu-theme-op);--style-border-avatar:4px solid var(--anzhiyu-background);--style-border-always:1px solid var(--anzhiyu-card-border);--anzhiyu-white-acrylic1:#fefeff !important;--anzhiyu-white-acrylic2:#fcfdff !important;--anzhiyu-black-acrylic2:#08080a !important;--anzhiyu-black-acrylic1:#0b0b0e !important;}[data-theme="light"]{--anzhiyu-theme:#3b70fc;--anzhiyu-theme-op:#4259ef23;--anzhiyu-blue:#3b70fc;--anzhiyu-red:#d8213c;--anzhiyu-pink:#ff7c7c;--anzhiyu-green:#57bd6a;--anzhiyu-fontcolor:#363636;--anzhiyu-background:#f7f9fe;--anzhiyu-reverse:#000;--anzhiyu-maskbg:rgba(255,255,255,0.6);--anzhiyu-maskbgdeep:rgba(255,255,255,0.85);--anzhiyu-hovertext:var(--anzhiyu-theme);--anzhiyu-ahoverbg:#f7f7fa;--anzhiyu-lighttext:var(--anzhiyu-main);--anzhiyu-secondtext:rgba(60,60,67,0.6);--anzhiyu-scrollbar:rgba(60,60,67,0.4);--anzhiyu-card-btn-bg:#edf0f7;--anzhiyu-post-blockquote-bg:#fafcff;--anzhiyu-post-tabs-bg:#f2f5f8;--anzhiyu-secondbg:#edf0f7;--anzhiyu-shadow-nav:0 5px 12px -5px rgba(102,68,68,0.05);--anzhiyu-card-bg:#fff;--anzhiyu-shadow-lightblack:0 5px 12px -5px rgba(102,68,68,0);--anzhiyu-shadow-light2black:0 5px 12px -5px rgba(102,68,68,0);--anzhiyu-card-border:#c0c6d8;}[data-theme="dark"]{--anzhiyu-theme:#3b70fc;--anzhiyu-theme-op:#0084ff23;--anzhiyu-blue:#3b70fc;--anzhiyu-red:#ff3842;--anzhiyu-pink:#ff7c7c;--anzhiyu-green:#57bd6a;--anzhiyu-fontcolor:#f7f7fa;--anzhiyu-background:#18171d;--anzhiyu-reverse:#fff;--anzhiyu-maskbg:rgba(0,0,0,0.6);--anzhiyu-maskbgdeep:rgba(0,0,0,0.85);--anzhiyu-hovertext:#3b70fc;--anzhiyu-ahoverbg:#fff;--anzhiyu-lighttext:#f2b94b;--anzhiyu-secondtext:#a1a2b8;--anzhiyu-scrollbar:rgba(200,200,223,0.4);--anzhiyu-card-btn-bg:#30343f;--anzhiyu-post-blockquote-bg:#000;--anzhiyu-post-tabs-bg:#121212;--anzhiyu-secondbg:#30343f;--anzhiyu-shadow-nav:0 5px 20px 0px rgba(28,28,28,0.4);--anzhiyu-card-bg:#1d1b26;--anzhiyu-shadow-lightblack:0 5px 12px -5px rgba(102,68,68,0);--anzhiyu-shadow-light2black:0 5px 12px -5px rgba(102,68,68,0);--anzhiyu-card-border:#42444a;}button#go-up #percent{display:none;font-weight:bold;font-size:15px !important;}button#go-up span{font-size:12px !important;margin-right:-1px;}button#go-up:hover i{display:block !important;}button#go-up:hover #percent{display:none !important;}.swiper-button-next:after,.swiper-button-prev:after{color:#fff !important;}.blog-slider__content{height:144px !important;}#recent-posts>.recent-post-item:first-child{border-radius:20px 20px 20px 20px !important;}:root{--heo-main:#3b70fc !important;--scrollbar-color:#3b70fc !important;}#nav{backdrop-filter:saturate(120%) blur(0px) !important;}#rightside>div>button,#to_comment{border-radius:50% !important;}#rightside > div > button,#rightside > div > a{width:38px !important;height:38px !important;}[data-theme='dark'] #nav .menus_items .menus_item .menus_item_child{background-color:#2a2739;}[data-theme='dark'] .card-tag-cloud a,[data-theme='dark'] .tag-cloud-list.is-center a{border-color:#42444a;}[data-theme=dark] #recent-posts > .recent-post-item,[data-theme=dark] #aside-content .card-widget,[data-theme=dark] .layout > div:first-child:not(.recent-posts),[data-theme=dark] #web_bg,[data-theme='dark'] #body-wrap #footer:before,[data-theme='dark'] #web_bg:before,[data-theme='dark'] #nav.show{background-color:#1d1b26 !important;}@media screen and (max-width:768px){[data-theme='dark'] #recent-posts>.recent-post-item:not(:first-child){border-bottom:1px dashed #4e5056 !important;}#sidebar #sidebar-menus{right:-290px !important;border-radius:8px 0px 0px 8px;background:#f7f9fe;}[data-theme='dark'] #sidebar #sidebar-menus{background:#1d1b26;}#sidebar #sidebar-menus .menus_items .site-page:hover{background:#3b70fc !important;}#recent-posts>.recent-post-item:not(:first-child){border-bottom:1px dashed #abadb4 !important;}#category-bar{background:#f7f9fe !important;}[data-theme=dark] #category-bar{background:#1d1b26 !important;}#recent-posts>.recent-post-item:first-child{margin-left:6px;margin-right:6px;}.layout > div:first-child:not(.recent-posts){padding:20px 10px !important;}ol{padding-left:20px !important;}#article-container h1,#article-container h2,#article-container h3,#article-container h4,#article-container h5,#article-container h6{padding-left:20px !important;}#article-container .flink .flink-list > .flink-list-item{height:140px;}#article-container .flink .flink-list > .flink-list-item a .flink-item-icon{margin:8px 0px 0px 56px !important;box-shadow:0px 0px 8px 3px #ccc;}#article-container .flink .flink-item-name{margin-top:60px;overflow:visible;text-overflow:auto;white-space:normal;font-size:0.9rem !important;}#article-container .flink .flink-item-desc{padding-top:5px !important;}:root{--card-bg:#f7f9fe !important;--heo-main:#3b70fc !important;}#category-bar{margin-top:20px;}#recent-posts{margin-top:160px !important;}#recent-posts:nth-of-type(3).recent-post-item{border-radius:20px 20px 0px 0px !important;}.layout #recent-posts:nth-of-type(31).recent-post-item{border-radius:0px 0px 0px 0px !important;}#recent-posts:nth-of-type(32).recent-post-item{border-radius:0px 0px 20px 20px !important;}#aside-content #card-toc{background:#fff;border-radius:15px !important;}.layout #aside-content .card-widget.card-webinfo{border-radius:0px 0px 0px 0px !important;}}@media screen and (min-width:980px){.layout #recent-posts{margin-top:-12px !important;}#category-bar{margin-top:20px;}.cardHover,.error404 #error-wrap .error-content,.layout > div:first-child:not(.recent-posts),#recent-posts > .recent-post-item,#aside-content .card-widget,.layout > .recent-posts .pagination > *:not(.space){border:1px solid #e0e3ed !important;box-shadow:0px 0px 0px #fff !important;}#aside-content .card-widget:hover,#bber-talk:hover,#container,#post .post-copyright:hover,#recent-posts>.recent-post-item:hover,#sta_chart:hover,#statistic .item:hover,.cardHover:hover,.error404 #error-wrap .error-content:hover,.layout>div:first-child:not(.recent-posts):hover,.search-dialog{border:1px solid #4976f5 !important;}.layout>div:first-child:not(.recent-posts){border-radius:15px !important;}}#footer{background:#f7f9fe;}#footer-wrap,#footer-wrap a{color:#4c4948;}#page-header.not-top-img #nav{background:#f7f9fe;box-shadow:0px 0px 0px #f7f9fe !important;}#article-container .flink .flink-list>.flink-list-item:hover{background-color:#3b70fc !important;box-shadow:0px 0px 0px#fff !important;}.category-lists ul li:nth-child(19){background:linear-gradient(to right,#c0c0aa,#1cefff);}.category-lists ul li:nth-child(20){background:linear-gradient(to right,#9796f0,#fbc7d4);}.imgHover:hover,.error404 #error-wrap .error-content .error-img img:hover,.article-sort-item-img img:hover,#recent-posts > .recent-post-item .post_cover img.post_bg:hover,#aside-content .aside-list > .aside-list-item .thumbnail > img:hover,#recent-posts > .recent-post-item:hover img.post_bg{transform:scale(1.06) !important;}.category-in-bar-tips{margin-top:20px;}
package/css/mg2.css ADDED
@@ -0,0 +1 @@
1
+ .loading-img{background:url(https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg) no-repeat center center;background-size:cover;}#content-inner .layout h1:hover,#content-inner.layout h2:hover,#content-inner.layout h3:hover,#content-inner.layout h4:hover,#content-inner.layout h5:hover,#content-inner.layout h6:hover{color:#21D4FD;background:linear-gradient(30deg,#21D4FD,#B721FF);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}#article-container .flink .flink-list>.flink-list-item:hover{-webkit-transform:scale(0.95);transform:scale(0.95);}#article-container .flink .flink-list>.flink-list-item{transition:.5s;}#article-container .flink .flink-list>.flink-list-item:hover .flink-item-icon{-webkit-transform:rotate(360deg) !important;transform:rotate(360deg) !important;}#article-container .flink .flink-list>.flink-list-item a .flink-item-icon{box-shadow:0px 0px 0px #fff !important;}#nav #site-name,#nav .site-page{text-shadow:0px 0px 0px #fff;}[data-theme='dark'] #rightside > div > button,[data-theme='dark'] #rightside > div > a{background:#65626280;}.cardHover,.error404 #error-wrap .error-content,.layout > div:first-child:not(.recent-posts),#recent-posts > .recent-post-item,#aside-content .card-widget,.layout > .recent-posts .pagination > *:not(.space){transition:0s !important;}#nav{transition:0s !important;}[data-theme='dark'] #footer-wrap,[data-theme='dark'] #footer-wrap a{color:#ffffffb3;}@media screen and (max-width:768px){#nav div#toggle-menu{padding-right:10px!important;}.menus_item ul li{margin-left:-55px;padding:6px 0px 0px 15px !important;}.layout #recent-posts>.recent-post-item:not(:first-child){border-bottom:1px dashed #abadb44a !important;}#article-container ol li,#article-container ul li{margin-left:7px;}#sidebar #sidebar-menus .menus_items .site-page.group>i:last-child{top:1.35em !important;right:25px !important;}#sidebar-menus.open>:nth-child(4),#sidebar-menus.open>:nth-child(2),#sidebar-menus.open>:nth-child(3){-webkit-animation:sidebarItem 0.7s!important;}.site-data>a .headline{font-weight:700;}.menus_item_child .iconfont{font-size:16px;}.post-content img{border-radius:30px;border:7px solid #aeaeae59;}#sidebar #sidebar-menus>.avatar-img{box-shadow:0px 0px 10px 2px #a181c1;}#page-header.post-bg:before{backdrop-filter:saturate(100%) blur(4px);}[data-theme=dark] #sidebar #menu-mask{background:#00000024 !important;}}#pagination .page-number,#pagination .space{display:none;}.layout>.recent-posts .pagination>:not(.space){border-radius:8px !important;background:#ffffff99 !important;transition:all .3s !important;width:300px !important;color:#4c4948;margin-bottom:10px;}.layout>div .pagination>:not(.space){border:1px solid #e0e3ed;}.layout>.recent-posts .pagination>*:not(.space):hover{color:#fff;background:#4976f5 !important;}.layout>div .pagination .next::before,.layout>div .pagination .prev::before{content:'下一页';}.layout>div .pagination .prev::before{content:'上一页';}[data-theme=dark] .layout>.recent-posts .pagination>:not(.space){color:#ffffffbd;background:#413c5754 !important;}[data-theme=dark] .layout>div .pagination>:not(.space){border-color:#707070 !important;}[data-theme=dark] .layout>.recent-posts .pagination>*:not(.space):hover{background:#817aa254 !important;}#aside-content>.card-widget.card-info{background:linear-gradient(-45deg,#e8d8b9,#eccec5,#a3e9eb,#bdbdf0,#eec1ea);box-shadow:0 0 5px rgb(66,68,68);position:relative;background-size:400% 400%;-webkit-animation:Gradient 10s ease infinite;-moz-animation:Gradient 10s ease infinite;animation:Gradient 10s ease infinite !important;}@-webkit-keyframes Gradient{0%{background-position:0% 50%;}50%{background-position:100% 50%;}100%{background-position:0% 50%;}}@-moz-keyframes Gradient{0%{background-position:0% 50%;}50%{background-position:100% 50%;}100%{background-position:0% 50%;}}@keyframes Gradient{0%{background-position:0% 50%;}50%{background-position:100% 50%;}100%{background-position:0% 50%;}}[data-theme="dark"] #aside-content>.card-widget.card-info{background:#1d1b26;}#aside-content>.card-widget.card-info>#card-info-btn{background-color:#3eb8be;border-radius:8px;}.snackbar-container{background:var(--heo-main) !important;color:var(--heo-white) !important;border-radius:0 !important;display:flex;justify-content:center !important;max-width:none !important;min-width:100% !important;margin:0px !important;left:0px !important;height:40px !important;transform:none !important;}.snackbar-container p{font-weight:bold !important;text-align:center !important;font-size:0.8rem !important;display:flex !important;justify-content:center !important;}.snackbar-container .action{color:var(--heo-white) !important;padding:4px 6px !important;font-weight:bold;border-radius:8px !important;transition:0.3s;border:var(--style-border) !important;}.snackbar-container .action:hover{color:var(--heo-main) !important;background:var(--heo-white) !important;}.snackbar-container::after{position:absolute;width:0;height:100%;left:0;top:0;background:var(--heo-white);opacity:0.1;content:"";animation:snackbar-progress 2s linear forwards;pointer-events:none;}@keyframes snackbar-progress{from{width:0;}to{width:100%;}}.list-beauty li:before,.category-lists ul li:before{display:none;}#search-mask{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:var(--heo-maskbg);}.tk-expand[data-v-d82ce9a0]{margin-bottom:10px;}#twikoo .tk-content{background:rgb(235 235 235 / 60%);box-shadow:inset 0px 0px 3px 1px #9f9f9f30;padding:10px 15px;border-radius:10px}#twikoo .tk-content:hover{background:rgb(235 235 235 / 60%);box-shadow:inset 0px 0px 3px 1px #3489ff87;padding:10px 15px;border-radius:10px}.tk-expand,.tk-comments-container>.tk-comment,.tk-submit:nth-child(1){background:var(--card-bg);border:1px solid #e0e3ed;box-shadow:0 5px 10px rgb(189 189 189 / 10%);transition:all .3s ease-in-out;border-radius:12px;}.tk-extras[data-v-d82ce9a0]{margin-top:10px;padding-bottom:15px;}.tk-expand,.tk-comments-container>.tk-comment,.tk-submit:nth-child(1){padding:10px 10px 0px 10px;}[data-theme='dark'] .tk-comments-container>.tk-comment,[data-theme='dark'] #twikoo .tk-content,[data-theme='dark'] .tk-expand,[data-theme='dark'] .tk-submit:nth-child(1){background:#1d1b26;}[data-theme='dark'] .tk-comments-container>.tk-comment,[data-theme='dark'] .tk-expand,[data-theme='dark'] .tk-submit:nth-child(1){border-color:#42444a;}[data-theme='dark'] .tk-comments-container>.tk-comment{box-shadow:0px 0px 0px #ffffff00;}[data-theme='dark'] #twikoo .tk-content,[data-theme='dark'] .tk-expand,[data-theme='dark'] .tk-submit:nth-child(1){box-shadow:inset 0px 0px 0px 1px #42444a;}[data-theme='dark'] #twikoo .tk-content:hover{box-shadow:inset 0px 0px 3px 1px #5f8ecf87;}@media screen and (min-width:980px){#aside-content #card-toc .toc-content .toc-link.active{line-height:1.2;border-radius:12px;border-left-color:var(--heo-hovertext);background-color:var(--heo-card-bg);color:var(--heo-lighttext);font-weight:bold;font-size:20px;}[data-theme=dark].toc .toc-item.active .toc-link .toc-text{color:var(--heo-white);}#aside-content #card-toc .toc-content .toc-item.active .toc-link{opacity:1;border-radius:8px;}#aside-content #card-toc .toc-content .toc-link{line-height:1.2;padding:8px;border-left:0px solid transparent;border-radius:12px;color:var(--heo-secondtext);cursor:default;}#aside-content #card-toc .toc-content .toc-link:not(.active) span{opacity:0.6;cursor:pointer;filter:blur(1px);transition:0.3s;}#aside-content #card-toc:hover .toc-content .toc-link:not(.active) span{filter:blur(0px);opacity:1;}#aside-content #card-toc .toc-content .toc-link:not(.active) span:hover{color:var(--heo-lighttext);}}.loading-img{background:url(https://npm.elemecdn.com/webxc@1.0.0/logo/logo.jpg) no-repeat center center;background-size:cover;}#content-inner .layout h1:hover,#content-inner.layout h2:hover,#content-inner.layout h3:hover,#content-inner.layout h4:hover,#content-inner.layout h5:hover,#content-inner.layout h6:hover{color:#21D4FD;background:linear-gradient(30deg,#21D4FD,#B721FF);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}#article-container .flink .flink-list>.flink-list-item:hover{-webkit-transform:scale(0.95);transform:scale(0.95);}#article-container .flink .flink-list>.flink-list-item{transition:.5s;}#article-container .flink .flink-list>.flink-list-item:hover .flink-item-icon{-webkit-transform:rotate(360deg) !important;transform:rotate(360deg) !important;}#article-container .flink .flink-list>.flink-list-item a .flink-item-icon{box-shadow:0px 0px 0px #fff !important;}#nav #site-name,#nav .site-page{text-shadow:0px 0px 0px #fff;}[data-theme='dark'] #rightside > div > button,[data-theme='dark'] #rightside > div > a{background:#65626280;}.cardHover,.error404 #error-wrap .error-content,.layout > div:first-child:not(.recent-posts),#recent-posts > .recent-post-item,#aside-content .card-widget,.layout > .recent-posts .pagination > *:not(.space){transition:0s !important;}#nav{transition:0s !important;}[data-theme='dark'] #footer-wrap,[data-theme='dark'] #footer-wrap a{color:#ffffffb3;}@media screen and (max-width:768px){#nav div#toggle-menu{padding-right:10px;}.menus_item ul li{margin-left:-55px;padding:6px 0px 0px 15px !important;}.layout #recent-posts>.recent-post-item:not(:first-child){border-bottom:1px dashed #abadb44a !important;}#article-container ol li,#article-container ul li{margin-left:7px;}#sidebar #sidebar-menus .menus_items .site-page.group>i:last-child{top:1.35em !important;right:25px !important;}#sidebar-menus.open>:nth-child(4),#sidebar-menus.open>:nth-child(2),#sidebar-menus.open>:nth-child(3){-webkit-animation:sidebarItem 0.7s;}.site-data>a .headline{font-weight:700;}.menus_item_child .iconfont{font-size:16px;}.post-content img{border-radius:30px;border:7px solid #aeaeae59;}#sidebar #sidebar-menus>.avatar-img{box-shadow:0px 0px 10px 2px #a181c1;}#page-header.post-bg:before{backdrop-filter:saturate(100%) blur(4px);}[data-theme=dark] #sidebar #menu-mask{background:#00000024 !important;}}#pagination .page-number,#pagination .space{display:none;}.layout>.recent-posts .pagination>:not(.space){border-radius:8px !important;background:#ffffff99 !important;transition:all .3s !important;width:300px !important;color:#4c4948;margin-bottom:10px;}.layout>div .pagination>:not(.space){border:1px solid #e0e3ed;}.layout>.recent-posts .pagination>*:not(.space):hover{color:#fff;background:#4976f5 !important;}.layout>div .pagination .next::before,.layout>div .pagination .prev::before{content:'下一页';}.layout>div .pagination .prev::before{content:'上一页';}[data-theme=dark] .layout>.recent-posts .pagination>:not(.space){color:#ffffffbd;background:#413c5754 !important;}[data-theme=dark] .layout>div .pagination>:not(.space){border-color:#707070 !important;}[data-theme=dark] .layout>.recent-posts .pagination>*:not(.space):hover{background:#817aa254 !important;}#aside-content>.card-widget.card-info{background:linear-gradient(-45deg,#e8d8b9,#eccec5,#a3e9eb,#bdbdf0,#eec1ea);box-shadow:0 0 5px rgb(66,68,68);position:relative;background-size:400% 400%;-webkit-animation:Gradient 10s ease infinite;-moz-animation:Gradient 10s ease infinite;animation:Gradient 10s ease infinite !important;}@-webkit-keyframes Gradient{0%{background-position:0% 50%;}50%{background-position:100% 50%;}100%{background-position:0% 50%;}}@-moz-keyframes Gradient{0%{background-position:0% 50%;}50%{background-position:100% 50%;}100%{background-position:0% 50%;}}@keyframes Gradient{0%{background-position:0% 50%;}50%{background-position:100% 50%;}100%{background-position:0% 50%;}}[data-theme="dark"] #aside-content>.card-widget.card-info{background:#1d1b26;}#aside-content>.card-widget.card-info>#card-info-btn{background-color:#3eb8be;border-radius:8px;}.snackbar-container{background:var(--heo-main) !important;color:var(--heo-white) !important;border-radius:0 !important;display:flex;justify-content:center !important;max-width:none !important;min-width:100% !important;margin:0px !important;left:0px !important;height:40px !important;transform:none !important;}.snackbar-container p{font-weight:bold !important;text-align:center !important;font-size:0.8rem !important;display:flex !important;justify-content:center !important;}.snackbar-container .action{color:var(--heo-white) !important;padding:4px 6px !important;font-weight:bold;border-radius:8px !important;transition:0.3s;border:var(--style-border) !important;}.snackbar-container .action:hover{color:var(--heo-main) !important;background:var(--heo-white) !important;}.snackbar-container::after{position:absolute;width:0;height:100%;left:0;top:0;background:var(--heo-white);opacity:0.1;content:"";animation:snackbar-progress 2s linear forwards;pointer-events:none;}@keyframes snackbar-progress{from{width:0;}to{width:100%;}}.list-beauty li:before,.category-lists ul li:before{display:none;}#search-mask{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:var(--heo-maskbg);}.tk-expand[data-v-d82ce9a0]{margin-bottom:10px;}#twikoo .tk-content{background:rgb(235 235 235 / 60%);box-shadow:inset 0px 0px 3px 1px #9f9f9f30;padding:10px 15px;border-radius:10px}#twikoo .tk-content:hover{background:rgb(235 235 235 / 60%);box-shadow:inset 0px 0px 3px 1px #3489ff87;padding:10px 15px;border-radius:10px}.tk-expand,.tk-comments-container>.tk-comment,.tk-submit:nth-child(1){background:var(--card-bg);border:1px solid #e0e3ed;box-shadow:0 5px 10px rgb(189 189 189 / 10%);transition:all .3s ease-in-out;border-radius:12px;}.tk-extras[data-v-d82ce9a0]{margin-top:10px;padding-bottom:15px;}.tk-expand,.tk-comments-container>.tk-comment,.tk-submit:nth-child(1){padding:10px 10px 0px 10px;}[data-theme='dark'] .tk-comments-container>.tk-comment,[data-theme='dark'] #twikoo .tk-content,[data-theme='dark'] .tk-expand,[data-theme='dark'] .tk-submit:nth-child(1){background:#1d1b26;}[data-theme='dark'] .tk-comments-container>.tk-comment,[data-theme='dark'] .tk-expand,[data-theme='dark'] .tk-submit:nth-child(1){border-color:#42444a;}[data-theme='dark'] .tk-comments-container>.tk-comment{box-shadow:0px 0px 0px #ffffff00;}[data-theme='dark'] #twikoo .tk-content,[data-theme='dark'] .tk-expand,[data-theme='dark'] .tk-submit:nth-child(1){box-shadow:inset 0px 0px 0px 1px #42444a;}[data-theme='dark'] #twikoo .tk-content:hover{box-shadow:inset 0px 0px 3px 1px #5f8ecf87;}@media screen and (min-width:980px){#aside-content #card-toc .toc-content .toc-link.active{line-height:1.2;border-radius:12px;border-left-color:var(--heo-hovertext);background-color:var(--heo-card-bg);color:var(--heo-lighttext);font-weight:bold;font-size:20px;}[data-theme=dark].toc .toc-item.active .toc-link .toc-text{color:var(--heo-white);}#aside-content #card-toc .toc-content .toc-item.active .toc-link{opacity:1;border-radius:8px;}#aside-content #card-toc .toc-content .toc-link{line-height:1.2;padding:8px;border-left:0px solid transparent;border-radius:12px;color:var(--heo-secondtext);cursor:default;}#aside-content #card-toc .toc-content .toc-link:not(.active) span{opacity:0.6;cursor:pointer;filter:blur(1px);transition:0.3s;}#aside-content #card-toc:hover .toc-content .toc-link:not(.active) span{filter:blur(0px);opacity:1;}#aside-content #card-toc .toc-content .toc-link:not(.active) span:hover{color:var(--heo-lighttext);}}
package/css/style.js CHANGED
@@ -1,45 +1,119 @@
1
+ /** 复制提示 监听copy事件 */
2
+ document.addEventListener("copy", function(e) {
3
+ //复制的内容
4
+ btf.snackbarShow('复制成功,请遵循GPL协议', false, 3000)
5
+ })
6
+ // F12提示 检测按键
7
+ window.onkeydown = function(e) {
8
+ if (e.keyCode === 123) {
9
+ btf.snackbarShow('开发者模式已打开,请遵循GPL协议', false, 3000)
10
+ }
11
+ }
12
+ // 返回顶部 显示网页阅读进度
13
+ window.onscroll = percent; // 执行函数
14
+ // 页面百分比
15
+ function percent() {
16
+ let a = document.documentElement.scrollTop || window.pageYOffset, // 卷去高度
17
+ b =
18
+ Math.max(
19
+ document.body.scrollHeight,
20
+ document.documentElement.scrollHeight,
21
+ document.body.offsetHeight,
22
+ document.documentElement.offsetHeight,
23
+ document.body.clientHeight,
24
+ document.documentElement.clientHeight
25
+ ) - document.documentElement.clientHeight, // 整个网页高度 减去 可视高度
26
+ result = Math.round((a / b) * 100), // 计算百分比
27
+ btn = document.querySelector("#percent"); // 获取图标
28
+
29
+ result <= 99 || (result = 99), (btn.innerHTML = result);
30
+ }
31
+
32
+ document.getElementById("page-name").innerText = document.title.split(" | XC's Blog")[0];
33
+ window.onscroll = percent; // 执行函数
34
+ // 页面百分比
35
+ function percent() {
36
+ let a = document.documentElement.scrollTop || window.pageYOffset, // 卷去高度
37
+ b =
38
+ Math.max(
39
+ document.body.scrollHeight,
40
+ document.documentElement.scrollHeight,
41
+ document.body.offsetHeight,
42
+ document.documentElement.offsetHeight,
43
+ document.body.clientHeight,
44
+ document.documentElement.clientHeight
45
+ ) - document.documentElement.clientHeight, // 整个网页高度
46
+ result = Math.round((a / b) * 100), // 计算百分比
47
+ up = document.querySelector("#go-up"); // 获取按钮
48
+
49
+ if (result <= 95) {
50
+ up.childNodes[0].style.display = "none";
51
+ up.childNodes[1].style.display = "block";
52
+ up.childNodes[1].innerHTML = result;
53
+ } else {
54
+ up.childNodes[1].style.display = "none";
55
+ up.childNodes[0].style.display = "block";
56
+ }
57
+ }
58
+ //切换夜间
59
+ function switchDarkMode() {
60
+ const nowMode = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light'
61
+ if (nowMode === 'light') {
62
+ activateDarkMode()
63
+ saveToLocal.set('theme', 'dark', 2)
64
+ GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)
65
+ } else {
66
+ activateLightMode()
67
+ saveToLocal.set('theme', 'light', 2)
68
+ GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)
69
+ }
70
+ // handle some cases
71
+ typeof utterancesTheme === 'function' && utterancesTheme()
72
+ typeof changeGiscusTheme === 'function' && changeGiscusTheme()
73
+ typeof FB === 'object' && window.loadFBComment()
74
+ typeof runMermaid === 'function' && window.runMermaid()
75
+ }
1
76
  categoriesBarActive()
2
77
  topCategoriesBarScroll()
3
78
 
4
79
  //分类条
5
80
  function categoriesBarActive() {
6
- var urlinfo = window.location.pathname;
7
- urlinfo = decodeURIComponent(urlinfo)
8
- console.log(urlinfo);
9
- //判断是否是首页
10
- if (urlinfo == '/') {
11
- if (document.querySelector('#category-bar')) {
12
- document.getElementById('首页').classList.add("select")
13
- }
14
- } else {
15
- // 验证是否是分类链接
16
- var pattern = /\/categories\/.*?\//;
17
- var patbool = pattern.test(urlinfo);
18
- console.log(patbool);
19
- // 获取当前的分类
20
- if (patbool) {
21
- var valuegroup = urlinfo.split("/");
22
- console.log(valuegroup[2]);
23
- // 获取当前分类
24
- var nowCategorie = valuegroup[2];
25
- if (document.querySelector('#category-bar')) {
26
- document.getElementById(nowCategorie).classList.add("select");
27
- }
28
- }
29
- }
81
+ var urlinfo = window.location.pathname;
82
+ urlinfo = decodeURIComponent(urlinfo)
83
+ console.log(urlinfo);
84
+ //判断是否是首页
85
+ if (urlinfo == '/') {
86
+ if (document.querySelector('#category-bar')) {
87
+ document.getElementById('首页').classList.add("select")
88
+ }
89
+ } else {
90
+ // 验证是否是分类链接
91
+ var pattern = /\/categories\/.*?\//;
92
+ var patbool = pattern.test(urlinfo);
93
+ console.log(patbool);
94
+ // 获取当前的分类
95
+ if (patbool) {
96
+ var valuegroup = urlinfo.split("/");
97
+ console.log(valuegroup[2]);
98
+ // 获取当前分类
99
+ var nowCategorie = valuegroup[2];
100
+ if (document.querySelector('#category-bar')) {
101
+ document.getElementById(nowCategorie).classList.add("select");
102
+ }
103
+ }
104
+ }
30
105
 
31
106
  }
32
-
33
107
  //鼠标控制横向滚动
34
108
  function topCategoriesBarScroll() {
35
- if (document.getElementById("category-bar-items")) {
36
- let xscroll = document.getElementById("category-bar-items");
37
- xscroll.addEventListener("mousewheel", function(e) {
38
- //计算鼠标滚轮滚动的距离
39
- let v = -e.wheelDelta / 2;
40
- xscroll.scrollLeft += v;
41
- //阻止浏览器默认方法
42
- e.preventDefault();
43
- }, false);
44
- }
109
+ if (document.getElementById("category-bar-items")) {
110
+ let xscroll = document.getElementById("category-bar-items");
111
+ xscroll.addEventListener("mousewheel", function(e) {
112
+ //计算鼠标滚轮滚动的距离
113
+ let v = -e.wheelDelta / 2;
114
+ xscroll.scrollLeft += v;
115
+ //阻止浏览器默认方法
116
+ e.preventDefault();
117
+ }, false);
118
+ }
45
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webxc",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "webxc\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[Dwebxc-\u001b[C\u001bwebxc",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/css/mg.css DELETED
@@ -1,870 +0,0 @@
1
-
2
- /* 最新文章图标 */
3
- #recent-posts>.recent-post-item {
4
- position: relative;
5
- }
6
- .newPost-left,
7
- .newPost-right {
8
- position: absolute;
9
- top: 0;
10
- color: #fff;
11
- padding: 0 18px;
12
- background-color: #3b70fc;
13
- border-radius: 0 0 10px 10px;
14
- }
15
- .newPost-left {
16
- left: 15px;
17
- }
18
- .newPost-right {
19
- right: 15px;
20
- }
21
- /* 鼠标悬停文章图片特效 */
22
- #recent-posts>.recent-post-item .post_cover {
23
- overflow: hidden;
24
- border-radius: 12px;
25
- position: relative;
26
- width: 44%;
27
- height: 100%;
28
- }
29
- #recent-posts > .recent-post-item:hover .post_cover::after {
30
- -webkit-transform: scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);
31
- -moz-transform: scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);
32
- -o-transform: scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);
33
- -ms-transform: scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);
34
- transform: scale3d(2,1,1) rotate(60deg) translate3d(0,130%,0);
35
- }
36
- #recent-posts > .recent-post-item .post_cover::after {
37
- position: absolute;
38
- top: 0;
39
- left: 0;
40
- width: 100%;
41
- height: 100%;
42
- background: rgba(255,255,255,.5);
43
- content: '';
44
- -webkit-transition: -webkit-transform .3s;
45
- -moz-transition: -moz-transform .3s;
46
- -o-transition: -o-transform .3s;
47
- -ms-transition: -ms-transform .3s;
48
- transition: transform .5s;
49
- -webkit-transform: scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);
50
- -moz-transform: scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);
51
- -o-transform: scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);
52
- -ms-transform: scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);
53
- transform: scale3d(2,1,1) rotate(60deg) translate3d(15%,-150%,0);
54
- }
55
- #nav .menus_items {
56
- top: 0 !important;
57
- }
58
- #nav .menus_items .menus_item:hover .menus_item_child {
59
- border-radius: 16px;
60
- }
61
- #menus > div.menus_items > div > a {
62
- font-size: 13px !important;
63
- text-shadow: 1px 1px 1px transparent !important;
64
- }
65
- #nav.show {
66
- background: #f7f9fe;
67
- }
68
- @media screen and (min-width: 980px) {
69
- [data-theme='dark'] #recent-posts>.recent-post-item,
70
- #aside-content .card-widget {
71
- border: 1px solid #42444a !important;
72
- }
73
- }
74
- @media screen and (min-width: 980px) {
75
- [data-theme='dark'] #aside-content .card-widget,
76
- .layout>div:first-child:not(.recent-posts) {
77
- border: 1px solid #42444a !important;
78
- }
79
- }
80
- @media screen and (min-width: 980px) {
81
- [data-theme='dark'] .layout>div:first-child:not(.recent-posts) {
82
- border: 1px solid #42444a !important;
83
- }
84
- }
85
- .iconfont {
86
- vertical-align: bottom;
87
- }
88
- #nav a:hover {
89
- background: var(--anzhiyu-main);
90
- transition: 0.3s;
91
- }
92
-
93
- #nav-totop:hover .totopbtn i {
94
- opacity: 1;
95
- }
96
- #nav-totop #percent {
97
- font-size: 12px;
98
- background: var(--anzhiyu-white);
99
- color: var(--anzhiyu-main);
100
- width: 25px;
101
- height: 25px;
102
- border-radius: 35px;
103
- display: flex;
104
- justify-content: center;
105
- align-items: center;
106
- transition: 0.3s;
107
- }
108
- .nav-fixed #nav-totop #percent,
109
- .page #nav-totop #percent {
110
- background: var(--font-color);
111
- color: var(--card-bg);
112
- font-size: 13px;
113
- }
114
-
115
- #nav-totop {
116
- width: 35px;
117
- }
118
- #page-header:not(.is-top-bar) #percent {
119
- transition: 0.3s;
120
- }
121
- #page-header:not(.is-top-bar) #nav-totop {
122
- width: 0;
123
- opacity: 0;
124
- transition: width 0.3s, opacity 0.2s;
125
- margin-left: 0 !important;
126
- }
127
- #nav-totop #percent {
128
- font-weight: 700;
129
- }
130
- #nav-totop:hover #percent {
131
- opacity: 0;
132
- transform: scale(1.5);
133
- font-weight: 700;
134
- }
135
- #page-header #nav #nav-right div {
136
- margin-left: 0.5rem;
137
- padding: 0;
138
- }
139
-
140
- #nav-totop {
141
- display: flex;
142
- align-items: center;
143
- justify-content: center;
144
- transition: 0.3s;
145
- }
146
- .nav-button {
147
- cursor: pointer;
148
- }
149
- div#menus {
150
- display: flex;
151
- align-items: center;
152
- }
153
- #page-header #nav .nav-button a {
154
- height: 35px;
155
- width: 35px;
156
- display: flex;
157
- align-items: center;
158
- justify-content: center;
159
- }
160
-
161
- #nav .site-page {
162
- padding-bottom: 0px;
163
- }
164
- #nav *::after {
165
- background-color: transparent !important;
166
- }
167
-
168
- /* 顶栏修改 */
169
- #nav .menus_items .menus_item .menus_item_child li a {
170
- padding: 2px 16px;
171
- }
172
- #nav .menus_items .menus_item .menus_item_child li:hover a {
173
- color: white !important;
174
- }
175
-
176
- #nav .menus_items .menus_item .menus_item_child li {
177
- margin: 6px;
178
- border-radius: 5px;
179
- transition: all 0.3s;
180
- display: inline-block;
181
- margin: 0 3px;
182
- }
183
- #nav .menus_items .menus_item .menus_item_child:before {
184
- top: -19px;
185
- }
186
- #site-name,
187
- .shuoshuo {
188
- white-space: nowrap;
189
- overflow: hidden;
190
- }
191
- #site-name {
192
- padding: 0 8px;
193
- position: relative;
194
- display: flex;
195
- align-items: center;
196
- justify-content: center;
197
- transition: 0.3s;
198
- }
199
-
200
- #blog_name #site-name i {
201
- opacity: 0;
202
- position: absolute;
203
- }
204
-
205
- #blog_name #site-name:hover .title {
206
- opacity: 0;
207
- }
208
-
209
- #blog_name #site-name:hover i {
210
- opacity: 1;
211
- transform: scale(1.01);
212
- color: white;
213
- }
214
- /* 圆角隐藏 */
215
- ul.menus_item_child {
216
- border-radius: 5px;
217
- }
218
-
219
- /* 一级菜单居中 */
220
- #nav .menus_items {
221
- position: absolute;
222
- width: fit-content;
223
- left: 50%;
224
- transform: translateX(-50%);
225
- display: flex;
226
- flex-direction: row;
227
- justify-content: center;
228
- align-items: center;
229
- height: 60px;
230
- }
231
-
232
- #nav .menus_items .menus_item:hover .menus_item_child {
233
- display: block;
234
- transform: translateX(-50%);
235
- right: auto;
236
- left: auto !important;
237
- padding: 6px 4px;
238
- box-sizing: content-box;
239
- line-height: 35px;
240
- }
241
- #nav .menus_items .menus_item:hover {
242
- padding: 0 5px 27px 5px !important;
243
- margin-bottom: -14.5px !important;
244
- }
245
-
246
- #nav .menus_items .menus_item .menus_item_child {
247
- top: 44px;
248
- }
249
-
250
- @media screen and (min-width: 768px) {
251
- .page .menus_item:hover > a.site-page {
252
- color: var(--anzhiyu-white) !important;
253
- background: var(--anzhiyu-main);
254
- transition: 0.3s;
255
- box-shadow: var(--anzhiyu-shadow-main);
256
- }
257
- }
258
- #nav {
259
- padding: 0 calc((100% - 1420px) / 2);
260
- backdrop-filter: saturate(180%) blur(20px);
261
- }
262
-
263
- #nav a {
264
- border-radius: 8px;
265
- color: var(--font-color);
266
- }
267
- .page #nav a:hover {
268
- color: var(--anzhiyu-white) !important;
269
- background: var(--anzhiyu-main);
270
- transition: 0.3s;
271
- box-shadow: var(--anzhiyu-shadow-main);
272
- }
273
-
274
- #menus > div.menus_items > div > a {
275
- letter-spacing: 0.3rem;
276
- font-weight: 700;
277
- padding: 0em 0.1em 0em 0.5em;
278
- height: 35px;
279
- line-height: 35px;
280
- }
281
- #nav .menus_items .menus_item {
282
- padding: 0 5px;
283
- display: flex;
284
- flex-direction: column;
285
- margin: auto;
286
- align-items: center;
287
- }
288
-
289
- #nav div#toggle-menu {
290
- padding: 2px 0 4px 6px;
291
- }
292
-
293
- #nav-totop .totopbtn i {
294
- position: absolute;
295
- display: flex;
296
- opacity: 0;
297
- }
298
- #page-name::before {
299
- font-size: 18px;
300
- position: absolute;
301
- width: 100%;
302
- height: 100%;
303
- border-radius: 8px;
304
- color: white !important;
305
- top: 0;
306
- left: 0;
307
- content: "回到顶部";
308
- background-color: var(--anzhiyu-theme);
309
- transition: all 0.3s;
310
- -webkit-transition: all 0.3s;
311
- -moz-transition: all 0.3s;
312
- -ms-transition: all 0.3s;
313
- -o-transition: all 0.3s;
314
- opacity: 0;
315
- box-shadow: 0 0 3px var(--anzhiyu-theme);
316
- line-height: 45px; /*如果垂直位置不居中可以微调此值,也可以删了*/
317
- }
318
- #page-name:hover:before {
319
- opacity: 1;
320
- }
321
- #name-container {
322
- transition: all 0.3s;
323
- -webkit-transition: all 0.3s;
324
- -moz-transition: all 0.3s;
325
- -ms-transition: all 0.3s;
326
- -o-transition: all 0.3s;
327
- }
328
- #name-container:hover {
329
- transform: translateX(-50%) scale(1.03);
330
- }
331
- #page-name {
332
- position: relative;
333
- padding: 10px 30px;
334
- }
335
-
336
- center#name-container {
337
- position: absolute;
338
- width: 100%;
339
- left: 50%;
340
- transform: translateX(-50%);
341
- font-family: "ZhuZiAYuanJWD";
342
- }
343
- .nav-fixed.nav-visible #name-container {
344
- transition: 0.3s;
345
- transform: translate(-50%, 60px);
346
- }
347
- .nav-fixed.nav-visible #menus .menus_items {
348
- transform: translate(-50%);
349
- transition: 0.3s;
350
- line-height: 60px;
351
- }
352
- .nav-fixed #menus .menus_items {
353
- transform: translate(-50%, -60px);
354
- transition: 0.3s;
355
- }
356
- .nav-fixed #name-container {
357
- top: 15%;
358
- transition: 0.3s;
359
- }
360
- #name-container {
361
- bottom: 60px;
362
- }
363
-
364
- .mask-name-container {
365
- max-width: 1200px;
366
- width: 50%;
367
- height: 100%;
368
- position: absolute;
369
- overflow: hidden;
370
- left: 50%;
371
- transform: translateX(-50%);
372
- }
373
-
374
- @media screen and (max-width: 980px) {
375
- .mask-name-container {
376
- width: 65%;
377
- }
378
- }
379
-
380
- @media screen and (max-width: 768px) {
381
- .mask-name-container {
382
- display: none;
383
- }
384
- }
385
- #sidebar #sidebar-menus .menus_items .site-page:hover {
386
- color: var(--anzhiyu-white);
387
- border-radius: var(--anzhiyu-border-radius);
388
- }
389
- #nav .menus_items .menus_item > a > i:last-child {
390
- display: none;
391
- }
392
- #nav #search-button {
393
- font-size: 1.3em;
394
- }
395
-
396
- @media screen and (min-width: 900px) {
397
- #nav .back-home-button:hover {
398
- box-shadow: var(--anzhiyu-shadow-main);
399
- }
400
- }
401
-
402
- .back-home-button:hover {
403
- background: var(--anzhiyu-main);
404
- color: var(--anzhiyu-white) !important;
405
- }
406
- .back-home-button {
407
- display: flex;
408
- width: 35px;
409
- height: 35px;
410
- padding: 0 !important;
411
- align-items: center;
412
- justify-content: center;
413
- margin-right: 4px;
414
- transition: 0.3s;
415
- border-radius: 8px;
416
- }
417
-
418
- .back-home-button:hover .back-menu-list-groups {
419
- display: flex;
420
- opacity: 1;
421
- transition: 0.3s;
422
- top: 55px;
423
- pointer-events: auto;
424
- left: 0;
425
- }
426
- .back-home-button .back-menu-list-groups {
427
- position: absolute;
428
- top: 65px;
429
- left: 0;
430
- background: var(--anzhiyu-card-bg);
431
- border-radius: 12px;
432
- border: var(--style-border);
433
- flex-direction: column;
434
- font-size: 12px;
435
- color: var(--anzhiyu-secondtext);
436
- box-shadow: var(--anzhiyu-shadow-border);
437
- transition: 0s;
438
- opacity: 0;
439
- pointer-events: none;
440
- }
441
-
442
- .back-home-button .back-menu-list-group {
443
- display: flex;
444
- flex-direction: column;
445
- }
446
- .back-home-button .back-menu-list-group .back-menu-list-title {
447
- margin: 8px 0 0 16px;
448
- transition: 0.3s;
449
- }
450
- .back-home-button .back-menu-list {
451
- display: flex;
452
- flex-direction: column;
453
- }
454
- .back-home-button .back-menu-list::before {
455
- position: absolute;
456
- top: -22px;
457
- left: 0px;
458
- width: 100%;
459
- height: 25px;
460
- content: "";
461
- }
462
-
463
- .back-home-button .back-menu-list-group:hover .back-menu-list-title {
464
- color: var(--anzhiyu-main);
465
- }
466
- .back-home-button .back-menu-list-groups:hover {
467
- border: var(--style-border-hover);
468
- }
469
- .back-home-button .back-menu-list .back-menu-item {
470
- display: flex;
471
- align-items: center;
472
- margin: 4px 8px;
473
- padding: 4px 8px !important;
474
- transition: 0.3s;
475
- border-radius: 8px;
476
- }
477
- .back-home-button .back-menu-list .back-menu-item .back-menu-item-text {
478
- font-size: var(--global-font-size);
479
- margin-left: 0.5rem;
480
- color: var(--anzhiyu-fontcolor);
481
- white-space: nowrap;
482
- }
483
- #nav #blog_name {
484
- flex-wrap: nowrap;
485
- height: 60px;
486
- display: flex;
487
- align-items: center;
488
- /* z-index: 102; */
489
- transition: 0.3s;
490
- }
491
- .back-home-button .back-menu-list .back-menu-item .back-menu-item-icon {
492
- width: 24px;
493
- height: 24px;
494
- border-radius: 24px;
495
- background: var(--anzhiyu-secondbg);
496
- }
497
- #page-header #nav .back-home-button {
498
- cursor: pointer;
499
- position: relative;
500
- }
501
-
502
- @media screen and (min-width: 1300px) {
503
- #nav a:hover {
504
- transform: scale(1.03);
505
- }
506
- }
507
- .back-home-button .back-menu-list .back-menu-item:hover .back-menu-item-text {
508
- color: var(--anzhiyu-white);
509
- }
510
- .back-menu-item-icon.loading img {
511
- width: 25px;
512
- }
513
-
514
- #page-header #nav #menus .nav-button.long a.totopbtn,
515
- #page-header #nav #menus .nav-button.long,
516
- #page-header #nav #menus .nav-button.long a.totopbtn span {
517
- width: 70px;
518
- }
519
- #page-header #nav #menus .nav-button.long a.totopbtn span {
520
- border-radius: 35px;
521
- display: flex;
522
- justify-content: center;
523
- align-items: center;
524
- transition: 0.3s;
525
- white-space: nowrap;
526
- }
527
-
528
- #page-header #nav #menus .nav-button.long a.totopbtn:hover {
529
- border-radius: 35px;
530
- height: 30px;
531
- }
532
-
533
- #nav #search-button {
534
- padding-left: 0;
535
- }
536
- #page-header #nav .nav-button {
537
- margin-left: 0.5rem;
538
- padding: 0;
539
- }
540
- #page-header:not(.is-top-bar) #nav-totop a {
541
- display: none;
542
- }
543
- #search-button a.site-page.social-icon.search span {
544
- display: none;
545
- }
546
- /* 颜色 */
547
- :root {
548
- --anzhiyu-theme-op: #4259ef23;
549
- --anzhiyu-white: #fff;
550
- --anzhiyu-black: #000;
551
- --anzhiyu-none: rgba(0, 0, 0, 0);
552
- --anzhiyu-gray: #999999;
553
- --anzhiyu-yellow: #ffc93e;
554
- --anzhiyu-border-radius: 8px;
555
- --anzhiyu-main: var(--anzhiyu-theme);
556
- --anzhiyu-main-op: var(--anzhiyu-theme-op);
557
- --anzhiyu-shadow-theme: 0 8px 12px -3px var(--anzhiyu-theme-op);
558
- --anzhiyu-shadow-main: 0 8px 12px -3px var(--anzhiyu-main-op);
559
- --anzhiyu-shadow-blue: 0 8px 12px -3px rgba(40, 109, 234, 0.2);
560
- --anzhiyu-shadow-white: 0 8px 12px -3px rgba(255, 255, 255, 0.2);
561
- --anzhiyu-shadow-black: 0 0 12px 4px rgba(0, 0, 0, 0.05);
562
- --anzhiyu-shadow-yellow: 0px 38px 77px -26px rgba(255, 201, 62, 0.12);
563
- --anzhiyu-shadow-red: 0 8px 12px -3px #ee7d7936;
564
- --anzhiyu-shadow-green: 0 8px 12px -3px #87ee7936;
565
- --anzhiyu-shadow-border: 0 8px 16px -4px #2c2d300c;
566
- --anzhiyu-logo-color: linear-gradient(215deg, #4584ff 30%, #ff7676 70%);
567
- --style-border: 1px solid var(--anzhiyu-card-border);
568
- --anzhiyu-blue-main: #3b70fc;
569
- --style-border-hover: 1px solid var(--anzhiyu-main);
570
- --style-border-dashed: 1px dashed var(--anzhiyu-theme-op);
571
- --style-border-avatar: 4px solid var(--anzhiyu-background);
572
- --style-border-always: 1px solid var(--anzhiyu-card-border);
573
- --anzhiyu-white-acrylic1: #fefeff !important;
574
- --anzhiyu-white-acrylic2: #fcfdff !important;
575
- --anzhiyu-black-acrylic2: #08080a !important;
576
- --anzhiyu-black-acrylic1: #0b0b0e !important;
577
- }
578
-
579
- [data-theme="light"] {
580
- --anzhiyu-theme: #3b70fc;
581
- --anzhiyu-theme-op: #4259ef23;
582
- --anzhiyu-blue: #3b70fc;
583
- --anzhiyu-red: #d8213c;
584
- --anzhiyu-pink: #ff7c7c;
585
- --anzhiyu-green: #57bd6a;
586
- --anzhiyu-fontcolor: #363636;
587
- --anzhiyu-background: #f7f9fe;
588
- --anzhiyu-reverse: #000;
589
- --anzhiyu-maskbg: rgba(255, 255, 255, 0.6);
590
- --anzhiyu-maskbgdeep: rgba(255, 255, 255, 0.85);
591
- --anzhiyu-hovertext: var(--anzhiyu-theme);
592
- --anzhiyu-ahoverbg: #f7f7fa;
593
- --anzhiyu-lighttext: var(--anzhiyu-main);
594
- --anzhiyu-secondtext: rgba(60, 60, 67, 0.6);
595
- --anzhiyu-scrollbar: rgba(60, 60, 67, 0.4);
596
- --anzhiyu-card-btn-bg: #edf0f7;
597
- --anzhiyu-post-blockquote-bg: #fafcff;
598
- --anzhiyu-post-tabs-bg: #f2f5f8;
599
- --anzhiyu-secondbg: #edf0f7;
600
- --anzhiyu-shadow-nav: 0 5px 12px -5px rgba(102, 68, 68, 0.05);
601
- --anzhiyu-card-bg: #fff;
602
- --anzhiyu-shadow-lightblack: 0 5px 12px -5px rgba(102, 68, 68, 0);
603
- --anzhiyu-shadow-light2black: 0 5px 12px -5px rgba(102, 68, 68, 0);
604
- --anzhiyu-card-border: #c0c6d8;
605
- }
606
-
607
- [data-theme="dark"] {
608
- --anzhiyu-theme: #3b70fc;
609
- --anzhiyu-theme-op: #0084ff23;
610
- --anzhiyu-blue: #3b70fc;
611
- --anzhiyu-red: #ff3842;
612
- --anzhiyu-pink: #ff7c7c;
613
- --anzhiyu-green: #57bd6a;
614
- --anzhiyu-fontcolor: #f7f7fa;
615
- --anzhiyu-background: #18171d;
616
- --anzhiyu-reverse: #fff;
617
- --anzhiyu-maskbg: rgba(0, 0, 0, 0.6);
618
- --anzhiyu-maskbgdeep: rgba(0, 0, 0, 0.85);
619
- --anzhiyu-hovertext: #3b70fc;
620
- --anzhiyu-ahoverbg: #fff;
621
- --anzhiyu-lighttext: #f2b94b;
622
- --anzhiyu-secondtext: #a1a2b8;
623
- --anzhiyu-scrollbar: rgba(200, 200, 223, 0.4);
624
- --anzhiyu-card-btn-bg: #30343f;
625
- --anzhiyu-post-blockquote-bg: #000;
626
- --anzhiyu-post-tabs-bg: #121212;
627
- --anzhiyu-secondbg: #30343f;
628
- --anzhiyu-shadow-nav: 0 5px 20px 0px rgba(28, 28, 28, 0.4);
629
- --anzhiyu-card-bg: #1d1b26;
630
- --anzhiyu-shadow-lightblack: 0 5px 12px -5px rgba(102, 68, 68, 0);
631
- --anzhiyu-shadow-light2black: 0 5px 12px -5px rgba(102, 68, 68, 0);
632
- --anzhiyu-card-border: #42444a;
633
- }
634
- /* 返回顶部 */
635
- button#go-up #percent {
636
- display: none;
637
- font-weight: bold;
638
- font-size: 15px !important;
639
- }
640
- button#go-up span {
641
- font-size: 12px !important;
642
- margin-right: -1px;
643
- }
644
- /* 鼠标滑动到按钮上时显示返回顶部图标 */
645
- button#go-up:hover i {
646
- display: block !important;
647
- }
648
- button#go-up:hover #percent {
649
- display: none !important;
650
- }
651
- /* 轮播图 */
652
- .swiper-button-next:after,
653
- .swiper-button-prev:after {
654
- color: #fff !important;
655
- }
656
- /* 轮播图高度 */
657
- .blog-slider__content {
658
- height: 144px !important;
659
- }
660
- #recent-posts>.recent-post-item:first-child {
661
- border-radius: 20px 20px 20px 20px !important;
662
- }
663
- /* 标签导航栏颜色 */
664
- :root {
665
- --heo-main: #3b70fc !important;
666
- --scrollbar-color: #3b70fc !important;
667
- }
668
- /* 导航栏毛玻璃 */
669
- #nav {
670
- backdrop-filter: saturate(120%) blur(0px) !important;
671
- }
672
- /* 侧栏功能按钮魔改 */
673
- #rightside>div>button, #to_comment {
674
- border-radius: 50% !important;
675
- }
676
- #rightside > div > button, #rightside > div > a {
677
- width: 38px !important;
678
- height: 38px !important;
679
- }
680
- /* 夜间模式适配 */
681
- [data-theme='dark'] #nav .menus_items .menus_item .menus_item_child {
682
- background-color: #2a2739;
683
- }
684
- [data-theme='dark'] .card-tag-cloud a,
685
- [data-theme='dark'] .tag-cloud-list.is-center a {
686
- border-color: #42444a;
687
- }
688
- [data-theme=dark] #recent-posts > .recent-post-item,
689
- [data-theme=dark] #aside-content .card-widget,
690
- [data-theme=dark] .layout > div:first-child:not(.recent-posts),
691
- [data-theme=dark] #web_bg,
692
- [data-theme='dark'] #body-wrap #footer:before,
693
- [data-theme='dark'] #web_bg:before,
694
- [data-theme='dark'] #nav.show {
695
- background-color: #1d1b26 !important;
696
- }
697
- /* 适配移动端 */
698
- @media screen and (max-width: 768px) {
699
- /* 切换夜间模式魔改 */
700
- .snackbar-container {
701
- border-radius: 12px 12px 0px 0px !important;
702
- }
703
- /* 文章列表边框夜间适配 */
704
- [data-theme='dark'] #recent-posts>.recent-post-item:not(:first-child) {
705
- border-bottom: 1px dashed #4e5056 !important;
706
- }
707
- /* 移动端侧栏列表 */
708
- #sidebar #sidebar-menus {
709
- right: -290px !important;
710
- border-radius: 8px 0px 0px 8px;
711
- background: #f7f9fe;
712
- }
713
- [data-theme='dark'] #sidebar #sidebar-menus {
714
- background: #1d1b26;
715
- }
716
- #sidebar #sidebar-menus .menus_items .site-page:hover {
717
- background: #3b70fc !important;
718
- }
719
- /* 文章下边框 */
720
- #recent-posts>.recent-post-item:not(:first-child) {
721
- border-bottom: 1px dashed #abadb4 !important;
722
- }
723
- /* 分类导航栏颜色 */
724
- #category-bar {
725
- background: #f7f9fe !important;
726
- }
727
- [data-theme=dark] #category-bar {
728
- background: #1d1b26 !important;
729
- }
730
- /* 轮播图外边距 */
731
- #recent-posts>.recent-post-item:first-child {
732
- margin-left: 6px;
733
- margin-right: 6px;
734
- }
735
- /* 文章内边距 */
736
- .layout > div:first-child:not(.recent-posts) {
737
- padding: 0px 10px !important;
738
- }
739
- ol {
740
- padding-left: 20px !important;
741
- }
742
- #article-container h1,
743
- #article-container h2,
744
- #article-container h3,
745
- #article-container h4,
746
- #article-container h5,
747
- #article-container h6 {
748
- padding-left: 20px !important;
749
- }
750
- /* 友链样式 */
751
- #article-container .flink .flink-list > .flink-list-item {
752
- height: 140px;
753
- }
754
- #article-container .flink .flink-list > .flink-list-item a .flink-item-icon {
755
- margin: 8px 0px 0px 56px !important;
756
- box-shadow: 0px 0px 8px 3px #ccc;
757
- }
758
- #article-container .flink .flink-item-name {
759
- margin-top: 60px;
760
- overflow: visible;
761
- text-overflow: auto;
762
- white-space: normal;
763
- font-size: 0.9rem !important;
764
- }
765
- #article-container .flink .flink-item-desc {
766
- padding-top: 5px !important;
767
- }
768
- /* 移动端背景颜色改变 */
769
- :root {
770
- --card-bg: #f7f9fe !important;
771
- --heo-main: #3b70fc !important;
772
- }
773
- /* 标签导航栏间距 */
774
- #category-bar {
775
- margin-top: 20px;
776
- }
777
- #recent-posts {
778
- margin-top: 160px !important;
779
- }
780
- /* 首页文章卡片圆角 */
781
- #recent-posts :nth-of-type(3).recent-post-item {
782
- border-radius: 20px 20px 0px 0px !important;
783
- }
784
- .layout #recent-posts :nth-of-type(31).recent-post-item {
785
- border-radius: 0px 0px 0px 0px !important;
786
- }
787
- #recent-posts :nth-of-type(32).recent-post-item {
788
- border-radius: 0px 0px 20px 20px !important;
789
- }
790
- /* 文章目录样式 */
791
- #aside-content #card-toc {
792
- background: #fff;
793
- border-radius: 15px !important;
794
- }
795
- /* 网站资讯的底部圆角 */
796
- .layout #aside-content .card-widget.card-webinfo {
797
- border-radius: 0px 0px 0px 0px !important;
798
- }
799
- }
800
- /* PC端适配 */
801
- @media screen and (min-width: 980px) {
802
- .layout #recent-posts {
803
- margin-top: -12px !important;
804
- }
805
- #category-bar {
806
- margin-top: 20px;
807
- }
808
- .cardHover, .error404 #error-wrap .error-content, .layout > div:first-child:not(.recent-posts), #recent-posts > .recent-post-item, #aside-content .card-widget, .layout > .recent-posts .pagination > *:not(.space) {
809
- border: 1px solid #e0e3ed !important;
810
- box-shadow: 0px 0px 0px #fff !important;
811
- }
812
- #aside-content .card-widget:hover, #bber-talk:hover, #container, #post .post-copyright:hover, #recent-posts>.recent-post-item:hover, #sta_chart:hover, #statistic .item:hover, .cardHover:hover, .error404 #error-wrap .error-content:hover, .layout>div:first-child:not(.recent-posts):hover, .search-dialog {
813
- border: 1px solid #4976f5 !important;
814
- }
815
- .layout>div:first-child:not(.recent-posts) {
816
- border-radius: 15px !important;
817
- }
818
- }
819
- #footer {
820
- background: #f7f9fe;
821
- }
822
- /* 页脚样式 */
823
- #footer-wrap,
824
- #footer-wrap a {
825
- color: #4c4948;
826
- }
827
- /* 导航栏样式 */
828
- #page-header.not-top-img #nav {
829
- background: #f7f9fe;
830
- box-shadow: 0px 0px 0px #f7f9fe !important;
831
- }
832
- #article-container .flink .flink-list>.flink-list-item:hover {
833
- background-color: #3b70fc !important;
834
- box-shadow: 0px 0px 0px#fff !important;
835
- }
836
- /* 分类样式 */
837
- .category-lists ul li:nth-child(19) {
838
- background: linear-gradient(to right, #c0c0aa, #1cefff);
839
- }
840
- .category-lists ul li:nth-child(20) {
841
- background: linear-gradient(to right, #9796f0, #fbc7d4);
842
- }
843
- .imgHover:hover, .error404 #error-wrap .error-content .error-img img:hover, .article-sort-item-img img:hover, #recent-posts > .recent-post-item .post_cover img.post_bg:hover, #aside-content .aside-list > .aside-list-item .thumbnail > img:hover, #recent-posts > .recent-post-item:hover img.post_bg {
844
- transform: scale(1.06) !important;
845
- }
846
- /* [data-theme='dark'] #nav.show {
847
- background: rgba(18,18,18,0.8) !important;
848
- } */
849
- /* 导航栏 文章 文章头图切换动画 */
850
- /* #page-header {
851
- -webkit-animation: header-effect 1s;
852
- -moz-animation: header-effect 1s;
853
- -o-animation: header-effect 1s;
854
- -ms-animation: header-effect 1s;
855
- /* animation: header-effect 0.5s !important; */
856
- /* } */
857
- /* #content-inner, #footer { */
858
- /* -webkit-animation: bottom-top 1s; */
859
- /* -moz-animation: bottom-top 1s; */
860
- /* -o-animation: bottom-top 1s; */
861
- /* -ms-animation: bottom-top 1s; */
862
- /* animation: bottom-top 1s !important; */
863
- /* } */
864
- /* #nav.show { */
865
- /* -webkit-animation: headerNoOpacity 1s; */
866
- /* -moz-animation: headerNoOpacity 1s; */
867
- /* -o-animation: headerNoOpacity 1s; */
868
- /* -ms-animation: headerNoOpacity 1s; */
869
- /* animation: headerNoOpacity 1s !important; */
870
- /* } */