From 3e0eacdbddd77971a9788a731758414c541706b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=99=9A=E7=A9=BA=E4=BA=91=E9=A6=86?= Date: Fri, 24 Jan 2025 11:32:06 +0800 Subject: [PATCH] fix: correct light/dark mode styles for copy button in github-auto.min.css (#38) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 追加了下方代码 ```css .hljs-copy-button { --hljs-theme-background: var(--bc-hljs); --hljs-theme-color: var(--color-hljs); } ``` Fixes #36 ```release-note 修复 github-auto.min.css 在明暗切换下复制按钮样式错误的问题 ``` --- src/main/resources/static/styles/github-auto.min.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/static/styles/github-auto.min.css b/src/main/resources/static/styles/github-auto.min.css index c2171a1..7ceb7f7 100644 --- a/src/main/resources/static/styles/github-auto.min.css +++ b/src/main/resources/static/styles/github-auto.min.css @@ -1 +1 @@ -:root {--bc-hljs: #f3f3f3;--color-hljs: #24292e;--color-hljs-keyword: #d73a49;--color-hljs-title: #6f42c1;--color-hljs-attribute: #005cc5;--color-hljs-string: #032f62;--color-hljs-symbol: #e36209;--color-hljs-code: #6a737d;--color-hljs-name: #22863a;--color-hljs-subst: #24292e;--color-hljs-section: #005cc5;--color-hljs-bullet: #735c0f;--color-hljs-emphasis: #24292e;--color-hljs-strong: #24292e;--color-hljs-addition: #22863a;--bc-hljs-addition: #f0fff4;--color-hljs-deletion: #b31d28;--bc-hljs-deletion: #ffeef0;}html[data-mode='dark'], html.dark {--bc-hljs: #0d1117;--color-hljs: #c9d1d9;--color-hljs-keyword: #ff7b72;--color-hljs-title: #d2a8ff;--color-hljs-attribute: #79c0ff;--color-hljs-string: #a5d6ff;--color-hljs-symbol: #ffa657;--color-hljs-code: #8b949e;--color-hljs-name: #7ee787;--color-hljs-subst: #c9d1d9;--color-hljs-section: #1f6feb;--color-hljs-bullet: #f2cc60;--color-hljs-emphasis: #c9d1d9;--color-hljs-strong: #c9d1d9;--color-hljs-addition: #aff5b4;--bc-hljs-addition: #033a16;--color-hljs-deletion: #ffdcd7;--bc-hljs-deletion: #67060c;}@media (prefers-color-scheme: dark) {:root {--bc-hljs: #0d1117;--color-hljs: #c9d1d9;--color-hljs-keyword: #ff7b72;--color-hljs-title: #d2a8ff;--color-hljs-attribute: #79c0ff;--color-hljs-string: #a5d6ff;--color-hljs-symbol: #ffa657;--color-hljs-code: #8b949e;--color-hljs-name: #7ee787;--color-hljs-subst: #c9d1d9;--color-hljs-section: #1f6feb;--color-hljs-bullet: #f2cc60;--color-hljs-emphasis: #c9d1d9;--color-hljs-strong: #c9d1d9;--color-hljs-addition: #aff5b4;--bc-hljs-addition: #033a16;--color-hljs-deletion: #ffdcd7;--bc-hljs-deletion: #67060c;}html[data-mode='light'], html.light {--bc-hljs: #f3f3f3;--color-hljs: #24292e;--color-hljs-keyword: #d73a49;--color-hljs-title: #6f42c1;--color-hljs-attribute: #005cc5;--color-hljs-string: #032f62;--color-hljs-symbol: #e36209;--color-hljs-code: #6a737d;--color-hljs-name: #22863a;--color-hljs-subst: #24292e;--color-hljs-section: #005cc5;--color-hljs-bullet: #735c0f;--color-hljs-emphasis: #24292e;--color-hljs-strong: #24292e;--color-hljs-addition: #22863a;--bc-hljs-addition: #f0fff4;--color-hljs-deletion: #b31d28;--bc-hljs-deletion: #ffeef0;}}pre code.hljs {display: block;overflow-x: auto;padding: 1em;}code.hljs {padding: 3px 5px;}.hljs {color: var(--color-hljs);background: var(--bc-hljs);}.hljs-doctag, .hljs-keyword, .hljs-meta .hljs-keyword, .hljs-template-tag, .hljs-template-variable, .hljs-type, .hljs-variable.language_ {color: var(--color-hljs-keyword);}.hljs-title, .hljs-title.class_, .hljs-title.class_.inherited__, .hljs-title.function_ {color: var(--color-hljs-title);}.hljs-attr, .hljs-attribute, .hljs-literal, .hljs-meta, .hljs-number, .hljs-operator, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-id, .hljs-variable {color: var(--color-hljs-attribute);}.hljs-meta .hljs-string, .hljs-regexp, .hljs-string {color: var(--color-hljs-string);}.hljs-built_in, .hljs-symbol {color: var(--color-hljs-symbol);}.hljs-code, .hljs-comment, .hljs-formula {color: var(--color-hljs-code);}.hljs-name, .hljs-quote, .hljs-selector-pseudo, .hljs-selector-tag {color: var(--color-hljs-name);}.hljs-subst {color: var(--color-hljs-subst);}.hljs-section {color: var(--color-hljs-section);font-weight: 700;}.hljs-bullet {color: var(--color-hljs-bullet);}.hljs-emphasis {color: var(--color-hljs-emphasis);font-style: italic;}.hljs-strong {color: var(--color-hljs-strong);font-weight: 700;}.hljs-addition {color: var(--color-hljs-addition);background-color: var(--bc-hljs-addition);}.hljs-deletion {color: var(--color-hljs-deletion);background-color: var(--bc-hljs-deletion);} \ No newline at end of file +:root{--bc-hljs:#f3f3f3;--color-hljs:#24292e;--color-hljs-keyword:#d73a49;--color-hljs-title:#6f42c1;--color-hljs-attribute:#005cc5;--color-hljs-string:#032f62;--color-hljs-symbol:#e36209;--color-hljs-code:#6a737d;--color-hljs-name:#22863a;--color-hljs-subst:#24292e;--color-hljs-section:#005cc5;--color-hljs-bullet:#735c0f;--color-hljs-emphasis:#24292e;--color-hljs-strong:#24292e;--color-hljs-addition:#22863a;--bc-hljs-addition:#f0fff4;--color-hljs-deletion:#b31d28;--bc-hljs-deletion:#ffeef0}html[data-mode='dark'],html.dark{--bc-hljs:#0d1117;--color-hljs:#c9d1d9;--color-hljs-keyword:#ff7b72;--color-hljs-title:#d2a8ff;--color-hljs-attribute:#79c0ff;--color-hljs-string:#a5d6ff;--color-hljs-symbol:#ffa657;--color-hljs-code:#8b949e;--color-hljs-name:#7ee787;--color-hljs-subst:#c9d1d9;--color-hljs-section:#1f6feb;--color-hljs-bullet:#f2cc60;--color-hljs-emphasis:#c9d1d9;--color-hljs-strong:#c9d1d9;--color-hljs-addition:#aff5b4;--bc-hljs-addition:#033a16;--color-hljs-deletion:#ffdcd7;--bc-hljs-deletion:#67060c}@media (prefers-color-scheme: dark){:root{--bc-hljs:#0d1117;--color-hljs:#c9d1d9;--color-hljs-keyword:#ff7b72;--color-hljs-title:#d2a8ff;--color-hljs-attribute:#79c0ff;--color-hljs-string:#a5d6ff;--color-hljs-symbol:#ffa657;--color-hljs-code:#8b949e;--color-hljs-name:#7ee787;--color-hljs-subst:#c9d1d9;--color-hljs-section:#1f6feb;--color-hljs-bullet:#f2cc60;--color-hljs-emphasis:#c9d1d9;--color-hljs-strong:#c9d1d9;--color-hljs-addition:#aff5b4;--bc-hljs-addition:#033a16;--color-hljs-deletion:#ffdcd7;--bc-hljs-deletion:#67060c}html[data-mode='light'],html.light{--bc-hljs:#f3f3f3;--color-hljs:#24292e;--color-hljs-keyword:#d73a49;--color-hljs-title:#6f42c1;--color-hljs-attribute:#005cc5;--color-hljs-string:#032f62;--color-hljs-symbol:#e36209;--color-hljs-code:#6a737d;--color-hljs-name:#22863a;--color-hljs-subst:#24292e;--color-hljs-section:#005cc5;--color-hljs-bullet:#735c0f;--color-hljs-emphasis:#24292e;--color-hljs-strong:#24292e;--color-hljs-addition:#22863a;--bc-hljs-addition:#f0fff4;--color-hljs-deletion:#b31d28;--bc-hljs-deletion:#ffeef0}}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:var(--color-hljs);background:var(--bc-hljs)}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:var(--color-hljs-keyword)}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:var(--color-hljs-title)}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:var(--color-hljs-attribute)}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:var(--color-hljs-string)}.hljs-built_in,.hljs-symbol{color:var(--color-hljs-symbol)}.hljs-code,.hljs-comment,.hljs-formula{color:var(--color-hljs-code)}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:var(--color-hljs-name)}.hljs-subst{color:var(--color-hljs-subst)}.hljs-section{color:var(--color-hljs-section);font-weight:700}.hljs-bullet{color:var(--color-hljs-bullet)}.hljs-emphasis{color:var(--color-hljs-emphasis);font-style:italic}.hljs-strong{color:var(--color-hljs-strong);font-weight:700}.hljs-addition{color:var(--color-hljs-addition);background-color:var(--bc-hljs-addition)}.hljs-deletion{color:var(--color-hljs-deletion);background-color:var(--bc-hljs-deletion)}.hljs-copy-button{--hljs-theme-color:var(--color-hljs);--hljs-theme-background:var(--bc-hljs)} \ No newline at end of file