Commit c73a2da h
Changes: 4 files +24 -0
Changes (Side-by-Side)
share/jenny/layout/404.sh +6 -0
cat << _EOF_ | |||
| 93 | background-color: var(--bg-primary); |
93 | background-color: var(--bg-primary); |
| 94 | opacity: 0.8; |
94 | opacity: 0.8; |
| 95 | } |
95 | } |
| 96 | /* Smaller on a phone. 1.15em is sized against the desktop measure, where |
||
| 97 | the control sits alone in a wide margin; on a narrow screen it is |
||
| 98 | beside the breadcrumb and reads as oversized. */ |
||
| 99 | @media (max-width: 735px) { |
||
| 100 | .theme-toggle { font-size: .95em; padding: .3em .4em; } |
||
| 101 | } |
||
| 96 | </style> |
102 | </style> |
| 97 | <script> |
103 | <script> |
| 98 | (function() { |
104 | (function() { |
share/jenny/layout/index.sh +6 -0
cat << _EOF_ | |||
| 224 | .theme-toggle:hover { |
224 | .theme-toggle:hover { |
| 225 | background-color: var(--bg-secondary); |
225 | background-color: var(--bg-secondary); |
| 226 | } |
226 | } |
| 227 | /* Smaller on a phone. 1.15em is sized against the desktop measure, where |
||
| 228 | the control sits alone in a wide margin; on a narrow screen it is |
||
| 229 | beside the breadcrumb and reads as oversized. */ |
||
| 230 | @media (max-width: 735px) { |
||
| 231 | .theme-toggle { font-size: .95em; padding: .3em .4em; } |
||
| 232 | } |
||
| 227 | </style> |
233 | </style> |
| 228 | <script> |
234 | <script> |
| 229 | (function() { |
235 | (function() { |
share/jenny/layout/page.sh +6 -0
cat << _EOF_ | |||
| 1055 | .theme-toggle:hover { |
1055 | .theme-toggle:hover { |
| 1056 | background-color: var(--bg-secondary); |
1056 | background-color: var(--bg-secondary); |
| 1057 | } |
1057 | } |
| 1058 | /* Smaller on a phone. 1.15em is sized against the desktop measure, where |
||
| 1059 | the control sits alone in a wide margin; on a narrow screen it is |
||
| 1060 | beside the breadcrumb and reads as oversized. */ |
||
| 1061 | @media (max-width: 735px) { |
||
| 1062 | .theme-toggle { font-size: .95em; padding: .3em .4em; } |
||
| 1063 | } |
||
| 1058 | /* Tooltip styling for footnote and citation references. |
1064 | /* Tooltip styling for footnote and citation references. |
| 1059 | Rendered as real DOM elements so links remain interactive. |
1065 | Rendered as real DOM elements so links remain interactive. |
| 1060 | Appears on hover or focus, and survives pointer movement into it. */ |
1066 | Appears on hover or focus, and survives pointer movement into it. */ |
share/jenny/layout/post.sh +6 -0
cat << _EOF_ | |||
| 876 | .theme-toggle:hover { |
876 | .theme-toggle:hover { |
| 877 | background-color: var(--bg-secondary); |
877 | background-color: var(--bg-secondary); |
| 878 | } |
878 | } |
| 879 | /* Smaller on a phone. 1.15em is sized against the desktop measure, where |
||
| 880 | the control sits alone in a wide margin; on a narrow screen it is |
||
| 881 | beside the breadcrumb and reads as oversized. */ |
||
| 882 | @media (max-width: 735px) { |
||
| 883 | .theme-toggle { font-size: .95em; padding: .3em .4em; } |
||
| 884 | } |
||
| 879 | /* Tooltip styling for footnote and citation references. |
885 | /* Tooltip styling for footnote and citation references. |
| 880 | Rendered as real DOM elements so links remain interactive. |
886 | Rendered as real DOM elements so links remain interactive. |
| 881 | Appears on hover or focus, and survives pointer movement into it. */ |
887 | Appears on hover or focus, and survives pointer movement into it. */ |
Raw
commit c73a2da17dc3030530cfad6d8a30a0c548a10888
Author: Pat Ambrosio <cp.ambrosio@gmail.com>
Date: Sun Sep 6 07:25:34 2026 +0800
Size the theme control down on a phone
1.15em was chosen against the desktop measure, where the control sits
alone in a wide margin and a geometric glyph needs the size to read at
all. On a narrow screen it sits beside the breadcrumb instead, and the
same size reads as oversized -- the fault of sizing it in one place and
not looking at the other.
.95em below 735px, which is the width the layouts already stack their
sidebar at rather than a breakpoint invented for this.
All four layouts carry the control. 404 needed its own edit: its hover
rule differs from the other three, so the anchor the others share is not
in it.
diff --git a/share/jenny/layout/404.sh b/share/jenny/layout/404.sh
index bb98ae7..19a69ac 100755
--- a/share/jenny/layout/404.sh
+++ b/share/jenny/layout/404.sh
@@ -93,6 +93,12 @@ cat << _EOF_
background-color: var(--bg-primary);
opacity: 0.8;
}
+ /* Smaller on a phone. 1.15em is sized against the desktop measure, where
+ the control sits alone in a wide margin; on a narrow screen it is
+ beside the breadcrumb and reads as oversized. */
+ @media (max-width: 735px) {
+ .theme-toggle { font-size: .95em; padding: .3em .4em; }
+ }
</style>
<script>
(function() {
diff --git a/share/jenny/layout/index.sh b/share/jenny/layout/index.sh
index 68f1faf..05cee5a 100755
--- a/share/jenny/layout/index.sh
+++ b/share/jenny/layout/index.sh
@@ -224,6 +224,12 @@ cat << _EOF_
.theme-toggle:hover {
background-color: var(--bg-secondary);
}
+ /* Smaller on a phone. 1.15em is sized against the desktop measure, where
+ the control sits alone in a wide margin; on a narrow screen it is
+ beside the breadcrumb and reads as oversized. */
+ @media (max-width: 735px) {
+ .theme-toggle { font-size: .95em; padding: .3em .4em; }
+ }
</style>
<script>
(function() {
diff --git a/share/jenny/layout/page.sh b/share/jenny/layout/page.sh
index 9285d67..2b3110c 100755
--- a/share/jenny/layout/page.sh
+++ b/share/jenny/layout/page.sh
@@ -1055,6 +1055,12 @@ cat << _EOF_
.theme-toggle:hover {
background-color: var(--bg-secondary);
}
+ /* Smaller on a phone. 1.15em is sized against the desktop measure, where
+ the control sits alone in a wide margin; on a narrow screen it is
+ beside the breadcrumb and reads as oversized. */
+ @media (max-width: 735px) {
+ .theme-toggle { font-size: .95em; padding: .3em .4em; }
+ }
/* Tooltip styling for footnote and citation references.
Rendered as real DOM elements so links remain interactive.
Appears on hover or focus, and survives pointer movement into it. */
diff --git a/share/jenny/layout/post.sh b/share/jenny/layout/post.sh
index 0830c02..fd91be5 100755
--- a/share/jenny/layout/post.sh
+++ b/share/jenny/layout/post.sh
@@ -876,6 +876,12 @@ cat << _EOF_
.theme-toggle:hover {
background-color: var(--bg-secondary);
}
+ /* Smaller on a phone. 1.15em is sized against the desktop measure, where
+ the control sits alone in a wide margin; on a narrow screen it is
+ beside the breadcrumb and reads as oversized. */
+ @media (max-width: 735px) {
+ .theme-toggle { font-size: .95em; padding: .3em .4em; }
+ }
/* Tooltip styling for footnote and citation references.
Rendered as real DOM elements so links remain interactive.
Appears on hover or focus, and survives pointer movement into it. */