Commit: 5c6789c002561708bcde6ceb53a31b251a3af0a1 Author: Levi Morrison <[email protected]> Fri, 26 Dec 2014 09:14:14 -0700 Parents: 26d4851bb5020482b3a3aeaf6f5077fe5a3dcbf3 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=5c6789c002561708bcde6ceb53a31b251a3af0a1 Log: Prevent header from covering url fragment target This way a release can be linked by appending #5.6.3 to the releases url. Bugs: https://bugs.php.net/5 Changed paths: M releases/index.php A styles/releases.css Diff: diff --git a/releases/index.php b/releases/index.php index 0f52bf9..fcdd67d 100644 --- a/releases/index.php +++ b/releases/index.php @@ -109,7 +109,10 @@ $SIDEBAR_DATA = ' </div> '; -site_header("Releases", array("current" => "downloads")); +site_header("Releases", array( + 'current' => 'downloads', + 'css' => '/styles/releases.css', +)); ?> <h1>Unsupported Historical Releases</h1> diff --git a/styles/releases.css b/styles/releases.css new file mode 100644 index 0000000..504abe6 --- /dev/null +++ b/styles/releases.css @@ -0,0 +1,10 @@ +/* This allows the link target to not be covered by the sticky-header; it works + * because the release page creates empty HTML anchors with id attributes above + * each header that is used to create an invisible barrier above the target */ +a[id]:empty { + content:""; + display:block; + height:4.25rem; + margin-top:-4.25rem; + border:none; +} -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
