Commit: d2bf92a61b39ce489ac179a8149c826f3154e2cb Author: Paul Dragoonis <[email protected]> Tue, 25 Jun 2013 16:57:32 +0100 Parents: c0232b740216ef5074a49f7186f04668412c3e49 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=d2bf92a61b39ce489ac179a8149c826f3154e2cb Log: Removing code for the old quicktoc, and adding code for the new manualheader and language changer dropdown Changed paths: M js/common.js M styles/doc.css M styles/theme.css Diff: diff --git a/js/common.js b/js/common.js index 12bf92d..e723aad 100644 --- a/js/common.js +++ b/js/common.js @@ -184,51 +184,6 @@ $(document).ready(function() { }); }); - var foundToc = false; - var $quicktoc = $("#quicktoc"); - if ($quicktoc.length) { - var pageid = $("section.docs > div").attr("id"); - var editurl = "https://edit.php.net/?perm=/" + getLanguage() + "/" + pageid + ".php&project=PHP"; - var bugurl = "http://bugs.php.net/report.php?bug_type=Documentation+problem&manpage=" + pageid; - - // Add edit & bugreporting urls to the footer - $($(".footmenu")[1]).after( - "<ul class='footmenu pagetools'>" - + "<li><a href='" + editurl + "'>Edit this page</a></li>" - + "<li><a href='" + bugurl + "'>Report bug on this page</a></li>" - + "</ul>" - ); - - // Make a list, start making <li>'s dynamically. - // we use .data() to store which element the TOC item should scrollTo() - var l = $('<ul id="toc_list">'); - $(".refsect1 h3, .sect1 h2, .sect2 h3, .sect3 h4, .docs .sect4 h5").each(function() { - if(foundToc === false) { - foundToc = true; - } - var currItem = $(this); - $('<a class="toc_item" href="#' + currItem.parent().attr('id') + '">' + currItem.text() + '</a>') - .appendTo( $('<li>') ).parent().appendTo(l); - - }); - - if (foundToc) { - jQuery.getScript("/js/jquery.scrollto.min.js", function(){ - l.delegate("a.toc_item","click keypress", function() { - // Escape dots in ids so they won't be treated as class selectors - $.scrollTo($(this).attr("href").replace(".", "\\\."), 400); - }); - }); - - $quicktoc.find(".content").append("<h5>Quick TOC</h5>").append(l); - $quicktoc.find('.links, .content').show(); - - } else { - $quicktoc.remove(); - } - - } - var $docs = $('.docs'); var $docsDivWithId = $docs.find('div[id]'); $docsDivWithId.children("h1, h2, h3, h4").each(function(){ diff --git a/styles/doc.css b/styles/doc.css index 00a6d14..74a128f 100755 --- a/styles/doc.css +++ b/styles/doc.css @@ -3,7 +3,7 @@ /* {{{ The Quick TOC reference top on man pages */ aside#quicktoc { - display:none; + display: block; border-top: 1px solid #9999CC; border-left: 1px solid #9999CC; border-bottom: none; @@ -20,7 +20,6 @@ aside#quicktoc { } #quicktoc .links, #quicktoc .content { - display: none; } #quicktoc .links a:first-child { @@ -481,6 +480,28 @@ body.docs #layout { margin-top: 12px; } +.docs .manualnavbar { + display: block; + background-color: #f5f5f5; + padding: 12px; + margin-bottom: 12px; + text-decoration: none; +} + +.docs .manualnavbar .prev { + float: left; + display: block; + font-size: 1.3em; + border-bottom: none; +} + +.docs .manualnavbar .next { + float: right; + display: block; + font-size: 1.3em; + border-bottom: none; +} + /* Soft-deprecation Notices */ div.soft-deprecation-notice h1.title { border: 0; diff --git a/styles/theme.css b/styles/theme.css index 646e32c..a78917a 100755 --- a/styles/theme.css +++ b/styles/theme.css @@ -214,12 +214,6 @@ hr { } #headsearch-keywords, -#changelang-langs -{ - color: #666; - background: transparent; - -webkit-appearance: none; -} #headsearch-keywords:focus { color: #000; @@ -228,8 +222,7 @@ hr { #headsearch-submit { float:right; } -#headsearch-submit, -#changelang-submit +#headsearch-submit { border: 0; margin: 1px; @@ -241,13 +234,13 @@ hr { color: #fff; cursor: pointer; } -#changelang { - border-color: #7F7FB2; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - border-radius: 5px; - border: 1px solid #666699; - float: right; + +.change-language .select { + border-radius: 0; +} + +.prevnext-container { + height: 25px; } #headnav li dl { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
