zurb-foundation 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zurb-foundation (4.0.1)
4
+ zurb-foundation (4.0.2)
5
5
  rake
6
6
  sass (>= 3.2.0)
7
7
 
data/docs/css/docs.scss CHANGED
@@ -45,6 +45,10 @@ footer.row.full-width {
45
45
  ul { margin-bottom: 0; }
46
46
  }
47
47
 
48
+ .docs.header { margin-bottom: 10px; }
49
+ .docs.subheader {
50
+ float: left;
51
+ }
48
52
 
49
53
 
50
54
  /* Alert Docs */
@@ -171,4 +175,13 @@ input[type="text"].attached-input {
171
175
  display: block;
172
176
  color: #555;
173
177
  }
178
+ }
179
+
180
+ @media only screen and (min-width: 800px) {
181
+ .docs.header { float: left; }
182
+
183
+ .docs.subheader {
184
+ margin-top: 38px;
185
+ float: right;
186
+ }
174
187
  }
data/docs/faq.html.erb CHANGED
@@ -1,19 +1,16 @@
1
1
  <div class="row">
2
- <div class="large-3 columns">
3
- <%= render "_sidebar.html.erb" %>
4
- </div>
5
2
 
6
- <div class="large-9 columns">
3
+ <div class="large-9 push-3 columns">
7
4
 
8
5
  <% @page_title = "FAQ" %>
9
6
  <h2><%= @page_title %></h2>
10
7
 
11
8
  <h4 class="subheader">We hear a lot of questions from people using Foundation and realized that a lot of the same ones were being asked. We put together this list of FAQs to help you find answers to common questions.</h4>
12
9
 
13
- <h4>Why doesn't Foundation 3 support IE7 or IE8?</h4>
10
+ <h4>Why doesn't Foundation 4 support IE7 or IE8?</h4>
14
11
  <p>Foundation 4 is mobile-first, meaning it relies on media queries to layer in more complex layouts and components. Browsers or devices that don't support media queries will be restricted to a simple, single-column layout. In some ways, Foundation 4 better supports IE6-7 inasmuch as it provides a mobile but not broken experience. In IE8 Foundation 4 will provide less than Foundation 3, but with IE8's market share in such steep decline we thought this was the right time.</p>
15
12
 
16
- <p>If IE8 support is important for your users / customers, you can use <a href="../files/foundation-download-2.2.1.zip">Foundation 3.2</a>, which supports IE8. It's not mobile first but it's pretty good stuff.</p>
13
+ <p>If IE8 support is important for your users / customers, you can use <a href="../files/foundation-3.2.5.zip">Foundation 3.2</a>, which supports IE8. It's not mobile first but it's pretty good stuff.</p>
17
14
 
18
15
  <h4>Can I use Foundation for something I'm going to sell?</h4>
19
16
  <p>Yes! Foundation is licensed under the MIT open source license, meaning you can do almost anything with it. The only thing you can't do is imply that Foundation itself is what you're selling.</p>
@@ -50,6 +47,9 @@
50
47
  </div>
51
48
 
52
49
  </div>
50
+ <div class="large-3 pull-9 columns">
51
+ <%= render "_sidebar.html.erb" %>
52
+ </div>
53
53
  </div>
54
54
 
55
55
 
data/docs/index.html.erb CHANGED
@@ -1,11 +1,7 @@
1
1
  <% @side_nav = "using" %>
2
2
 
3
3
  <div class="row">
4
- <div class="large-3 columns">
5
- <%= render "_sidebar.html.erb" %>
6
- </div>
7
-
8
- <div class="large-9 columns">
4
+ <div class="large-9 push-3 columns">
9
5
 
10
6
  <h2>Getting Started</h2>
11
7
  <h5 class="subheader">Whether you are using Scss or CSS, we've made it easy to start a project so that you can help take over the world one responsive site at a time.</h5>
@@ -284,11 +280,12 @@
284
280
  <a href="../sass.html" class="button">Using the Gem</a></li>
285
281
  <a href="http://foundation.zurb.com/migration.php" class="button secondary">Quickstart with CSS</a></li>
286
282
  </div>
287
- </div>
288
- </div>
289
- </section>
290
283
 
291
284
 
285
+
286
+ </div>
287
+ <div class="large-3 pull-9 columns">
288
+ <%= render "_sidebar.html.erb" %>
292
289
  </div>
293
290
  </div>
294
291
 
data/docs/layout.html.erb CHANGED
@@ -43,7 +43,8 @@
43
43
  <% @page_title = "4 Documentation" %>
44
44
  <div class="row">
45
45
  <div class="large-12 columns">
46
- <h1><a href="http://foundation.zurb.com/docs/">Foundation <%= @page_title %></a></h1>
46
+ <h1 class="docs header"><a href="http://foundation.zurb.com/docs/">Foundation <%= @page_title %></a></h1>
47
+ <h6 class="docs subheader"><a href="http://foundation.zurb.com/old-docs/f3">Want F3 Docs?</a></h6>
47
48
  <hr>
48
49
  </div>
49
50
  </div>
@@ -2,24 +2,22 @@
2
2
 
3
3
  .row.support { padding: 9px 0; }
