zurb-foundation 3.2.5 → 4.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -2
- data/CHANGELOG.md +1 -26
- data/CONTRIBUTING.md +18 -0
- data/Gemfile.lock +19 -0
- data/Gruntfile.js +27 -0
- data/README.md +5 -6
- data/{Capfile → docs/Capfile} +0 -1
- data/docs/Gemfile +8 -0
- data/docs/Gemfile.lock +43 -0
- data/docs/Procfile +2 -0
- data/docs/README.md +1 -0
- data/docs/_sidebar-components.html.erb +109 -0
- data/docs/_sidebar.html.erb +109 -0
- data/docs/_zurb-jobs.html.erb +5 -0
- data/docs/changelog.html.erb +185 -0
- data/docs/compile.rb +43 -0
- data/docs/components/alert-boxes.html.erb +202 -0
- data/docs/components/block-grid.html.erb +118 -0
- data/docs/components/breadcrumbs.html.erb +146 -0
- data/docs/components/button-groups.html.erb +174 -0
- data/docs/components/buttons.html.erb +220 -0
- data/docs/components/clearing.html.erb +152 -0
- data/docs/components/custom-forms.html.erb +306 -0
- data/docs/components/dropdown-buttons.html.erb +233 -0
- data/docs/components/dropdown.html.erb +186 -0
- data/docs/components/flex-video.html.erb +93 -0
- data/docs/components/forms.html.erb +468 -0
- data/docs/components/grid.html.erb +355 -0
- data/docs/components/inline-lists.html.erb +89 -0
- data/docs/components/joyride.html.erb +178 -0
- data/docs/components/keystrokes.html.erb +74 -0
- data/docs/components/labels.html.erb +98 -0
- data/docs/components/magellan.html.erb +84 -0
- data/docs/components/orbit.html.erb +262 -0
- data/docs/components/pagination.html.erb +181 -0
- data/docs/components/panels.html.erb +121 -0
- data/docs/components/pricing-tables.html.erb +154 -0
- data/docs/components/progress-bars.html.erb +120 -0
- data/docs/components/reveal.html.erb +147 -0
- data/docs/components/section.html.erb +156 -0
- data/docs/components/side-nav.html.erb +122 -0
- data/docs/components/split-buttons.html.erb +218 -0
- data/docs/components/sub-nav.html.erb +120 -0
- data/docs/components/switch.html.erb +288 -0
- data/docs/components/tables.html.erb +123 -0
- data/docs/components/thumbnails.html.erb +87 -0
- data/docs/components/tooltips.html.erb +73 -0
- data/docs/components/top-bar.html.erb +219 -0
- data/docs/components/type.html.erb +359 -0
- data/docs/components/visibility.html.erb +102 -0
- data/docs/config.ru +12 -0
- data/docs/config/deploy.rb +33 -0
- data/docs/controller.rb +43 -0
- data/docs/css/_coderay.scss +116 -0
- data/docs/css/_settings.scss +1 -0
- data/docs/css/docs.scss +174 -0
- data/docs/css/normalize.scss +396 -0
- data/docs/css/qunit-composite.css +13 -0
- data/docs/css/qunit.css +235 -0
- data/docs/faq.html.erb +61 -0
- data/docs/img/demos/demo1-th.png +0 -0
- data/docs/img/demos/demo1.png +0 -0
- data/docs/img/demos/demo2-th.png +0 -0
- data/docs/img/demos/demo2.png +0 -0
- data/docs/img/demos/demo3-th.png +0 -0
- data/docs/img/demos/demo3.png +0 -0
- data/docs/img/demos/demo4-th.png +0 -0
- data/docs/img/demos/demo4.png +0 -0
- data/docs/img/demos/demo5-th.png +0 -0
- data/docs/img/demos/demo5.png +0 -0
- data/docs/index.html.erb +299 -0
- data/docs/javascript.html.erb +133 -0
- data/docs/js/docs.js +3 -0
- data/docs/js/qunit-composite.js +105 -0
- data/docs/js/qunit.js +1977 -0
- data/docs/js/tests/tabs/simple_tabs.html +57 -0
- data/docs/js/tests/tabs/simple_tabs.js +54 -0
- data/docs/js/tests/tooltips/tooltips.html +39 -0
- data/docs/js/tests/tooltips/tooltips.js +11 -0
- data/docs/layout.html.erb +99 -0
- data/docs/rails.html.erb +66 -0
- data/docs/sass.html.erb +299 -0
- data/docs/support.html.erb +134 -0
- data/foundation.gemspec +2 -4
- data/index.html +3 -23
- data/js/foundation/foundation.alerts.js +50 -0
- data/js/foundation/foundation.clearing.js +478 -0
- data/{vendor/assets/javascripts/foundation/jquery.cookie.js → js/foundation/foundation.cookie.js} +3 -1
- data/js/foundation/foundation.dropdown.js +122 -0
- data/js/foundation/foundation.forms.js +403 -0
- data/js/foundation/foundation.joyride.js +613 -0
- data/js/foundation/foundation.js +331 -0
- data/js/foundation/foundation.magellan.js +130 -0
- data/js/foundation/foundation.orbit.js +355 -0
- data/{vendor/assets/javascripts/foundation/jquery.placeholder.js → js/foundation/foundation.placeholder.js} +4 -2
- data/js/foundation/foundation.reveal.js +264 -0
- data/js/foundation/foundation.section.js +180 -0
- data/js/foundation/foundation.tooltips.js +195 -0
- data/js/foundation/foundation.topbar.js +187 -0
- data/js/foundation/index.js +16 -0
- data/{vendor/assets/javascripts/foundation/modernizr.foundation.js → js/vendor/custom.modernizr.js} +0 -0
- data/js/vendor/jquery.js +9597 -0
- data/js/vendor/zepto.js +1782 -0
- data/lib/foundation/engine.rb +8 -1
- data/lib/foundation/generators/install_generator.rb +24 -1
- data/lib/foundation/generators/templates/application.html.erb +20 -6
- data/lib/foundation/generators/templates/application.html.haml +2 -6
- data/lib/foundation/generators/templates/application.html.slim +2 -5
- data/lib/foundation/version.rb +1 -1
- data/lib/zurb-foundation.rb +7 -9
- data/package.json +9 -0
- data/scss/foundation.scss +42 -15
- data/scss/foundation/_foundation-global.scss +226 -0
- data/scss/foundation/components/_alert-boxes.scss +106 -0
- data/scss/foundation/components/_block-grid.scss +63 -0
- data/scss/foundation/components/_breadcrumbs.scss +117 -0
- data/scss/foundation/components/_button-groups.scss +59 -0
- data/scss/foundation/components/_buttons.scss +217 -0
- data/scss/foundation/components/_clearing.scss +209 -0
- data/scss/foundation/components/_custom-forms.scss +232 -0
- data/scss/foundation/components/_dropdown-buttons.scss +114 -0
- data/scss/foundation/components/_dropdown.scss +137 -0
- data/scss/foundation/components/_flex-video.scss +45 -0
- data/scss/foundation/components/_forms.scss +309 -0
- data/scss/foundation/components/_grid.scss +149 -71
- data/scss/foundation/components/_inline-lists.scss +47 -0
- data/scss/foundation/components/_joyride.scss +193 -0
- data/scss/foundation/components/_keystrokes.scss +56 -0
- data/scss/foundation/components/_labels.scss +81 -0
- data/scss/foundation/components/_magellan.scss +15 -0
- data/scss/foundation/components/_orbit.scss +193 -0
- data/scss/foundation/components/_pagination.scss +99 -0
- data/scss/foundation/components/_panels.scss +76 -0
- data/scss/foundation/components/_pricing-tables.scss +130 -0
- data/scss/foundation/components/_progress-bars.scss +68 -0
- data/scss/foundation/components/_reveal.scss +131 -0
- data/scss/foundation/components/_section.scss +194 -0
- data/scss/foundation/components/_side-nav.scss +68 -0
- data/scss/foundation/components/_split-buttons.scss +159 -0
- data/scss/foundation/components/_sub-nav.scss +67 -0
- data/scss/foundation/components/_switch.scss +242 -0
- data/scss/foundation/components/_tables.scss +80 -0
- data/scss/foundation/components/_thumbs.scss +45 -0
- data/scss/foundation/components/_tooltips.scss +113 -0
- data/scss/foundation/components/_top-bar.scss +443 -0
- data/scss/foundation/components/_type.scss +411 -0
- data/scss/foundation/components/_visibility.scss +117 -0
- data/scss/normalize.scss +396 -0
- data/templates/project/config.rb +26 -0
- data/templates/project/index.html +28 -43
- data/templates/project/manifest.rb +21 -28
- data/templates/project/scss/_settings.scss +4 -243
- data/templates/project/scss/app.scss +37 -44
- data/templates/project/scss/normalize.scss +396 -0
- data/test/stylesheets/styles.css +955 -0
- metadata +144 -153
- data/config/deploy.rb +0 -42
- data/lib/foundation/generators/layout_generator.rb +0 -28
- data/scss/foundation/_settings.scss +0 -281
- data/scss/foundation/common/_base.scss +0 -4
- data/scss/foundation/common/_forms.scss +0 -117
- data/scss/foundation/common/_globals.scss +0 -35
- data/scss/foundation/common/_ratios.scss +0 -19
- data/scss/foundation/common/_typography.scss +0 -104
- data/scss/foundation/components/modules/_all.scss +0 -10
- data/scss/foundation/components/modules/_buttons.scss +0 -178
- data/scss/foundation/components/modules/_clearing.scss +0 -61
- data/scss/foundation/components/modules/_joyride.scss +0 -33
- data/scss/foundation/components/modules/_mqueries.scss +0 -458
- data/scss/foundation/components/modules/_navbar.scss +0 -74
- data/scss/foundation/components/modules/_offcanvas.scss +0 -55
- data/scss/foundation/components/modules/_orbit.scss +0 -90
- data/scss/foundation/components/modules/_reveal.scss +0 -34
- data/scss/foundation/components/modules/_tabs.scss +0 -67
- data/scss/foundation/components/modules/_topbar.scss +0 -167
- data/scss/foundation/components/modules/_ui.scss +0 -292
- data/scss/foundation/functions/_all.scss +0 -2
- data/scss/foundation/functions/_convert-number-to-word.scss +0 -10
- data/scss/foundation/functions/_grid-calc.scss +0 -5
- data/scss/foundation/functions/modular-scale.scss +0 -3
- data/scss/foundation/mixins/_all.scss +0 -5
- data/scss/foundation/mixins/_clearfix.scss +0 -13
- data/scss/foundation/mixins/_css-triangle.scss +0 -22
- data/scss/foundation/mixins/_font-size.scss +0 -13
- data/scss/foundation/mixins/_respond-to.scss +0 -11
- data/scss/foundation/mixins/_semantic-grid.scss +0 -66
- data/test/buttons.html +0 -189
- data/test/clearing.html +0 -85
- data/test/config.rb +0 -11
- data/test/elements.html +0 -490
- data/test/forms.html +0 -371
- data/test/grid.html +0 -543
- data/test/images/orbit-demo/demo1.jpeg +0 -0
- data/test/images/orbit-demo/demo2.jpeg +0 -0
- data/test/images/orbit-demo/demo3.jpeg +0 -0
- data/test/images/orbit-demo/slider-background.jpeg +0 -0
- data/test/index.html +0 -83
- data/test/joyride.html +0 -127
- data/test/magellan.html +0 -112
- data/test/navigation.html +0 -269
- data/test/orbit.html +0 -112
- data/test/reveal.html +0 -91
- data/test/scss/_settings.scss +0 -245
- data/test/scss/styles.scss +0 -50
- data/test/tabs.html +0 -197
- data/test/template.html +0 -52
- data/test/topbar-login.html +0 -194
- data/test/topbar.html +0 -139
- data/test/type.html +0 -188
- data/vendor/assets/images/foundation/orbit/bullets.jpg +0 -0
- data/vendor/assets/images/foundation/orbit/left-arrow-small.png +0 -0
- data/vendor/assets/images/foundation/orbit/left-arrow.png +0 -0
- data/vendor/assets/images/foundation/orbit/loading.gif +0 -0
- data/vendor/assets/images/foundation/orbit/mask-black.png +0 -0
- data/vendor/assets/images/foundation/orbit/pause-black.png +0 -0
- data/vendor/assets/images/foundation/orbit/right-arrow-small.png +0 -0
- data/vendor/assets/images/foundation/orbit/right-arrow.png +0 -0
- data/vendor/assets/images/foundation/orbit/rotator-black.png +0 -0
- data/vendor/assets/images/foundation/orbit/timer-black.png +0 -0
- data/vendor/assets/javascripts/foundation/app.js +0 -41
- data/vendor/assets/javascripts/foundation/index.js +0 -19
- data/vendor/assets/javascripts/foundation/jquery.event.move.js +0 -580
- data/vendor/assets/javascripts/foundation/jquery.event.swipe.js +0 -130
- data/vendor/assets/javascripts/foundation/jquery.foundation.accordion.js +0 -47
- data/vendor/assets/javascripts/foundation/jquery.foundation.alerts.js +0 -20
- data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +0 -83
- data/vendor/assets/javascripts/foundation/jquery.foundation.clearing.js +0 -413
- data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +0 -502
- data/vendor/assets/javascripts/foundation/jquery.foundation.joyride.js +0 -639
- data/vendor/assets/javascripts/foundation/jquery.foundation.magellan.js +0 -96
- data/vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js +0 -27
- data/vendor/assets/javascripts/foundation/jquery.foundation.navigation.js +0 -55
- data/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +0 -919
- data/vendor/assets/javascripts/foundation/jquery.foundation.reveal.js +0 -794
- data/vendor/assets/javascripts/foundation/jquery.foundation.tabs.js +0 -66
- data/vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js +0 -211
- data/vendor/assets/javascripts/foundation/jquery.foundation.topbar.js +0 -174
- data/vendor/assets/javascripts/foundation/jquery.js +0 -9555
- data/vendor/assets/javascripts/foundation/jquery.offcanvas.js +0 -50
@@ -0,0 +1,134 @@
|
|
1
|
+
<style type="text/css">
|
2
|
+
|
3
|
+
.row.support { padding: 9px 0; }
|
4
|
+
.row.support:nth-child(2n) { background: #f4f4f4; }
|
5
|
+
|
6
|
+
.support .win { color: #4ea600; font-weight: bold; }
|
7
|
+
.support .fail { color: #cc0000; font-weight: bold; }
|
8
|
+
|
9
|
+
</style>
|
10
|
+
|
11
|
+
<div class="row">
|
12
|
+
<div class="large-3 columns">
|
13
|
+
<%= render "_sidebar.html.erb" %>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="large-9 columns">
|
17
|
+
|
18
|
+
<% @page_title = "Support" %>
|
19
|
+
<h2><%= @page_title %></h2>
|
20
|
+
|
21
|
+
<h4 class="subheader">Foundation was designed for and tested on numerous browsers and devices. Here's the rundown on what's tested, and what to do if something misbehaves.</h4>
|
22
|
+
|
23
|
+
<h5>Browser and Device Support</h5>
|
24
|
+
<p>We go to great lengths to ensure that Foundation works as expected on a variety of common browsers and devices. Given how forward-facing Foundation is there are some aesthetic properties which are not supported in older browsers (border radii, box shadows, etc), but the core elements are reliable across the board.</p>
|
25
|
+
|
26
|
+
<div class="row support">
|
27
|
+
<div class="large-3 small-3 columns"><h5>Browser/OS</h5></div>
|
28
|
+
<div class="large-3 small-3 columns"><h5>The Grid</h5></div>
|
29
|
+
<div class="large-3 small-3 columns"><h5>Layout/UI</h5></div>
|
30
|
+
<div class="large-3 small-3 columns"><h5>JS</h5></div>
|
31
|
+
</div>
|
32
|
+
<div class="row support">
|
33
|
+
<div class="large-3 small-3 columns">Chrome</div>
|
34
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
35
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
36
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
37
|
+
</div>
|
38
|
+
<div class="row support">
|
39
|
+
<div class="large-3 small-3 columns">Firefox</div>
|
40
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
41
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
42
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
43
|
+
</div>
|
44
|
+
<div class="row support">
|
45
|
+
<div class="large-3 small-3 columns">Safari</div>
|
46
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
47
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
48
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
49
|
+
</div>
|
50
|
+
<div class="row support">
|
51
|
+
<div class="large-3 small-3 columns">IE10</div>
|
52
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
53
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
54
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
55
|
+
</div>
|
56
|
+
<div class="row support">
|
57
|
+
<div class="large-3 small-3 columns">IE9</div>
|
58
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
59
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
60
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
61
|
+
</div>
|
62
|
+
<div class="row support">
|
63
|
+
<div class="large-3 small-3 columns">IE8</div>
|
64
|
+
<div class="large-3 small-3 columns"><span class="fail">✗</span></div>
|
65
|
+
<div class="large-3 small-3 columns"><span class="fail">✗</span></div>
|
66
|
+
<div class="large-3 small-3 columns"><span class="fail">✗</span></div>
|
67
|
+
</div>
|
68
|
+
<div class="row support">
|
69
|
+
<div class="large-3 small-3 columns">IE7</div>
|
70
|
+
<div class="large-3 small-3 columns"><span class="fail">✗</span></div>
|
71
|
+
<div class="large-3 small-3 columns"><span class="fail">✗</span></div>
|
72
|
+
<div class="large-3 small-3 columns"><span class="fail">✗</span></div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<div class="row support">
|
76
|
+
<div class="large-3 small-3 columns">iOS (iPhone)</div>
|
77
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
78
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
79
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
80
|
+
</div>
|
81
|
+
<div class="row support">
|
82
|
+
<div class="large-3 small-3 columns">iOS (iPad)</div>
|
83
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
84
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
85
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
86
|
+
</div>
|
87
|
+
<div class="row support">
|
88
|
+
<div class="large-3 small-3 columns">Android 2, 4 (Phone)</div>
|
89
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
90
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
91
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
92
|
+
</div>
|
93
|
+
<div class="row support">
|
94
|
+
<div class="large-3 small-3 columns">Android 2, 4 (Tablet)</div>
|
95
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
96
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
97
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
98
|
+
</div>
|
99
|
+
<div class="row support">
|
100
|
+
<div class="large-3 small-3 columns">Windows Phone 7+</div>
|
101
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
102
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
103
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
104
|
+
</div>
|
105
|
+
<div class="row support">
|
106
|
+
<div class="large-3 small-3 columns">Surface</div>
|
107
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
108
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
109
|
+
<div class="large-3 small-3 columns"><span class="win">✓</span></div>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
<hr>
|
113
|
+
|
114
|
+
<h5>Upgrading from Foundation 3.x?</h5>
|
115
|
+
<p>We've written a comprehensive <a href="../migration.php">Migration Guide</a> to help you update your code for an existing or work in progress project.</p>
|
116
|
+
|
117
|
+
<hr />
|
118
|
+
|
119
|
+
<div class="panel">
|
120
|
+
<h4>Get Answers</h4>
|
121
|
+
<h5 class="subheader">We've outlined some of the most common frequently asked questions so that you can easily find the answer, as well as given you a way to contact us directly with questions, feedback or concerns.</h5>
|
122
|
+
<a class="button" href="faq.php">Read the FAQ or Ask a Question »</a> <a class="secondary button" href="changelog.php">See the Version Changelog »</a>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
data/foundation.gemspec
CHANGED
@@ -4,8 +4,8 @@ require File.expand_path('../lib/foundation/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["ZURB"]
|
6
6
|
gem.email = ["foundation@zurb.com"]
|
7
|
-
gem.description = %q{ZURB Foundation on
|
8
|
-
gem.summary = %q{ZURB Foundation on
|
7
|
+
gem.description = %q{ZURB Foundation on Sass/Compass}
|
8
|
+
gem.summary = %q{ZURB Foundation on Sass/Compass}
|
9
9
|
gem.homepage = "http://foundation.zurb.com"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
@@ -15,8 +15,6 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Foundation::VERSION
|
17
17
|
|
18
|
-
gem.add_dependency "compass", [">= 0.12.2"]
|
19
18
|
gem.add_dependency "sass", [">= 3.2.0"]
|
20
|
-
gem.add_dependency "modular-scale", ["= 1.0.6"]
|
21
19
|
gem.add_dependency "rake"
|
22
20
|
end
|
data/index.html
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
4
2
|
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
|
5
3
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
6
4
|
<head>
|
@@ -12,9 +10,9 @@
|
|
12
10
|
<title>Welcome to Foundation</title>
|
13
11
|
|
14
12
|
<!-- Included CSS Files -->
|
15
|
-
<link rel="stylesheet" href="
|
13
|
+
<link rel="stylesheet" href="docs/css/foundation.css">
|
16
14
|
|
17
|
-
<script src="vendor/
|
15
|
+
<script src="js/vendor/custom.modernizr.js"></script>
|
18
16
|
|
19
17
|
</head>
|
20
18
|
<body>
|
@@ -22,7 +20,7 @@
|
|
22
20
|
<div class="row">
|
23
21
|
<div class="twelve columns">
|
24
22
|
<h2>Welcome to Foundation</h2>
|
25
|
-
<p>This is version
|
23
|
+
<p>This is version 4.0 released on SOON :).</p>
|
26
24
|
<hr />
|
27
25
|
</div>
|
28
26
|
</div>
|
@@ -111,23 +109,5 @@
|
|
111
109
|
</ul>
|
112
110
|
</div>
|
113
111
|
</div>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
<!-- Included JS Files -->
|
118
|
-
<script src="vendor/assets/javascripts/foundation/jquery.js"></script>
|
119
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.reveal.js"></script>
|
120
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.orbit.js"></script>
|
121
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.forms.js"></script>
|
122
|
-
<script src="vendor/assets/javascripts/foundation/jquery.placeholder.js"></script>
|
123
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js"></script>
|
124
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.alerts.js"></script>
|
125
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.buttons.js"></script>
|
126
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.accordion.js"></script>
|
127
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.navigation.js"></script>
|
128
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js"></script>
|
129
|
-
<script src="vendor/assets/javascripts/foundation/jquery.foundation.tabs.js"></script>
|
130
|
-
<script src="vendor/assets/javascripts/foundation/app.js"></script>
|
131
|
-
|
132
112
|
</body>
|
133
113
|
</html>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/*jslint unparam: true, browser: true, indent: 2 */
|
2
|
+
|
3
|
+
;(function ($, window, document, undefined) {
|
4
|
+
'use strict';
|
5
|
+
|
6
|
+
Foundation.libs.alerts = {
|
7
|
+
name : 'alerts',
|
8
|
+
|
9
|
+
version : '4.0.0',
|
10
|
+
|
11
|
+
settings : {
|
12
|
+
speed: 300, // fade out speed
|
13
|
+
callback: function (){}
|
14
|
+
},
|
15
|
+
|
16
|
+
init : function (scope, method, options) {
|
17
|
+
this.scope = scope || this.scope;
|
18
|
+
|
19
|
+
if (typeof method === 'object') {
|
20
|
+
$.extend(true, this.settings, method);
|
21
|
+
}
|
22
|
+
|
23
|
+
if (typeof method != 'string') {
|
24
|
+
if (!this.settings.init) this.events();
|
25
|
+
|
26
|
+
return this.settings.init;
|
27
|
+
} else {
|
28
|
+
return this[method].call(this, options);
|
29
|
+
}
|
30
|
+
},
|
31
|
+
|
32
|
+
events : function () {
|
33
|
+
var self = this;
|
34
|
+
|
35
|
+
$(this.scope).on('click.fndtn.alerts', '[data-alert] a.close', function (e) {
|
36
|
+
e.preventDefault();
|
37
|
+
$(this).closest("[data-alert]").fadeOut(self.speed, function () {
|
38
|
+
$(this).remove();
|
39
|
+
self.settings.callback();
|
40
|
+
});
|
41
|
+
});
|
42
|
+
|
43
|
+
this.settings.init = true;
|
44
|
+
},
|
45
|
+
|
46
|
+
off : function () {
|
47
|
+
$(this.scope).off('.fndtn.alerts');
|
48
|
+
}
|
49
|
+
};
|
50
|
+
}(Foundation.zj, this, this.document));
|
@@ -0,0 +1,478 @@
|
|
1
|
+
/*jslint unparam: true, browser: true, indent: 2 */
|
2
|
+
|
3
|
+
;(function ($, window, document, undefined) {
|
4
|
+
'use strict';
|
5
|
+
|
6
|
+
Foundation.libs.clearing = {
|
7
|
+
name : 'clearing',
|
8
|
+
|
9
|
+
version : '4.0.0',
|
10
|
+
|
11
|
+
settings : {
|
12
|
+
templates : {
|
13
|
+
viewing : '<a href="#" class="clearing-close">×</a>' +
|
14
|
+
'<div class="visible-img" style="display: none"><img src="//:0">' +
|
15
|
+
'<p class="clearing-caption"></p><a href="#" class="clearing-main-left"><span></span></a>' +
|
16
|
+
'<a href="#" class="clearing-main-right"><span></span></a></div>'
|
17
|
+
},
|
18
|
+
|
19
|
+
// comma delimited list of selectors that, on click, will close clearing,
|
20
|
+
// add 'div.clearing-blackout, div.visible-img' to close on background click
|
21
|
+
close_selectors : '.clearing-close',
|
22
|
+
|
23
|
+
// event initializers and locks
|
24
|
+
init : false,
|
25
|
+
locked : false
|
26
|
+
},
|
27
|
+
|
28
|
+
init : function (scope, method, options) {
|
29
|
+
this.scope = this.scope || scope;
|
30
|
+
Foundation.inherit(this, 'set_data get_data remove_data throttle');
|
31
|
+
|
32
|
+
if (typeof method === 'object') {
|
33
|
+
options = $.extend(true, this.settings, method);
|
34
|
+
}
|
35
|
+
|
36
|
+
if (typeof method != 'string') {
|
37
|
+
$(this.scope).find('ul[data-clearing]').each(function () {
|
38
|
+
var self = Foundation.libs.clearing,
|
39
|
+
$el = $(this),
|
40
|
+
options = options || {},
|
41
|
+
settings = self.get_data($el);
|
42
|
+
|
43
|
+
if (!settings) {
|
44
|
+
options.$parent = $el.parent();
|
45
|
+
|
46
|
+
self.set_data($el, $.extend(true, self.settings, options));
|
47
|
+
|
48
|
+
self.assemble($el.find('li'));
|
49
|
+
|
50
|
+
if (!self.settings.init) {
|
51
|
+
self.events().swipe_events();
|
52
|
+
}
|
53
|
+
}
|
54
|
+
});
|
55
|
+
|
56
|
+
return this.settings.init;
|
57
|
+
} else {
|
58
|
+
// fire method
|
59
|
+
return this[method].call(this, options);
|
60
|
+
}
|
61
|
+
},
|
62
|
+
|
63
|
+
// event binding and initial setup
|
64
|
+
|
65
|
+
events : function () {
|
66
|
+
var self = this;
|
67
|
+
|
68
|
+
$(this.scope)
|
69
|
+
.on('click.fndtn.clearing', 'ul[data-clearing] li',
|
70
|
+
function (e, current, target) {
|
71
|
+
var current = current || $(this),
|
72
|
+
target = target || current,
|
73
|
+
settings = self.get_data(current.parent());
|
74
|
+
|
75
|
+
e.preventDefault();
|
76
|
+
if (!settings) self.init();
|
77
|
+
|
78
|
+
// set current and target to the clicked li if not otherwise defined.
|
79
|
+
self.open($(e.target), current, target);
|
80
|
+
self.update_paddles(target);
|
81
|
+
})
|
82
|
+
|
83
|
+
.on('click.fndtn.clearing', '.clearing-main-right',
|
84
|
+
function (e) { this.nav(e, 'next') }.bind(this))
|
85
|
+
.on('click.fndtn.clearing', '.clearing-main-left',
|
86
|
+
function (e) { this.nav(e, 'prev') }.bind(this))
|
87
|
+
.on('click.fndtn.clearing', this.settings.close_selectors,
|
88
|
+
function (e) { Foundation.libs.clearing.close(e, this) })
|
89
|
+
.on('keydown.fndtn.clearing',
|
90
|
+
function (e) { this.keydown(e) }.bind(this));
|
91
|
+
|
92
|
+
$(window).on('resize.fndtn.clearing',
|
93
|
+
function (e) { this.resize() }.bind(this));
|
94
|
+
|
95
|
+
this.settings.init = true;
|
96
|
+
return this;
|
97
|
+
},
|
98
|
+
|
99
|
+
swipe_events : function () {
|
100
|
+
var self = this;
|
101
|
+
|
102
|
+
$(this.scope)
|
103
|
+
.on('touchstart.fndtn.clearing', '.visible-img', function(e) {
|
104
|
+
var data = {
|
105
|
+
start_page_x: e.touches[0].pageX,
|
106
|
+
start_page_y: e.touches[0].pageY,
|
107
|
+
start_time: (new Date()).getTime(),
|
108
|
+
delta_x: 0,
|
109
|
+
is_scrolling: undefined
|
110
|
+
};
|
111
|
+
|
112
|
+
$(this).data('swipe-transition', data);
|
113
|
+
e.stopPropagation();
|
114
|
+
})
|
115
|
+
.on('touchmove.fndtn.clearing', '.visible-img', function(e) {
|
116
|
+
// Ignore pinch/zoom events
|
117
|
+
if(e.touches.length > 1 || e.scale && e.scale !== 1) return;
|
118
|
+
|
119
|
+
var data = $(this).data('swipe-transition');
|
120
|
+
|
121
|
+
if (typeof data === 'undefined') {
|
122
|
+
data = {};
|
123
|
+
}
|
124
|
+
|
125
|
+
data.delta_x = e.touches[0].pageX - data.start_page_x;
|
126
|
+
|
127
|
+
if ( typeof data.is_scrolling === 'undefined') {
|
128
|
+
data.is_scrolling = !!( data.is_scrolling || Math.abs(data.delta_x) < Math.abs(e.touches[0].pageY - data.start_page_y) );
|
129
|
+
}
|
130
|
+
|
131
|
+
if (!data.is_scrolling && !data.active) {
|
132
|
+
e.preventDefault();
|
133
|
+
var direction = (data.delta_x < 0) ? 'next' : 'prev';
|
134
|
+
data.active = true;
|
135
|
+
self.nav(e, direction);
|
136
|
+
}
|
137
|
+
})
|
138
|
+
.on('touchend.fndtn.clearing', '.visible-img', function(e) {
|
139
|
+
$(this).data('swipe-transition', {});
|
140
|
+
e.stopPropagation();
|
141
|
+
});
|
142
|
+
},
|
143
|
+
|
144
|
+
assemble : function ($li) {
|
145
|
+
var $el = $li.parent(),
|
146
|
+
settings = this.get_data($el),
|
147
|
+
grid = $el.detach(),
|
148
|
+
data = {
|
149
|
+
grid: '<div class="carousel">' + this.outerHTML(grid[0]) + '</div>',
|
150
|
+
viewing: settings.templates.viewing
|
151
|
+
},
|
152
|
+
wrapper = '<div class="clearing-assembled"><div>' + data.viewing +
|
153
|
+
data.grid + '</div></div>';
|
154
|
+
|
155
|
+
return settings.$parent.append(wrapper);
|
156
|
+
},
|
157
|
+
|
158
|
+
// event callbacks
|
159
|
+
|
160
|
+
open : function ($image, current, target) {
|
161
|
+
var root = target.closest('.clearing-assembled'),
|
162
|
+
container = root.find('div').first(),
|
163
|
+
visible_image = container.find('.visible-img'),
|
164
|
+
image = visible_image.find('img').not($image);
|
165
|
+
|
166
|
+
if (!this.locked()) {
|
167
|
+
// set the image to the selected thumbnail
|
168
|
+
image.attr('src', this.load($image));
|
169
|
+
|
170
|
+
this.loaded(image, function () {
|
171
|
+
// toggle the gallery
|
172
|
+
root.addClass('clearing-blackout');
|
173
|
+
container.addClass('clearing-container');
|
174
|
+
visible_image.show();
|
175
|
+
this.fix_height(target)
|
176
|
+
.caption(visible_image.find('.clearing-caption'), $image)
|
177
|
+
.center(image)
|
178
|
+
.shift(current, target, function () {
|
179
|
+
target.siblings().removeClass('visible');
|
180
|
+
target.addClass('visible');
|
181
|
+
});
|
182
|
+
}.bind(this));
|
183
|
+
}
|
184
|
+
},
|
185
|
+
|
186
|
+
close : function (e, el) {
|
187
|
+
e.preventDefault();
|
188
|
+
|
189
|
+
var root = (function (target) {
|
190
|
+
if (/blackout/.test(target.selector)) {
|
191
|
+
return target;
|
192
|
+
} else {
|
193
|
+
return target.closest('.clearing-blackout');
|
194
|
+
}
|
195
|
+
}($(el))), container, visible_image;
|
196
|
+
|
197
|
+
if (el === e.target && root) {
|
198
|
+
container = root.find('div').first(),
|
199
|
+
visible_image = container.find('.visible-img');
|
200
|
+
this.settings.prev_index = 0;
|
201
|
+
root.find('ul[data-clearing]')
|
202
|
+
.attr('style', '').closest('.clearing-blackout')
|
203
|
+
.removeClass('clearing-blackout');
|
204
|
+
container.removeClass('clearing-container');
|
205
|
+
visible_image.hide();
|
206
|
+
}
|
207
|
+
|
208
|
+
return false;
|
209
|
+
},
|
210
|
+
|
211
|
+
keydown : function (e) {
|
212
|
+
var clearing = $('.clearing-blackout').find('ul[data-clearing]');
|
213
|
+
|
214
|
+
if (e.which === 39) this.go(clearing, 'next');
|
215
|
+
if (e.which === 37) this.go(clearing, 'prev');
|
216
|
+
if (e.which === 27) $('a.clearing-close').trigger('click');
|
217
|
+
},
|
218
|
+
|
219
|
+
nav : function (e, direction) {
|
220
|
+
var clearing = $('.clearing-blackout').find('ul[data-clearing]');
|
221
|
+
|
222
|
+
e.preventDefault();
|
223
|
+
this.go(clearing, direction);
|
224
|
+
},
|
225
|
+
|
226
|
+
resize : function () {
|
227
|
+
var image = $('.clearing-blackout .visible-img').find('img');
|
228
|
+
|
229
|
+
if (image.length) {
|
230
|
+
this.center(image);
|
231
|
+
}
|
232
|
+
},
|
233
|
+
|
234
|
+
// visual adjustments
|
235
|
+
fix_height : function (target) {
|
236
|
+
var lis = target.parent().children(),
|
237
|
+
self = this;
|
238
|
+
|
239
|
+
lis.each(function () {
|
240
|
+
var li = $(this),
|
241
|
+
image = li.find('img');
|
242
|
+
|
243
|
+
if (li.height() > self.outerHeight(image)) {
|
244
|
+
li.addClass('fix-height');
|
245
|
+
}
|
246
|
+
})
|
247
|
+
.closest('ul')
|
248
|
+
.width(lis.length * 100 + '%');
|
249
|
+
|
250
|
+
return this;
|
251
|
+
},
|
252
|
+
|
253
|
+
update_paddles : function (target) {
|
254
|
+
var visible_image = target
|
255
|
+
.closest('.carousel')
|
256
|
+
.siblings('.visible-img');
|
257
|
+
|
258
|
+
if (target.next().length) {
|
259
|
+
visible_image
|
260
|
+
.find('.clearing-main-right')
|
261
|
+
.removeClass('disabled');
|
262
|
+
} else {
|
263
|
+
visible_image
|
264
|
+
.find('.clearing-main-right')
|
265
|
+
.addClass('disabled');
|
266
|
+
}
|
267
|
+
|
268
|
+
if (target.prev().length) {
|
269
|
+
visible_image
|
270
|
+
.find('.clearing-main-left')
|
271
|
+
.removeClass('disabled');
|
272
|
+
} else {
|
273
|
+
visible_image
|
274
|
+
.find('.clearing-main-left')
|
275
|
+
.addClass('disabled');
|
276
|
+
}
|
277
|
+
},
|
278
|
+
|
279
|
+
center : function (target) {
|
280
|
+
target.css({
|
281
|
+
marginLeft : -(this.outerWidth(target) / 2),
|
282
|
+
marginTop : -(this.outerHeight(target) / 2)
|
283
|
+
});
|
284
|
+
return this;
|
285
|
+
},
|
286
|
+
|
287
|
+
// image loading and preloading
|
288
|
+
|
289
|
+
load : function ($image) {
|
290
|
+
var href = $image.parent().attr('href');
|
291
|
+
|
292
|
+
this.preload($image);
|
293
|
+
|
294
|
+
if (href) return href;
|
295
|
+
return $image.attr('src');
|
296
|
+
},
|
297
|
+
|
298
|
+
preload : function ($image) {
|
299
|
+
this
|
300
|
+
.img($image.closest('li').next())
|
301
|
+
.img($image.closest('li').prev());
|
302
|
+
},
|
303
|
+
|
304
|
+
loaded : function (image, callback) {
|
305
|
+
// based on jquery.imageready.js
|
306
|
+
// @weblinc, @jsantell, (c) 2012
|
307
|
+
|
308
|
+
function loaded () {
|
309
|
+
callback();
|
310
|
+
}
|
311
|
+
|
312
|
+
function bindLoad () {
|
313
|
+
this.one('load', loaded);
|
314
|
+
|
315
|
+
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
|
316
|
+
var src = this.attr( 'src' ),
|
317
|
+
param = src.match( /\?/ ) ? '&' : '?';
|
318
|
+
|
319
|
+
param += 'random=' + (new Date()).getTime();
|
320
|
+
this.attr('src', src + param);
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
if (!image.attr('src')) {
|
325
|
+
loaded();
|
326
|
+
return;
|
327
|
+
}
|
328
|
+
|
329
|
+
if (this.complete || this.readyState === 4) {
|
330
|
+
loaded();
|
331
|
+
} else {
|
332
|
+
bindLoad.call(image);
|
333
|
+
}
|
334
|
+
},
|
335
|
+
|
336
|
+
img : function (img) {
|
337
|
+
if (img.length) {
|
338
|
+
var new_img = new Image(),
|
339
|
+
new_a = img.find('a');
|
340
|
+
|
341
|
+
if (new_a.length) {
|
342
|
+
new_img.src = new_a.attr('href');
|
343
|
+
} else {
|
344
|
+
new_img.src = img.find('img').attr('src');
|
345
|
+
}
|
346
|
+
}
|
347
|
+
return this;
|
348
|
+
},
|
349
|
+
|
350
|
+
// image caption
|
351
|
+
|
352
|
+
caption : function (container, $image) {
|
353
|
+
var caption = $image.data('caption');
|
354
|
+
|
355
|
+
if (caption) {
|
356
|
+
container
|
357
|
+
.text(caption)
|
358
|
+
.show();
|
359
|
+
} else {
|
360
|
+
container
|
361
|
+
.text('')
|
362
|
+
.hide();
|
363
|
+
}
|
364
|
+
return this;
|
365
|
+
},
|
366
|
+
|
367
|
+
// directional methods
|
368
|
+
|
369
|
+
go : function ($ul, direction) {
|
370
|
+
var current = $ul.find('.visible'),
|
371
|
+
target = current[direction]();
|
372
|
+
|
373
|
+
if (target.length) {
|
374
|
+
target
|
375
|
+
.find('img')
|
376
|
+
.trigger('click', [current, target]);
|
377
|
+
}
|
378
|
+
},
|
379
|
+
|
380
|
+
shift : function (current, target, callback) {
|
381
|
+
var clearing = target.parent(),
|
382
|
+
old_index = this.settings.prev_index || target.index(),
|
383
|
+
direction = this.direction(clearing, current, target),
|
384
|
+
left = parseInt(clearing.css('left'), 10),
|
385
|
+
width = this.outerWidth(target),
|
386
|
+
skip_shift;
|
387
|
+
|
388
|
+
// we use jQuery animate instead of CSS transitions because we
|
389
|
+
// need a callback to unlock the next animation
|
390
|
+
if (target.index() !== old_index && !/skip/.test(direction)){
|
391
|
+
if (/left/.test(direction)) {
|
392
|
+
this.lock();
|
393
|
+
clearing.animate({left : left + width}, 300, this.unlock());
|
394
|
+
} else if (/right/.test(direction)) {
|
395
|
+
this.lock();
|
396
|
+
clearing.animate({left : left - width}, 300, this.unlock());
|
397
|
+
}
|
398
|
+
} else if (/skip/.test(direction)) {
|
399
|
+
// the target image is not adjacent to the current image, so
|
400
|
+
// do we scroll right or not
|
401
|
+
skip_shift = target.index() - this.settings.up_count;
|
402
|
+
this.lock();
|
403
|
+
|
404
|
+
if (skip_shift > 0) {
|
405
|
+
clearing.animate({left : -(skip_shift * width)}, 300, this.unlock());
|
406
|
+
} else {
|
407
|
+
clearing.animate({left : 0}, 300, this.unlock());
|
408
|
+
}
|
409
|
+
}
|
410
|
+
|
411
|
+
callback();
|
412
|
+
},
|
413
|
+
|
414
|
+
direction : function ($el, current, target) {
|
415
|
+
var lis = $el.find('li'),
|
416
|
+
li_width = this.outerWidth(lis) + (this.outerWidth(lis) / 4),
|
417
|
+
up_count = Math.floor(this.outerWidth($('.clearing-container')) / li_width) - 1,
|
418
|
+
target_index = lis.index(target),
|
419
|
+
response;
|
420
|
+
|
421
|
+
this.settings.up_count = up_count;
|
422
|
+
|
423
|
+
if (this.adjacent(this.settings.prev_index, target_index)) {
|
424
|
+
if ((target_index > up_count)
|
425
|
+
&& target_index > this.settings.prev_index) {
|
426
|
+
response = 'right';
|
427
|
+
} else if ((target_index > up_count - 1)
|
428
|
+
&& target_index <= this.settings.prev_index) {
|
429
|
+
response = 'left';
|
430
|
+
} else {
|
431
|
+
response = false;
|
432
|
+
}
|
433
|
+
} else {
|
434
|
+
response = 'skip';
|
435
|
+
}
|
436
|
+
|
437
|
+
this.settings.prev_index = target_index;
|
438
|
+
|
439
|
+
return response;
|
440
|
+
},
|
441
|
+
|
442
|
+
adjacent : function (current_index, target_index) {
|
443
|
+
for (var i = target_index + 1; i >= target_index - 1; i--) {
|
444
|
+
if (i === current_index) return true;
|
445
|
+
}
|
446
|
+
return false;
|
447
|
+
},
|
448
|
+
|
449
|
+
// lock management
|
450
|
+
|
451
|
+
lock : function () {
|
452
|
+
this.settings.locked = true;
|
453
|
+
},
|
454
|
+
|
455
|
+
unlock : function () {
|
456
|
+
this.settings.locked = false;
|
457
|
+
},
|
458
|
+
|
459
|
+
locked : function () {
|
460
|
+
return this.settings.locked;
|
461
|
+
},
|
462
|
+
|
463
|
+
// plugin management/browser quirks
|
464
|
+
|
465
|
+
outerHTML : function (el) {
|
466
|
+
// support FireFox < 11
|
467
|
+
return el.outerHTML || new XMLSerializer().serializeToString(el);
|
468
|
+
},
|
469
|
+
|
470
|
+
off : function () {
|
471
|
+
$(this.scope).off('.fndtn.clearing');
|
472
|
+
$(window).off('.fndtn.clearing');
|
473
|
+
this.remove_data(); // empty settings cache
|
474
|
+
this.settings.init = false;
|
475
|
+
}
|
476
|
+
};
|
477
|
+
|
478
|
+
}(Foundation.zj, this, this.document));
|