zurb-foundation 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/README.markdown +14 -0
- data/Rakefile +1 -0
- data/app/assets/images/foundation/misc/button-gloss.png +0 -0
- data/app/assets/images/foundation/misc/button-overlay.png +0 -0
- data/app/assets/images/foundation/misc/custom-form-sprites.png +0 -0
- data/app/assets/images/foundation/misc/input-bg.png +0 -0
- data/app/assets/images/foundation/misc/modal-gloss.png +0 -0
- data/app/assets/images/foundation/misc/table-sorter.png +0 -0
- data/app/assets/images/foundation/orbit/bullets.jpg +0 -0
- data/app/assets/images/foundation/orbit/left-arrow.png +0 -0
- data/app/assets/images/foundation/orbit/loading.gif +0 -0
- data/app/assets/images/foundation/orbit/mask-black.png +0 -0
- data/app/assets/images/foundation/orbit/pause-black.png +0 -0
- data/app/assets/images/foundation/orbit/right-arrow.png +0 -0
- data/app/assets/images/foundation/orbit/rotator-black.png +0 -0
- data/app/assets/images/foundation/orbit/timer-black.png +0 -0
- data/app/assets/javascripts/foundation/app.js +63 -0
- data/app/assets/javascripts/foundation/forms.jquery.js +58 -0
- data/app/assets/javascripts/foundation/index.js +6 -0
- data/app/assets/javascripts/foundation/jquery.customforms.js +162 -0
- data/app/assets/javascripts/foundation/jquery.orbit-1.2.3.js +401 -0
- data/app/assets/javascripts/foundation/jquery.reveal.js +150 -0
- data/app/assets/stylesheets/foundation/fonts/league/League_Gothic-webfont.eot +0 -0
- data/app/assets/stylesheets/foundation/fonts/league/League_Gothic-webfont.svg +223 -0
- data/app/assets/stylesheets/foundation/fonts/league/League_Gothic-webfont.ttf +0 -0
- data/app/assets/stylesheets/foundation/fonts/league/League_Gothic-webfont.woff +0 -0
- data/app/assets/stylesheets/foundation/fonts/league/SIL Open Font License 1.1.txt +91 -0
- data/app/assets/stylesheets/foundation/fonts/league/font.css.erb +18 -0
- data/app/assets/stylesheets/foundation/forms.css.scss.erb +83 -0
- data/app/assets/stylesheets/foundation/globals.css.scss.erb +279 -0
- data/app/assets/stylesheets/foundation/index.css +10 -0
- data/app/assets/stylesheets/foundation/mobile.css.scss.erb +112 -0
- data/app/assets/stylesheets/foundation/orbit-1.2.3.css.scss.erb +201 -0
- data/app/assets/stylesheets/foundation/reveal.css.scss.erb +91 -0
- data/app/assets/stylesheets/foundation/ui.css.scss.erb +212 -0
- data/foundation.gemspec +25 -0
- data/lib/foundation/engine.rb +5 -0
- data/lib/foundation/generators/USAGE +15 -0
- data/lib/foundation/generators/install_generator.rb +14 -0
- data/lib/foundation/generators/layout_generator.rb +19 -0
- data/lib/foundation/generators/templates/application.css +5 -0
- data/lib/foundation/generators/templates/application.html.erb +31 -0
- data/lib/foundation/generators/templates/application.js +4 -0
- data/lib/foundation/version.rb +3 -0
- data/lib/zurb-foundation.rb +7 -0
- metadata +112 -0
data/foundation.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "foundation/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "zurb-foundation"
|
7
|
+
s.version = Foundation::VERSION
|
8
|
+
s.authors = ["ZURB"]
|
9
|
+
s.email = ["foundation@zurb.com"]
|
10
|
+
s.homepage = "http://foundation.zurb.com"
|
11
|
+
s.summary = %q{Get up and running with Foundation in seconds}
|
12
|
+
s.description = %q{An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.}
|
13
|
+
|
14
|
+
s.rubyforge_project = "foundation"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
# s.add_development_dependency "rspec"
|
23
|
+
# s.add_runtime_dependency "rest-client"
|
24
|
+
s.add_runtime_dependency "rails", "~> 3.1.0"
|
25
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Description:
|
2
|
+
Setup Foundation assets on your website or generate new layouts preconfigured to use Foundation
|
3
|
+
|
4
|
+
Example:
|
5
|
+
rails g foundation:install
|
6
|
+
|
7
|
+
This will replace the default application assets:
|
8
|
+
/app/assets/javascripts/application.js
|
9
|
+
/app/assets/stylesheets/application.css
|
10
|
+
|
11
|
+
rails generate foundation:layout
|
12
|
+
|
13
|
+
This will create:
|
14
|
+
/app/views/layouts/application.html.erb
|
15
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Foundation
|
4
|
+
module Generators
|
5
|
+
class InstallGenerator < Rails::Generators::Base
|
6
|
+
source_root File.join(File.dirname(__FILE__), 'templates')
|
7
|
+
|
8
|
+
def replace_assets
|
9
|
+
copy_file 'application.js', "app/assets/javascripts/application.js"
|
10
|
+
copy_file 'application.css', "app/assets/stylesheets/application.css"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Foundation
|
4
|
+
module Generators
|
5
|
+
class LayoutGenerator < Rails::Generators::Base
|
6
|
+
source_root File.join(File.dirname(__FILE__), 'templates')
|
7
|
+
argument :layout_name, :type => :string, :default => 'application', :banner => 'layout_name'
|
8
|
+
|
9
|
+
def create_layout
|
10
|
+
template 'application.html.erb', "app/views/layouts/#{file_name}.html.erb"
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
def file_name
|
15
|
+
layout_name.underscore.downcase
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
3
|
+
<!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]-->
|
4
|
+
<!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]-->
|
5
|
+
<!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]-->
|
6
|
+
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
|
7
|
+
<head>
|
8
|
+
<meta charset="utf-8" />
|
9
|
+
|
10
|
+
<!-- Uncomment to make IE8 render like IE7 -->
|
11
|
+
<!-- <meta http-equiv="X-UA-Compatible" content="IE=7" /> -->
|
12
|
+
|
13
|
+
<!-- Set the viewport width to device width for mobile -->
|
14
|
+
<meta name="viewport" content="width=device-width" />
|
15
|
+
|
16
|
+
<title><%%= content_for?(:title) ? yield(:title) : "Untitled" %></title>
|
17
|
+
|
18
|
+
<!-- Included CSS Files -->
|
19
|
+
<%%= stylesheet_link_tag "application" %>
|
20
|
+
|
21
|
+
<!-- Included JS Files -->
|
22
|
+
<%%= javascript_include_tag "application" %>
|
23
|
+
|
24
|
+
<%%= csrf_meta_tags %>
|
25
|
+
</head>
|
26
|
+
<body>
|
27
|
+
<div class="container">
|
28
|
+
<%%= yield %>
|
29
|
+
</div>
|
30
|
+
<body>
|
31
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zurb-foundation
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.5
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- ZURB
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-10-14 00:00:00.000000000 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
requirement: &2158619800 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.1.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2158619800
|
26
|
+
description: An easy to use, powerful, and flexible framework for building prototypes
|
27
|
+
and production code on any kind of device.
|
28
|
+
email:
|
29
|
+
- foundation@zurb.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- .gitignore
|
35
|
+
- Gemfile
|
36
|
+
- README.markdown
|
37
|
+
- Rakefile
|
38
|
+
- app/assets/images/foundation/misc/button-gloss.png
|
39
|
+
- app/assets/images/foundation/misc/button-overlay.png
|
40
|
+
- app/assets/images/foundation/misc/custom-form-sprites.png
|
41
|
+
- app/assets/images/foundation/misc/input-bg.png
|
42
|
+
- app/assets/images/foundation/misc/modal-gloss.png
|
43
|
+
- app/assets/images/foundation/misc/table-sorter.png
|
44
|
+
- app/assets/images/foundation/orbit/bullets.jpg
|
45
|
+
- app/assets/images/foundation/orbit/left-arrow.png
|
46
|
+
- app/assets/images/foundation/orbit/loading.gif
|
47
|
+
- app/assets/images/foundation/orbit/mask-black.png
|
48
|
+
- app/assets/images/foundation/orbit/pause-black.png
|
49
|
+
- app/assets/images/foundation/orbit/right-arrow.png
|
50
|
+
- app/assets/images/foundation/orbit/rotator-black.png
|
51
|
+
- app/assets/images/foundation/orbit/timer-black.png
|
52
|
+
- app/assets/javascripts/foundation/app.js
|
53
|
+
- app/assets/javascripts/foundation/forms.jquery.js
|
54
|
+
- app/assets/javascripts/foundation/index.js
|
55
|
+
- app/assets/javascripts/foundation/jquery.customforms.js
|
56
|
+
- app/assets/javascripts/foundation/jquery.orbit-1.2.3.js
|
57
|
+
- app/assets/javascripts/foundation/jquery.reveal.js
|
58
|
+
- app/assets/stylesheets/foundation/fonts/league/League_Gothic-webfont.eot
|
59
|
+
- app/assets/stylesheets/foundation/fonts/league/League_Gothic-webfont.svg
|
60
|
+
- app/assets/stylesheets/foundation/fonts/league/League_Gothic-webfont.ttf
|
61
|
+
- app/assets/stylesheets/foundation/fonts/league/League_Gothic-webfont.woff
|
62
|
+
- app/assets/stylesheets/foundation/fonts/league/SIL Open Font License 1.1.txt
|
63
|
+
- app/assets/stylesheets/foundation/fonts/league/font.css.erb
|
64
|
+
- app/assets/stylesheets/foundation/forms.css.scss.erb
|
65
|
+
- app/assets/stylesheets/foundation/globals.css.scss.erb
|
66
|
+
- app/assets/stylesheets/foundation/index.css
|
67
|
+
- app/assets/stylesheets/foundation/mobile.css.scss.erb
|
68
|
+
- app/assets/stylesheets/foundation/orbit-1.2.3.css.scss.erb
|
69
|
+
- app/assets/stylesheets/foundation/reveal.css.scss.erb
|
70
|
+
- app/assets/stylesheets/foundation/ui.css.scss.erb
|
71
|
+
- foundation.gemspec
|
72
|
+
- lib/foundation/engine.rb
|
73
|
+
- lib/foundation/generators/USAGE
|
74
|
+
- lib/foundation/generators/install_generator.rb
|
75
|
+
- lib/foundation/generators/layout_generator.rb
|
76
|
+
- lib/foundation/generators/templates/application.css
|
77
|
+
- lib/foundation/generators/templates/application.html.erb
|
78
|
+
- lib/foundation/generators/templates/application.js
|
79
|
+
- lib/foundation/version.rb
|
80
|
+
- lib/zurb-foundation.rb
|
81
|
+
has_rdoc: true
|
82
|
+
homepage: http://foundation.zurb.com
|
83
|
+
licenses: []
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options: []
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
segments:
|
95
|
+
- 0
|
96
|
+
hash: -657682274503973215
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
segments:
|
104
|
+
- 0
|
105
|
+
hash: -657682274503973215
|
106
|
+
requirements: []
|
107
|
+
rubyforge_project: foundation
|
108
|
+
rubygems_version: 1.6.2
|
109
|
+
signing_key:
|
110
|
+
specification_version: 3
|
111
|
+
summary: Get up and running with Foundation in seconds
|
112
|
+
test_files: []
|