Fossil SCM

Reduced the font size adjustment for monospace fonts from +10% to +5% after testing on mobile, and made it apply to the same list of monospace font classes defined in src/default.css.

wyoung 2024-02-09 01:36 inskinerator-modern-backport
Commit e220683ae06753e53c9ff8217e475dc266b9665f78433648c7fe02eefac664ad
1 file changed +10 -1
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -219,12 +219,21 @@
219219
line-height: 1.4em;
220220
}
221221
222222
.content pre {
223223
hyphens: none;
224
- font-size: 110%;
225224
line-height: 1.25;
225
+}
226
+code, pre, tt, /* long list of classes from src/default.css */
227
+ div.markdown ol.footnotes > li.fn-joined > sup.fn-joined,
228
+ table.numbered-lines > tbody > tr,
229
+ tr.diffskip > td.chunkctrl,
230
+ #fossil-status-bar,
231
+ .monospace {
232
+ /* Monospace fonts tend to have smaller x-heights than proportional text
233
+ * fonts at the same point size. Bring them up a bit to compensate. */
234
+ font-size: 105%;
226235
}
227236
228237
.content .pikchr-wrapper {
229238
/* Pikchr was developed with the assumption that it would be
230239
* integrated into a Fossil repo using the old 0.9em body font
231240
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -219,12 +219,21 @@
219 line-height: 1.4em;
220 }
221
222 .content pre {
223 hyphens: none;
224 font-size: 110%;
225 line-height: 1.25;
 
 
 
 
 
 
 
 
 
 
226 }
227
228 .content .pikchr-wrapper {
229 /* Pikchr was developed with the assumption that it would be
230 * integrated into a Fossil repo using the old 0.9em body font
231
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -219,12 +219,21 @@
219 line-height: 1.4em;
220 }
221
222 .content pre {
223 hyphens: none;
 
224 line-height: 1.25;
225 }
226 code, pre, tt, /* long list of classes from src/default.css */
227 div.markdown ol.footnotes > li.fn-joined > sup.fn-joined,
228 table.numbered-lines > tbody > tr,
229 tr.diffskip > td.chunkctrl,
230 #fossil-status-bar,
231 .monospace {
232 /* Monospace fonts tend to have smaller x-heights than proportional text
233 * fonts at the same point size. Bring them up a bit to compensate. */
234 font-size: 105%;
235 }
236
237 .content .pikchr-wrapper {
238 /* Pikchr was developed with the assumption that it would be
239 * integrated into a Fossil repo using the old 0.9em body font
240

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button