From 3e543682fd4cb1b319df11aabd3b5c351cfb008e Mon Sep 17 00:00:00 2001 From: hkding0125 Date: Wed, 1 Oct 2025 14:33:30 +0800 Subject: [PATCH] Improve dark mode link contrast --- styles.css | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/styles.css b/styles.css index a0ee112..ffd3e92 100644 --- a/styles.css +++ b/styles.css @@ -67,6 +67,35 @@ h4{font-size:1.05em;color:#444;margin:20px 0 15px} hr{border:0;height:1px;background:#e5e5e5;margin:8px 0 18px} + /* 主体链接可读性 */ + .main-content a{ + color:var(--brand); + text-decoration-color:rgba(11,99,199,.4); + text-decoration-thickness:2px; + text-underline-offset:3px; + } + .main-content a:hover{ + color:#094a99; + text-decoration-color:#094a99; + } + .main-content a:visited{ + color:#6a4cc7; + text-decoration-color:rgba(106,76,199,.6); + } + + body.dark-mode .main-content a{ + color:#a8c3ff; + text-decoration-color:rgba(168,195,255,.7); + } + body.dark-mode .main-content a:hover{ + color:#c7d8ff; + text-decoration-color:#c7d8ff; + } + body.dark-mode .main-content a:visited{ + color:#d0beff; + text-decoration-color:rgba(208,190,255,.7); + } + /* 教育 */ .education-entry{margin-bottom:25px} .entry-line-1{display:flex;align-items:center}