4
4
  .row.support:nth-child(2n) { background: #f4f4f4; }
5
-
5
+
6
6
  .support .win { color: #4ea600; font-weight: bold; }
7
7
  .support .fail { color: #cc0000; font-weight: bold; }
8
8
 
9
9
  </style>
10
10
 
11
11
  <div class="row">
12
- <div class="large-3 columns">
13
- <%= render "_sidebar.html.erb" %>
14
- </div>
15
12
 
16
- <div class="large-9 columns">
13
+
14
+ <div class="large-9 push-3 columns">
17
15
 
18
16
  <% @page_title = "Support" %>
19
17
  <h2><%= @page_title %></h2>
20
-
18
+
21
19
  <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
-
20
+
23
21
  <h5>Browser and Device Support</h5>
24
22
  <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
23
 
@@ -110,10 +108,10 @@
110
108
  </div>
111
109
 
112
110
  <hr>
113
-
111
+
114
112
  <h5>Upgrading from Foundation 3.x?</h5>
115
113
  <p>We've written a comprehensive <a href="http://foundation.zurb.com/migration.php">Migration Guide</a> to help you update your code for an existing or work in progress project.</p>
116
-
114
+
117
115
  <hr />
118
116
 
119
117
  <div class="panel">
@@ -123,6 +121,9 @@
123
121
  </div>
124
122
 
125
123
  </div>
124
+ <div class="large-3 pull-9 columns">
125
+ <%= render "_sidebar.html.erb" %>
126
+ </div>
126
127
  </div>
127
128
 
128
129
 
@@ -6,7 +6,7 @@
6
6
  Foundation.libs.tooltips = {
7
7
  name: 'tooltips',
8
8
 
9
- version : '4.0.0',
9
+ version : '4.0.2',
10
10
 
11
11
  settings : {
12
12
  selector : '.has-tip',
@@ -105,7 +105,7 @@
105
105
  if (Modernizr.touch) {
106
106
  $tip.append('<span class="tap-to-close">tap to close </span>');
107
107
  }
108
- $target.attr('title', '');
108
+ $target.removeAttr('title').attr('title','');
109
109
  this.show($target);
110
110
  },
111
111
 
@@ -6,7 +6,7 @@
6
6
  Foundation.libs.topbar = {
7
7
  name : 'topbar',
8
8
 
9
- version : '4.1.0',
9
+ version : '4.0.2',
10
10
 
11
11
  settings : {
12
12
  index : 0,
@@ -1,3 +1,3 @@
1
1
  module Foundation
2
- VERSION = "4.0.1"
2
+ VERSION = "4.0.2"
3
3
  end
@@ -10,7 +10,9 @@
10
10
 
11
11
  <link rel="stylesheet" href="css/normalize.css" />
12
12
  <link rel="stylesheet" href="css/foundation.css" />
13
+ <% if !template[:options][:customizer_used] %>
13
14
  <link rel="stylesheet" href="css/app.css" />
15
+ <% end %>
14
16
 
15
17
  <script src="js/vendor/custom.modernizr.js"></script>
16
18
 
@@ -84,7 +86,7 @@
84
86
  </div>
85
87
 
86
88
  <div class="large-4 columns">
87
- <h4>Getting Started</h4>
89
+ <h4>Getting Starte`d</h4>
88
90
  <p>We're stoked you want to try Foundation! To get going, this file (index.html) includes some basic styles you can modify, play around with, or totally destroy to get going.</p>
89
91
 
90
92
  <h4>Other Resources</h4>
@@ -102,9 +104,19 @@
102
104
  ('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
103
105
  '.js><\/script>')
104
106
  </script>
107
+ <% if template[:options][:customizer_used] %>
108
+ <script src="js/foundation.min.js"></script>
109
+ <!--
110
+ <% template[:options][:javascripts].each do |f| %>
111
+ <script src="js/foundation/<%= f %>"></script>
112
+ <% end %>
113
+ -->
114
+ <% else %>
115
+ <script src="js/foundation/foundation.js"></script>
105
116
  <% template[:options][:javascripts].each do |f| %>
106
117
  <script src="js/<%= f %>"></script>
107
118
  <% end %>
119
+ <% end %>
108
120
  <script>
109
121
  $(document).foundation();
110
122
  </script>
@@ -21,9 +21,11 @@ def copy_js_from(relative_path, prefix_path, excludes=[])
21
21
  return js_files.map {|f| "#{prefix_path}/#{File.basename(f)}"}
22
22
  end
23
23
 
24
- javascripts = copy_js_from("../../js", "foundation", ["index.js"])
24
+ javascripts = copy_js_from("../../js", "foundation", ["foundation.js", "index.js"])
25
25
  vendor_javascripts = copy_js_from("../../js", "vendor")
26
26
 
27
+ file "../../js/foundation/foundation.js", :to => "js/foundation/foundation.js"
28
+
27
29
  # javascripts.reject! do |f|
28
30
  # [
29
31
  # "jquery.js",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zurb-foundation
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -228,7 +228,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
228
228
  version: '0'
229
229
  segments:
230
230
  - 0
231
- hash: -1738311888129637075
231
+ hash: 3657887230132260068
232
232
  required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  none: false
234
234
  requirements:
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  version: '0'
238
238
  segments:
239
239
  - 0
240
- hash: -1738311888129637075
240
+ hash: 3657887230132260068
241
241
  requirements: []
242
242
  rubyforge_project:
243
243
  rubygems_version: 1.8.23