zurb-foundation 4.2.1 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/Gemfile.lock +2 -2
  2. data/README.md +9 -1
  3. data/composer.json +9 -0
  4. data/docs/CHANGELOG.md +19 -5
  5. data/docs/components/alert-boxes.html.erb +19 -19
  6. data/docs/components/breadcrumbs.html.erb +15 -15
  7. data/docs/components/buttons.html.erb +19 -19
  8. data/docs/components/clearing.html.erb +13 -13
  9. data/docs/components/dropdown-buttons.html.erb +13 -13
  10. data/docs/components/dropdown.html.erb +18 -18
  11. data/docs/components/flex-video.html.erb +3 -3
  12. data/docs/components/forms.html.erb +39 -39
  13. data/docs/components/grid.html.erb +1 -1
  14. data/docs/components/inline-lists.html.erb +5 -5
  15. data/docs/components/joyride.html.erb +18 -18
  16. data/docs/components/keystrokes.html.erb +10 -10
  17. data/docs/components/kitchen-sink.html.erb +1 -1
  18. data/docs/components/labels.html.erb +2 -2
  19. data/docs/components/pagination.html.erb +17 -17
  20. data/docs/components/panels.html.erb +13 -10
  21. data/docs/components/pricing-tables.html.erb +30 -30
  22. data/docs/components/reveal.html.erb +14 -14
  23. data/docs/components/section.html.erb +15 -15
  24. data/docs/components/side-nav.html.erb +9 -9
  25. data/docs/components/split-buttons.html.erb +23 -23
  26. data/docs/components/sub-nav.html.erb +11 -11
  27. data/docs/components/switch.html.erb +24 -24
  28. data/docs/components/tables.html.erb +15 -15
  29. data/docs/components/thumbnails.html.erb +5 -5
  30. data/docs/components/tooltips.html.erb +18 -18
  31. data/docs/components/top-bar.html.erb +39 -39
  32. data/docs/components/type.html.erb +63 -63
  33. data/docs/css/docs.scss +3 -1
  34. data/docs/img/favicons/apple-touch-icon-114x114-precomposed.png +0 -0
  35. data/docs/img/favicons/apple-touch-icon-144x144-precomposed.png +0 -0
  36. data/docs/img/favicons/apple-touch-icon-72x72-precomposed.png +0 -0
  37. data/docs/img/favicons/apple-touch-icon-precomposed.png +0 -0
  38. data/docs/img/favicons/favicon.ico +0 -0
  39. data/docs/layout.html.erb +10 -1
  40. data/docs/sass.html.erb +258 -292
  41. data/js/foundation/foundation.alerts.js +3 -3
  42. data/js/foundation/foundation.clearing.js +5 -5
  43. data/js/foundation/foundation.dropdown.js +1 -1
  44. data/js/foundation/foundation.forms.js +23 -14
  45. data/js/foundation/foundation.interchange.js +8 -8
  46. data/js/foundation/foundation.joyride.js +2 -2
  47. data/js/foundation/foundation.js +2 -2
  48. data/js/foundation/foundation.magellan.js +4 -2
  49. data/js/foundation/foundation.orbit.js +2 -2
  50. data/js/foundation/foundation.placeholder.js +21 -1
  51. data/js/foundation/foundation.reveal.js +3 -3
  52. data/js/foundation/foundation.section.js +4 -3
  53. data/js/foundation/foundation.tooltips.js +2 -2
  54. data/js/foundation/foundation.topbar.js +8 -8
  55. data/js/foundation/index.js +1 -1
  56. data/js/vendor/jquery.js +4412 -4202
  57. data/js/vendor/zepto.js +116 -0
  58. data/lib/foundation/sprockets.rb +4 -0
  59. data/lib/foundation/version.rb +1 -1
  60. data/lib/zurb-foundation.rb +6 -2
  61. data/scss/foundation/_variables.scss +56 -55
  62. data/scss/foundation/components/_alert-boxes.scss +20 -20
  63. data/scss/foundation/components/_block-grid.scss +1 -1
  64. data/scss/foundation/components/_breadcrumbs.scss +15 -15
  65. data/scss/foundation/components/_buttons.scss +23 -21
  66. data/scss/foundation/components/_clearing.scss +14 -13
  67. data/scss/foundation/components/_custom-forms.scss +35 -35
  68. data/scss/foundation/components/_dropdown-buttons.scss +13 -13
  69. data/scss/foundation/components/_dropdown.scss +19 -18
  70. data/scss/foundation/components/_flex-video.scss +3 -3
  71. data/scss/foundation/components/_forms.scss +40 -40
  72. data/scss/foundation/components/_grid.scss +1 -1
  73. data/scss/foundation/components/_inline-lists.scss +4 -4
  74. data/scss/foundation/components/_joyride.scss +16 -16
  75. data/scss/foundation/components/_keystrokes.scss +10 -10
  76. data/scss/foundation/components/_labels.scss +3 -3
  77. data/scss/foundation/components/_pagination.scss +17 -17
  78. data/scss/foundation/components/_panels.scss +21 -18
  79. data/scss/foundation/components/_pricing-tables.scss +30 -30
  80. data/scss/foundation/components/_reveal.scss +14 -14
  81. data/scss/foundation/components/_section.scss +16 -16
  82. data/scss/foundation/components/_side-nav.scss +9 -9
  83. data/scss/foundation/components/_split-buttons.scss +23 -23
  84. data/scss/foundation/components/_sub-nav.scss +11 -11
  85. data/scss/foundation/components/_switch.scss +23 -23
  86. data/scss/foundation/components/_tables.scss +15 -15
  87. data/scss/foundation/components/_thumbs.scss +5 -5
  88. data/scss/foundation/components/_tooltips.scss +17 -17
  89. data/scss/foundation/components/_top-bar.scss +37 -37
  90. data/scss/foundation/components/_type.scss +63 -63
  91. data/templates/upgrade/manifest.rb +2 -3
  92. metadata +11 -4
