zurb-foundation 4.3.1 → 4.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/Gemfile.lock +31 -2
  4. data/Gruntfile.js +54 -10
  5. data/LICENSE +2 -2
  6. data/README.md +11 -2
  7. data/Rakefile +9 -0
  8. data/docs/CHANGELOG.md +9 -0
  9. data/docs/Procfile +2 -2
  10. data/docs/components/abide.html.erb +30 -6
  11. data/docs/components/alert-boxes.html.erb +35 -10
  12. data/docs/components/block-grid.html.erb +1 -1
  13. data/docs/components/breadcrumbs.html.erb +4 -4
  14. data/docs/components/button-groups.html.erb +2 -2
  15. data/docs/components/buttons.html.erb +10 -10
  16. data/docs/components/clearing.html.erb +28 -2
  17. data/docs/components/custom-forms.html.erb +9 -1
  18. data/docs/components/dropdown-buttons.html.erb +36 -11
  19. data/docs/components/dropdown.html.erb +44 -13
  20. data/docs/components/flex-video.html.erb +3 -3
  21. data/docs/components/forms.html.erb +10 -10
  22. data/docs/components/global.html.erb +15 -20
  23. data/docs/components/grid.html.erb +24 -23
  24. data/docs/components/inline-lists.html.erb +3 -3
  25. data/docs/components/interchange.html.erb +28 -2
  26. data/docs/components/joyride.html.erb +34 -10
  27. data/docs/components/keystrokes.html.erb +3 -3
  28. data/docs/components/kitchen-sink.html.erb +1 -1
  29. data/docs/components/labels.html.erb +3 -3
  30. data/docs/components/magellan.html.erb +25 -2
  31. data/docs/components/orbit.html.erb +39 -9
  32. data/docs/components/pagination.html.erb +7 -7
  33. data/docs/components/panels.html.erb +3 -3
  34. data/docs/components/pricing-tables.html.erb +11 -11
  35. data/docs/components/progress-bars.html.erb +5 -5
  36. data/docs/components/reveal.html.erb +31 -8
  37. data/docs/components/section.html.erb +61 -37
  38. data/docs/components/side-nav.html.erb +4 -4
  39. data/docs/components/split-buttons.html.erb +37 -15
  40. data/docs/components/sub-nav.html.erb +10 -6
  41. data/docs/components/switch.html.erb +2 -2
  42. data/docs/components/tables.html.erb +7 -7
  43. data/docs/components/tooltips.html.erb +30 -6
  44. data/docs/components/top-bar.html.erb +101 -13
  45. data/docs/components/type.html.erb +16 -16
  46. data/docs/config.ru +18 -1
  47. data/docs/controller.rb +1 -1
  48. data/docs/css/_coderay.scss +2 -2
  49. data/docs/css/_footer.scss +7 -7
  50. data/docs/css/_offcanvas.scss +16 -16
  51. data/docs/css/docs.scss +1 -3
  52. data/docs/index.html.erb +29 -29
  53. data/docs/layout.html.erb +5 -5
  54. data/docs/media-queries.html.erb +3 -3
  55. data/docs/rails.html.erb +2 -1
  56. data/docs/sass.html.erb +188 -146
  57. data/docs/support.html.erb +2 -2
  58. data/foundation.gemspec +1 -0
  59. data/js/foundation/foundation.abide.js +5 -5
  60. data/js/foundation/foundation.alerts.js +9 -4
  61. data/js/foundation/foundation.clearing.js +2 -2
  62. data/js/foundation/foundation.dropdown.js +11 -5
  63. data/js/foundation/foundation.forms.js +51 -28
  64. data/js/foundation/foundation.joyride.js +7 -5
  65. data/js/foundation/foundation.js +25 -1
  66. data/js/foundation/foundation.magellan.js +3 -2
  67. data/js/foundation/foundation.orbit.js +78 -58
  68. data/js/foundation/foundation.placeholder.js +424 -177
  69. data/js/foundation/foundation.reveal.js +39 -16
  70. data/js/foundation/foundation.section.js +62 -32
  71. data/js/foundation/foundation.tooltips.js +3 -2
  72. data/js/foundation/foundation.topbar.js +139 -69
  73. data/lib/foundation/generators/templates/application.html.erb +2 -1
  74. data/lib/foundation/version.rb +1 -1
  75. data/lib/zurb-foundation.rb +12 -0
  76. data/package.json +4 -3
  77. data/scss/foundation/_variables.scss +183 -159
  78. data/scss/foundation/components/_alert-boxes.scss +8 -8
  79. data/scss/foundation/components/_block-grid.scss +1 -1
  80. data/scss/foundation/components/_breadcrumbs.scss +3 -3
  81. data/scss/foundation/components/_button-groups.scss +2 -2
  82. data/scss/foundation/components/_buttons.scss +20 -20
  83. data/scss/foundation/components/_custom-forms.scss +19 -14
  84. data/scss/foundation/components/_dropdown-buttons.scss +8 -8
  85. data/scss/foundation/components/_dropdown.scss +4 -4
  86. data/scss/foundation/components/_flex-video.scss +2 -2
  87. data/scss/foundation/components/_forms.scss +28 -18
  88. data/scss/foundation/components/_global.scss +43 -18
  89. data/scss/foundation/components/_grid-5.scss +4 -4
  90. data/scss/foundation/components/_grid.scss +6 -4
  91. data/scss/foundation/components/_inline-lists.scss +3 -3
  92. data/scss/foundation/components/_joyride.scss +10 -10
  93. data/scss/foundation/components/_keystrokes.scss +2 -2
  94. data/scss/foundation/components/_labels.scss +2 -2
  95. data/scss/foundation/components/_orbit.scss +58 -44
  96. data/scss/foundation/components/_pagination.scss +6 -6
  97. data/scss/foundation/components/_panels.scss +7 -4
  98. data/scss/foundation/components/_pricing-tables.scss +10 -10
  99. data/scss/foundation/components/_progress-bars.scss +3 -3
  100. data/scss/foundation/components/_reveal.scss +5 -5
  101. data/scss/foundation/components/_section.scss +21 -21
  102. data/scss/foundation/components/_side-nav.scss +3 -3
  103. data/scss/foundation/components/_split-buttons.scss +7 -7
  104. data/scss/foundation/components/_sub-nav.scss +26 -10
  105. data/scss/foundation/components/_switch.scss +15 -11
  106. data/scss/foundation/components/_tables.scss +6 -6
  107. data/scss/foundation/components/_thumbs.scss +2 -4
  108. data/scss/foundation/components/_tooltips.scss +4 -4
  109. data/scss/foundation/components/_top-bar.scss +77 -39
  110. data/scss/foundation/components/_type.scss +25 -23
  111. data/scss/foundation/components/_visibility.scss +28 -28
  112. data/scss/normalize.scss +22 -14
  113. data/spec/js/SectionSpec.js +39 -0
  114. data/spec/js/helpers/SectionSpecHelper.js +22 -0
  115. data/spec/js/helpers/SpecHelper.js +19 -0
  116. metadata +32 -25
  117. data/.rbenv-version +0 -1
