com web/php: Some more work. Sorry for the lack of descriptive commits.: include/footer.inc include/header.inc js/common.js styles/theme.css

From: Date: Mon, 08 Jul 2013 14:46:29 +0000
Subject: com web/php: Some more work. Sorry for the lack of descriptive commits.: include/footer.inc include/header.inc js/common.js styles/theme.css
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-16254@lists.php.net to get a copy of this message
Commit: b55d768f3004538be434f5f5e0f1850de7c216ac Author: Levi Morrison <levim@php.net> Mon, 8 Jul 2013 08:46:29 -0600 Parents: 50265cbadfe35ae7f2534e589c0183a3c6dfdec4 Branches: responsive Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=b55d768f3004538be434f5f5e0f1850de7c216ac Log: Some more work. Sorry for the lack of descriptive commits. Changed paths: M include/footer.inc M include/header.inc M js/common.js M styles/theme.css Diff: diff --git a/include/footer.inc b/include/footer.inc index a4890d8..9258d2c 100644 --- a/include/footer.inc +++ b/include/footer.inc @@ -42,6 +42,7 @@ } ?> + <script type="text/javascript" src="/js/jquery.scrollto.min.js"></script> </body> diff --git a/include/header.inc b/include/header.inc index 022ef04..9e19504 100644 --- a/include/header.inc +++ b/include/header.inc @@ -92,7 +92,7 @@ if (isset($shortname) && $shortname) { </p> </div> -<nav class="navbar navbar-inverse navbar-fixed-top"> +<nav id="headnav" class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a href="/" class="brand">php.net</a> diff --git a/js/common.js b/js/common.js index e0eb836..02723e7 100644 --- a/js/common.js +++ b/js/common.js @@ -189,13 +189,15 @@ $(document).ready(function() { $docsDivWithId.children("h1, h2, h3, h4").each(function(){ $(this).append("<a class='genanchor' href='#" + $(this).parent().attr("id") + "'> ¶</a>"); }); + var scrollHeightOfHeadnav = - document.getElementById('headnav').scrollHeight; + scrollHeightOfHeadnav -= 12; //some margin $docs..find(".methodparam .parameter").each(function () { var $node = $(this); $(".parameters .term .parameter").each(function (idx, param) { var $param = $(param); if ($param.text() == $node.text().substring(1)) { $node.click(function() { - $.scrollTo($param, 800); + $.scrollTo($param, 600, {'offset':{'top':scrollHeightOfHeadnav}}); }); } }); diff --git a/styles/theme.css b/styles/theme.css index 86cb023..09b8b23 100755 --- a/styles/theme.css +++ b/styles/theme.css @@ -154,27 +154,6 @@ hr { border-radius: 0; } -#headnav li dl { - line-height: 1; -} - -#headnav li dl dd:hover, -#headnav li dl dt:hover { - background: #eeeef6; -} - -#headnav li.current a.menu-link, -#headnav li a.menu-link:hover, -#headnav li a.menu-link:focus, -#headnav li#headhome.current { - border-color: #666699; -} - -#headnav li.current a..menu-link { - color: #fff; -} - - /** * Auto-complete */

« previous php.webmaster (#16254) next »