@@ -105,37 +105,37 @@ $base-style: true
105
105
  <%= code_example '
106
106
  /* We use these to control different shared styles for Split Buttons */
107
107
  $split-button-function-factor: 15%;
108
- $split-button-pip-color: #fff;
109
- $split-button-pip-color-alt: #333;
110
- $split-button-active-bg-tint: rgba(0,0,0,0.1);
108
+ $split-button-pip-color: #fff;
109
+ $split-button-pip-color-alt: #333;
110
+ $split-button-active-bg-tint: rgba(0,0,0,0.1);
111
111
 
112
112
  /* We use these to control tiny split buttons */
113
- $split-button-padding-tny: $button-tny * 9;
114
- $split-button-span-width-tny: $button-tny * 6.5;
115
- $split-button-pip-size-tny: $button-tny;
116
- $split-button-pip-top-tny: $button-tny * 2;
117
- $split-button-pip-left-tny: emCalc(-5px);
113
+ $split-button-padding-tny: $button-tny * 9;
114
+ $split-button-span-width-tny: $button-tny * 6.5;
115
+ $split-button-pip-size-tny: $button-tny;
116
+ $split-button-pip-top-tny: $button-tny * 2;
117
+ $split-button-pip-left-tny: emCalc(-5px);
118
118
 
119
119
  /* We use these to control small split buttons */
120
- $split-button-padding-sml: $button-sml * 7;
121
- $split-button-span-width-sml: $button-sml * 5;
122
- $split-button-pip-size-sml: $button-sml;
123
- $split-button-pip-top-sml: $button-sml * 1.5;
124
- $split-button-pip-left-sml: emCalc(-9px);
120
+ $split-button-padding-sml: $button-sml * 7;
121
+ $split-button-span-width-sml: $button-sml * 5;
122
+ $split-button-pip-size-sml: $button-sml;
123
+ $split-button-pip-top-sml: $button-sml * 1.5;
124
+ $split-button-pip-left-sml: emCalc(-9px);
125
125
 
126
126
  /* We use these to control medium split buttons */
127
- $split-button-padding-med: $button-med * 6.4;
128
- $split-button-span-width-med: $button-med * 4;
129
- $split-button-pip-size-med: $button-med - emCalc(3px);
130
- $split-button-pip-top-med: $button-med * 1.5;
131
- $split-button-pip-left-med: emCalc(-9px);
127
+ $split-button-padding-med: $button-med * 6.4;
128
+ $split-button-span-width-med: $button-med * 4;
129
+ $split-button-pip-size-med: $button-med - emCalc(3px);
130
+ $split-button-pip-top-med: $button-med * 1.5;
131
+ $split-button-pip-left-med: emCalc(-9px);
132
132
 
133
133
  /* We use these to control large split buttons */