@@ -4,18 +4,18 @@
4
4
  $include-html-nav-classes: $include-html-classes !default;
5
5
 
6
6
  // We use these to control the pagination container
7
- $pagination-height: emCalc(24) !default;
8
- $pagination-margin: emCalc(-5) !default;
7
+ $pagination-height: em-calc(24) !default;
8
+ $pagination-margin: em-calc(-5) !default;
9
9
 
10
10
  // We use these to set the list-item properties
11
11
  $pagination-li-float: $default-float;
12
- $pagination-li-height: emCalc(24) !default;
12
+ $pagination-li-height: em-calc(24) !default;
13
13
  $pagination-li-font-color: #222 !default;
14
- $pagination-li-font-size: emCalc(14) !default;
15
- $pagination-li-margin: emCalc(5) !default;
14
+ $pagination-li-font-size: em-calc(14) !default;
15
+ $pagination-li-margin: em-calc(5) !default;
16
16
 
17
17
  // We use these for the pagination anchor links
18
- $pagination-link-pad: emCalc(1, 7, 1) !default;
18
+ $pagination-link-pad: em-calc(1 7 1) !default;
19
19
  $pagination-link-font-color: #999 !default;
20
20
  $pagination-link-active-bg: darken(#fff, 10%) !default;
21
21
 
@@ -13,15 +13,15 @@ $panel-function-factor: 10% !default;
13
13
  $panel-border-color: darken($panel-bg, $panel-function-factor) !default;
14
14
 
15
15
  // We use these to set default inner padding and bottom margin
16
- $panel-margin-bottom: emCalc(20) !default;
17
- $panel-padding: emCalc(20) !default;
16
+ $panel-margin-bottom: em-calc(20) !default;
17
+ $panel-padding: em-calc(20) !default;
18
18
 
19
19
  // We use these to set default font colors
20
20
  $panel-font-color: #333 !default;
21
21
  $panel-font-color-alt: #fff !default;
22
22
 
23
23
  $panel-header-adjust: true !default;
24
-
24
+ $callout-panel-link-color: #fff !default;
25
25
  //
26
26
  // Panel Mixins
27
27
  //
@@ -52,7 +52,7 @@ $panel-header-adjust: true !default;
52
52
 
53
53
  // reset header line-heights for panels
54
54
  h1,h2,h3,h4,h5,h6 {
55
- line-height: 1; margin-bottom: emCalc(20) / 2;
55
+ line-height: 1; margin-bottom: em-calc(20) / 2;
56
56
  &.subheader { line-height: 1.4; }
57
57
  }
58
58
  }
