zurb-foundation 4.1.6 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. data/CONTRIBUTING.md +5 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +7 -0
  4. data/docs/CHANGELOG.md +27 -0
  5. data/docs/Gemfile +2 -0
  6. data/docs/Gemfile.lock +10 -0
  7. data/docs/_sidebar-components.html.erb +1 -0
  8. data/docs/_sidebar.html.erb +1 -0
  9. data/docs/components/alert-boxes.html.erb +8 -3
  10. data/docs/components/block-grid.html.erb +3 -3
  11. data/docs/components/breadcrumbs.html.erb +2 -2
  12. data/docs/components/button-groups.html.erb +2 -2
  13. data/docs/components/buttons.html.erb +3 -3
  14. data/docs/components/clearing.html.erb +7 -6
  15. data/docs/components/custom-forms.html.erb +1 -0
  16. data/docs/components/dropdown-buttons.html.erb +3 -3
  17. data/docs/components/dropdown.html.erb +20 -4
  18. data/docs/components/flex-video.html.erb +3 -3
  19. data/docs/components/forms.html.erb +5 -5
  20. data/docs/components/global.html.erb +235 -3
  21. data/docs/components/grid.html.erb +2 -2
  22. data/docs/components/inline-lists.html.erb +3 -3
  23. data/docs/components/interchange.html.erb +127 -0
  24. data/docs/components/keystrokes.html.erb +3 -3
  25. data/docs/components/kitchen-sink.html.erb +2 -2
  26. data/docs/components/labels.html.erb +3 -3
  27. data/docs/components/orbit.html.erb +120 -8
  28. data/docs/components/pagination.html.erb +5 -5
  29. data/docs/components/panels.html.erb +3 -3
  30. data/docs/components/pricing-tables.html.erb +3 -3
  31. data/docs/components/progress-bars.html.erb +3 -3
  32. data/docs/components/reveal.html.erb +126 -7
  33. data/docs/components/section.html.erb +43 -1
  34. data/docs/components/side-nav.html.erb +3 -3
  35. data/docs/components/split-buttons.html.erb +3 -3
  36. data/docs/components/sub-nav.html.erb +4 -4
  37. data/docs/components/switch.html.erb +3 -3
  38. data/docs/components/tables.html.erb +1 -1
  39. data/docs/components/thumbnails.html.erb +2 -2
  40. data/docs/components/tooltips.html.erb +34 -1
  41. data/docs/components/top-bar.html.erb +109 -30
  42. data/docs/components/type.html.erb +2 -1
  43. data/docs/components/visibility.html.erb +8 -8
  44. data/docs/css/normalize.scss +2 -2
  45. data/docs/css/qunit.css +1 -1
  46. data/docs/img/demos/demo1.jpg +0 -0
  47. data/docs/img/demos/demo2.jpg +0 -0
  48. data/docs/img/demos/demo3.jpg +0 -0
  49. data/docs/img/demos/demo4.jpg +0 -0
  50. data/docs/img/demos/demo5.jpg +0 -0
  51. data/docs/img/demos/interchange/default.jpg +0 -0
  52. data/docs/img/demos/interchange/large.jpg +0 -0
  53. data/docs/img/demos/interchange/med.jpg +0 -0
  54. data/docs/img/demos/interchange/small.jpg +0 -0
  55. data/docs/img/demos/interchange/smallest.jpg +0 -0
  56. data/docs/index.html.erb +14 -5
  57. data/docs/javascript.html.erb +2 -4
  58. data/docs/layout.html.erb +1 -1
  59. data/docs/rails.html.erb +4 -1
  60. data/docs/sass.html.erb +1274 -1023
  61. data/js/foundation/foundation.alerts.js +3 -1
  62. data/js/foundation/foundation.clearing.js +1 -1
  63. data/js/foundation/foundation.dropdown.js +25 -6
  64. data/js/foundation/foundation.forms.js +14 -12
  65. data/js/foundation/foundation.interchange.js +265 -0
  66. data/js/foundation/foundation.joyride.js +16 -3
  67. data/js/foundation/foundation.js +53 -7
  68. data/js/foundation/foundation.magellan.js +5 -3
  69. data/js/foundation/foundation.orbit.js +19 -2
  70. data/js/foundation/foundation.reveal.js +64 -11
  71. data/js/foundation/foundation.section.js +26 -17
  72. data/js/foundation/foundation.tooltips.js +16 -8
  73. data/js/foundation/foundation.topbar.js +98 -46
  74. data/js/foundation/index.js +1 -0
  75. data/lib/foundation/generators/install_generator.rb +2 -2
  76. data/lib/foundation/version.rb +1 -1
  77. data/scss/foundation/_variables.scss +134 -71
  78. data/scss/foundation/components/_alert-boxes.scss +20 -20
  79. data/scss/foundation/components/_block-grid.scss +7 -4
  80. data/scss/foundation/components/_breadcrumbs.scss +3 -3
  81. data/scss/foundation/components/_buttons.scss +5 -3
  82. data/scss/foundation/components/_clearing.scss +12 -6
  83. data/scss/foundation/components/_custom-forms.scss +17 -10
  84. data/scss/foundation/components/_dropdown.scss +6 -6
  85. data/scss/foundation/components/_forms.scss +5 -3
  86. data/scss/foundation/components/_global.scss +63 -30
  87. data/scss/foundation/components/_grid.scss +10 -9
  88. data/scss/foundation/components/_joyride.scss +22 -20
  89. data/scss/foundation/components/_keystrokes.scss +1 -1
  90. data/scss/foundation/components/_orbit.scss +108 -30
  91. data/scss/foundation/components/_reveal.scss +12 -8
  92. data/scss/foundation/components/_section.scss +38 -3
  93. data/scss/foundation/components/_switch.scss +18 -12
  94. data/scss/foundation/components/_thumbs.scss +10 -3
  95. data/scss/foundation/components/_tooltips.scss +11 -11
  96. data/scss/foundation/components/_top-bar.scss +102 -64
  97. data/scss/foundation/components/_type.scss +54 -47
  98. data/templates/project/manifest.rb +1 -0
  99. metadata +11 -4
