Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zurb/foundation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hayes committed Jan 14, 2013
2 parents e414f60 + 4855b21 commit c5d0ce6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions scss/foundation/components/modules/_reveal.scss
Expand Up @@ -9,7 +9,7 @@
.reveal-modal-bg { position: fixed; height: 100%; width: 100%; background: #000; background: rgba(#000, .45); z-index: 40; display: none; top: 0; #{$defaultFloat}: 0; }

.reveal-modal { background: #fff; visibility: hidden; display: none; top: 100px; #{$defaultFloat}: 50%; margin-#{$defaultFloat}: -260px; width: 520px; position: absolute; z-index: 41; padding: 30px; @include box-shadow(0 0 10px rgba(#000,.4));
.close-reveal-modal {
.close-reveal-modal:not(.button) {
@include font-size(22);
line-height: .5;
position: absolute;
Expand All @@ -30,6 +30,5 @@
> :last-child { margin-bottom: 0; }
}
@media print {
div:not(.reveal-modal) { display: none; }
.reveal-modal { border: solid 1px #000; background: #fff; }
}
2 changes: 1 addition & 1 deletion scss/foundation/components/modules/_topbar.scss
Expand Up @@ -27,7 +27,7 @@
}

/* <nav> */
.top-bar { background: $topBarBgColor; height: $topBarHeight; line-height: $topBarHeight; margin: 0 0 $topBarBtmMargin; padding: 0; width: 100%; position: relative;
.top-bar { background: $topBarBgColor; min-height: $topBarHeight; line-height: $topBarHeight; margin: 0 0 $topBarBtmMargin 0; padding: 0; width: 100%; position: relative;

/* Contain width to .row width */
.contain-to-grid & { max-width: $rowWidth; margin: 0 auto; }
Expand Down
6 changes: 3 additions & 3 deletions scss/foundation/mixins/_semantic-grid.scss
Expand Up @@ -17,9 +17,9 @@
// Columns mixin, syntax is ($columns, $behavior). Behavior can be 'centered' which centers things or 'collapse' which collapses the gutters. ex @include row(4,[center | collapse])

@mixin column($columns:$columns, $behavior: false) {
@if $behavior == center { @extend %fl-n; margin-left: auto; margin-right: auto; @extend %c-base; width: gridCalc($columns, $totalColumns); @include respondTo(smallScreen) { float: left; width: 100%; }
} @else if $behavior == collapse { @extend %fl-l; @extend %c-base; padding: 0; width: gridCalc($columns, $totalColumns); @include respondTo(smallScreen) { float: left; width: 100%; }
} @else { @extend %fl-l; @extend %c-base; width: gridCalc($columns, $totalColumns); @include respondTo(smallScreen) { float: left; width: 100%; } }
@if $behavior == center { @extend %fl-n; margin-left: auto; margin-right: auto; @extend %c-base; width: gridCalc($columns, $totalColumns); @include respondTo(smallScreen) { float: none; width: auto; }
} @else if $behavior == collapse { @extend %fl-l; @extend %c-base; padding: 0; width: gridCalc($columns, $totalColumns); @include respondTo(smallScreen) { float: none; width: auto; }
} @else { @extend %fl-l; @extend %c-base; width: gridCalc($columns, $totalColumns); @include respondTo(smallScreen) { float: none; width: auto; } }
}

// Offset Mixin, include after a column mixin to manipulate its grid offset.
Expand Down
10 changes: 5 additions & 5 deletions vendor/assets/javascripts/foundation/jquery.foundation.topbar.js
Expand Up @@ -127,7 +127,7 @@
// Put element back in the DOM
settings.$section.appendTo(settings.$topbar);
},

largestUL : function () {
var uls = settings.$topbar.find('section ul ul'),
largest = uls.first(),
Expand All @@ -154,17 +154,17 @@
$.error('Method ' + method + ' does not exist on jQuery.foundationTopBar');
}
};

// Monitor scroll position for sticky
if ($('.sticky').length > 0) {
var distance = $('.sticky').offset().top,
var distance = $('sticky').length ? $('.sticky').offset().top: 0,
$window = $(window);

$window.scroll(function() {
if ( $window.scrollTop() >= distance ) {
$(".sticky").addClass("fixed");
}

else if ( $window.scrollTop() < distance ) {
$(".sticky").removeClass("fixed");
}
Expand Down

0 comments on commit c5d0ce6

Please sign in to comment.