@@ -68,6 +68,9 @@ $panel-header-adjust: true !default;
68
68
  &.callout {
69
69
  @include panel($primary-color);
70
70
  @include inset-shadow($active:false);
71
+ a {
72
+ color: $callout-panel-link-color;
73
+ }
71
74
  }
72
75
 
73
76
  &.radius {
@@ -7,46 +7,46 @@ $include-html-pricing-classes: $include-html-classes !default;
7
7
  $price-table-border: solid 1px #ddd !default;
8
8
 
9
9
  // We use this to control the bottom margin of the pricing table
10
- $price-table-margin-bottom: emCalc(20) !default;
10
+ $price-table-margin-bottom: em-calc(20) !default;
11
11
 
12
12
  // We use these to control the title styles
13
13
  $price-title-bg: #ddd !default;
14
- $price-title-padding: emCalc(15, 20) !default;
14
+ $price-title-padding: em-calc(15 20) !default;
15
15
  $price-title-align: center !default;
16
16
  $price-title-color: #333 !default;
17
17
  $price-title-weight: bold !default;
18
- $price-title-size: emCalc(16) !default;
18
+ $price-title-size: em-calc(16) !default;
19
19
 
20
20
  // We use these to control the price styles
21
21
  $price-money-bg: #eee !default;
22
- $price-money-padding: emCalc(15, 20) !default;
22
+ $price-money-padding: em-calc(15 20) !default;
23
23
  $price-money-align: center !default;
24
24
  $price-money-color: #333 !default;
25
25
  $price-money-weight: normal !default;
26
- $price-money-size: emCalc(20) !default;
26
+ $price-money-size: em-calc(20) !default;
27
27
 
28
28
  // We use these to control the description styles
29
29
  $price-bg: #fff !default;
30
30
  $price-desc-color: #777 !default;
31
- $price-desc-padding: emCalc(15) !default;
31
+ $price-desc-padding: em-calc(15) !default;
32
32
  $price-desc-align: center !default;
33
- $price-desc-font-size: emCalc(12) !default;
33
+ $price-desc-font-size: em-calc(12) !default;
34
34
  $price-desc-weight: normal !default;
35
35
  $price-desc-line-height: 1.4 !default;
36
36
  $price-desc-bottom-border: dotted 1px #ddd !default;
37
37
 
38
38
  // We use these to control the list item styles
39
39
  $price-item-color: #333 !default;
40
- $price-item-padding: emCalc(15) !default;
40
+ $price-item-padding: em-calc(15) !default;
41
41
  $price-item-align: center !default;
42
- $price-item-font-size: emCalc(14) !default;
42
+ $price-item-font-size: em-calc(14) !default;
43
43
  $price-item-weight: normal !default;
44
44
  $price-item-bottom-border: dotted 1px #ddd !default;
45
45
 
46
46
  // We use these to control the CTA area styles
47
47
  $price-cta-bg: #f5f5f5 !default;
48
48
  $price-cta-align: center !default;
49
- $price-cta-padding: emCalc(20, 20, 0) !default;
49
+ $price-cta-padding: em-calc(20 20 0) !default;
50
50
 
51
51
  //
52
52
  // Pricing Table Mixins
@@ -4,7 +4,7 @@
4
4
  $include-html-media-classes: $include-html-classes !default;
5
5
 
6
6
  // We use this to se the prog bar height
7
- $progress-bar-height: emCalc(25) !default;
7
+ $progress-bar-height: em-calc(25) !default;
8
8
  $progress-bar-color: transparent !default;
9
9
 
10
10
  // We use these to control the border styles
@@ -14,8 +14,8 @@ $progress-bar-border-style: solid !default;
14
14
  $progress-bar-border-radius: $global-radius !default;
15
15
 
16
16
  // We use these to control the margin & padding
17
- $progress-bar-pad: emCalc(2) !default;
18
- $progress-bar-margin-bottom: emCalc(10) !default;
17
+ $progress-bar-pad: em-calc(2) !default;
18
+ $progress-bar-margin-bottom: em-calc(10) !default;
19
19
 
20
20
  // We use these to set the meter colors
21
21
  $progress-meter-color: $primary-color !default;
@@ -12,13 +12,13 @@ $reveal-overlay-bg-old: #000 !default;
12
12
  $reveal-modal-bg: #fff !default;
13
13
  $reveal-position-top: 50px !default;
14
14
  $reveal-default-width: 80% !default;
15
- $reveal-modal-padding: emCalc(20) !default;
15
+ $reveal-modal-padding: em-calc(20) !default;
16
16
  $reveal-box-shadow: 0 0 10px rgba(#000,.4) !default;
17
17
 
18
18
  // We use these to style the reveal close button
19
- $reveal-close-font-size: emCalc(22) !default;
20
- $reveal-close-top: emCalc(8) !default;
21
- $reveal-close-side: emCalc(11) !default;
19
+ $reveal-close-font-size: em-calc(22) !default;
20
+ $reveal-close-top: em-calc(8) !default;
21
+ $reveal-close-side: em-calc(11) !default;
22
22
  $reveal-close-color: #aaa !default;
23
23
  $reveal-close-weight: bold !default;
24
24
 
@@ -119,7 +119,7 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
119
119
  @media #{$small} {
120
120
 
121
121
  .#{$reveal-modal-class} {
122
- @include reveal-modal-style(false, emCalc(30), false, $box-shadow: false, $top-offset: emCalc(100));
122
+ @include reveal-modal-style(false, em-calc(30), false, $box-shadow: false, $top-offset: em-calc(100));
123
123
 
124
124
  &.tiny { @include reveal-modal-base(false, 30%); }
125
125
  &.small { @include reveal-modal-base(false, 40%); }
@@ -4,8 +4,8 @@
4
4
  $include-html-section-classes: $include-html-classes !default;
5
5
 
6
6
  // We use these to set padding and hover factor
7
- $section-title-padding: emCalc(15) !default;
8
- $section-content-padding: emCalc(15) !default;
7
+ $section-title-padding: em-calc(15) !default;
8
+ $section-content-padding: em-calc(15) !default;
9
9
  $section-function-factor: 10% !default;
10
10
 
11
11
  // These style the titles
@@ -22,13 +22,13 @@ $section-border-style: solid !default;
22
22
  $section-border-color: #ccc !default;
23
23
 
24
24
  // Font controls
25
- $section-font-size: emCalc(14) !default;
25
+ $section-font-size: em-calc(14) !default;
26
26
 
27
27
  // Control the color of the background and some size options
28
28
  $section-content-bg: #fff !default;
29
- $section-vertical-nav-min-width: emCalc(200) !default;
30
- $section-vertical-tabs-title-width: emCalc(200) !default;
31
- $section-bottom-margin: emCalc(20) !default;
29
+ $section-vertical-nav-min-width: em-calc(200) !default;
30
+ $section-vertical-tabs-title-width: em-calc(200) !default;
31
+ $section-bottom-margin: em-calc(20) !default;
32
32
 
33
33
  $title-selector: ".title" !default;
34
34
  $content-selector: ".content" !default;
@@ -50,12 +50,12 @@ $active-region-selector: ".active" !default;
50
50
  visibility: hidden;
51
51
  }
52
52
  }
