|
预览
美化代码
来源:https://www.nodeseek.com/post-311746-1
- <script>
- /* 这部分这几个挂在 window 下的变量是哪吒内置的, 详见 https://nezha.wiki/guide/settings.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BB%A3%E7%A0%81 */
- window.CustomBackgroundImage = 'https://r2.369069.xyz/20250414_8d62ff03.jpg'; /* PC 端背景图 */
- window.CustomMobileBackgroundImage = 'https://img.xiny.cc/images/original/portrait/20250327_035423_4992.jpg'; /* 移动端背景图 */
- window.CustomLogo = 'https://xiny.cc/xiny/favicon.ico'; /* 页面左上角和标题栏展示的 Logo */
- window.CustomDesc = 'XINY'; /* 页面左上角副标题 */
- window.ShowNetTransfer = true; /* 服务器卡片是否显示上下行流量, 默认不显示 */
- window.DisableAnimatedMan = true;
- window.FixedTopServerName = true; /* 是否固定顶部显示服务器名称, 默认不固定 */
- window.CustomLinks = '[{"link":"https://xiny.cc/","name":"首页"},{"link":"https://blog.xiny.cc/","name":"博客"}]'; /* 自定义导航栏链接 */
- /* 自定义字体, 注意需要同步修改下方 CSS 中的 font-family */
- var link = document.createElement('link');
- link.rel = 'stylesheet';
- link.href = 'https://font.sec.miui.com/font/css?family=MiSans:400,700:MiSans'; // MiSans
- // link.href = 'https://npm.elemecdn.com/lxgw-wenkai-screen-webfont@1.7.0/style.css'; // 霞鹜文楷, font-family: 'LXGW WenKai Screen'
- document.head.appendChild(link);
- </script>
- <style>
- /* 自定义字体 */
- * {
- font-family: 'MiSans';
- }
- h1, h2, h3, h4, h5 {
- font-family: 'MiSans', sans-serif;
- }
- /* 背景压暗和模糊, 开了背景图建议开启 */
- .dark .bg-cover::after {
- content: '';
- position: absolute;
- inset: 0;
- backdrop-filter: blur(6px);
- background-color: rgba(0, 0, 0, 0);
- }
- .light .bg-cover::after {
- content: '';
- position: absolute;
- inset: 0;
- backdrop-filter: blur(6px);
- background-color: rgba(255, 255, 255, 0.1);
- }
- footer {
- display: none;
- }
- </style>
复制代码 服务器卡片下方显示周期性流量见给哪吒V1探针面板添加周期流量显示
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|