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.

wyoung 2018-09-10 09:27 js-hamburger-menu
Commit 0d391a1ba57ea9b98459626e3cf8a35c9dd6f10293b7658d5a2b99918fae55cb
1 file changed +2 -3
+2 -3
--- src/sitemap.c
+++ src/sitemap.c
@@ -45,12 +45,11 @@
4545
4646
login_check_credentials();
4747
srchFlags = search_restrict(SRCH_ALL);
4848
style_header("Site Map");
4949
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">
5251
@ <li>%z(href("%R/home"))Home Page</a>
5352
for(i=0; i<sizeof(aExtra)/sizeof(aExtra[0]); i++){
5453
char *z = db_get(aExtra[i].zProperty,0);
5554
if( z==0 || z[0]==0 ) continue;
5655
if( !inSublist ){
@@ -210,8 +209,8 @@
210209
}
211210
@ <li>%z(href("%R/hash-color-test"))Page to experiment with the automatic
212211
@ colors assigned to branch names</a>
213212
@ <li>%z(href("%R/test-captcha"))Random ASCII-art Captcha image</a></li>
214213
@ </ul></li>
215
- @ </ul></div>
214
+ @ </ul>
216215
style_footer();
217216
}
218217
--- 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

Keyboard Shortcuts

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