Commit: 3f47279229c2ac8dc640ed20af38115e50b49758 Author: Hannes Magnusson <[email protected]> Wed, 29 Dec 2010 12:28:54 +0000 Parents: a7331299c46c8faacff15e36fb66482eba050961 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=3f47279229c2ac8dc640ed20af38115e50b49758 Log: Fix markup validation Changed paths: M include/layout.inc M styles/structure.css M styles/theme.css Diff: diff --git a/include/layout.inc b/include/layout.inc index 22e513d..5352c90 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -884,13 +884,13 @@ function doc_toc($lang) { doc_toc_list($lang, $TOC, "funcref"); echo "</dl>\n"; - echo "<dl>\n"; - doc_toc_title($lang, $TOC, "install"); - doc_toc_title($lang, $TOC, "internals2"); - doc_toc_title($lang, $TOC, "faq"); - doc_toc_title($lang, $TOC, "appendices"); - echo "<dt><a href='/quickref.php'>Quick function reference</a></dt>\n"; - echo "</dl>\n"; + echo "<ul>"; + doc_toc_title($lang, $TOC, "install", "li"); + doc_toc_title($lang, $TOC, "internals2", "li"); + doc_toc_title($lang, $TOC, "faq", "li"); + doc_toc_title($lang, $TOC, "appendices", "li"); + echo "<li><a href='/quickref.php'>Quick function reference</a></li>\n"; + echo "</ul>\n"; } function doc_toc_list($lang, $index, $file) { @@ -901,7 +901,7 @@ function doc_toc_list($lang, $index, $file) { echo "\t<dd><a href='/manual/$lang/{$entry[0]}'>{$entry[1]}</a></dd>\n"; } } -function doc_toc_title($lang, $index, $file) { +function doc_toc_title($lang, $index, $file, $elm = "dt") { foreach($index as $entry) { if ($entry[0] == "$file.php") { $link = $entry[0]; @@ -909,7 +909,7 @@ function doc_toc_title($lang, $index, $file) { break; } } - echo "<dt><a href='/manual/$lang/$link'>$title</a></dt>\n"; + echo "<$elm><a href='/manual/$lang/$link'>$title</a></$elm>\n"; } diff --git a/styles/structure.css b/styles/structure.css index 0d08818..f1298a9 100644 --- a/styles/structure.css +++ b/styles/structure.css @@ -17,7 +17,7 @@ h1 { } #headnav h6, -#headnav li, +#headmenu li, #headsearch { display: block; float: left; @@ -89,11 +89,11 @@ h1 { margin: 0 auto; } -#mega-drop-down div.children dl { +#mega-drop-down div.children dl, #mega-drop-down div.children ul { width: 225px; } -#mega-drop-down div.children dt { +#mega-drop-down div.children dt, #mega-drop-down div.children li { border-top: none; } @@ -104,18 +104,18 @@ h1 { top: 30px; } -.children dl { +.children dl, .children ul { float: left; width: 195px; padding-right: 15px; } -.children dl a { +.children dl a, .children ul a { display: block; padding: 4px; } -.children dt { +.children dt, .children li { font-weight: bold; margin-top: 1em; border-top-width: 3px; diff --git a/styles/theme.css b/styles/theme.css index 364c543..e68a371 100644 --- a/styles/theme.css +++ b/styles/theme.css @@ -269,10 +269,11 @@ pre.info { border-color: #c3add9; } -#mega-drop-down dt a { +#mega-drop-down dt a, +#mega-drop-down ul a { color: #eee; } #mega-drop-down a { color: #ccc; -} \ No newline at end of file +} -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