53
-
53
+
54
54
  @if $section-type != tabs {
55
55
  &[data-section-small-style] {
56
56
  width: 100% !important; // override inline style
57
57
 
58
- & > [data-section-region], & > section, & > .section {
58
+ & > [data-section-region], & > section, & > .section {
59
59
  padding: 0 !important; // override inline style
60
60
  margin: 0 !important; // override inline style
61
61
  & > [data-section-title], & > #{$title-selector}{
@@ -113,7 +113,7 @@ $active-region-selector: ".active" !default;
113
113
  }
114
114
 
115
115
  &#{$active-region-selector} {
116
- & > [data-section-content], & > #{$content-selector} { display: block; }
116
+ & > [data-section-content], & > #{$content-selector} { display: block; }
117
117
  }
118
118
 
119
119
  &:not(#{$active-region-selector}) {
@@ -151,14 +151,14 @@ $active-region-selector: ".active" !default;
151
151
  padding-#{$default-float}: $section-vertical-tabs-title-width;
152
152
 
153
153
  & > [data-section-title], & > #{$title-selector} {
154
- width: $section-vertical-tabs-title-width;
154
+ width: $section-vertical-tabs-title-width;
155
155
  }
156
156
  }
157
157
  }
158
158
 
159
159
  // Styles for when Vertical Nav
