Skip to content

Commit

Permalink
Added a top link to the fixed breadcrumbs bar. Also tweaked several s…
Browse files Browse the repository at this point in the history
…tyles to improve standardization.
  • Loading branch information
PHLAK committed Feb 4, 2012
1 parent bf655b6 commit 0e786ca
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
7 changes: 5 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<a href="<?php echo $breadcrumb['link']; ?>"><?php echo $breadcrumb['text']; ?></a>
</li>
<?php $divider = TRUE; endforeach; ?>
<li id="pageTopLink" style="display: hidden;">
<a href="#">Top</a>
</li>
</ul>
</div>

Expand Down Expand Up @@ -63,9 +66,9 @@

<hr/>

<footer>
<div class="footer">
<p>Powered by, <a href="http://www.directorylister.com">Directory Lister</a></p>
</footer>
</div>

</div>

Expand Down
17 changes: 13 additions & 4 deletions resources/css/directorylister.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* -------------------------------------------------------------------------- */

body {
padding-top: 15px;
padding: 15px 0;
}


Expand All @@ -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;
Expand All @@ -33,6 +33,11 @@ body {
width: 912px;
}

#pageTopLink {
float: right;

}


/* -------------------------------------------------------------------------- */
/* -----| DIRECTORY LISTER |------------------------------------------------- */
Expand Down Expand Up @@ -148,15 +153,19 @@ body {
/* -----| FOOTER |----------------------------------------------------------- */
/* -------------------------------------------------------------------------- */

footer p {
text-align: right;
.footer p {
text-align: center;
}


/* -------------------------------------------------------------------------- */
/* -----| MISCELLANEOUS |---------------------------------------------------- */
/* -------------------------------------------------------------------------- */

.hidden {
display: none !important;
}

/* --- CLEAR FIX --- */

.clearfix:after {
Expand Down
2 changes: 2 additions & 0 deletions resources/js/directorylister.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 0e786ca

Please sign in to comment.