最近更新 | Last Updated
Prenote
NOTICE: This content is presented as
git diff.
更新记录(2026-07-16 15:50:31 +0000 | a1560050)
Summary
- Generated at:
2026-07-16 15:50:31 +0000 - Base commit:
a1560050 - Diff source:
20bf135c7ac8bb1594b048d52f3ccf4186afa4ee..a1560050d87dac0ee00c2103c12b91a9a7804405 - Changed files:
1 - Total lines:
+9 / -5
Index
- theme/css/general.css
+9 / -5
Diffs
theme/css/general.css
+9 / -5 Click to expand diff
diff --git a/theme/css/general.css b/theme/css/general.css
index 3e0a1b5a..06a7f427 100644
--- a/theme/css/general.css
+++ b/theme/css/general.css
@@ -111,6 +111,9 @@ html:not(.js) .page-wrapper,
.content a { text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content img, .content video { max-width: 100%; }
+/* When an image is inside an anchor, ensure the focus ring covers the entire
+ image instead of the anchor's line box. */
+.content a:has(img) { display: inline-block; }
.content .header:link,
.content .header:visited {
color: var(--fg);
@@ -371,23 +374,23 @@ dd > p {
border-inline-start-color: var(--blockquote-caution-color);
}
-.blockquote-tag-note .blockquote-tag-title {
+.blockquote-tag-note > .blockquote-tag-title {
color: var(--blockquote-note-color);
}
-.blockquote-tag-tip .blockquote-tag-title {
+.blockquote-tag-tip > .blockquote-tag-title {
color: var(--blockquote-tip-color);
}
-.blockquote-tag-important .blockquote-tag-title {
+.blockquote-tag-important > .blockquote-tag-title {
color: var(--blockquote-important-color);
}
-.blockquote-tag-warning .blockquote-tag-title {
+.blockquote-tag-warning > .blockquote-tag-title {
color: var(--blockquote-warning-color);
}
-.blockquote-tag-caution .blockquote-tag-title {
+.blockquote-tag-caution > .blockquote-tag-title {
color: var(--blockquote-caution-color);
}
@@ -458,3 +461,4 @@ dd > p {
cursor: zoom-out;
max-width: calc(100% - (var(--img-padding) * 2));
max-height: calc(100% - (var(--img-padding) * 2));
+}
更新记录(2026-07-16 15:47:23 +0000 | 20bf135c)
Summary
- Generated at:
2026-07-16 15:47:23 +0000 - Base commit:
20bf135c - Diff source:
937813a086baf294fde42c0e16a14f74469537d1..20bf135c7ac8bb1594b048d52f3ccf4186afa4ee - Changed files:
1 - Total lines:
+52 / -0
Index
- theme/css/general.css
+52 / -0
Diffs
theme/css/general.css
+52 / -0 Click to expand diff
diff --git a/theme/css/general.css b/theme/css/general.css
index df8a3efe..3e0a1b5a 100644
--- a/theme/css/general.css
+++ b/theme/css/general.css
@@ -406,3 +406,55 @@ dd > p {
/* Add some space between the icon and the text. */
margin-right: 8px;
}
+
+/* All this code is to handle the "zoomable" images feature. */
+
+/* This one makes the checkbox invisible while keeping it selectable with the keyboard (with the
+ "tab" key). */
+.content .checkbox-img {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border: 0;
+}
+/* When the input is focused, we make it appear to the user by adding an outline to the img
+ instead */
+.content .checkbox-img:focus + img {
+ outline: auto;
+}
+/* The "zoomed-in" image is not displayed until the checkbox is "ticked". */
+.content .checkbox-img:not(:checked) ~ .img-wrapper {
+ display: none;
+}
+.content .checkbox-label {
+ display: block;
+ max-width: 100%;
+}
+.content .checkbox-label img {
+ cursor: zoom-in;
+}
+.content .checkbox-img:checked ~ .img-wrapper {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100vw;
+ height: 100vh;
+ background-color: rgba(0, 0, 0, 0.4);
+ z-index: 1001;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ cursor: zoom-out;
+}
+.content .checkbox-img:checked ~ .img-wrapper > img {
+ --img-padding: 5px;
+ padding: var(--img-padding);
+ background: #999;
+ cursor: zoom-out;
+ max-width: calc(100% - (var(--img-padding) * 2));
+ max-height: calc(100% - (var(--img-padding) * 2));
更新记录(2026-07-16 15:43:59 +0000 | 20bf135c)
Summary
- Generated at:
2026-07-16 15:43:59 +0000 - Base commit:
20bf135c - Diff source:
937813a086baf294fde42c0e16a14f74469537d1..20bf135c7ac8bb1594b048d52f3ccf4186afa4ee - Changed files:
1 - Total lines:
+52 / -0
Index
- theme/css/general.css
+52 / -0
Diffs
theme/css/general.css
+52 / -0 Click to expand diff
diff --git a/theme/css/general.css b/theme/css/general.css
index df8a3efe..3e0a1b5a 100644
--- a/theme/css/general.css
+++ b/theme/css/general.css
@@ -406,3 +406,55 @@ dd > p {
/* Add some space between the icon and the text. */
margin-right: 8px;
}
+
+/* All this code is to handle the "zoomable" images feature. */
+
+/* This one makes the checkbox invisible while keeping it selectable with the keyboard (with the
+ "tab" key). */
+.content .checkbox-img {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border: 0;
+}
+/* When the input is focused, we make it appear to the user by adding an outline to the img
+ instead */
+.content .checkbox-img:focus + img {
+ outline: auto;
+}
+/* The "zoomed-in" image is not displayed until the checkbox is "ticked". */
+.content .checkbox-img:not(:checked) ~ .img-wrapper {
+ display: none;
+}
+.content .checkbox-label {
+ display: block;
+ max-width: 100%;
+}
+.content .checkbox-label img {
+ cursor: zoom-in;
+}
+.content .checkbox-img:checked ~ .img-wrapper {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100vw;
+ height: 100vh;
+ background-color: rgba(0, 0, 0, 0.4);
+ z-index: 1001;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ cursor: zoom-out;
+}
+.content .checkbox-img:checked ~ .img-wrapper > img {
+ --img-padding: 5px;
+ padding: var(--img-padding);
+ background: #999;
+ cursor: zoom-out;
+ max-width: calc(100% - (var(--img-padding) * 2));
+ max-height: calc(100% - (var(--img-padding) * 2));