From 34e388ef2a87bb155dec8c01cf7032831a34ab1a Mon Sep 17 00:00:00 2001 From: hydai Date: Wed, 27 Nov 2024 17:19:28 +0800 Subject: [PATCH] Site updated: 2024-11-27 17:19:28 --- 2016/05/22/helloworld/index.html | 5 +- 2016/08/03/pullrequestnote/index.html | 5 +- .../index.html | 5 +- 2024/11/19/url-shortener/index.html | 5 +- 2024/11/24/time-machine-speed-up/index.html | 5 +- archives/2016/05/index.html | 5 +- archives/2016/08/index.html | 5 +- archives/2016/10/index.html | 5 +- archives/2016/index.html | 5 +- archives/2024/11/index.html | 5 +- archives/2024/index.html | 5 +- archives/index.html | 5 +- categories/Note/index.html | 5 +- categories/index.html | 5 +- css/main.css | 206 +++++++++++++++++- index.html | 5 +- tags/MacOS/index.html | 5 +- tags/PR/index.html | 5 +- tags/Pull-Request/index.html | 5 +- tags/Time-Machine/index.html | 5 +- tags/URL-Shortener/index.html | 5 +- tags/git/index.html | 5 +- tags/index.html | 5 +- tags/xcurn/index.html | 5 +- 24 files changed, 274 insertions(+), 47 deletions(-) diff --git a/2016/05/22/helloworld/index.html b/2016/05/22/helloworld/index.html index cb15216..2281ce7 100644 --- a/2016/05/22/helloworld/index.html +++ b/2016/05/22/helloworld/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/2016/08/03/pullrequestnote/index.html b/2016/08/03/pullrequestnote/index.html index bc77893..98259b6 100644 --- a/2016/08/03/pullrequestnote/index.html +++ b/2016/08/03/pullrequestnote/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/2016/10/01/xcurn-error-after-upgrade-10-12/index.html b/2016/10/01/xcurn-error-after-upgrade-10-12/index.html index 1533968..6ade46d 100644 --- a/2016/10/01/xcurn-error-after-upgrade-10-12/index.html +++ b/2016/10/01/xcurn-error-after-upgrade-10-12/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/2024/11/19/url-shortener/index.html b/2024/11/19/url-shortener/index.html index b02b37d..d92ea9e 100644 --- a/2024/11/19/url-shortener/index.html +++ b/2024/11/19/url-shortener/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/2024/11/24/time-machine-speed-up/index.html b/2024/11/24/time-machine-speed-up/index.html index f700778..8f7273e 100644 --- a/2024/11/24/time-machine-speed-up/index.html +++ b/2024/11/24/time-machine-speed-up/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/archives/2016/05/index.html b/archives/2016/05/index.html index 46d4765..b120a8a 100644 --- a/archives/2016/05/index.html +++ b/archives/2016/05/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/archives/2016/08/index.html b/archives/2016/08/index.html index 1bc7e38..7c8016c 100644 --- a/archives/2016/08/index.html +++ b/archives/2016/08/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/archives/2016/10/index.html b/archives/2016/10/index.html index 55c380b..e0edd70 100644 --- a/archives/2016/10/index.html +++ b/archives/2016/10/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/archives/2016/index.html b/archives/2016/index.html index 926b7df..47b5bbc 100644 --- a/archives/2016/index.html +++ b/archives/2016/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/archives/2024/11/index.html b/archives/2024/11/index.html index 9342480..c66705e 100644 --- a/archives/2024/11/index.html +++ b/archives/2024/11/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/archives/2024/index.html b/archives/2024/index.html index 2f69d1d..cbd93bb 100644 --- a/archives/2024/index.html +++ b/archives/2024/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/archives/index.html b/archives/index.html index b27e32e..afea7ef 100644 --- a/archives/index.html +++ b/archives/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/categories/Note/index.html b/categories/Note/index.html index 61c72a2..e620e76 100644 --- a/categories/Note/index.html +++ b/categories/Note/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/categories/index.html b/categories/index.html index 125dc39..eefa50d 100644 --- a/categories/index.html +++ b/categories/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/css/main.css b/css/main.css index 559835e..e95f0fa 100644 --- a/css/main.css +++ b/css/main.css @@ -26,6 +26,45 @@ --highlight-gutter-foreground: #555; color-scheme: light; } +@media (prefers-color-scheme: dark) { + :root { + --body-bg-color: #282828; + --content-bg-color: #333; + --card-bg-color: #555; + --text-color: #ccc; + --selection-bg: #bbb; + --selection-color: #333; + --blockquote-color: #bbb; + --link-color: #ccc; + --link-hover-color: #eee; + --brand-color: #ddd; + --brand-hover-color: #ddd; + --table-row-odd-bg-color: #282828; + --table-row-hover-bg-color: #363636; + --menu-item-bg-color: #555; + --theme-color: #222; + --btn-default-bg: #222; + --btn-default-color: #ccc; + --btn-default-border-color: #555; + --btn-default-hover-bg: #666; + --btn-default-hover-color: #ccc; + --btn-default-hover-border-color: #666; + --highlight-background: #1c1b1b; + --highlight-foreground: #fff; + --highlight-gutter-background: #323131; + --highlight-gutter-foreground: #e8e8e8; + color-scheme: dark; + } + img { + opacity: 0.75; + } + img:hover { + opacity: 0.9; + } + iframe { + color-scheme: light; + } +} html { line-height: 1.15; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ @@ -485,6 +524,125 @@ code.hljs { .hljs-strong { font-weight: bold } +@media (prefers-color-scheme: dark) { +pre code.hljs { + display: block; + overflow-x: auto; + padding: 1em +} +code.hljs { + padding: 3px 5px +} +/*! + Theme: StackOverflow Dark + Description: Dark theme as used on stackoverflow.com + Author: stackoverflow.com + Maintainer: @Hirse + Website: https://github.com/StackExchange/Stacks + License: MIT + Updated: 2021-05-15 + + Updated for @stackoverflow/stacks v0.64.0 + Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less + Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less +*/ +.hljs { + /* var(--highlight-color) */ + color: #ffffff; + /* var(--highlight-bg) */ + background: #1c1b1b +} +.hljs-subst { + /* var(--highlight-color) */ + color: #ffffff +} +.hljs-comment { + /* var(--highlight-comment) */ + color: #999999 +} +.hljs-keyword, +.hljs-selector-tag, +.hljs-meta .hljs-keyword, +.hljs-doctag, +.hljs-section { + /* var(--highlight-keyword) */ + color: #88aece +} +.hljs-attr { + /* var(--highlight-attribute); */ + color: #88aece +} +.hljs-attribute { + /* var(--highlight-symbol) */ + color: #c59bc1 +} +.hljs-name, +.hljs-type, +.hljs-number, +.hljs-selector-id, +.hljs-quote, +.hljs-template-tag { + /* var(--highlight-namespace) */ + color: #f08d49 +} +.hljs-selector-class { + /* var(--highlight-keyword) */ + color: #88aece +} +.hljs-string, +.hljs-regexp, +.hljs-symbol, +.hljs-variable, +.hljs-template-variable, +.hljs-link, +.hljs-selector-attr { + /* var(--highlight-variable) */ + color: #b5bd68 +} +.hljs-meta, +.hljs-selector-pseudo { + /* var(--highlight-keyword) */ + color: #88aece +} +.hljs-built_in, +.hljs-title, +.hljs-literal { + /* var(--highlight-literal) */ + color: #f08d49 +} +.hljs-bullet, +.hljs-code { + /* var(--highlight-punctuation) */ + color: #cccccc +} +.hljs-meta .hljs-string { + /* var(--highlight-variable) */ + color: #b5bd68 +} +.hljs-deletion { + /* var(--highlight-deletion) */ + color: #de7176 +} +.hljs-addition { + /* var(--highlight-addition) */ + color: #76c490 +} +.hljs-emphasis { + font-style: italic +} +.hljs-strong { + font-weight: bold +} +.hljs-formula, +.hljs-operator, +.hljs-params, +.hljs-property, +.hljs-punctuation, +.hljs-tag { + /* purposely ignored */ + +} +} .highlight:hover .copy-btn, .code-container:hover .copy-btn { opacity: 1; @@ -1275,7 +1433,7 @@ pre code { vertical-align: middle; } .links-of-author a::before { - background: #6095e0; + background: #fff437; display: inline-block; margin-right: 3px; transform: translateY(-2px); @@ -2418,6 +2576,52 @@ ul.breadcrumb li:last-child { border-bottom-color: #111; color: #111; } +@media (prefers-color-scheme: dark) { + .tag-cloud-0 { + border-bottom-color: #555; + color: #555; + } + .tag-cloud-1 { + border-bottom-color: #646464; + color: #646464; + } + .tag-cloud-2 { + border-bottom-color: #737373; + color: #737373; + } + .tag-cloud-3 { + border-bottom-color: #828282; + color: #828282; + } + .tag-cloud-4 { + border-bottom-color: #929292; + color: #929292; + } + .tag-cloud-5 { + border-bottom-color: #a1a1a1; + color: #a1a1a1; + } + .tag-cloud-6 { + border-bottom-color: #b0b0b0; + color: #b0b0b0; + } + .tag-cloud-7 { + border-bottom-color: #c0c0c0; + color: #c0c0c0; + } + .tag-cloud-8 { + border-bottom-color: #cfcfcf; + color: #cfcfcf; + } + .tag-cloud-9 { + border-bottom-color: #dedede; + color: #dedede; + } + .tag-cloud-10 { + border-bottom-color: #eee; + color: #eee; + } +} mark.search-keyword { background: transparent; border-bottom: 1px dashed #ff2a2a; diff --git a/index.html b/index.html index 45e237a..b0d5e91 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/tags/MacOS/index.html b/tags/MacOS/index.html index 6043ac2..cdfd136 100644 --- a/tags/MacOS/index.html +++ b/tags/MacOS/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/tags/PR/index.html b/tags/PR/index.html index 703f4b3..a1b9e9a 100644 --- a/tags/PR/index.html +++ b/tags/PR/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/tags/Pull-Request/index.html b/tags/Pull-Request/index.html index e60babd..07213f8 100644 --- a/tags/Pull-Request/index.html +++ b/tags/Pull-Request/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/tags/Time-Machine/index.html b/tags/Time-Machine/index.html index 2d91fc8..93b534b 100644 --- a/tags/Time-Machine/index.html +++ b/tags/Time-Machine/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/tags/URL-Shortener/index.html b/tags/URL-Shortener/index.html index ff22558..992c0b2 100644 --- a/tags/URL-Shortener/index.html +++ b/tags/URL-Shortener/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/tags/git/index.html b/tags/git/index.html index 19041c6..0f0f4cb 100644 --- a/tags/git/index.html +++ b/tags/git/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/tags/index.html b/tags/index.html index 74606ee..6819291 100644 --- a/tags/index.html +++ b/tags/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - + diff --git a/tags/xcurn/index.html b/tags/xcurn/index.html index 29ead03..0add8c0 100644 --- a/tags/xcurn/index.html +++ b/tags/xcurn/index.html @@ -3,7 +3,8 @@ - + + @@ -16,7 +17,7 @@ - +