160
160
  @else if $section-type == vertical-nav {
161
-
161
+
162
162
  position: relative;
163
163
  display: inline-block;
164
164
 
@@ -228,7 +228,7 @@ $active-region-selector: ".active" !default;
228
228
  }
229
229
 
230
230
  &#{$active-region-selector} {
231
- & > #{$title-selector} {
231
+ & > #{$title-selector} {
232
232
  background: $title-bg-active;
233
233
  a { color: $title-color-active; }
234
234
  }
@@ -255,10 +255,10 @@ $active-region-selector: ".active" !default;
255
255
  @else if $section-type == vertical-tabs {
256
256
 
257
257
  &#{$active-region-selector} {
258
- padding-#{$default-float}: $section-vertical-tabs-title-width - emCalc(1px);
258
+ padding-#{$default-float}: $section-vertical-tabs-title-width - em-calc(1px);
259
259
 
260
260
  & > #{$title-selector} {
261
- background-color: $title-bg-active;
261
+ background-color: $title-bg-active;
262
262
  }
263
263
  }
264
264
  }
@@ -295,7 +295,7 @@ $active-region-selector: ".active" !default;
295
295
  .section-container.horizontal-nav,
296
296
  .section-container.accordion {
297
297
  @include section-container-style(accordion);
298
- & > section, & > .section {
298
+ & > section, & > .section {
299
299
  @include section-style(accordion);
300
300
  }
301
301
  }
@@ -309,7 +309,7 @@ $active-region-selector: ".active" !default;
309
309
 
310
310
  .section-container.tabs {
311
311
  @include section-container-style(tabs);
312
- & > section, & > .section {
312
+ & > section, & > .section {
313
313
  @include section-style(tabs, $title-bg-active: $section-title-bg-active-tabs);
314
314
  }
315
315
  }
@@ -325,7 +325,7 @@ $active-region-selector: ".active" !default;
325
325
 
326
326
  .section-container.auto {
327
327
  @include section-container-style(tabs);
328
- & > section, & > .section {
328
+ & > section, & > .section {
329
329
  @include section-style(tabs, $title-bg-active: $section-title-bg-active-tabs);
330
330
  }
331
331
  }
@@ -339,7 +339,7 @@ $active-region-selector: ".active" !default;
339
339
 
340
340
  .section-container.vertical-tabs {
341
341
  @include section-container-style(vertical-tabs);
342
- & > section, & > .section {
342
+ & > section, & > .section {
343
343
  @include section-style(vertical-tabs);
344
344
  }
345
345
  }
@@ -353,7 +353,7 @@ $active-region-selector: ".active" !default;
353
353
 
354
354
  .section-container.vertical-nav {
355
355
  @include section-container-style(vertical-nav);
356
- & > section, & > .section {
356
+ & > section, & > .section {
357
357
  @include section-style(vertical-nav);
358
358
  }
359
359
  }
@@ -367,7 +367,7 @@ $active-region-selector: ".active" !default;
367
367
 
368
368
  .section-container.horizontal-nav {
369
369
  @include section-container-style(horizontal-nav);
370
- & > section, & > .section {
370
+ & > section, & > .section {
371
371
  @include section-style(horizontal-nav);
372
372
  }
373
373
  }
@@ -383,7 +383,7 @@ $active-region-selector: ".active" !default;
383
383
  }
384
384
  .section-container {
385
385
  @include section-container-style(accordion);
386
- & > section, & > .section {
386
+ & > section, & > .section {
387
387
  @include section-style(accordion);
388
388
  }
389
389
  }
@@ -4,17 +4,17 @@
4
4
  $include-html-nav-classes: $include-html-classes !default;
5
5
 
6
6
  // We use this to control padding.
7
- $side-nav-padding: emCalc(14, 0) !default;
7
+ $side-nav-padding: em-calc(14 0) !default;
8
8
 
9
9
  // We use these to control list styles.
10
10
  $side-nav-list-type: none !default;
11
11
  $side-nav-list-position: inside !default;
12
- $side-nav-list-margin: emCalc(0, 0, 7, 0) !default;
12
+ $side-nav-list-margin: em-calc(0 0 7 0) !default;
13
13
 
14
14
  // We use these to control link styles.
15
15
  $side-nav-link-color: $primary-color !default;
16
16
  $side-nav-link-color-active: lighten(#000, 30%) !default;
17
- $side-nav-font-size: emCalc(14) !default;
17
+ $side-nav-font-size: em-calc(14) !default;
18
18
  $side-nav-font-weight: bold !default;
19
19
 
20
20
  // We use these to control border styles
@@ -14,28 +14,28 @@ $split-button-padding-tny: $button-tny * 9 !default;
14
14
  $split-button-span-width-tny: $button-tny * 6.5 !default;
15
15
  $split-button-pip-size-tny: $button-tny !default;
16
16
  $split-button-pip-top-tny: $button-tny * 2 !default;
17
- $split-button-pip-default-float-tny: emCalc(-5) !default;
17
+ $split-button-pip-default-float-tny: em-calc(-5) !default;
18
18
 
19
19
  // We use these to control small split buttons
20
20
  $split-button-padding-sml: $button-sml * 7 !default;
21
21
  $split-button-span-width-sml: $button-sml * 5 !default;
22
22
  $split-button-pip-size-sml: $button-sml !default;
23
23
  $split-button-pip-top-sml: $button-sml * 1.5 !default;
24
- $split-button-pip-default-float-sml: emCalc(-9) !default;
24
+ $split-button-pip-default-float-sml: em-calc(-9) !default;
25
25
 
26
26
  // We use these to control medium split buttons
27
27
  $split-button-padding-med: $button-med * 6.4 !default;
28
28
  $split-button-span-width-med: $button-med * 4 !default;
29
- $split-button-pip-size-med: $button-med - emCalc(3) !default;
29
+ $split-button-pip-size-med: $button-med - em-calc(3) !default;
30
30
  $split-button-pip-top-med: $button-med * 1.5 !default;
31
- $split-button-pip-default-float-med: emCalc(-9) !default;
31
+ $split-button-pip-default-float-med: em-calc(-9) !default;
32
32
 
33
33
  // We use these to control large split buttons
34
34
  $split-button-padding-lrg: $button-lrg * 6 !default;
35
35
  $split-button-span-width-lrg: $button-lrg * 3.75 !default;
36
- $split-button-pip-size-lrg: $button-lrg - emCalc(6) !default;
37
- $split-button-pip-top-lrg: $button-lrg + emCalc(5) !default;
38
- $split-button-pip-default-float-lrg: emCalc(-9) !default;
36
+ $split-button-pip-size-lrg: $button-lrg - em-calc(6) !default;
37
+ $split-button-pip-top-lrg: $button-lrg + em-calc(5) !default;
38
+ $split-button-pip-default-float-lrg: em-calc(-9) !default;
39
39
 
40
40
 
41
41
  //
@@ -4,11 +4,11 @@
4
4
  $include-html-nav-classes: $include-html-classes !default;
5
5
 
6
6
  // We use these to control margin and padding
7
- $sub-nav-list-margin: emCalc(-4, 0, 18) !default;
8
- $sub-nav-list-padding-top: emCalc(4) !default;
7
+ $sub-nav-list-margin: em-calc(-4 0 18) !default;
8
+ $sub-nav-list-padding-top: em-calc(4) !default;
9
9
 
10
10
  // We use this to control the definition
11
- $sub-nav-font-size: emCalc(14) !default;
11
+ $sub-nav-font-size: em-calc(14) !default;
12
12
  $sub-nav-font-color: #999 !default;
13
13
  $sub-nav-font-weight: normal !default;
14
14
  $sub-nav-text-decoration: none !default;
@@ -18,9 +18,12 @@ $sub-nav-border-radius: 1000px !default;
18
18
  $sub-nav-active-font-weight: bold !default;
19
19
  $sub-nav-active-bg: $primary-color !default;
20
20
  $sub-nav-active-color: #fff !default;
21
- $sub-nav-active-padding: emCalc(3, 9) !default;
21
+ $sub-nav-active-padding: em-calc(3 9) !default;
22
22
  $sub-nav-active-cursor: default !default;
23
23
 
24
+ $sub-nav-item-divider: "" !default;
25
+ $sub-nav-item-divider-margin: emCalc(12) !default;
26
+
24
27
  //
25
28
  // Sub Nav Mixins
26
29
  //
@@ -32,14 +35,15 @@ $sub-nav-active-cursor: default !default;
32
35
  margin: $sub-nav-list-margin;
33
36
  padding-top: $sub-nav-list-padding-top;
34
37
  margin-#{$opposite-direction}: 0;
35
- margin-#{$default-float}: emCalc(-9);
38
+ margin-#{$default-float}: em-calc(-9);
36
39
 
37
40
  dt,
38
- dd {
41
+ dd,
42
+ li {
39
43
  float: $default-float;
40
44
  display: inline;
41
- margin-#{$default-float}: emCalc(9);
42
- margin-bottom: emCalc(10);
45
+ margin-#{$default-float}: em-calc(9);
46
+ margin-bottom: em-calc(10);
43
47
  font-weight: $sub-nav-font-weight;
44
48
  font-size: $font-size;
45
49
 
@@ -55,8 +59,20 @@ $sub-nav-active-cursor: default !default;
55
59
  cursor: $sub-nav-active-cursor;
56
60
  color: $sub-nav-active-color;
57
61
  }
58
- }
62
+ @if $sub-nav-item-divider != "" {
63
+ margin-#{$default-float}: 0;
64
+
65
+ &:before {
66
+ content: "#{$sub-nav-item-divider}";
67
+ margin: 0 $sub-nav-item-divider-margin;
68
+ }
59
69
 
70
+ &:first-child:before {
71
+ content: "";
72
+ margin: 0;
73
+ }
74
+ }
75
+ }
60
76
  }
61
77
 
62
78
 
@@ -65,4 +81,4 @@ $sub-nav-active-cursor: default !default;
65
81
  /* Side Nav */
66
82
  .sub-nav { @include sub-nav; }
67
83
 
68
- }
84
+ }