Fossil SCM
Improved HTML formatting of help pages.
Commit
ddd1c320f6c49d896f2fe05f2fe94df2b7a0b651ea2b5a38117c9347efe0d6f2
Parent
7ec232ab3c6c2b3…
2 files changed
+15
+5
-1
+15
| --- src/default.css | ||
| +++ src/default.css | ||
| @@ -1975,10 +1975,25 @@ | ||
| 1975 | 1975 | } |
| 1976 | 1976 | div.markdown span.notescope:hover, |
| 1977 | 1977 | div.markdown span.notescope:target { |
| 1978 | 1978 | border-bottom: 2px solid gold; |
| 1979 | 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 | +} | |
| 1980 | 1995 | |
| 1981 | 1996 | /* Objects in the "desktoponly" class are invisible on mobile */ |
| 1982 | 1997 | @media screen and (max-width: 600px) { |
| 1983 | 1998 | .desktoponly { |
| 1984 | 1999 | display: none; |
| 1985 | 2000 |
| --- 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 @@ | ||
| 462 | 462 | || hasGap(zHelp+nIndent,i-nIndent) ){ |
| 463 | 463 | iLevel++; |
| 464 | 464 | aIndent[iLevel] = nIndent; |
| 465 | 465 | azEnd[iLevel] = zEndDL; |
| 466 | 466 | 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 | + } | |
| 468 | 472 | }else if( azEnd[iLevel]==zEndDL ){ |
| 469 | 473 | iLevel++; |
| 470 | 474 | aIndent[iLevel] = nIndent; |
| 471 | 475 | azEnd[iLevel] = zEndDD; |
| 472 | 476 | if( wantP ){ |
| 473 | 477 |
| --- 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 |