Fossil SCM
Removed the <div> wrapping <ul id="sitemap"> and moved the multicolumn styling applied to it down to the <ul>, since it is already a block level element, so we don't need a div wrapper on it. And then there's the real reason, which is that we want the multicolumn styling to work on the drop-down hamburger menu version as well.
Commit
0d391a1ba57ea9b98459626e3cf8a35c9dd6f10293b7658d5a2b99918fae55cb
Parent
8918a8a80a488a9…
1 file changed
+2
-3
+2
-3
| --- src/sitemap.c | ||
| +++ src/sitemap.c | ||
| @@ -45,12 +45,11 @@ | ||
| 45 | 45 | |
| 46 | 46 | login_check_credentials(); |
| 47 | 47 | srchFlags = search_restrict(SRCH_ALL); |
| 48 | 48 | style_header("Site Map"); |
| 49 | 49 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 50 | - @ <div class="columns" style="column-width:20em"> | |
| 51 | - @ <ul id="sitemap"> | |
| 50 | + @ <ul id="sitemap" class="columns" style="column-width:20em"> | |
| 52 | 51 | @ <li>%z(href("%R/home"))Home Page</a> |
| 53 | 52 | for(i=0; i<sizeof(aExtra)/sizeof(aExtra[0]); i++){ |
| 54 | 53 | char *z = db_get(aExtra[i].zProperty,0); |
| 55 | 54 | if( z==0 || z[0]==0 ) continue; |
| 56 | 55 | if( !inSublist ){ |
| @@ -210,8 +209,8 @@ | ||
| 210 | 209 | } |
| 211 | 210 | @ <li>%z(href("%R/hash-color-test"))Page to experiment with the automatic |
| 212 | 211 | @ colors assigned to branch names</a> |
| 213 | 212 | @ <li>%z(href("%R/test-captcha"))Random ASCII-art Captcha image</a></li> |
| 214 | 213 | @ </ul></li> |
| 215 | - @ </ul></div> | |
| 214 | + @ </ul> | |
| 216 | 215 | style_footer(); |
| 217 | 216 | } |
| 218 | 217 |
| --- src/sitemap.c | |
| +++ src/sitemap.c | |
| @@ -45,12 +45,11 @@ | |
| 45 | |
| 46 | login_check_credentials(); |
| 47 | srchFlags = search_restrict(SRCH_ALL); |
| 48 | style_header("Site Map"); |
| 49 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 50 | @ <div class="columns" style="column-width:20em"> |
| 51 | @ <ul id="sitemap"> |
| 52 | @ <li>%z(href("%R/home"))Home Page</a> |
| 53 | for(i=0; i<sizeof(aExtra)/sizeof(aExtra[0]); i++){ |
| 54 | char *z = db_get(aExtra[i].zProperty,0); |
| 55 | if( z==0 || z[0]==0 ) continue; |
| 56 | if( !inSublist ){ |
| @@ -210,8 +209,8 @@ | |
| 210 | } |
| 211 | @ <li>%z(href("%R/hash-color-test"))Page to experiment with the automatic |
| 212 | @ colors assigned to branch names</a> |
| 213 | @ <li>%z(href("%R/test-captcha"))Random ASCII-art Captcha image</a></li> |
| 214 | @ </ul></li> |
| 215 | @ </ul></div> |
| 216 | style_footer(); |
| 217 | } |
| 218 |
| --- src/sitemap.c | |
| +++ src/sitemap.c | |
| @@ -45,12 +45,11 @@ | |
| 45 | |
| 46 | login_check_credentials(); |
| 47 | srchFlags = search_restrict(SRCH_ALL); |
| 48 | style_header("Site Map"); |
| 49 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 50 | @ <ul id="sitemap" class="columns" style="column-width:20em"> |
| 51 | @ <li>%z(href("%R/home"))Home Page</a> |
| 52 | for(i=0; i<sizeof(aExtra)/sizeof(aExtra[0]); i++){ |
| 53 | char *z = db_get(aExtra[i].zProperty,0); |
| 54 | if( z==0 || z[0]==0 ) continue; |
| 55 | if( !inSublist ){ |
| @@ -210,8 +209,8 @@ | |
| 209 | } |
| 210 | @ <li>%z(href("%R/hash-color-test"))Page to experiment with the automatic |
| 211 | @ colors assigned to branch names</a> |
| 212 | @ <li>%z(href("%R/test-captcha"))Random ASCII-art Captcha image</a></li> |
| 213 | @ </ul></li> |
| 214 | @ </ul> |
| 215 | style_footer(); |
| 216 | } |
| 217 |