惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
P
Privacy International News Feed
Hugging Face - Blog
Hugging Face - Blog
U
Unit 42
博客园 - 叶小钗
月光博客
月光博客
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
The Hacker News
The Hacker News
T
Tor Project blog
阮一峰的网络日志
阮一峰的网络日志
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Help Net Security
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Security Latest
Security Latest
I
Intezer
L
LINUX DO - 最新话题
Blog — PlanetScale
Blog — PlanetScale
T
The Exploit Database - CXSecurity.com
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Webroot Blog
Webroot Blog
WordPress大学
WordPress大学
A
About on SuperTechFans
P
Proofpoint News Feed
T
Tailwind CSS Blog
I
InfoQ
The Register - Security
The Register - Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
AWS News Blog
AWS News Blog
博客园 - Franky
Simon Willison's Weblog
Simon Willison's Weblog
Last Week in AI
Last Week in AI
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google Online Security Blog
Google Online Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Attack and Defense Labs
Attack and Defense Labs
T
Tenable Blog
大猫的无限游戏
大猫的无限游戏
K
Kaspersky official blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
W
WeLiveSecurity
S
Security @ Cisco Blogs
MongoDB | Blog
MongoDB | Blog

辰渊尘站

道歉信:关于 713 解锁视频中伪回锁内容的说明与反思 - 辰渊尘站 713解锁节来辣!小米17全系,k90pm又能解bl了 - 辰渊尘站 服务器面板迁移:从宝塔到 1Panel - 辰渊尘站 Subconverter 太臃肿?PHP 版轻量化替代来了! - 辰渊尘站 Astro框架Fuwari主题侧边栏添加Umami访问统计 为Fuwari框架适配友链状态显示 免费领取网易云音乐7天会员 小米MiMo Token Plan免费送辣! Astro框架Fuwari主题实现仿hexo-abbrlink功能 观《鬼灭之刃:无限城篇 第一章 猗窝座再袭》首映有感 为你anzhiyu主题的Twikoo评论系统恢复预览按钮 山东泰安泰山游记:煌煌泰山景,谦谦君子风 安知鱼主题实现友链状态前端显示 我敲!优选DNS牛大了 安知鱼主题侧边栏添加无聊湾 从零开始使用Hexo框架搭建属于你的博客(一)环境准备篇 记录下Hexo博客从本地构建迁移到Netlify,AI API Key 泄露问题与解决方案记录 云服务器宝塔部署Twikoo博客评论系统 手把手教你在Linux系统下部署MCSManager并搭建一个MC服务器 为你的Twikoo添加酷安表情包 记录一次博客评论迁移过程 记一次花嫁联名借记卡申领过程 为使用anzhiyu主题的博客加上十年之约进度条 有关建站一个月以来的一点点感想和后续计划 这可能是iOS自签的版本答案,二合一LiveContainer教程来辣! iOS侧载新选择!SideStore+LiveContainer,纯净无广,无限安装软件!!! 从零开始使用Hexo框架搭建属于你的博客(零)准备篇 Arch Linux+Hyprland从安装到使用只需这一篇(保姆级喂饭超全教程) - 辰渊尘站 恭喜你找到了本站的第一篇文档 - 辰渊尘站
安知鱼主题:修复背景图修改引发的深色模式可读性问题
辰渊尘 · 2025-09-18 · via 辰渊尘站
WARNING

修改前必读:

  • 本帖基于 Anzhiyu主题 进行修改方案编写,因此请读者优先掌握 Anzhiyu主题官方文档 的内容后再来进行魔改。
  • 由于修改内容过多,以及可能会导致意料之外的事情,推荐使用 Github 配合 VSCode 进行修改,方便随时备份恢复

前言#

我此前修改了博客深色模式下的背景为 Mo佬 同款,后面发现了一些问题,部分样式文本出现了可读性降低的问题,通过添加模糊效果解决,希望能帮到你。

修改#

改动涉及到很多部分,我来一个个讲该如何修改。建议每修改完一次就测试是否正常,避免竹篮打水一场空。

友链页折叠框文本#

友链页文本由于没有遮罩,看起来会很难受,我大多文字都在折叠框中,所以只修改全局折叠框增加模糊效果。

修改 themes/anzhiyu/source/css/_tags/folding.styl 文件

[data-theme="dark"]

details.folding-tag

- background: transparent

+ background: rgba(0, 0, 0, 0.3) // 半透明黑色

+ backdrop-filter: blur(10px) // 高斯模糊

+ -webkit-backdrop-filter: blur(10px)

+ border: 1px solid rgba(255,255,255,0.1) // 模糊边框

+ border-radius: 14px

+ color: rgba(255, 255, 255, 0.8)

[data-theme="dark"]

details[open]

- & > div

- &.content

- padding 16px

- margin -16px

- margin-top 0

- background: transparent;

- color rgba(255, 255, 255, 0.6)

+ details.folding-tag[open]

+ > div.content

+ background: transparent

+ color: rgba(255,255,255,0.8)

分类单标签页#

可能看到小标题有点懵,我举个例子:点击跳转到本站对应界面

修改 themes/anzhiyu/source/css/_extra/anzhiyu/custom.css 文件

[data-theme="dark"] div#category {

- background: transparent !important;

+ background: rgba(18, 18, 18, 0.6); /* 半透明黑色 */

+ backdrop-filter: blur(10px); /* 高斯模糊,数值可调 */

+ -webkit-backdrop-filter: blur(10px); /* 兼容 Safari */

}

/* md网站下划线 */

#article-container a:hover {

text-decoration: none !important;

顶部菜单栏(可选)#

本项只是单纯美化,不影响观看体验,如果你懒的话可以不动。

修改 themes/anzhiyu/source/css/_mode/darkmode.styl 文件

background-color: #525252

color: #e2f1ff

// 頭部

#page-header

&.nav-fixed > #nav,

&.not-top-img > #nav

- background: var(--anzhiyu-black);

+ background: rgba(18, 18, 18, 0.6) // 半透明背景

+ -webkit-backdrop-filter: blur(8px) // Safari

+ backdrop-filter: blur(8px)

box-shadow: 0 5px 6px -5px rgba(133, 133, 133, 0)

+ transition: background .3s, backdrop-filter .3s

.post

#page-header

&.nav-fixed > #nav

- background: var(--anzhiyu-card-bg);

- box-shadow: none

+ background: rgba(18, 18, 18, 0.6) // 半透明背景

+ -webkit-backdrop-filter: blur(8px) // Safari

+ backdrop-filter: blur(8px)

+ box-shadow: 0 5px 6px -5px rgba(133, 133, 133, 0)

+ transition: background .3s, backdrop-filter .3s

#post-comment

.comment-switch

if hexo-config('comments.text')

尾声#

基本上就这样,有部分代码是ai辅助修改的,如果有问题欢迎评论区指出;如果还有可读性低的地方欢迎指出,我会继续更新修改教程的。