Fossil SCM

Improved HTML formatting of help pages.

drh 2026-01-01 19:12 trunk
Commit ddd1c320f6c49d896f2fe05f2fe94df2b7a0b651ea2b5a38117c9347efe0d6f2
2 files changed +15 +5 -1
--- src/default.css
+++ src/default.css
@@ -1975,10 +1975,25 @@
19751975
}
19761976
div.markdown span.notescope:hover,
19771977
div.markdown span.notescope:target {
19781978
border-bottom: 2px solid gold;
19791979
}
1980
+
1981
+/* Cause <dd> elements to be aligned complete to the
1982
+** right of their <dt> on help pages. */
1983
+dl.helpOptions {
1984
+ display: grid;
1985
+ grid-template-columns: max-content 1fr;
1986
+ column-gap: 1rem;
1987
+}
1988
+dl.helpOptions > dt {
1989
+ grid-column: 1;
1990
+}
1991
+dl.helpOptions > dd {
1992
+ grid-column: 2;
1993
+ margin: 0;
1994
+}
19801995
19811996
/* Objects in the "desktoponly" class are invisible on mobile */
19821997
@media screen and (max-width: 600px) {
19831998
.desktoponly {
19841999
display: none;
19852000
--- src/default.css
+++ src/default.css
@@ -1975,10 +1975,25 @@
1975 }
1976 div.markdown span.notescope:hover,
1977 div.markdown span.notescope:target {
1978 border-bottom: 2px solid gold;
1979 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1980
1981 /* Objects in the "desktoponly" class are invisible on mobile */
1982 @media screen and (max-width: 600px) {
1983 .desktoponly {
1984 display: none;
1985
--- src/default.css
+++ src/default.css
@@ -1975,10 +1975,25 @@
1975 }
1976 div.markdown span.notescope:hover,
1977 div.markdown span.notescope:target {
1978 border-bottom: 2px solid gold;
1979 }
1980
1981 /* Cause <dd> elements to be aligned complete to the
1982 ** right of their <dt> on help pages. */
1983 dl.helpOptions {
1984 display: grid;
1985 grid-template-columns: max-content 1fr;
1986 column-gap: 1rem;
1987 }
1988 dl.helpOptions > dt {
1989 grid-column: 1;
1990 }
1991 dl.helpOptions > dd {
1992 grid-column: 2;
1993 margin: 0;
1994 }
1995
1996 /* Objects in the "desktoponly" class are invisible on mobile */
1997 @media screen and (max-width: 600px) {
1998 .desktoponly {
1999 display: none;
2000
+5 -1
--- src/dispatch.c
+++ src/dispatch.c
@@ -462,11 +462,15 @@
462462
|| hasGap(zHelp+nIndent,i-nIndent) ){
463463
iLevel++;
464464
aIndent[iLevel] = nIndent;
465465
azEnd[iLevel] = zEndDL;
466466
wantP = 0;
467
- blob_append(pHtml, "<blockquote><dl>\n", -1);
467
+ if( isDT ){
468
+ blob_append(pHtml, "<blockquote><dl>\n", -1);
469
+ }else{
470
+ blob_append(pHtml, "<blockquote><dl class=\"helpOptions\">\n", -1);
471
+ }
468472
}else if( azEnd[iLevel]==zEndDL ){
469473
iLevel++;
470474
aIndent[iLevel] = nIndent;
471475
azEnd[iLevel] = zEndDD;
472476
if( wantP ){
473477
--- src/dispatch.c
+++ src/dispatch.c
@@ -462,11 +462,15 @@
462 || hasGap(zHelp+nIndent,i-nIndent) ){
463 iLevel++;
464 aIndent[iLevel] = nIndent;
465 azEnd[iLevel] = zEndDL;
466 wantP = 0;
467 blob_append(pHtml, "<blockquote><dl>\n", -1);
 
 
 
 
468 }else if( azEnd[iLevel]==zEndDL ){
469 iLevel++;
470 aIndent[iLevel] = nIndent;
471 azEnd[iLevel] = zEndDD;
472 if( wantP ){
473
--- src/dispatch.c
+++ src/dispatch.c
@@ -462,11 +462,15 @@
462 || hasGap(zHelp+nIndent,i-nIndent) ){
463 iLevel++;
464 aIndent[iLevel] = nIndent;
465 azEnd[iLevel] = zEndDL;
466 wantP = 0;
467 if( isDT ){
468 blob_append(pHtml, "<blockquote><dl>\n", -1);
469 }else{
470 blob_append(pHtml, "<blockquote><dl class=\"helpOptions\">\n", -1);
471 }
472 }else if( azEnd[iLevel]==zEndDL ){
473 iLevel++;
474 aIndent[iLevel] = nIndent;
475 azEnd[iLevel] = zEndDD;
476 if( wantP ){
477

Keyboard Shortcuts

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