134
- $split-button-padding-lrg: $button-lrg * 6;
135
- $split-button-span-width-lrg: $button-lrg * 3.75;
136
- $split-button-pip-size-lrg: $button-lrg - emCalc(6px);
137
- $split-button-pip-top-lrg: $button-lrg + emCalc(5px);
138
- $split-button-pip-left-lrg: emCalc(-9px);
134
+ $split-button-padding-lrg: $button-lrg * 6;
135
+ $split-button-span-width-lrg: $button-lrg * 3.75;
136
+ $split-button-pip-size-lrg: $button-lrg - emCalc(6px);
137
+ $split-button-pip-top-lrg: $button-lrg + emCalc(5px);
138
+ $split-button-pip-left-lrg: emCalc(-9px);
139
139
  ', :css %>
140
140
 
141
141
  <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
@@ -94,22 +94,22 @@ $active-bg: $sub-nav-active-bg
94
94
 
95
95
  <%= code_example '
96
96
  /* We use these to control margin and padding */
97
- $sub-nav-list-margin: emCalc(-4px) 0 emCalc(18px);
98
- $sub-nav-list-padding-top: emCalc(4px);
97
+ $sub-nav-list-margin: emCalc(-4px) 0 emCalc(18px);
98
+ $sub-nav-list-padding-top: emCalc(4px);
99
99
 
100
100
  /* We use this to control the definition */
101
- $sub-nav-font-size: emCalc(14px);
102
- $sub-nav-font-color: #999;
103
- $sub-nav-font-weight: normal;
104
- $sub-nav-text-decoration: none;
105
- $sub-nav-border-radius: 1000px;
101
+ $sub-nav-font-size: emCalc(14px);
102
+ $sub-nav-font-color: #999;
103
+ $sub-nav-font-weight: normal;
104
+ $sub-nav-text-decoration: none;
105
+ $sub-nav-border-radius: 1000px;
106
106
 
107
107
  /* We use these to control the active item styles */
108
108
  $sub-nav-active-font-weight: bold;
109
- $sub-nav-active-bg: $primary-color;
110
- $sub-nav-active-color: #fff;
111
- $sub-nav-active-padding: emCalc(3px) emCalc(9px);
112
- $sub-nav-active-cursor: $cursor-default-value;', :css %>
109
+ $sub-nav-active-bg: $primary-color;
110
+ $sub-nav-active-color: #fff;
111
+ $sub-nav-active-padding: emCalc(3px) emCalc(9px);
112
+ $sub-nav-active-cursor: $cursor-default-value;', :css %>
113
113
 
114
114
  <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
115
115
 
@@ -245,38 +245,38 @@ $base-style: true
245
245
 
246
246
  <%= code_example '
247
247
  /* Controlling border styles and background colors for the switch container */
