svn: /web/php/trunk/ include/layout.inc styles/structure.css styles/theme.css

From: Date: Wed, 29 Dec 2010 12:28:54 +0000
Subject: svn: /web/php/trunk/ include/layout.inc styles/structure.css styles/theme.css
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-9927@lists.php.net to get a copy of this message
bjori Wed, 29 Dec 2010 12:28:54 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306818 Log: Fix markup validation Changed paths: U web/php/trunk/include/layout.inc U web/php/trunk/styles/structure.css U web/php/trunk/styles/theme.css Modified: web/php/trunk/include/layout.inc =================================================================== --- web/php/trunk/include/layout.inc 2010-12-29 11:45:17 UTC (rev 306817) +++ web/php/trunk/include/layout.inc 2010-12-29 12:28:54 UTC (rev 306818) @@ -884,13 +884,13 @@ 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 @@ 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 @@ break; } } - echo "<dt><a href='/manual/$lang/$link'>$title</a></dt>\n"; + echo "<$elm><a href='/manual/$lang/$link'>$title</a></$elm>\n"; } Modified: web/php/trunk/styles/structure.css =================================================================== --- web/php/trunk/styles/structure.css 2010-12-29 11:45:17 UTC (rev 306817) +++ web/php/trunk/styles/structure.css 2010-12-29 12:28:54 UTC (rev 306818) @@ -17,7 +17,7 @@ } #headnav h6, -#headnav li, +#headmenu li, #headsearch { display: block; float: left; @@ -89,11 +89,11 @@ 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 @@ 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; Modified: web/php/trunk/styles/theme.css =================================================================== --- web/php/trunk/styles/theme.css 2010-12-29 11:45:17 UTC (rev 306817) +++ web/php/trunk/styles/theme.css 2010-12-29 12:28:54 UTC (rev 306818) @@ -269,10 +269,11 @@ 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 +}

« previous php.webmaster (#9927) next »