@@ -31,7 +31,7 @@ Want to test out the Compass templates. Don't recompile the gem every time, use
31
31
  ```bash
32
32
  mkdir demo1
33
33
  cd demo1
34
- echo -e 'source :rubygems\n
34
+ echo -e 'source "https://rubygems.org"\n
35
35
  gem "zurb-foundation", :path => "/path/to/foundation/repo"\n
36
36
  gem "compass"\n' > Gemfile
37
37
  bundle exec compass create -r zurb-foundation --using foundation
@@ -48,6 +48,7 @@ bundle exec compass create -r zurb-foundation --using foundation --force
48
48
  1. Fork it
49
49
  2. Create your feature branch (`git checkout -b my-new-feature`)
50
50
  3. Test your changes to the best of your ability. We've provided a test/ folder, feel free to add to it as necessary.
51
- 4. Commit your changes (`git commit -am 'Added some feature'`)
52
- 5. Push to the branch (`git push origin my-new-feature`)
53
- 6. Create new Pull Request
51
+ 4. Update the documentation to reflect your changes if they add or changes current functionality. Run `bundle && bundle exec foreman start` to compile to documentation. Make sure you are in the docs folder before you do this.
52
+ 5. Commit your changes (`git commit -am 'Added some feature'`)
53
+ 6. Push to the branch (`git push origin my-new-feature`)
54
+ 7. Create new Pull Request
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zurb-foundation (4.1.6)
4
+ zurb-foundation (4.2.0)
5
5
  sass (>= 3.2.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -30,12 +30,15 @@ Many thanks to all the people working on Foundation either to improve the base c
30
30
 
31
31
  WordPress (Versions marked 3/20/13)
32
32
 
33
+ * [Reactor](https://github.com/awtheme/reactor) by Anthony Wilhelm using Foundation version 4
33
34
  * [Reverie](http://themefortress.com/reverie/) by Zhen using Foundation version 4
34
35
  * [Corner Stone](https://github.com/thewirelessguy/cornerstone) by [Stephen Mullen](https://twitter.com/wirelessguyuk) using Foundation version v4.09
35
36
  * [required+ Themes](http://themes.required.ch/) by required+ using Foundation version 3.25
36
37
  * [Yeti](https://github.com/modlearning/Yeti) by Modular Learning using Foundation version 3.2
37
38
  * [Starter Theme](https://github.com/drewsymo/Foundation) by Drew Morris using Foundation version 3
38
39
  * [WP-Foundation](http://320press.com/wp-foundation/features/) by 320press using Foundation version 3
40
+ * [f415](https://github.com/javorszky/f415) by Gabor Javorszky
41
+ * [Narga Core](https://github.com/Narga/narga-core) by Nguyễn Đình Quân
39
42
 
40
43
  Joomla
41
44
 
@@ -48,6 +51,9 @@ Drupal
48
51
  * [Zurb Foundation](http://drupal.org/project/zurb-foundation) Supporting F3.2, F4 & Drupal 8 by [Ishmael Sanchez](http://ishmaelsanchez.com), [Chris Lee](http://hire.chrisjlee.net)
49
52
  * [Zoundation Theme](http://drupal.org/project/zoundation) by [Andrea Burton](https://twitter.com/andreaburton) & [Jeff Graham](https://twitter.com/jgraham909), FunnyMonkey
50
53
 
54
+ Alfred
55
+ * [Foundation Alfred](https://github.com/joshmedeski/foundation-alfred) by Josh Medeski (@joshmedeski)
56
+
51
57
  PyroCMS
52
58
 
53
59
  * [PyroYeti - PyroCMS Theme](https://github.com/pyrosuit/PyroYeti) by [Arnold Mwumva Ford](https://twitter.com/fordarnold) , Meridian Softech
@@ -70,6 +76,7 @@ Middleman
70
76
 
71
77
  Magento
72
78
  * [Magento & Foundation](https://github.com/nandroid/MagentoFoundation) by Nandroid
79
+ * [Waterlee Boilerplate](https://github.com/zeljkoprsa/waterlee-boilerplate) by Jake Sharp
73
80
 
74
81
  Python
75
82
  * [Pyramid Scaffold](https://github.com/ppinette/pyramid_foundation) by Parker Pinette
@@ -1,3 +1,30 @@
1
+ ### 4.2- May 30, 2013
2
+ * Added new Interchange Plugin for handling responsive images.
3
+ * Made a variable for the "sticky" class on the top-bar.
4
+ * Changed media query variables to pixels for better consistency between font sizes.
5
+ * Fixed deep linking for foundation.section.js.
6
+ * Added data-options support to top-bar, you can now include "is_hover: false" to make it clickable.
7
+ * Each dropdown section of the top-bar for mobile now takes on its natural height rather than looking for the tallest and setting them all to that.
8
+ * Added data-options support for tool-tips.
9
+ * Added .large-uncentered for when you only want centered on small screens.
10
+ * Made block-grid spacing more like the normal grid.
11
+ * Fixed confusing comments in visibility classes SCSS file.
12
+ * Added AJAX support to Reveal.
13
+ * Added cursor variables.
14
+ * Fixed various typos in the documentation.
15
+ * Updated CONTRIBUTOR.md to include how to run the docs locally.
16
+ * Added Codekit instructions to documentation.
17
+ * Changed to a better method test for Zepto.
18
+ * Added hover support for dropdowns data-options by including "is_hover: true" to the options.
19
+ * Added the ability to use deep-linking inside nested Sections.
20
+ * Added the ability to use HTML in the data-caption for Clearing.
21
+ * Fixes problem with embedded Youtube videos inside of Reveal.
22
+ * Orbit now has pause/resume on hover/mousout capability.
23
+ * Fixed Section vertical tabs on mobile.
24
+ * Lots of small bug fixes and improvements for many of the JS components.
25
+
26
+ You can compare the commits [here](https://github.com/zurb/foundation/compare/v4.1.6...v4.2.0).
27
+
1
28
  ### 4.1.6- May 6, 2013
2
29
  * Improved performance for custom select boxes.
3
30
  * Bug fix for switches contained within custom forms.
@@ -6,6 +6,8 @@ gem 'foreman'
6
6
  gem 'stasis'
7
7
  gem 'sass', :require => false
8
8
  gem 'coderay'
9
+ gem 'coderay_bash'
10
+ gem 'thin'
9
11
  gem 'uglifier'
10
12
 
11
13
  group :production do
@@ -2,7 +2,11 @@ GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
4
  coderay (1.0.9)
5
+ coderay_bash (1.0.5)
6
+ coderay (>= 1.0)
7
+ daemons (1.1.9)
5
8
  directory_watcher (1.4.1)
9
+ eventmachine (1.0.3)
6
10
  execjs (1.4.0)
7
11
  multi_json (~> 1.0)
8
12
  foreman (0.61.0)
@@ -25,6 +29,10 @@ GEM
25
29
  tilt (= 1.3.3)
26
30
  therubyracer (0.10.2)
27
31
  libv8 (~> 3.3.10)
32
+ thin (1.5.1)
33
+ daemons (>= 1.0.9)
34
+ eventmachine (>= 0.12.6)
35
+ rack (>= 1.0.0)
28
36
  thor (0.17.0)
29
37
  tilt (1.3.3)
30
38
  uglifier (1.3.0)
@@ -36,10 +44,12 @@ PLATFORMS
36
44
 
37
45
  DEPENDENCIES
38
46
  coderay
47
+ coderay_bash
39
48
  foreman
40
49
  redcarpet
41
50
  sass
42
51
  sprockets
43
52
  stasis
44
53
  therubyracer
54
+ thin
45
55
  uglifier
@@ -89,6 +89,7 @@
89
89
  <ul class="side-nav">
90
90
  <li><a class="<%= @page_title == 'Clearing' ? 'active': '' %>" href="clearing.html">Clearing</a></li>
91
91
  <li><a class="<%= @page_title == 'Dropdown' ? 'active': '' %>" href="dropdown.html">Dropdown</a></li>
92
+ <li><a class="<%= @page_title == 'Interchange' ? 'active': '' %>" href="interchange.html">Interchange</a></li>
92
93
  <li><a class="<%= @page_title == 'Joyride' ? 'active': '' %>" href="joyride.html">Joyride</a></li>
93
94
  <li><a class="<%= @page_title == 'Magellan' ? 'active': '' %>" href="magellan.html">Magellan</a></li>
94
95
  <li><a class="<%= @page_title == 'Orbit' ? 'active': '' %>" href="orbit.html">Orbit</a></li>
@@ -89,6 +89,7 @@
89
89
  <ul class="side-nav">
90
90
  <li><a href="components/clearing.html">Clearing</a></li>
91
91
  <li><a href="components/dropdown.html">Dropdown</a></li>
92
+ <li><a href="components/interchange.html">Interchange</a></li>
92
93
  <li><a href="components/joyride.html">Joyride</a></li>
93
94
  <li><a href="components/magellan.html">Magellan</a></li>
94
95
  <li><a href="components/orbit.html">Orbit</a></li>
@@ -12,11 +12,16 @@
12
12
 
13
13
  <div class="row">
14
14
  <div class="large-12 columns">
15
- <div data-alert class="alert-box radius">
15
+ <div data-alert class="alert-box">
16
16
  This is a standard alert (div.alert-box).
17
17
  <a href="" class="close">&times;</a>
18
18
  </div>
19
19
 
20
+ <div data-alert class="alert-box radius">
21
+ This is a radius alert (div.alert-box.radius).
22
+ <a href="" class="close">&times;</a>
23
+ </div>
24
+
20
25
  <div data-alert class="alert-box success">
21
26
  This is a success alert (div.alert-box.success).
22
27
  <a href="" class="close">&times;</a>
@@ -48,10 +53,10 @@
48
53
  <hr>
49
54
 
50
55
  <h3>Build with Mixins</h3>
51
- <p>We've included SCSS mixins used to style alert boxes. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_alert-boxes.scss">_alert-boxes.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
56
+ <p>We've included SCSS mixins used to style alert boxes. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_variables.scss">_variables.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_alert-boxes.scss">_alert-boxes.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
52
57
 
53
58
  <%= code_example '
54
- @import "foundation/foundation-global", "foundation/components/global", "foundation/components/alerts";
59
+ @import "foundation/variables", "foundation/components/global", "foundation/components/alerts";
55
60
  ', :css %>
56
61
 
57
62
  <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
@@ -54,10 +54,10 @@
54
54
  <hr>
55
55
 
56
56
  <h3>Using The Mixin</h3>
57
- <p>We've included SCSS mixins used to style block-grids. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/tree/master/scss/foundation/components">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/tree/master/scss/foundation/components">_block-grid.scss</a> from Github and throw them into a foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
57
+ <p>We've included SCSS mixins used to style block-grids. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/tree/master/scss/foundation/components">_variables.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/tree/master/scss/foundation/components">_block-grid.scss</a> from Github and throw them into a foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
58
58
 
59
59
  <%= code_example '
60
- @import "foundation/foundation-global", "foundation/components/global", "foundation/components/block-grid";
60
+ @import "foundation/variables", "foundation/components/global", "foundation/components/block-grid";
61
61
  ', :css %>
62
62
 
63
63
  <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure. Since we don't have any media queries baked into the mixin itself, you can apply the styles at whatever breakpoint you want! Just change the configuration within each.</p>
@@ -111,7 +111,7 @@ $base-style: true
111
111
  <%= code_example '
112
112
  /* We use this to control the maximum blocks and spacing */
113
113
  $block-grid-elements: 12;
114
- $block-grid-default-spacing: 10px;
114
+ $block-grid-default-spacing: emCalc(20px);
115
115
 
116
116
  /* Enables media queries for block-grid classes. Set to false if writing semantic HTML. */
117
117
  $block-grid-media-queries: true
@@ -46,10 +46,10 @@
46
46
  <hr>
47
47
 
48
48
  <h3>Build with Mixins</h3>
49
- <p>We've included SCSS mixins used to style breadcrumbs. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_breadcrumbs.scss">_breadcrumbs.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
49
+ <p>We've included SCSS mixins used to style breadcrumbs. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_variables.scss">_variables.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_breadcrumbs.scss">_breadcrumbs.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
50
50
 
51
51
  <%= code_example '
52
- @import "foundation/foundation-global", "foundation/components/global", "foundation/components/breadcrumbs";
52
+ @import "foundation/variables", "foundation/components/global", "foundation/components/breadcrumbs";
53
53
  ', :css %>
54
54
 
55
55
  <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
@@ -101,10 +101,10 @@
101
101
  <hr>
102
102
 
103
103
  <h3>Build with Mixins</h3>
104
- <p>We've included SCSS mixins used to style button groups. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_button-groups.scss">_button-groups.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
104
+ <p>We've included SCSS mixins used to style button groups. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_variables.scss">_variables.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_button-groups.scss">_button-groups.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
105
105
 
106
106
  <%= code_example '
107
- @import "foundation/foundation-global", "foundation/components/global", "foundation/components/buttons", "foundation/components/button-groups";
107
+ @import "foundation/variables", "foundation/components/global", "foundation/components/buttons", "foundation/components/button-groups";
108
108
  ', :css %>
109
109
 
110
110
  <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
@@ -66,10 +66,10 @@
66
66
  <hr>
67
67
 
68
68
  <h3>Build with Mixins</h3>
69
- <p>We've included SCSS mixins used to style buttons. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
69
+ <p>We've included SCSS mixins used to style buttons. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_variables.scss">_variables.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
70
70
 
71
71
  <%= code_example '
72
- @import "foundation/foundation-global", "foundation/components/global", "foundation/components/buttons";
72
+ @import "foundation/variables", "foundation/components/global", "foundation/components/buttons";
73
73
  ', :css %>
74
74
 
75
75
  <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
@@ -208,7 +208,7 @@ $button-radius: $global-radius;
208
208
  $button-disabled-opacity: 0.6;
209
209
  ', :css %>
210
210
 
211
- <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>_foundation-global.scss</strong>.</p>
211
+ <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>
212
212
 
213
213
  </div>
214
214
  </div>
@@ -52,20 +52,20 @@
52
52
  <hr>
53
53
 
54
54
  <h4>Start From a Featured Image</h4>
55
- <p>Sometimes you don't want to show a gallery full of images on your site, but you want to open the gallery from a single image. By including all of your images in the list and using <code>.clearing-feature</code> on the <code>&lt;li&gt;</code> of your choice, you'll be able to hide the rest of the images in the on-page gallery. If you want to show more than once, try using our <code>.hide</code> class to set the ones you don't want to <code>display: none;</code>.</p>
55
+ <p>Sometimes you don't want to show a gallery full of images on your site, but you want to open the gallery from a single image. By including all of your images in a <code>.clearing-feature</code> list and using <code>.clearing-featured-img</code> on the <code>&lt;li&gt;</code> of your choice, you'll be able to hide the rest of the images in the on-page gallery. If you want to show more than once, try using our <code>.hide</code> class to set the ones you don't want to <code>display: none;</code>.</p>
56
56
 
57
57
  <%= code_example '
58
- <ul class="clearing-thumbs" data-clearing>
59
- <li class="clearing-feature"><a href="path/to/your/img"><img src="path/to/your/img-th"></a></li>
58
+ <ul class="clearing-thumbs clearing-feature" data-clearing>
60
59
  <li><a href="path/to/your/img"><img src="path/to/your/img-th"></a></li>
60
+ <li class="clearing-featured-img"><a href="path/to/your/img"><img src="path/to/your/img-th"></a></li>
61
61
  <li><a href="path/to/your/img"><img src="path/to/your/img-th"></a></li>
62
62
  </ul>', :html %>
63
63
 
64
64
  <div class="row">
65
65
  <div class="large-12 columns">
66
- <ul class="clearing-thumbs" data-clearing>
67
- <li class="clearing-feature"><a class="th" href="../img/demos/demo1.jpg"><img src="../img/demos/demo1-th.jpg"></a></li>
68
- <li><a class="th" href="../img/demos/demo2.jpg"><img src="../img/demos/demo2-th.jpg"></a></li>
66
+ <ul class="clearing-thumbs clearing-feature" data-clearing>
67
+ <li><a class="th" href="../img/demos/demo1.jpg"><img src="../img/demos/demo1-th.jpg"></a></li>
68
+ <li class="clearing-featured-img"><a class="th" href="../img/demos/demo2.jpg"><img src="../img/demos/demo2-th.jpg"></a></li>
69
69
  <li><a class="th" href="../img/demos/demo3.jpg"><img src="../img/demos/demo3-th.jpg"></a></li>
70
70
  </ul>
71
71
  </div>
@@ -76,6 +76,7 @@
76
76
  <h4>Including Captions</h4>
77
77
  <p>Another common use-case for Lightboxes is to include a caption per image. We've made this quick and easy by using data-attributes to hold the content. You'll just attach this attribute to the image it belongs to and voila!</code> Here's the code example:</p>
78
78
 
79
+ <p><strong>Note:</strong> You can now use HTML inside the data-caption attribute.</p>
79
80
  <%= code_example '
80
81
  <ul class="clearing-thumbs" data-clearing>
81
82
  <li><a href="path/to/your/img"><img data-caption="caption here..." src="path/to/your/img-th"></a></li>
@@ -15,6 +15,7 @@
15
15
  <div class="large-12 columns">
16
16
 
17
17
  <form class="custom">
18
+
18
19
  <div class="row">
19
20
  <div class="large-4 columns">
20
21
  <label for="radio1"><input name="radio1" type="radio" id="radio1" style="display:none;" CHECKED><span class="custom radio checked"></span> Radio Button 1</label>
@@ -54,10 +54,10 @@
54
54
  <hr>
55
55
 
56
56
  <h3>Build with Mixins</h3>
57
- <p>We've included SCSS mixins used to style buttons. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_dropdown-buttons.scss">_dropdown-buttons.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
57
+ <p>We've included SCSS mixins used to style buttons. To use these mixins, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_variables.scss">_variables.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_dropdown-buttons.scss">_dropdown-buttons.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
58
58
 
59
59
  <%= code_example '
60
- @import "foundation/foundation-global", "foundation/components/global", "foundation/components/buttons", "foundation/components/dropdown-buttons";
60
+ @import "foundation/variables", "foundation/components/global", "foundation/components/buttons", "foundation/components/dropdown-buttons";
61
61
  ', :css %>
62
62
 
63
63
  <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
@@ -145,7 +145,7 @@ $dropdown-button-pip-right-lrg: $button-lrg + emCalc(12px);
145
145
  $dropdown-button-pip-top-lrg: -$button-lrg / 2 + emCalc(3px);
146
146
  ', :css %>
147
147
 
148
- <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>_foundation-global.scss</strong>.</p>
148
+ <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>
149
149
 
150
150
  <hr>
151
151
 
@@ -54,13 +54,25 @@
54
54
 
55
55
  <p>You may chain one class from each group to build up desired default styles. For these styles to take effect, make sure you have the <strong>default Foundation CSS package</strong> or that you've selected <strong>dropdowns from a custom package</strong>. These should be linked up following our default <a href="../index.html#basicHTMLMarkup">HTML page structure</a>.</p>
56
56
 
57
+ <h5>Hoverable Dropdown Option</h5>
58
+ <p>If you'd rather have your dropdown be accessible by hover you can add a data-option to the target element:</p>
59
+
60
+ <%= code_example '
61
+ <a href="#" data-dropdown="drop1" data-options="is_hover:true">Has Dropdown</a>
62
+
63
+ <ul id="drop1" class="f-dropdown" data-dropdown-content>
64
+ <li><a href="#">This is a link</a></li>
65
+ <li><a href="#">This is another</a></li>
66
+ <li><a href="#">Yet another</a></li>
67
+ </ul>', :html %>
68
+
57
69
  <hr>
58
70
 
59
71
  <h3>Build With Our Mixins</h3>
60
- <p>We've included SCSS mixins used to style dropdowns. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_dropdown.scss">_dropdown.scss</a> from Github and throw them into a foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
72
+ <p>We've included SCSS mixins used to style dropdowns. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_variables.scss">_variables.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_dropdown.scss">_dropdown.scss</a> from Github and throw them into a foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
61
73
 
62
74
  <%= code_example '
63
- @import "foundation/foundation-global", "foundation/components/global", "foundation/components/dropdown";
75
+ @import "foundation/variables", "foundation/components/global", "foundation/components/dropdown";
64
76
  ', :css %>
65
77
 
66
78
  <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
@@ -133,9 +145,13 @@ $f-dropdown-font-color: #555;
133
145
  $f-dropdown-font-size: emCalc(14px);
134
146
  $f-dropdown-list-padding: emCalc(5px) emCalc(10px);
135
147
  $f-dropdown-line-height: emCalc(18px);
136
- $f-dropdown-list-hover-bg: #eeeeee;', :css %>
148
+ $f-dropdown-list-hover-bg: #eeeeee;
149
+ $dropdown-mobile-default-float: 0;
150
+
151
+ /* We use this to control the styles for when the dropdown has custom content. */
152
+ $f-dropdown-content-padding: emCalc(20px);', :css %>
137
153
 
138
- <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>_foundation-global.scss</strong>.</p>
154
+ <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>
139
155
 
140
156
  <hr>
141
157
 
@@ -52,10 +52,10 @@
52
52
  <hr>
53
53
 
54
54
  <h3>Build with our Mixins</h3>
55
- <p>We've included SCSS mixins used to style labels. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_flex-video.scss">_flex-video.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
55
+ <p>We've included SCSS mixins used to style labels. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_variables.scss">_variables.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_flex-video.scss">_flex-video.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
56
56
 
57
57
  <%= code_example '
58
- @import "foundation/foundation-global", "foundation/components/global" "foundation/components/flex-video";
58
+ @import "foundation/variables", "foundation/components/global" "foundation/components/flex-video";
59
59
  ', :css %>
60
60
 
61
61
  <p>The markup is just like we showed you above, but you can apply the mixin to your own custom class or ID.</p>
@@ -84,7 +84,7 @@ $flex-video-margin-bottom: emCalc(16px);
84
84
  $flex-video-widescreen-padding-bottom: 57.25%;
85
85
  ', :css %>
86
86
 
87
- <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>_foundation-global.scss</strong>.</p>
87
+ <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>
88
88
 
89
89
  </div>
90
90
  </div>
@@ -213,7 +213,7 @@
213
213
  <hr>
214
214
 
215
215
  <h4>Pre/Postfix Labels &amp; Actions</h4>
216
- <p>Foundation forms support actions tied to buttons, and prefix / postfix labels, through a versatile approach using special grid properties. Essentially you can use <code>&lt;row class="collapse"&gt;</code> to create label / action / input combinations. You use the Foundation columns to define the size of the pre/postfix <code>&lt;span class="postfix"&gt;</code> or <code>&lt;span class="prefix"&gt;</code>. Here are a few examples:</p>
216
+ <p>Foundation forms support actions tied to buttons, and prefix / postfix labels, through a versatile approach using special grid properties. Essentially you can use <code>&lt;div class="row collapse"&gt;</code> to create label / action / input combinations. You use the Foundation columns to define the size of the pre/postfix <code>&lt;span class="postfix"&gt;</code> or <code>&lt;span class="prefix"&gt;</code>. Here are a few examples:</p>
217
217
 
218
218
  <%= code_example '
219
219
  <form>
@@ -329,10 +329,10 @@
329
329
  <hr>
330
330
 
331
331
  <h3>Build with Mixins</h3>
332
- <p>A lot of elements in Foundation can be created using SCSS mixins so that you can include your own classes and just enough style as needed for the job at hand. To use these mixins, you'll need to have the extension installed or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_forms.scss">_forms.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
332
+ <p>A lot of elements in Foundation can be created using SCSS mixins so that you can include your own classes and just enough style as needed for the job at hand. To use these mixins, you'll need to have the extension installed or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_variables.scss">_variables.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_forms.scss">_forms.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
333
333
 
334
334
  <%= code_example '
335
- @import "foundation/foundation-global", "foundation/components/global", "foundation/components/buttons", "foundation/components/forms";', :css %>
335
+ @import "foundation/variables", "foundation/components/global", "foundation/components/buttons", "foundation/components/forms";', :css %>
336
336
 
337
337
 
338
338
  <p>We include most of the form styles by default, but the ones that are attached to HTML classes can be accessed via the mixins below. The error states have mixins, but we suggest using the classes since they are usually only visible temporarily.</p>
@@ -463,11 +463,11 @@ $input-error-message-font-color-alt: #333;
463
463
 
464
464
  +/* We use this to style the glowing effect of inputs when focused */
465
465
  +$glowing-effect-fade-time: 0.45s !default;
466
- +$glowing-effect-color: $input-focus-border-color !default;
466
+ +$glowing-effect-color: $input-focus-border-color !default;
467
467
 
468
468
  ', :css %>
469
469
 
470
- <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>_foundation-global.scss</strong>.</p>
470
+ <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>
471
471
  </div>
472
472
  </div>
473
473
  </div>
@@ -10,7 +10,236 @@
10
10
 
11
11
  <hr>
12
12
 
13
- <%= code_example "
13
+ <%= code_example '
14
+ /* Global Foundation Mixins */
15
+
16
+ /* We use this to control border radius. */
17
+ @mixin radius($radius:$global-radius) {
18
+ @if $radius {
19
+ @if $experimental {
20
+ -webkit-border-radius: $radius;
21
+ }
22
+ border-radius: $radius;
23
+ }
24
+ }
25
+
26
+ /* We use this to create equal side border radius on elements. */
27
+ @mixin side-radius($side, $radius) {
28
+ @if $side == left {
29
+ @if $experimental {
30
+ -moz-border-radius-bottomleft: $radius;
31
+ -moz-border-radius-topleft: $radius;
32
+ -webkit-border-bottom-left-radius: $radius;
33
+ -webkit-border-top-left-radius: $radius;
34
+ }
35
+ border-bottom-left-radius: $radius;
36
+ border-top-left-radius: $radius;
37
+ }
38
+ @else if $side == right {
39
+ @if $experimental {
40
+ -moz-border-radius-topright: $radius;
41
+ -moz-border-radius-bottomright: $radius;
42
+ -webkit-border-top-right-radius: $radius;
43
+ -webkit-border-bottom-right-radius: $radius;
44
+ }
45
+ border-top-right-radius: $radius;
46
+ border-bottom-right-radius: $radius;
47
+ }
48
+ @else if $side == top {
49
+ @if $experimental {
50
+ -moz-border-radius-topright: $radius;
51
+ -moz-border-radius-topleft: $radius;
52
+ -webkit-border-top-right-radius: $radius;
53
+ -webkit-border-top-left-radius: $radius;
54
+ }
55
+ border-top-right-radius: $radius;
56
+ border-top-left-radius: $radius;
57
+ }
58
+ @else if $side == bottom {
59
+ @if $experimental {
60
+ -moz-border-radius-bottomright: $radius;
61
+ -moz-border-radius-bottomleft: $radius;
62
+ -webkit-border-bottom-right-radius: $radius;
63
+ -webkit-border-bottom-left-radius: $radius;
64
+ }
65
+ border-bottom-right-radius: $radius;
66
+ border-bottom-left-radius: $radius;
67
+ }
68
+ }
69
+
70
+ /* We can control whether or not we have inset shadows edges. */
71
+ @mixin inset-shadow($active:true) {
72
+ @if $experimental {
73
+ -webkit-box-shadow: $shiny-edge-size $shiny-edge-color inset;
74
+ }
75
+ box-shadow: $shiny-edge-size $shiny-edge-color inset;
76
+
77
+ @if $active { &:active {
78
+ @if $experimental {
79
+ -webkit-box-shadow: $shiny-edge-size $shiny-edge-active-color inset;
80
+ }
81
+ box-shadow: $shiny-edge-size $shiny-edge-active-color inset; } }
82
+ }
83
+
84
+ /* We use this to add transitions to elements */
85
+ @mixin single-transition($property:all, $speed:300ms, $ease:ease-out) {
86
+ @if $experimental {
87
+ -webkit-transition: $property $speed $ease;
88
+ -moz-transition: $property $speed $ease;
89
+ }
90
+ transition: $property $speed $ease;
91
+ }
92
+
93
+ /* We use this to add box-sizing across browser prefixes */
94
+ @mixin box-sizing($type:border-box) {
95
+ @if $experimental {
96
+ -moz-box-sizing: $type;
97
+ -webkit-box-sizing: $type;
98
+ }
99
+ box-sizing: $type;
100
+ }
101
+
102
+ /* We use this to create equilateral triangles */
103
+ @mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) {
104
+ content: "";
105
+ display: block;
106
+ width: 0;
107
+ height: 0;
108
+ border: inset $triangle-size;
109
+ @if ($triangle-direction == top) {
110
+ border-color: $triangle-color transparent transparent transparent;
111
+ border-top-style: solid;
112
+ }
113
+ @if ($triangle-direction == bottom) {
114
+ border-color: transparent transparent $triangle-color transparent;
115
+ border-bottom-style: solid;
116
+ }
117
+ @if ($triangle-direction == left) {
118
+ border-color: transparent transparent transparent $triangle-color;
119
+ border-left-style: solid;
120
+ }
121
+ @if ($triangle-direction == right) {
122
+ border-color: transparent $triangle-color transparent transparent;
123
+ border-right-style: solid;
124
+ }
125
+ }
126
+
127
+ /* We use this to do clear floats */
128
+ @mixin clearfix() {
129
+ *zoom:1;
130
+ &:before, &:after { content: " "; display: table; }
131
+ &:after { clear: both; }
132
+ }
133
+
134
+
135
+ /* We use this to add a glowing effect to block elements */
136
+ @mixin block-glowing-effect($selector:focus, $fade-time:300ms, $glowing-effect-color:fade-out($primary-color, .25)) {
137
+ @if $experimental {
138
+ -webkit-transition: -webkit-box-shadow $fade-time, border-color $fade-time ease-in-out;
139
+ -moz-transition: -moz-box-shadow $fade-time, border-color $fade-time ease-in-out;
140
+ }
141
+ transition: box-shadow $fade-time, border-color $fade-time ease-in-out;
142
+
143
+ &:#{$selector} {
144
+ @if $experimental {
145
+ -webkit-box-shadow: 0 0 5px $glowing-effect-color;
146
+ -moz-box-shadow: 0 0 5px $glowing-effect-color;
147
+ }
148
+ box-shadow: 0 0 5px $glowing-effect-color;
149
+ border-color: $glowing-effect-color;
150
+ }
151
+ }
152
+
153
+
154
+ /* Foundation Variables */
155
+
156
+ /* The default font-size is set to 100% of the browser style sheet (usually 16px) */
157
+ /* for compatibility with brower-based text zoom or user-set defaults. */
158
+
159
+ /* Since the typical default browser font-size is 16px, that makes the calculation for grid size. */
160
+ /* If you want your base font-size to be different and not have it effect the grid breakpoints, */
161
+ /* set $em-base to $base-font-size and make sure $base-font-size is a px value. */
162
+ $base-font-size: 100% !default;
163
+
164
+ /* $base-line-height is 24px while $base-font-size is 16px */
165
+ $base-line-height: 150% !default;
166
+
167
+ /* This is the default html and body font-size for the base em value. */
168
+ $em-base: 16px !default;
169
+
170
+ /* Working in ems is annoying. Think in pixels by using this handy function, emCalc(#px) */
171
+ @function emCalc($pxWidth) {
172
+ @return $pxWidth / $em-base * 1em;
173
+ }
174
+
175
+ /* Maybe you want to create rems and pixels */
176
+ /* @function remCalc($pxWidth) { */
177
+ /* @return $pxWidth / $em-base * 1rem; */
178
+ /* } */
179
+
180
+ /* We use these to control various global styles */
181
+ $body-bg: #fff !default;
182
+ $body-font-color: #222 !default;
183
+ $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
184
+ $body-font-weight: normal !default;
185
+ $body-font-style: normal !default;
186
+
187
+ /* We use this to control font-smoothing */
188
+ $font-smoothing: subpixel-antialiased !default;
189
+
190
+ /* We use these to control text direction settings */
191
+ $text-direction: ltr !default;
192
+
193
+ /* NOTE: No need to change this conditional statement, $text-direction variable controls it all. */
194
+ $default-float: left !default;
195
+ $opposite-direction: right !default;
196
+ @if $text-direction == ltr {
197
+ $default-float: left;
198
+ $opposite-direction: right;
199
+ } @else {
200
+ $default-float: right;
201
+ $opposite-direction: left;
202
+ }
203
+
204
+ /* We use these as default colors throughout */
205
+ $primary-color: #2ba6cb !default;
206
+ $secondary-color: #e9e9e9 !default;
207
+ $alert-color: #c60f13 !default;
208
+ $success-color: #5da423 !default;
209
+
210
+ /* We use these to make sure border radius matches unless we want it different. */
211
+ $global-radius: 3px !default;
212
+ $global-rounded: 1000px !default;
213
+
214
+ /* We use these to control inset shadow shiny edges and depressions. */
215
+ $shiny-edge-size: 0 1px 0 !default;
216
+ $shiny-edge-color: rgba(#fff, .5) !default;
217
+ $shiny-edge-active-color: rgba(#000, .2) !default;
218
+
219
+ /* We use this to control whether or not CSS classes come through in the gem files. */
220
+ $include-html-classes: true !default;
221
+ $include-print-styles: true !default;
222
+ $include-html-global-classes: $include-html-classes !default;
223
+
224
+ /* Media Queries */
225
+ $small-screen: 768px !default;
226
+ $medium-screen: 1280px !default;
227
+ $large-screen: 1440px !default;
228
+
229
+ $screen: "only screen" !default;
230
+ $small: "only screen and (min-width: #{$small-screen})" !default;
231
+ $medium: "only screen and (min-width:#{$medium-screen})" !default;
232
+ $large: "only screen and (min-width:#{$large-screen})" !default;
233
+ $landscape: "only screen and (orientation: landscape)" !default;
234
+ $portrait: "only screen and (orientation: portrait)" !default;
235
+
236
+ /* We use this as cursors values for enabling the option of having custom cursors */
237
+ $cursor-crosshair-value: crosshair !default;
238
+ $cursor-default-value: default !default;
239
+ $cursor-pointer-value: pointer !default;
240
+ $cursor-help-value: help !default;
241
+ $cursor-text-value: text !default;
242
+
14
243
  /* Set box-sizing globally to handle padding and border widths */
15
244
  *,
16
245
  *:before,
@@ -32,9 +261,12 @@ body {
32
261
  font-style: $body-font-style;
33
262
  line-height: 1;
34
263
  position: relative;
264
+ cursor: $cursor-default-value;
35
265
  }
36
266
 
37
- /* Override outline from normalize, we don't like it */
267
+ a:hover { cursor: $cursor-pointer-value; }
268
+
269
+ /* Override outline from normalize, we do not like it */
38
270
  a:focus { outline: none; }
39
271
 
40
272
  /* Grid Defaults to get images and embeds to work properly */
@@ -77,7 +309,7 @@ textarea { height: auto; min-height: 50px; }
77
309
 
78
310
  /* Make select elements 100% width by default */
79
311
  select { width: 100%; }
80
- ", :css %>
312
+ ', :css %>
81
313
 
82
314
  </div>
83
315
  </div>