248
- $switch-border-color: darken(#fff, 20%);
249
- $switch-border-style: solid;
250
- $switch-border-width: 1px;
251
- $switch-bg: #fff;
248
+ $switch-border-color: darken(#fff, 20%);
249
+ $switch-border-style: solid;
250
+ $switch-border-width: 1px;
251
+ $switch-bg: #fff;
252
252
 
253
253
  /* We use these to control the switch heights for our default classes */
254
- $switch-height-tny: 22px;
255
- $switch-height-sml: 28px;
256
- $switch-height-med: 36px;
257
- $switch-height-lrg: 44px;
258
- $switch-bottom-margin: emCalc(20px);
254
+ $switch-height-tny: 22px;
255
+ $switch-height-sml: 28px;
256
+ $switch-height-med: 36px;
257
+ $switch-height-lrg: 44px;
258
+ $switch-bottom-margin: emCalc(20px);
259
259
 
260
260
  /* We use these to control default font sizes for our classes. */
261
- $switch-font-size-tny: 11px;
262
- $switch-font-size-sml: 12px;
263
- $switch-font-size-med: 14px;
264
- $switch-font-size-lrg: 17px;
265
- $switch-label-side-padding: 6px;
261
+ $switch-font-size-tny: 11px;
262
+ $switch-font-size-sml: 12px;
263
+ $switch-font-size-med: 14px;
264
+ $switch-font-size-lrg: 17px;
265
+ $switch-label-side-padding: 6px;
266
266
 
267
267
  /* We use these to style the switch-paddle */
268
- $switch-paddle-bg: #fff;
269
- $switch-paddle-fade-to-color: darken($switch-paddle-bg, 10%);
270
- $switch-paddle-border-color: darken($switch-paddle-bg, 35%);
271
- $switch-paddle-border-width: 1px;
272
- $switch-paddle-border-style: solid;
273
- $switch-paddle-transition-speed: .1s;
274
- $switch-paddle-transition-ease: ease-out;
275
- $switch-positive-color: lighten($success-color, 50%);
276
- $switch-negative-color: #f5f5f5;
268
+ $switch-paddle-bg: #fff;
269
+ $switch-paddle-fade-to-color: darken($switch-paddle-bg, 10%);
270
+ $switch-paddle-border-color: darken($switch-paddle-bg, 35%);
271
+ $switch-paddle-border-width: 1px;
272
+ $switch-paddle-border-style: solid;
273
+ $switch-paddle-transition-speed: .1s;
274
+ $switch-paddle-transition-ease: ease-out;
275
+ $switch-positive-color: lighten($success-color, 50%);
276
+ $switch-negative-color: #f5f5f5;
277
277
 
278
278
  /* Outline Style for tabbing through switches */
279
- $switch-label-outline: 1px dotted #888;', :css %>
279
+ $switch-label-outline: 1px dotted #888;', :css %>
280
280
 
281
281
  <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
282
282
 
@@ -88,30 +88,30 @@
88
88
 
89
89
  <%= code_example '
90
90
  /* These control the background color for the table and even rows */
91
- $table-bg: #fff;
92
- $table-even-row-bg: #f9f9f9;
91
+ $table-bg: #fff;
92
+ $table-even-row-bg: #f9f9f9;
93
93
 
94
94
  /* These control the table cell border style */
95
- $table-border-style: solid;
96
- $table-border-size: 1px;
97
- $table-border-color: #ddd;
95
+ $table-border-style: solid;
96
+ $table-border-size: 1px;
97
+ $table-border-color: #ddd;
98
98
 
99
99
  /* These control the table head styles */
100
- $table-head-bg: #f5f5f5;
101
- $table-head-font-size: emCalc(14px);
102
- $table-head-font-color: #222;
100
+ $table-head-bg: #f5f5f5;
101
+ $table-head-font-size: emCalc(14px);
102
+ $table-head-font-color: #222;
103
103
  $table-head-font-weight: bold;
104
- $table-head-padding: emCalc(8px) emCalc(10px) emCalc(10px);
104
+ $table-head-padding: emCalc(8px) emCalc(10px) emCalc(10px);
105
105
 
106
106
  /* These control the row padding and font styles */
107
- $table-row-padding: emCalc(9px) emCalc(10px);
108
- $table-row-font-size: emCalc(14px);
109
- $table-row-font-color: #222;
110
- $table-line-height: emCalc(18px);
107
+ $table-row-padding: emCalc(9px) emCalc(10px);
108
+ $table-row-font-size: emCalc(14px);
109
+ $table-row-font-color: #222;
110
+ $table-line-height: emCalc(18px);
111
111
 
112
112
  /* These are for controlling the display and margin of tables */
113
- $table-display: table-cell;
114
- $table-margin-bottom: emCalc(20px);', :css %>
113
+ $table-display: table-cell;
114
+ $table-margin-bottom: emCalc(20px);', :css %>
115
115
 
116
116
  <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
117
117
 
@@ -70,14 +70,14 @@ $box-shadow-hover: $thumb-box-shadow-hover
70
70
 
71
71
  <%= code_example '
72
72
  /* We use these to control border styles */
73
- $thumb-border-style: solid;
74
- $thumb-border-width: 4px;
75
- $thumb-border-color: #fff;
76
- $thumb-box-shadow: 0 0 0 1px rgba(#000,.2);
73
+ $thumb-border-style: solid;
74
+ $thumb-border-width: 4px;
75
+ $thumb-border-color: #fff;
76
+ $thumb-box-shadow: 0 0 0 1px rgba(#000,.2);
77
77
  $thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5);
78
78
 
79
79
  /* Radius and transition speed for thumbs */
80
- $thumb-radius: $global-radius;
80
+ $thumb-radius: $global-radius;
81
81
  $thumb-transition-speed: 200ms;', :css %>
82
82
 
83
83
  </div>
@@ -46,25 +46,25 @@
46
46
 
47
47
  <h4>Available SCSS Variables</h4>
48
48
  <%= code_example '
49
- $has-tip-border-bottom: dotted 1px #ccc;
50
- $has-tip-font-weight: bold;
51
- $has-tip-font-color: #333;
49
+ $has-tip-border-bottom: dotted 1px #ccc;
50
+ $has-tip-font-weight: bold;
51
+ $has-tip-font-color: #333;
52
52
  $has-tip-border-bottom-hover: dotted 1px darken($primary-color, 20%);
53
- $has-tip-font-color-hover: $primary-color;
54
- $has-tip-cursor-type: help;
55
-
56
- $tooltip-padding: emCalc(8px);
57
- $tooltip-bg: #000;
58
- $tooltip-font-size: emCalc(15px);
59
- $tooltip-font-weight: bold;
60
- $tooltip-font-color: #fff;
61
- $tooltip-line-height: 1.3;
62
- $tooltip-close-font-size: emCalc(10px);
63
- $tooltip-close-font-weight: normal;
64
- $tooltip-close-font-color: #888;
65
- $tooltip-font-size-sml: emCalc(14px);
66
- $tooltip-radius: $global-radius;
67
- $tooltip-pip-size: 5px;
53
+ $has-tip-font-color-hover: $primary-color;
54
+ $has-tip-cursor-type: help;
55
+
56
+ $tooltip-padding: emCalc(8px);
57
+ $tooltip-bg: #000;
58
+ $tooltip-font-size: emCalc(15px);
59
+ $tooltip-font-weight: bold;
60
+ $tooltip-font-color: #fff;
61
+ $tooltip-line-height: 1.3;
62
+ $tooltip-close-font-size: emCalc(10px);
63
+ $tooltip-close-font-weight: normal;
64
+ $tooltip-close-font-color: #888;
65
+ $tooltip-font-size-sml: emCalc(14px);
66
+ $tooltip-radius: $global-radius;
67
+ $tooltip-pip-size: 5px;
68
68
  ', :css %>
69
69
 
70
70
  <hr>
@@ -76,10 +76,10 @@
76
76
  <div class="large-12 columns">
77
77
 
78
78
  <h3>Build With HTML Classes</h3>
79
- <p>The top bar is a pretty complex piece of magical UI goodness, which makes it really difficult to create a mixin from it. We rely on many presentational classes to accomplish the styles and there's a lot happening in the JS. The top bar is hoverable by default but can be changed to a click event by adding a simple <code>data-option="is_hover:false"</code> to the <code>&lt;nav&gt;</code> element. <a href="#clickable">See an example below</a>.</p>
79
+ <p>The top bar is a pretty complex piece of magical UI goodness, which makes it really difficult to create a mixin from it. We rely on many presentational classes to accomplish the styles and there's a lot happening in the JS. The top bar is hoverable by default but can be changed to a click event by adding a simple <code>data-options="is_hover:false"</code> to the <code>&lt;nav&gt;</code> element. <a href="#clickable">See an example below</a>.</p>
80
80
 
81
81
  <h5>Basic Needs</h5>
82
- <p>The top bar has four main elements, three of which are needed for proper functionality: <code>ul.title-area</code>, a <code>ul class="right/left</code> element enclosed in a <code>section class="top-bar-section"</code>, and the <code>li.toggle-topbar</code> element that will expand the menu in the mobile layout. You can leave out the li class="name" as long as you include the .toggle-topbar element.</p>
82
+ <p>The top bar has four main elements, three of which are needed for proper functionality: <code>ul.title-area</code>, a <code>ul class="right/left</code> element enclosed in a <code>section class="top-bar-section"</code>, and the <code>li.toggle-topbar</code> element that will expand the menu in the mobile layout. <!-- You can leave out the li class="name" as long as you include the .toggle-topbar element. --></p>
83
83
 
84
84
  <h5>Positioning the Bar</h5>
85
85
  <p>The top bar is built with a single <code>nav</code> element with a class of <code>top-bar</code>. It will take on full-browser width by default. To make the top bar stay fixed as you scroll, wrap it in <code>div class="fixed"</code>. If you want your navigation to be set to your grid width, wrap it in <code>div class="contain-to-grid"</code>. You may use <code>fixed</code> and <code>contain-to-grid</code> together.</p>
@@ -270,62 +270,62 @@
270
270
 
271
271
  <%= code_example '
272
272
  /* Background color for the top bar */
273
- $topbar-bg: #111;
273
+ $topbar-bg: #111;
274
274
 
275
275
  /* Height and margin */
276
- $topbar-height: 45px;
277
- $topbar-margin-bottom: emCalc(30px);
276
+ $topbar-height: 45px;
277
+ $topbar-margin-bottom: emCalc(30px);
278
278
 
279
279
  /* Control Input height for top bar */
280
- $topbar-input-height: 2.45em;
280
+ $topbar-input-height: 2.45em;
281
281
 
282
282
  /* Controlling the styles for the title in the top bar */
283
- $topbar-title-weight: bold;
284
- $topbar-title-font-size: emCalc(17px);
283
+ $topbar-title-weight: bold;
284
+ $topbar-title-font-size: emCalc(17px);
285
285
 
286
286
  /* Style the top bar dropdown elements */
287
- $topbar-dropdown-bg: #222;
288
- $topbar-dropdown-link-color: #fff;
289
- $topbar-dropdown-link-bg: lighten($topbar-bg, 5%);
290
- $topbar-dropdown-toggle-size: 5px;
291
- $topbar-dropdown-toggle-color: #fff;
292
- $topbar-dropdown-toggle-alpha: 0.5;
287
+ $topbar-dropdown-bg: #222;
288
+ $topbar-dropdown-link-color: #fff;
289
+ $topbar-dropdown-link-bg: lighten($topbar-bg, 5%);
290
+ $topbar-dropdown-toggle-size: 5px;
291
+ $topbar-dropdown-toggle-color: #fff;
292
+ $topbar-dropdown-toggle-alpha: 0.5;
293
293
 
294
294
  /* Set the link colors and styles for top-level nav */
295
- $topbar-link-color: #fff;
296
- $topbar-link-color-hover: #fff;
297
- $topbar-link-color-active: #fff;
298
- $topbar-link-weight: bold;
299
- $topbar-link-font-size: emCalc(13px);
300
- $topbar-link-hover-lightness: -30%; /* Darken by 30% */
301
- $topbar-link-bg-hover: darken($topbar-bg, 3%);
302
- $topbar-link-bg-active: darken($topbar-bg, 3%);
303
-
304
- $topbar-dropdown-label-color: #555;
295
+ $topbar-link-color: #fff;
296
+ $topbar-link-color-hover: #fff;
297
+ $topbar-link-color-active: #fff;
298
+ $topbar-link-weight: bold;
299
+ $topbar-link-font-size: emCalc(13px);
300
+ $topbar-link-hover-lightness: -30%; /* Darken by 30% */
301
+ $topbar-link-bg-hover: darken($topbar-bg, 3%);
302
+ $topbar-link-bg-active: darken($topbar-bg, 3%);
303
+
304
+ $topbar-dropdown-label-color: #555;
305
305
  $topbar-dropdown-label-text-transform: uppercase;
306
- $topbar-dropdown-label-font-weight: bold;
307
- $topbar-dropdown-label-font-size: emCalc(10px);
306
+ $topbar-dropdown-label-font-weight: bold;
307
+ $topbar-dropdown-label-font-size: emCalc(10px);
308
308
 
309
309
  /* Top menu icon styles */
310
- $topbar-menu-link-transform: uppercase;
311
- $topbar-menu-link-font-size: emCalc(13px);
312
- $topbar-menu-link-weight: bold;
313
- $topbar-menu-link-color: #fff;
314
- $topbar-menu-icon-color: #fff;
315
- $topbar-menu-link-color-toggled: #888;
316
- $topbar-menu-icon-color-toggled: #888;
310
+ $topbar-menu-link-transform: uppercase;
311
+ $topbar-menu-link-font-size: emCalc(13px);
312
+ $topbar-menu-link-weight: bold;
313
+ $topbar-menu-link-color: #fff;
314
+ $topbar-menu-icon-color: #fff;
315
+ $topbar-menu-link-color-toggled: #888;
316
+ $topbar-menu-icon-color-toggled: #888;
317
317
 
318
318
  /* Transitions and breakpoint styles */
319
- $topbar-transition-speed: 300ms;
320
- $topbar-breakpoint: emCalc(940px); /* Change to 9999px for always mobile layout */
321
- $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")";
319
+ $topbar-transition-speed: 300ms;
320
+ $topbar-breakpoint: emCalc(940px); /* Change to 9999px for always mobile layout */
321
+ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")";
322
322
 
323
323
  /* Divider Styles */
324
- $topbar-divider-border-bottom: solid 1px lighten($topbar-bg, 10%);
325
- $topbar-divider-border-top: solid 1px darken($topbar-bg, 10%);
324
+ $topbar-divider-border-bottom: solid 1px lighten($topbar-bg, 10%);
325
+ $topbar-divider-border-top: solid 1px darken($topbar-bg, 10%);
326
326
 
327
327
  /* Sticky Class */
328
- $topbar-sticky-class: ".sticky";', :css %>
328
+ $topbar-sticky-class: ".sticky";', :css %>
329
329
 
330
330
  <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_variables.scss</strong>.</p>
331
331
 
@@ -290,102 +290,102 @@
290
290
 
291
291
  <%= code_example '
292
292
  /* We use these to control header font styles */
293
- $header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
294
- $header-font-weight: bold;
295
- $header-font-style: normal;
296
- $header-font-color: #222;
297
- $header-line-height: 1.4;
298
- $header-top-margin: .2em;
299
- $header-bottom-margin: .5em;
300
- $header-text-rendering: optimizeLegibility;
293
+ $header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
294
+ $header-font-weight: bold;
295
+ $header-font-style: normal;
296
+ $header-font-color: #222;
297
+ $header-line-height: 1.4;
298
+ $header-top-margin: .2em;
299
+ $header-bottom-margin: .5em;
300
+ $header-text-rendering: optimizeLegibility;
301
301
 
302
302
  /* We use these to control header font sizes */
303
- $h1-font-size: emCalc(44px);
304
- $h2-font-size: emCalc(37px);
305
- $h3-font-size: emCalc(27px);
306
- $h4-font-size: emCalc(23px);
307
- $h5-font-size: emCalc(18px);
308
- $h6-font-size: 1em;
303
+ $h1-font-size: emCalc(44px);
304
+ $h2-font-size: emCalc(37px);
305
+ $h3-font-size: emCalc(27px);
306
+ $h4-font-size: emCalc(23px);
307
+ $h5-font-size: emCalc(18px);
308
+ $h6-font-size: 1em;
309
309
 
310
310
  /* These control how subheaders are styled. */
311
- $subheader-line-height: 1.4;
312
- $subheader-font-color: lighten($header-font-color, 30%);
313
- $subheader-font-weight: 300;
314
- $subheader-top-margin: .2em;
315
- $subheader-bottom-margin: .5em;
311
+ $subheader-line-height: 1.4;
312
+ $subheader-font-color: lighten($header-font-color, 30%);
313
+ $subheader-font-weight: 300;
314
+ $subheader-top-margin: .2em;
315
+ $subheader-bottom-margin: .5em;
316
316
 
317
317
  /* A general <small> styling */
318
- $small-font-size: 60%;
319
- $small-font-color: lighten($header-font-color, 30%);
318
+ $small-font-size: 60%;
319
+ $small-font-color: lighten($header-font-color, 30%);
320
320
 
321
321
  /* We use these to style paragraphs */
322
- $paragraph-font-family: inherit;
323
- $paragraph-font-weight: normal;
324
- $paragraph-font-size: 1em;
325
- $paragraph-line-height: 1.6;
326
- $paragraph-margin-bottom: emCalc(20px);
327
- $paragraph-aside-font-size: emCalc(14px);
328
- $paragraph-aside-line-height: 1.35;
329
- $paragraph-aside-font-style: italic;
330
- $paragraph-text-rendering: optimizeLegibility;
322
+ $paragraph-font-family: inherit;
323
+ $paragraph-font-weight: normal;
324
+ $paragraph-font-size: 1em;
325
+ $paragraph-line-height: 1.6;
326
+ $paragraph-margin-bottom: emCalc(20px);
327
+ $paragraph-aside-font-size: emCalc(14px);
328
+ $paragraph-aside-line-height: 1.35;
329
+ $paragraph-aside-font-style: italic;
330
+ $paragraph-text-rendering: optimizeLegibility;
331
331
 
332
332
  /* We use these to style <code> tags */
333
- $code-color: darken($alert-color, 15%);
334
- $code-font-family: Consolas, "Liberation Mono", Courier, monospace;
335
- $code-font-weight: bold;
333
+ $code-color: darken($alert-color, 15%);
334
+ $code-font-family: Consolas, "Liberation Mono", Courier, monospace;
335
+ $code-font-weight: bold;
336
336
 
337
337
  /* We use these to style anchors */
338
- $anchor-text-decoration: none;
339
- $anchor-font-color: $primary-color;
340
- $anchor-font-color-hover: darken($primary-color, 5%);
338
+ $anchor-text-decoration: none;
339
+ $anchor-font-color: $primary-color;
340
+ $anchor-font-color-hover: darken($primary-color, 5%);
341
341
 
342
342
  /* We use these to style the <hr> element */
343
- $hr-border-width: 1px;
344
- $hr-border-style: solid;
345
- $hr-border-color: #ddd;
346
- $hr-margin: emCalc(20px);
343
+ $hr-border-width: 1px;
344
+ $hr-border-style: solid;
345
+ $hr-border-color: #ddd;
346
+ $hr-margin: emCalc(20px);
347
347
 
348
348
  /* We use these to style lists */
349
- $list-style-position: outside;
350
- $list-side-margin: emCalc(20px);
351
- $list-nested-margin: emCalc(20px);
352
- $definition-list-header-weight: bold;
349
+ $list-style-position: outside;
350
+ $list-side-margin: emCalc(20px);
351
+ $list-nested-margin: emCalc(20px);
352
+ $definition-list-header-weight: bold;
353
353
  $definition-list-header-margin-bottom: .3em;
354
- $definition-list-margin-bottom: emCalc(12px);
354
+ $definition-list-margin-bottom: emCalc(12px);
355
355
 
356
356
  /* We use these to style blockquotes */
357
- $blockquote-font-color: lighten($header-font-color, 30%);
358
- $blockquote-padding: emCalc(9px) emCalc(20px) 0 emCalc(19px);
359
- $blockquote-border: 1px solid #ddd;
360
- $blockquote-cite-font-size: emCalc(13px);
361
- $blockquote-cite-font-color: lighten($header-font-color, 20%);
362
- $blockquote-cite-link-color: $blockquote-cite-font-color;
357
+ $blockquote-font-color: lighten($header-font-color, 30%);
358
+ $blockquote-padding: emCalc(9px) emCalc(20px) 0 emCalc(19px);
359
+ $blockquote-border: 1px solid #ddd;
360
+ $blockquote-cite-font-size: emCalc(13px);
361
+ $blockquote-cite-font-color: lighten($header-font-color, 20%);
362
+ $blockquote-cite-link-color: $blockquote-cite-font-color;
363
363
 
364
364
  /* Acronym styles */
365
- $acronym-underline: 1px dotted #ddd;
365
+ $acronym-underline: 1px dotted #ddd;
366
366
 
367
367
  /* We use these to control padding and margin */
368
- $microformat-padding: emCalc(10px) emCalc(12px);
369
- $microformat-margin: 0 0 emCalc(20px) 0;
368
+ $microformat-padding: emCalc(10px) emCalc(12px);
369
+ $microformat-margin: 0 0 emCalc(20px) 0;
370
370
 
371
371
  /* We use these to control the border styles */
372
- $microformat-border-width: 1px;
373
- $microformat-border-style: solid;
374
- $microformat-border-color: #ddd;
372
+ $microformat-border-width: 1px;
373
+ $microformat-border-style: solid;
374
+ $microformat-border-color: #ddd;
375
375
 
376
376
  /* We use these to control full name font styles */
377
- $microformat-fullname-font-weight: bold;
378
- $microformat-fullname-font-size: emCalc(15px);
377
+ $microformat-fullname-font-weight: bold;
378
+ $microformat-fullname-font-size: emCalc(15px);
379
379
 
380
380
  /* We use this to control the summary font styles */
381
- $microformat-summary-font-weight: bold;
381
+ $microformat-summary-font-weight: bold;
382
382
 
383
383
  /* We use this to control abbr padding */
384
- $microformat-abbr-padding: 0 emCalc(1px);
384
+ $microformat-abbr-padding: 0 emCalc(1px);
385
385
 
386
386
  /* We use this to control abbr font styles */
387
- $microformat-abbr-font-weight: bold;
388
- $microformat-abbr-font-decoration: none;
387
+ $microformat-abbr-font-weight: bold;
388
+ $microformat-abbr-font-decoration: none;
389
389
  ', :css %>
390
390
 
391
391
  </div>