From 0e786cac2fc1fdb2243f1be200277a4f32cf725f Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Fri, 3 Feb 2012 19:29:11 -0700 Subject: [PATCH] Added a top link to the fixed breadcrumbs bar. Also tweaked several styles to improve standardization. --- index.php | 7 +++++-- resources/css/directorylister.css | 17 +++++++++++++---- resources/js/directorylister.js | 2 ++ 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 0aa9c8786..e5b8c8205 100644 --- a/index.php +++ b/index.php @@ -31,6 +31,9 @@ + @@ -63,9 +66,9 @@
- + diff --git a/resources/css/directorylister.css b/resources/css/directorylister.css index a1e0e5ad5..0a1a5cf64 100644 --- a/resources/css/directorylister.css +++ b/resources/css/directorylister.css @@ -3,7 +3,7 @@ /* -------------------------------------------------------------------------- */ body { - padding-top: 15px; + padding: 15px 0; } @@ -15,7 +15,7 @@ body { background-color: #FBFBFB; background-image: -moz-linear-gradient(center top , #FFFFFF, #F5F5F5); background-repeat: repeat-x; - border: 1px solid #DDDDDD; + border-bottom: 1px solid #DDDDDD; box-shadow: 0 1px 0 #FFFFFF inset, 0 1px 5px rgba(0, 0, 0, 0.1); left: 0; position: fixed; @@ -33,6 +33,11 @@ body { width: 912px; } +#pageTopLink { + float: right; + +} + /* -------------------------------------------------------------------------- */ /* -----| DIRECTORY LISTER |------------------------------------------------- */ @@ -148,8 +153,8 @@ body { /* -----| FOOTER |----------------------------------------------------------- */ /* -------------------------------------------------------------------------- */ -footer p { - text-align: right; +.footer p { + text-align: center; } @@ -157,6 +162,10 @@ footer p { /* -----| MISCELLANEOUS |---------------------------------------------------- */ /* -------------------------------------------------------------------------- */ +.hidden { + display: none !important; +} + /* --- CLEAR FIX --- */ .clearfix:after { diff --git a/resources/js/directorylister.js b/resources/js/directorylister.js index 8fbcbe9fd..21fd7efd2 100644 --- a/resources/js/directorylister.js +++ b/resources/js/directorylister.js @@ -13,7 +13,9 @@ $(document).ready(function() { function checkSubnav(elTop) { if($(window).scrollTop() >= elTop) { $('.breadcrumb-wrapper').addClass('breadcrumb-fixed'); + $('#pageTopLink').show(); } else { $('.breadcrumb-wrapper').removeClass('breadcrumb-fixed'); + $('#pageTopLink').hide(); } }