zurb-foundation 3.2.3 → 3.2.4.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/CHANGELOG.md +19 -0
  2. data/README.md +1 -0
  3. data/foundation.gemspec +1 -1
  4. data/lib/foundation/version.rb +1 -1
  5. data/scss/foundation/_settings.scss +8 -3
  6. data/scss/foundation/common/_forms.scss +6 -8
  7. data/scss/foundation/components/_grid.scss +8 -8
  8. data/scss/foundation/components/modules/_buttons.scss +11 -12
  9. data/scss/foundation/components/modules/_clearing.scss +1 -1
  10. data/scss/foundation/components/modules/_mqueries.scss +9 -9
  11. data/scss/foundation/components/modules/_orbit.scss +16 -16
  12. data/scss/foundation/components/modules/_reveal.scss +1 -2
  13. data/scss/foundation/components/modules/_tabs.scss +3 -3
  14. data/scss/foundation/components/modules/_topbar.scss +31 -5
  15. data/scss/foundation/components/modules/_ui.scss +7 -2
  16. data/scss/foundation/mixins/_semantic-grid.scss +3 -3
  17. data/templates/project/scss/_settings.scss +2 -0
  18. data/test/buttons.html +1 -0
  19. data/test/elements.html +1 -1
  20. data/test/grid.html +0 -11
  21. data/test/navigation.html +22 -0
  22. data/test/orbit.html +2 -1
  23. data/test/scss/_settings.scss +2 -0
  24. data/test/topbar-login.html +194 -0
  25. data/test/topbar.html +50 -95
  26. data/vendor/assets/javascripts/foundation/app.js +4 -1
  27. data/vendor/assets/javascripts/foundation/jquery.foundation.accordion.js +33 -24
  28. data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +3 -3
  29. data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +21 -5
  30. data/vendor/assets/javascripts/foundation/jquery.foundation.joyride.js +6 -6
  31. data/vendor/assets/javascripts/foundation/jquery.foundation.magellan.js +29 -22
  32. data/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +10 -5
  33. data/vendor/assets/javascripts/foundation/jquery.foundation.tabs.js +14 -4
  34. data/vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js +17 -8
  35. data/vendor/assets/javascripts/foundation/jquery.foundation.topbar.js +17 -1
  36. metadata +12 -14
  37. data/marketing/.rbenv-version +0 -1
@@ -3,6 +3,25 @@ We'll keep you up to date with what we've released so you at least have a gist o
3
3
 
4
4
  ---
5
5
 
6
+ ### 3.2.4- January 14, 2013
7
+ This path includes bug fixes and a few style improvements for small UI elements. This patch includes:
8
+ * Bumped Joyride to version 2.0.3
9
+ * Added centered pagination style
10
+ * Fixed bug with Orbit captions
11
+ * Fixed bugs with clicking on accordion element
12
+ * Added styling for buttons inside dropdowns
13
+ * We're now using max-width instead of width on tooltips
14
+ * Added class, .tip-centered-top and .top-centered-bottom for positioning tooltips
15
+ * Added functionality to create a stick top bar that enables it to be down the page in the markup and stick when it hits the browser edge.
16
+ * Fixes to the semantic grid mixin
17
+ * Added better :focus styles for error inputs
18
+ * Added settings for Top Bar Toggle color
19
+ * Updated Modular Scale to version 1.0.6
20
+ * Fixed bug with printing styles
21
+
22
+ ### 3.2.3
23
+ This patch fixed some quick bug fixes.
24
+
6
25
  ### 3.2.2- November 10, 2012
7
26
  This patch fixes a typo found in the tabs plugin.
8
27
 
data/README.md CHANGED
@@ -35,6 +35,7 @@ WordPress
35
35
  * [Reverie](http://themefortress.com/reverie/) by Zhen
36
36
  * [WP-Foundation](http://320press.com/wp-foundation/features/) by 320press
37
37
  * [Yeti](https://github.com/modlearning/Yeti) by Modular Learning
38
+ * [Foundation Base](https://github.com/petskratt/foundation-base/) by Peeter Marvet
38
39
 
39
40
  Joomla
40
41
 
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_dependency "compass", [">= 0.12.2"]
19
19
  gem.add_dependency "sass", [">= 3.2.0"]
20
- gem.add_dependency "modular-scale", [">= 1.0.2"]
20
+ gem.add_dependency "modular-scale", ["= 1.0.6"]
21
21
  gem.add_dependency "rake"
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module Foundation
2
- VERSION = "3.2.3"
2
+ VERSION = "3.2.4.rc1"
3
3
  end
@@ -23,7 +23,7 @@ $darkEdge: rgba(#000, .2) !default;
23
23
 
24
24
  // Font Settings
25
25
 
26
- $fontSmoothing: antialiased;
26
+ $fontSmoothing: antialiased !default;
27
27
  $headerFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
28
28
  $headerFontWeight: bold !default;
29
29
  $headerFontStyle: normal !default;
@@ -118,8 +118,12 @@ $topBarDropToggleSize: 5px !default;
118
118
  $topBarDropToggleColor: #fff !default;
119
119
  $topBarDropToggleAlpha: 0.5 !default;
120
120
  $topBarSearchWidth: 200px !default;
121
+ $topBarLoginWidth: 300px !default;
122
+ $topBarLoginButtonWidth: 60px !default;
123
+ $topBarLoginInputWidth: ($topBarLoginWidth - $topBarLoginButtonWidth) / 2 !default;
121
124
  $topBarBreakPoint: 940px !default; // Change to 9999px for always mobile layout
122
125
  $topBarNavToggleSize: 8px !default;
126
+ $topBarNavToggleColor: #fff !default;
123
127
 
124
128
  // UI Settings
125
129
 
@@ -130,6 +134,7 @@ $progBarBorderSize: 1px !default;
130
134
  $progBarPad: 2px !default;
131
135
  $linkListBottomMargin: 17px -22px !default;
132
136
  $tableBorderRadius: 3px !default;
137
+ $alertBorderRadius: 3px !default;
133
138
 
134
139
  // Tooltip Settings
135
140
 
@@ -143,10 +148,10 @@ $tooltipBackgroundOpacity: 0.85 !default;
143
148
  $tooltipFontSize: 12px !default;
144
149
  $tooltipFontWeight: bold !default;
145
150
  $tooltipFontColor: #fff !default;
146
- $tapToCloseFontSize: 10 !default;
151
+ $tapToCloseFontSize: 10px !default;
147
152
  $tapToCloseFontWeight: normal !default;
148
153
  $tapToCloseFontColor: #888 !default;
149
- $tooltipFontSizeScreenSm: 14 !default;
154
+ $tooltipFontSizeScreenSm: 14px !default;
150
155
  $tooltipBgOpacityScreenSm: 0.85 !default;
151
156
  $tooltipBorderRadius: 4px !default;
152
157
 
@@ -40,18 +40,16 @@
40
40
  select { width: 100%; }
41
41
 
42
42
  /* Fieldsets */
43
- fieldset { border: solid 1px #ddd; @include border-radius($fieldsetBorderRadius); padding: 12px 12px 0; margin: 18px 0;
43
+ fieldset { border: solid 1px #ddd; @include border-radius($fieldsetBorderRadius); padding: 12px; margin: 18px 0;
44
44
 
45
45
  legend { font-weight: bold; background: $white; padding: 0 3px; margin: 0; margin-#{$defaultFloat}: -3px; }
46
46
  }
47
47
 
48
48
  /* Errors */
49
- .error input, input.error, .error textarea, textarea.error { border-color: $alertColor; background-color: rgba($alertColor, 0.1); }
49
+ .error input, input.error, .error textarea, textarea.error, .error input:focus, input.error:focus, .error textarea:focus, textarea.error:focus { border-color: $alertColor; background-color: rgba($alertColor, 0.1); }
50
+ .error input:focus, input.error:focus, .error textarea:focus, textarea.error:focus { outline-color: lighten($alertColor, 30%); }
50
51
  .error label, label.error { color: $alertColor; }
51
- .error small, small.error { display: block; padding: 6px 4px; margin-top: -($formSpacing) - 1; margin-bottom: $formSpacing; background: $alertColor; color: #fff; font-size: ms(0) - 2; font-weight: bold; @include border-corner-radius(bottom, $defaultFloat, 2px); @include border-corner-radius(bottom, $defaultOpposite, $inputBorderRadius); }
52
- .error textarea, textarea.error {
53
- &:focus { background: darken($white, 2%); border-color: darken($white, 30%); }
54
- }
52
+ .error small, small.error { display: block; padding: 6px 4px; margin-top: -($formSpacing) - 1; margin-bottom: $formSpacing; background: $alertColor; color: #fff; font-size: ms(0) - 2; font-weight: bold; @include border-corner-radius(bottom, $defaultFloat, $inputBorderRadius); @include border-corner-radius(bottom, $defaultOpposite, $inputBorderRadius); }
55
53
  /* Custom Forms ---------------------- */
56
54
 
57
55
  form.custom {
@@ -114,6 +112,6 @@
114
112
 
115
113
  /* Correct FF custom dropdown height */
116
114
  @-moz-document url-prefix() {
117
- form.custom div.custom.dropdown a.selector { height: 30px; }
115
+ form.custom div.custom.dropdown a.selector { height: 28px; }
118
116
  }
119
- .lt-ie9 form.custom div.custom.dropdown a.selector { height: 30px; }
117
+ .lt-ie9 form.custom div.custom.dropdown a.selector { height: 28px; }
@@ -43,8 +43,8 @@
43
43
  .pull-#{convert-number-to-word($i)} { #{$defaultOpposite}: gridCalc($i, $totalColumns); }
44
44
  }
45
45
 
46
- img, object, embed { max-width: 100%; height: auto; }
47
- object, embed { height: 100%; }
46
+ img { height: auto; }
47
+ img, object, embed { max-width: 100%; }
48
48
  img { -ms-interpolation-mode: bicubic; }
49
49
  #map_canvas img, .map_canvas img {max-width: none!important;}
50
50
 
@@ -71,16 +71,16 @@ that IE7/8 do not support :nth-child.
71
71
  @for $i from 1 through $blockGridElements {
72
72
  &.#{convert-number-to-word($i)}-up {
73
73
  @if $i == 1 { margin: 0; }
74
- @if $i == 2 { margin: 0 -15px; }
75
- @if $i == 3 { margin: 0 -12px; }
76
- @if $i == 4 { margin: 0 -10px; }
74
+ @else if $i == 2 { margin: 0 -15px; }
75
+ @else if $i == 3 { margin: 0 -12px; }
76
+ @else if $i == 4 { margin: 0 -10px; }
77
77
  @else { margin: 0 -8px; }
78
78
  &>li {
79
79
  width: 100%/$i;
80
80
  @if $i == 1 { padding: 0 0 15px; }
81
- @if $i == 2 { padding: 0 15px 15px; }
82
- @if $i == 3 { padding: 0 12px 12px; }
83
- @if $i == 4 { padding: 0 10px 10px; }
81
+ @else if $i == 2 { padding: 0 15px 15px; }
82
+ @else if $i == 3 { padding: 0 12px 12px; }
83
+ @else if $i == 4 { padding: 0 10px 10px; }
84
84
  @else { padding: 0 8px 8px; }
85
85
  @if $i > 1 { &:nth-child(#{$i}n+1) { clear: both; } }
86
86
  }
@@ -37,7 +37,7 @@
37
37
 
38
38
  /* Disabled ---------- */
39
39
  &.disabled, &[disabled] { opacity: 0.6; cursor: default; background: $mainColor; @include box-shadow(none);
40
- :hover { background: $mainColor; }
40
+ &:hover { background: $mainColor; }
41
41
 
42
42
  &.success { background-color: $successColor;
43
43
  &:hover, &:focus { background-color: $successColor; outline: none; }
@@ -82,7 +82,8 @@
82
82
  &>ul { @include box-sizing(content-box); display: none; position: absolute; #{$defaultFloat}: -1px; background: #fff; background: rgba(#fff,0.95); list-style: none; margin: 0; padding: 0; border: 1px solid darken($white, 20%); border-top: none; min-width: 100%; z-index: 40;
83
83
 
84
84
  li { width: 100%; cursor: pointer; padding: 0; min-height: 18px; line-height: 18px; margin: 0; white-space: nowrap; list-style: none;
85
- a { display: block; color: #555; font-size: ms(0) - 1; font-weight: $bodyFontWeight; padding: 6px 14px; text-align: $defaultFloat; }
85
+ a, button { display: block; color: #555; font-size: ms(0) - 1; font-weight: $bodyFontWeight; padding: 6px 14px; text-align: $defaultFloat; }
86
+ button { width: 100%; border: inherit; background: inherit; font-family: inherit; margin: inherit; -webkit-font-smoothing: $fontSmoothing; }
86
87
  &:hover, &:focus { background-color: lighten($mainColor, 45%); color: #222; }
87
88
  &.divider { min-height: 0; padding: 0; height: 1px; margin: 4px 0; background: darken($white, 7%); }
88
89
  }
@@ -108,7 +109,7 @@
108
109
 
109
110
  /* Sizes */
110
111
  &>a { color: $white; display: block; padding: $btnBase (($btnBase * 2.5) * 2) ($btnBase + 1) ($btnBase * 2); padding-#{$defaultFloat}: $btnBase * 2; padding-#{$defaultOpposite}: ($btnBase * 2.5) * 2; @include single-transition(background-color, .15s, ease-in-out);
111
- &:hover, &:focus { background-color: darken($mainColor, 10%); }
112
+ &:hover, &:focus { background-color: darken($mainColor, 10%); @include box-shadow(0 1px 0 $shinyEdge inset); }
112
113
  }
113
114
  &.large>a { padding: $largeBtnBase (($largeBtnBase * 2.5) * 2) ($largeBtnBase + 1) ($largeBtnBase * 2); padding-#{$defaultFloat}: $largeBtnBase * 2; padding-#{$defaultOpposite}: ($largeBtnBase * 2.5) * 2; }
114
115
  &.small>a { padding: $smallBtnBase (($smallBtnBase * 2.5) * 2) ($smallBtnBase + 1) ($smallBtnBase * 2); padding-#{$defaultFloat}: $smallBtnBase * 2; padding-#{$defaultOpposite}: ($smallBtnBase * 2.5) * 2; }
@@ -150,16 +151,14 @@
150
151
  }
151
152
 
152
153
  &.radius li {
153
- a, input[type="submit"] {
154
- &.button, &.button.radius, &.button-rounded { @include border-radius(0px); }
155
- }
156
- &:first-child a, &:first-child input[type="submit"] {
157
- &.button, &.button.radius { @include border-corner-radius(top, $defaultFloat, $buttonRadius); @include border-corner-radius(bottom, $defaultFloat, $buttonRadius); }
158
- &.button.rounded { @include border-corner-radius(top, $defaultFloat, 1000px); @include border-corner-radius(bottom, $defaultFloat, 1000px); }
154
+ .button, .button.radius, .button-rounded { @include border-radius(0px); }
155
+ &:first-child {
156
+ .button, .button.radius { @include border-corner-radius(top, $defaultFloat, $buttonRadius); @include border-corner-radius(bottom, $defaultFloat, $buttonRadius); }
157
+ .button.rounded { @include border-corner-radius(top, $defaultFloat, 1000px); @include border-corner-radius(bottom, $defaultFloat, 1000px); }
159
158
  }
160
- &:last-child a, &:last-child input[type="submit"] {
161
- &.button, &.button.radius { @include border-corner-radius(top, $defaultOpposite, $buttonRadius); @include border-corner-radius(bottom, $defaultOpposite, $buttonRadius); }
162
- &.button.rounded { @include border-corner-radius(top, $defaultOpposite, 1000px); @include border-corner-radius(bottom, $defaultOpposite, 1000px); }
159
+ &:last-child {
160
+ .button, .button.radius { @include border-corner-radius(top, $defaultOpposite, $buttonRadius); @include border-corner-radius(bottom, $defaultOpposite, $buttonRadius); }
161
+ .button.rounded { @include border-corner-radius(top, $defaultOpposite, 1000px); @include border-corner-radius(bottom, $defaultOpposite, 1000px); }
163
162
  }
164
163
  }
165
164
 
@@ -21,7 +21,7 @@
21
21
  .clearing-main-left { left: 10px; @include cssTriangle($clearingArrowSize,$clearingArrowColor,right); }
22
22
  .clearing-main-right { right: 10px; @include cssTriangle($clearingArrowSize,$clearingArrowColor,left); }
23
23
 
24
- .block-grid.three-up > li:nth-child(3n+1) { clear: none; }
24
+ ul[data-clearing].block-grid.three-up > li:nth-child(3n+1) { clear: none; }
25
25
 
26
26
  ul[data-clearing] li { cursor: pointer; display: block;
27
27
  &.clearing-feature ~ li { display: none; }
@@ -218,7 +218,7 @@
218
218
  }
219
219
 
220
220
  .block-grid {
221
- &>li { clear: none !important; }
221
+ &>li { clear: none; }
222
222
  @for $i from 1 through $blockGridElements {
223
223
  &.mobile-#{convert-number-to-word($i)}-up>li {
224
224
  width: 100%/$i;
@@ -259,7 +259,7 @@
259
259
 
260
260
  /* Basic overrides */
261
261
  .button { display: block; }
262
- button.button, input[type="submit"].button { width: 100%; padding-#{$defaultFloat}: 0; padding-#{$defaultOpposite}: 0; }
262
+ button.button, input[type="submit"].button, input[type="reset"].button { width: 100%; padding-#{$defaultFloat}: 0; padding-#{$defaultOpposite}: 0; }
263
263
  /* Button Groups */
264
264
  .button-group {
265
265
  button.button, input[type="submit"].button { width: auto; padding: $btnBase ($btnBase * 2) ($btnBase + 1);
@@ -319,9 +319,9 @@
319
319
  dt, li, dd { float: none; height: auto; }
320
320
  dd a, li a { font-size: ms(0) + 1; display: block; width: auto; height: auto; padding: 18px 20px; margin: 0; color: #555; line-height: 1; border: none; border-#{$defaultFloat}: none; border-#{$defaultOpposite}: none; border-top: 1px solid #ccc; background: #fff; }
321
321
  dd a.active, li a.active { border: none; background: $mainColor; color: #fff; margin: 0; position: static; top: 0; height: auto; }
322
- dd:first-child, li:first-child { padding-left: 20px !important; }
323
322
  dd:first-child a.active, li:first-child a.active { margin: 0; }
324
- &+.tabs-content.contained { margin-left:-15px; margin-right:-15px; }
323
+ &+.tabs-content.contained { margin-#{$defaultFloat}:-15px; margin-#{$defaultOpposite}:-15px; }
324
+ .section-title { padding-#{$defaultFloat}: 20px !important; }
325
325
  }
326
326
 
327
327
  .contained.mobile { margin-bottom: 0; }
@@ -358,7 +358,7 @@
358
358
  .contain-to-grid & { width: auto; }
359
359
 
360
360
  /* Setting up the sliding area */
361
- section { left: 0; position: relative; width: auto; @include single-transition(left, 300ms); }
361
+ section { left: 0; position: relative; width: auto; @include single-transition(left,300ms,0); }
362
362
  ul { width: 100%; height: 100%; margin-bottom: 0; display: block;
363
363
  &>li { float: none;
364
364
  &.active, &:hover { background: darken($topBarDropBgColor, 5%); }
@@ -373,7 +373,7 @@
373
373
 
374
374
  /* Dropdown Toggle */
375
375
  &.toggle-topbar { cursor: pointer; display: block; height: $topBarHeightMobile; position: absolute; right: 0; top: 0; width: 50%;
376
- a { @include cssTriangle($topBarNavToggleSize, #fff, top); padding: 0; position: absolute; top: 50%; right: $topBarHeightMobile / 2; margin-top: -($topBarNavToggleSize / 2); }
376
+ a { @include cssTriangle($topBarNavToggleSize, $topBarNavToggleColor, top); padding: 0; position: absolute; top: 50%; right: $topBarHeightMobile / 2; margin-top: -($topBarNavToggleSize / 2); }
377
377
  @if $topBarBreakPoint == 9999px { a { right: ($topBarHeight / 2) + ($columnGutter / 2);} }
378
378
  &:hover { background: inherit; }
379
379
  }
@@ -386,7 +386,7 @@
386
386
  &.search { padding: 0 $topBarHeight / 2;
387
387
  form { width: 100%;
388
388
  input[type=text] { width: 75%; }
389
- .button { top: 0; width: 25%; }
389
+ .button { top: -1px; width: 25%; }
390
390
  }
391
391
  }
392
392
 
@@ -447,7 +447,7 @@
447
447
 
448
448
  /* When the Small Nav is Showing */
449
449
  &.expanded { height: 100%;
450
- ul li.toggle-topbar a { @include cssTriangle($topBarNavToggleSize, rgba(255,255,255,0.5), bottom); top: auto; bottom: 50%; margin-bottom: -($topBarNavToggleSize / 2); }
450
+ ul li.toggle-topbar a { @include cssTriangle($topBarNavToggleSize, darken($topBarNavToggleColor, 20%), bottom); top: auto; bottom: 50%; margin-bottom: -($topBarNavToggleSize / 2); }
451
451
  }
452
452
  }
453
453
  .top-bar ul li.has-button { padding: 5px $topBarHeightMobile / 3; }
@@ -455,4 +455,4 @@
455
455
  .top-bar ul > li.has-button {
456
456
  a.button { margin: 0; }
457
457
  }
458
- }
458
+ }
@@ -21,8 +21,8 @@
21
21
 
22
22
  /* Timer ---------------------- */
23
23
 
24
- div.orbit-wrapper {
25
- div.timer { width: 40px; height: 40px; overflow: hidden; position: absolute; top: 10px; #{$defaultOpposite}: 10px; opacity: .6; cursor: pointer; z-index: 31; }
24
+ .orbit-wrapper {
25
+ .timer { width: 40px; height: 40px; overflow: hidden; position: absolute; top: 10px; #{$defaultOpposite}: 10px; opacity: .6; cursor: pointer; z-index: 31; }
26
26
  span.rotator { display: block; width: 40px; height: 40px; position: absolute; top: 0; #{$defaultFloat}: -20px; background: image-url("foundation/orbit/rotator-black.png") no-repeat; z-index: 3;
27
27
  &.move { #{$defaultFloat}: 0 }
28
28
  }
@@ -32,7 +32,7 @@
32
32
  span.pause { display: block; width: 40px; height: 40px; position: absolute; top: 0; #{$defaultFloat}: 0; background: image-url("foundation/orbit/pause-black.png") no-repeat; z-index: 4; opacity: 0;
33
33
  &.active { background: image-url("foundation/orbit/pause-black.png") no-repeat 0 -40px; }
34
34
  }
35
- div.timer:hover span.pause, div.timer:focus span.pause, span.pause.active { opacity: 1 }
35
+ .timer:hover span.pause, .timer:focus span.pause, span.pause.active { opacity: 1 }
36
36
  }
37
37
 
38
38
  /* Captions ---------------------- */
@@ -42,17 +42,17 @@
42
42
 
43
43
  /* Directional Nav ---------------------- */
44
44
 
45
- div.orbit-wrapper {
46
- div.slider-nav { display: block; }
47
- div.slider-nav span { width: 39px; height: 50px; text-indent: -9999px; position: absolute; z-index: 30; top: 50%; margin-top: -25px; cursor: pointer; }
48
- div.slider-nav span.#{$defaultOpposite} { background: image-url("foundation/orbit/#{$defaultOpposite}-arrow.png"); background-size: 100%; #{$defaultOpposite}: 0; }
49
- div.slider-nav span.#{$defaultFloat} { background: image-url("foundation/orbit/#{$defaultFloat}-arrow.png"); background-size: 100%; #{$defaultFloat}: 0; }
45
+ .orbit-wrapper {
46
+ .slider-nav { display: block; }
47
+ .slider-nav span { width: 39px; height: 50px; text-indent: -9999px; position: absolute; z-index: 30; top: 50%; margin-top: -25px; cursor: pointer; }
48
+ .slider-nav span.#{$defaultOpposite} { background: image-url("foundation/orbit/#{$defaultOpposite}-arrow.png"); background-size: 100%; #{$defaultOpposite}: 0; }
49
+ .slider-nav span.#{$defaultFloat} { background: image-url("foundation/orbit/#{$defaultFloat}-arrow.png"); background-size: 100%; #{$defaultFloat}: 0; }
50
50
  }
51
51
 
52
52
  .lt-ie9 {
53
- div.orbit-wrapper {
54
- div.slider-nav span.#{$defaultOpposite} { background: image-url("foundation/orbit/#{$defaultOpposite}-arrow-small.png"); }
55
- div.slider-nav span.#{$defaultFloat} { background: image-url("foundation/orbit/#{$defaultFloat}-arrow-small.png"); }
53
+ .orbit-wrapper {
54
+ .slider-nav span.#{$defaultOpposite} { background: image-url("foundation/orbit/#{$defaultOpposite}-arrow-small.png"); }
55
+ .slider-nav span.#{$defaultFloat} { background: image-url("foundation/orbit/#{$defaultFloat}-arrow-small.png"); }
56
56
  }
57
57
  }
58
58
 
@@ -71,19 +71,19 @@
71
71
 
72
72
  /* Fluid Layout ---------------------- */
73
73
 
74
- div.orbit img.fluid-placeholder { visibility: hidden; position: static; display: block; width: 100%; }
75
- div.orbit, div.orbit-wrapper { width: 100% !important; }
74
+ .orbit img.fluid-placeholder { visibility: hidden; position: static; display: block; width: 100%; }
75
+ .orbit, .orbit-wrapper { width: 100% !important; }
76
76
 
77
77
  /* Correct timer in IE */
78
78
  .lt-ie9 .timer { display: none !important; }
79
- .lt-ie9 div.orbit-caption { background: $orbitCaptionBgColorOldBrowser; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
79
+ .lt-ie9 .orbit-caption { background: $orbitCaptionBgColorOldBrowser; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; }
80
80
 
81
81
  // Allow slides to be stacked on mobile devices
82
82
  @media only screen and (max-width: $screenSmall - 1) {
83
- div.orbit.orbit-stack-on-small img.fluid-placeholder {
83
+ .orbit.orbit-stack-on-small img.fluid-placeholder {
84
84
  visibility:visible;
85
85
  }
86
- div.orbit.orbit-stack-on-small .orbit-slide {
86
+ .orbit.orbit-stack-on-small .orbit-slide {
87
87
  position:static;
88
88
  margin-bottom:10px;
89
89
  }
@@ -9,7 +9,7 @@
9
9
  .reveal-modal-bg { position: fixed; height: 100%; width: 100%; background: #000; background: rgba(#000, .45); z-index: 40; display: none; top: 0; #{$defaultFloat}: 0; }
10
10
 
11
11
  .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));
12
- .close-reveal-modal {
12
+ .close-reveal-modal:not(.button) {
13
13
  @include font-size(22);
14
14
  line-height: .5;
15
15
  position: absolute;
@@ -30,6 +30,5 @@
30
30
  > :last-child { margin-bottom: 0; }
31
31
  }
32
32
  @media print {
33
- div:not(.reveal-modal) { display: none; }
34
33
  .reveal-modal { border: solid 1px #000; background: #fff; }
35
34
  }
@@ -49,9 +49,9 @@
49
49
  dt a, dd a, li a { padding: 0 ms(1); text-align: center; overflow: hidden; }
50
50
  }
51
51
  &.two-up dt, &.two-up dd, &.two-up li { width: 50%; }
52
- &.three-up dt, &.three-up dd, &.two-up li { width: 33.33%; }
53
- &.four-up dt, &.four-up dd, &.two-up li { width: 25%; }
54
- &.five-up dt, &.five-up dd, &.two-up li { width: 20%; }
52
+ &.three-up dt, &.three-up dd, &.three-up li { width: 33.33%; }
53
+ &.four-up dt, &.four-up dd, &.four-up li { width: 25%; }
54
+ &.five-up dt, &.five-up dd, &.five-up li { width: 20%; }
55
55
  }
56
56
 
57
57
  ul.tabs-content { display: block; margin: 0 0 20px; padding: 0;
@@ -21,8 +21,13 @@
21
21
  /* Wrapped around .top-bar to make it fixed at the top */
22
22
  .fixed { width: 100%; left: 0; position: fixed; top: 0; z-index: 99; }
23
23
 
24
+ /* Add .sticky class for using top bar as a sticky navigation when scrolling passed it. Add the class .sticky to a top bar using .contain-to-grid but leave off .fixed, javascript will take care of that */
25
+ .sticky { float: left; overflow: hidden;
26
+ &.fixed { float: none; }
27
+ }
28
+
24
29
  /* <nav> */
25
- .top-bar { background: $topBarBgColor; height: $topBarHeight; line-height: $topBarHeight; margin: 0 0 $topBarBtmMargin; padding: 0; width: 100%; position: relative;
30
+ .top-bar { background: $topBarBgColor; min-height: $topBarHeight; line-height: $topBarHeight; margin: 0 0 $topBarBtmMargin 0; padding: 0; width: 100%; position: relative;
26
31
 
27
32
  /* Contain width to .row width */
28
33
  .contain-to-grid & { max-width: $rowWidth; margin: 0 auto; }
@@ -64,7 +69,8 @@
64
69
  /* Put a search bar or text input in the bar */
65
70
  &.search { padding: 0 $topBarHeight / 3;
66
71
  form { display: inline-block; margin-bottom: 0; vertical-align: middle; width: $topBarSearchWidth;
67
- input[type=text] { @include border-right-radius(0); float: left; font-size: ms(0) - 1; margin-top: -1px; height: $topBarHeight / 2; //28px margin-bottom: 0; width: $topBarSearchWidth - 70px;
72
+ input[type=text] { @include border-right-radius(0); float: left; font-size: ms(0) - 1; margin-top: -1px; height: $topBarHeight / 2; //28px
73
+ margin-bottom: 0; width: $topBarSearchWidth - 70px;
68
74
  &+.button { border-left: none; @include border-left-radius(0); float: left; font-size: ms(0) - 2; margin-top: -1px; padding: 5px 12px 4px; }
69
75
  }
70
76
  input[type=search] { font-size: 16px; margin-bottom: 0; }
@@ -72,6 +78,18 @@
72
78
  &:hover, &:focus { background: $topBarBgColor; }
73
79
  }
74
80
 
81
+ /* Put login bar in the top bar */
82
+ &.login {padding: 0 $topBarHeight / 3;
83
+ form {display: inline-block; margin-bottom: 0; vertical-align: middle; width: $topBarLoginWidth;
84
+ input{float: left; width: auto; font-size: ms(0) - 1; margin-top: -1px; height: $topBarHeight / 2; margin-bottom: 0; }
85
+ input[type=text]{ @include border-right-radius(0); width: $topBarLoginInputWidth;}
86
+ input[type=password] { margin-bottom: 0; @include border-left-radius(0); width: $topBarLoginInputWidth;
87
+ &+.button {border-left: none; @include border-left-radius(0); @include border-right-radius(2px); float: left; font-size: ms(0) - 2; margin-top: -1px; padding: 5px 12px 4px; width: $topBarLoginButtonWidth;}
88
+ }
89
+ }
90
+ &:hover, &:focus { background: $topBarBgColor; }
91
+ }
92
+
75
93
  /* Hide the triangle for breakpoint menu */
76
94
  &.toggle-topbar { display: none; }
77
95
 
@@ -113,7 +131,7 @@
113
131
  /* Right Side <ul> */
114
132
  &.right { float: right; width: auto; margin-bottom: 0;
115
133
  /* Dropdown Right Side Alignment */
116
- .has-dropdown .dropdown { left: auto; right: -1px;
134
+ .has-dropdown .dropdown { left: auto; right: 0px;
117
135
  li.has-dropdown > .dropdown { right: 100%; left: auto; width: 100%; }
118
136
  }
119
137
  }
@@ -131,9 +149,17 @@
131
149
  /* IE8 Fixes */
132
150
  .lt-ie9 .top-bar ul li a { color: $topBarLinkColor; display: block; font-weight: $topBarLinkWeight; font-size: $topBarLinkSize; height: $topBarHeight; line-height: $topBarHeight; padding: 0 $topBarHeight / 3;
133
151
  &.button { height: auto; line-height: 30px; margin-top: 7px; }
134
- &:hover, &:focus { color: darken($topBarLinkColor, 20%); }
135
152
  img { margin-top: -5px; vertical-align: middle; }
136
- &.active { background: darken($topBarBgColor, 5%); color: darken($topBarLinkColor, 15%); }
153
+ }
154
+ .lt-ie9 .top-bar section > ul > li
155
+ {
156
+ a
157
+ {
158
+ &:hover, &:focus {color: darken($topBarLinkColor, 20%); }
159
+ }
160
+ &:hover, &:focus { background: darken($topBarBgColor, 15%) }
161
+ &.search:hover,&.search:focus,&.has-button:hover,&.has-button:focus { background: none }
162
+ &.active { background: darken($topBarBgColor, 15%); color: darken($topBarLinkColor, 15%); }
137
163
  }
138
164
  .lt-ie9 .top-bar ul li.has-dropdown {
139
165
  padding-right: $topBarHeight * .75;