html5-rails 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +13 -12
- data/LICENSE +20 -0
- data/README.md +58 -3
- data/app/assets/javascripts/application.js +9 -1
- data/app/assets/javascripts/polyfills.js +9 -1
- data/app/views/application/_flashes.html.erb +9 -0
- data/app/views/application/_footer.html.erb +5 -0
- data/app/views/application/_head.html.erb +25 -0
- data/app/views/application/_header.html.erb +3 -0
- data/app/views/application/_javascripts.html.erb +24 -0
- data/app/views/application/_stylesheets.html.erb +4 -0
- data/app/views/layouts/application.html.erb +25 -0
- data/html5-rails.gemspec +4 -2
- data/lib/generators/html5/assets/USAGE +11 -0
- data/lib/generators/html5/assets/assets_generator.rb +63 -0
- data/lib/generators/html5/assets/templates/javascripts/application.js +9 -0
- data/lib/generators/html5/assets/templates/javascripts/polyfills.js +10 -0
- data/lib/generators/html5/assets/templates/stylesheets/_defaults.css.scss +18 -0
- data/lib/generators/html5/assets/templates/stylesheets/application.css.scss +42 -0
- data/lib/generators/html5/assets/templates/stylesheets/application/_defaults.css.scss +7 -0
- data/lib/generators/html5/assets/templates/stylesheets/application/document.css.scss +9 -0
- data/lib/generators/html5/assets/templates/stylesheets/application/media_queries.css.scss +17 -0
- data/lib/generators/html5/generator_helpers.rb +37 -0
- data/lib/generators/html5/install/USAGE +1 -0
- data/lib/generators/html5/install/install_generator.rb +18 -3
- data/lib/generators/html5/install/templates/README +10 -2
- data/lib/generators/html5/install/templates/{compass.rb → config/compass.rb} +1 -1
- data/lib/generators/html5/install/templates/config/html5_rails.yml +26 -0
- data/lib/generators/html5/layout/USAGE +8 -0
- data/lib/generators/html5/layout/layout_generator.rb +44 -0
- data/lib/generators/html5/layout/templates/application.html.erb +25 -0
- data/lib/generators/html5/layout/templates/application.html.haml +16 -0
- data/lib/generators/html5/partial/USAGE +8 -0
- data/lib/generators/html5/partial/partial_generator.rb +77 -0
- data/lib/generators/html5/partial/templates/_flashes.html.erb +9 -0
- data/lib/generators/html5/partial/templates/_flashes.html.haml +5 -0
- data/lib/generators/html5/partial/templates/_footer.html.erb +5 -0
- data/lib/generators/html5/partial/templates/_footer.html.haml +3 -0
- data/lib/generators/html5/partial/templates/_head.html.erb +25 -0
- data/lib/generators/html5/partial/templates/_head.html.haml +28 -0
- data/lib/generators/html5/partial/templates/_header.html.erb +3 -0
- data/lib/generators/html5/partial/templates/_header.html.haml +2 -0
- data/lib/generators/html5/partial/templates/_javascripts.html.erb +24 -0
- data/lib/generators/html5/partial/templates/_javascripts.html.haml +19 -0
- data/lib/generators/html5/partial/templates/_stylesheets.html.erb +4 -0
- data/lib/generators/html5/partial/templates/_stylesheets.html.haml +4 -0
- data/lib/html5/rails.rb +1 -1
- data/lib/html5/rails/engine.rb +1 -1
- data/lib/html5/rails/{boilerplate_helper.rb → helpers.rb} +12 -10
- data/lib/html5/rails/version.rb +3 -5
- data/test/dummy/.gitignore +15 -5
- data/test/dummy/app/assets/javascripts/application.js +9 -2
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/pages/home.html.erb +1 -0
- data/test/dummy/config/application.rb +9 -4
- data/test/dummy/config/environments/development.rb +3 -0
- data/test/dummy/config/environments/production.rb +11 -2
- data/test/dummy/config/initializers/wrap_parameters.rb +5 -3
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/db/seeds.rb +7 -0
- data/test/dummy/doc/README_FOR_APP +2 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/generators/assets_generator_test.rb +60 -0
- data/test/generators/install_generator_test.rb +44 -3
- data/test/generators/layout_generator_test.rb +71 -0
- data/test/generators/partial_generator_test.rb +75 -0
- data/test/support/generator_test_helper.rb +18 -0
- data/test/test_helper.rb +4 -8
- data/{app/assets/javascripts/html5/boilerplate → vendor/assets/javascripts/h5bp}/index.js +0 -0
- data/vendor/assets/javascripts/h5bp/plugins.js +15 -0
- data/vendor/assets/javascripts/modernizr.min.js +3 -3
- metadata +115 -72
- data/LICENSE.rb +0 -3
- data/app/assets/javascripts/html5/boilerplate/plugins.js +0 -16
- data/app/assets/javascripts/html5/boilerplate/polyfills.js +0 -2
- data/app/views/application/_flashes.html.haml +0 -4
- data/app/views/application/_footer.html.haml +0 -2
- data/app/views/application/_head.html.haml +0 -24
- data/app/views/application/_header.html.haml +0 -1
- data/app/views/application/_javascripts.html.haml +0 -27
- data/app/views/application/_stylesheets.html.haml +0 -5
- data/app/views/layouts/application.html.haml +0 -20
- data/test/dummy/app/assets/stylesheets/application.css.scss +0 -19
- data/test/dummy/app/assets/stylesheets/partials/_media.css.scss +0 -22
- data/test/dummy/app/views/pages/home.html.haml +0 -2
- data/test/dummy/config/initializers/sass.rb +0 -3
- data/vendor/assets/javascripts/respond.min.js +0 -2
data/Gemfile
CHANGED
|
@@ -2,25 +2,28 @@ source 'http://rubygems.org'
|
|
|
2
2
|
|
|
3
3
|
gemspec
|
|
4
4
|
|
|
5
|
-
gem 'rails', '3.1.
|
|
5
|
+
gem 'rails', '3.1.3'
|
|
6
6
|
|
|
7
7
|
# Bundle edge Rails instead:
|
|
8
|
-
# gem 'rails',
|
|
8
|
+
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
|
9
9
|
|
|
10
10
|
gem 'sqlite3'
|
|
11
11
|
|
|
12
|
-
|
|
13
12
|
# Gems used only for assets and not required
|
|
14
13
|
# in production environments by default.
|
|
15
14
|
group :assets do
|
|
16
|
-
gem 'sass-rails',
|
|
17
|
-
gem 'coffee-rails', '~> 3.1.
|
|
18
|
-
gem 'uglifier'
|
|
19
|
-
gem 'compass',
|
|
20
|
-
gem 'compass-
|
|
15
|
+
gem 'sass-rails', '~> 3.1.5'
|
|
16
|
+
gem 'coffee-rails', '~> 3.1.1'
|
|
17
|
+
gem 'uglifier', '>= 1.0.3'
|
|
18
|
+
gem 'compass', '0.12.alpha.4'
|
|
19
|
+
gem 'compass-h5bp', :path => '../compass-h5bp'
|
|
21
20
|
end
|
|
22
21
|
|
|
23
22
|
gem 'jquery-rails'
|
|
23
|
+
gem 'haml-rails'
|
|
24
|
+
|
|
25
|
+
# To use ActiveModel has_secure_password
|
|
26
|
+
# gem 'bcrypt-ruby', '~> 3.0.0'
|
|
24
27
|
|
|
25
28
|
# Use unicorn as the web server
|
|
26
29
|
# gem 'unicorn'
|
|
@@ -31,10 +34,8 @@ gem 'jquery-rails'
|
|
|
31
34
|
# To use debugger
|
|
32
35
|
# gem 'ruby-debug19', :require => 'ruby-debug'
|
|
33
36
|
|
|
34
|
-
gem 'capybara'
|
|
35
|
-
gem 'haml', :git => 'git://github.com/nex3/haml.git'
|
|
36
|
-
|
|
37
37
|
group :test do
|
|
38
38
|
# Pretty printed test output
|
|
39
|
-
gem 'turn', :require => false
|
|
39
|
+
gem 'turn', '0.8.2', :require => false
|
|
40
|
+
gem 'capybara'
|
|
40
41
|
end
|
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) Peter Gumeson
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,6 +1,61 @@
|
|
|
1
|
-
Html5 Rails
|
|
1
|
+
Html5 for Rails
|
|
2
2
|
=========================
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Sensible Html5 defaults for Rails projects based on [Html5 Boilerplate](http://html5boilerplate.com)
|
|
5
|
+
by Paul Irish, Divya Manian and many other [fine folks](https://github.com/h5bp/html5-boilerplate/contributors).
|
|
5
6
|
|
|
6
|
-
(
|
|
7
|
+
(A rewrite of compass-html5-boilerplate that decouples the compass CSS library and adds Rails asset pipeline integration).
|
|
8
|
+
|
|
9
|
+
Installation
|
|
10
|
+
=========================
|
|
11
|
+
|
|
12
|
+
We're a bit light on documentation right now, but this should get you going...
|
|
13
|
+
|
|
14
|
+
In your Gemfile
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
group :assets do
|
|
18
|
+
gem 'sass-rails'
|
|
19
|
+
gem 'coffee-rails'
|
|
20
|
+
gem 'uglifier'
|
|
21
|
+
gem 'compass', '0.12.alpha.4'
|
|
22
|
+
gem 'compass-h5bp'
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
gem 'haml-rails' #(Optional) to use haml
|
|
26
|
+
|
|
27
|
+
gem 'jquery-rails'
|
|
28
|
+
gem 'html5-rails', :git => 'git://github.com/sporkd/html5-rails.git'
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Install
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
$ bundle install
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Run generator
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
$ rails generate html5:install
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Notes
|
|
44
|
+
---------------
|
|
45
|
+
|
|
46
|
+
[1] If you use `--template-engine=haml` (or `haml-rails`), the install
|
|
47
|
+
generator will remove your application.html.erb layout and generate
|
|
48
|
+
application.html.haml.
|
|
49
|
+
|
|
50
|
+
[2] If you're upgrading from compass-html5-boilerplate you may need to
|
|
51
|
+
remove config/compass.rb before you can run the generators.
|
|
52
|
+
|
|
53
|
+
[3] I'm still organizing stuff to be as flexible as possible, so some
|
|
54
|
+
paths might change. Just make sure you re-run generators when upgrading.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
License
|
|
58
|
+
========
|
|
59
|
+
|
|
60
|
+
Copyright (c) 2010-2012 Peter Gumeson.
|
|
61
|
+
See [LICENSE](https://github.com/sporkd/html5-rails/blob/master/LICENSE) for full license.
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
5
|
+
// the compiled file.
|
|
6
|
+
//
|
|
7
|
+
//= require jquery
|
|
8
|
+
//= require jquery_ujs
|
|
9
|
+
//= require h5bp
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
// This manifest is for javascript polyfills that will get included
|
|
2
|
+
// in the head section of your layouts.
|
|
3
|
+
//
|
|
4
|
+
// polyfill (n): a JavaScript shim that replicates the standard API for older browsers.
|
|
5
|
+
//
|
|
6
|
+
// Html5 Boilerplate polyfills
|
|
7
|
+
//= require modernizr.min
|
|
8
|
+
//
|
|
9
|
+
// Add your own polyfills below
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<head>
|
|
2
|
+
<meta charset='utf-8'>
|
|
3
|
+
|
|
4
|
+
<%# Use the .htaccess and remove these lines to avoid edge case issues. %>
|
|
5
|
+
<%# More info: h5bp.com/b/378 %>
|
|
6
|
+
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
|
|
7
|
+
|
|
8
|
+
<title></title>
|
|
9
|
+
<meta content='' name='description'>
|
|
10
|
+
<meta content='' name='author'>
|
|
11
|
+
|
|
12
|
+
<%# Mobile viewport optimized: h5bp.com/viewport %>
|
|
13
|
+
<meta content='width=device-width,initial-scale=1' name='viewport'>
|
|
14
|
+
|
|
15
|
+
<%= render "stylesheets" %>
|
|
16
|
+
|
|
17
|
+
<%# More ideas for your <head> here: h5bp.com/d/head-Tips %>
|
|
18
|
+
|
|
19
|
+
<%# All JavaScript at the bottom, except this Modernizr build incl. Respond.js %>
|
|
20
|
+
<%# Respond is a polyfill for min/max-width media queries. Modernizr enables HTML5 elements & feature detects; %>
|
|
21
|
+
<%# for optimal performance, create your own custom Modernizr build: www.modernizr.com/download/ %>
|
|
22
|
+
<%= javascript_include_tag "polyfills" %>
|
|
23
|
+
|
|
24
|
+
<%= csrf_meta_tag %>
|
|
25
|
+
</head>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<%= javascript_include_tag "application" %>
|
|
2
|
+
|
|
3
|
+
<%# Append your own using content_for :javascripts %>
|
|
4
|
+
<%= yield :javascripts %>
|
|
5
|
+
|
|
6
|
+
<%# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet %>
|
|
7
|
+
<%# Looks for google_account_id first in ENV['GOOGLE_ACCOUNT_ID'] then in config/html5_rails.yml %>
|
|
8
|
+
<% if !google_account_id.blank? %>
|
|
9
|
+
<script>
|
|
10
|
+
//<![CDATA[
|
|
11
|
+
var _gaq=[['_setAccount','<%= google_account_id %>'],['_trackPageview']];
|
|
12
|
+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
|
13
|
+
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
|
14
|
+
s.parentNode.insertBefore(g,s)}(document,'script'));
|
|
15
|
+
//]]>
|
|
16
|
+
</script>
|
|
17
|
+
<% end %>
|
|
18
|
+
|
|
19
|
+
<%# Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6. %>
|
|
20
|
+
<%# chromium.org/developers/how-tos/chrome-frame-getting-started %>
|
|
21
|
+
<!--[if lt IE 7 ]>
|
|
22
|
+
<script defer src='//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js'></script>
|
|
23
|
+
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
|
|
24
|
+
<![endif]-->
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<%# http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither %>
|
|
3
|
+
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7 no-js" lang="en"> <![endif]-->
|
|
4
|
+
<!--[if IE 7]> <html class="lt-ie9 lt-ie8 no-js" lang="en"> <![endif]-->
|
|
5
|
+
<!--[if IE 8]> <html class="lt-ie9 no-js" lang="en"> <![endif]-->
|
|
6
|
+
<!--[if gt IE 8]><!-->
|
|
7
|
+
<html class='no-js' lang='en'>
|
|
8
|
+
<!--<![endif]-->
|
|
9
|
+
|
|
10
|
+
<%= render "head" %>
|
|
11
|
+
|
|
12
|
+
<body class='pages'>
|
|
13
|
+
<%= render "header" %>
|
|
14
|
+
|
|
15
|
+
<div id='main' role='main'>
|
|
16
|
+
<%= render "flashes" %>
|
|
17
|
+
<%= yield %>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<%= render "footer" %>
|
|
21
|
+
|
|
22
|
+
<%# Javascript at the bottom for fast page loading %>
|
|
23
|
+
<%= render "javascripts" %>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
data/html5-rails.gemspec
CHANGED
|
@@ -9,15 +9,17 @@ Gem::Specification.new do |s|
|
|
|
9
9
|
s.authors = ["Peter Gumeson"]
|
|
10
10
|
s.email = ["gumeson@gmail.com"]
|
|
11
11
|
s.homepage = "http://rubygems.org/gems/html5-rails"
|
|
12
|
-
s.summary = %q{Rails support for the compass-
|
|
12
|
+
s.summary = %q{ Rails support for the compass-h5bp gem }
|
|
13
13
|
s.description = %q{}
|
|
14
14
|
|
|
15
15
|
s.rubyforge_project = "html5-rails"
|
|
16
16
|
|
|
17
|
-
s.add_dependency "
|
|
17
|
+
s.add_dependency "jquery-rails", "~> 1.0.19"
|
|
18
18
|
s.add_dependency "railties", "~> 3.1.0"
|
|
19
19
|
s.add_dependency "thor", "~> 0.14"
|
|
20
20
|
|
|
21
|
+
s.add_development_dependency "compass-h5bp", "~> 0.0.1"
|
|
22
|
+
|
|
21
23
|
s.files = `git ls-files`.split("\n")
|
|
22
24
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
23
25
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Description:
|
|
2
|
+
Generates CSS assets with compass imports and partials.
|
|
3
|
+
|
|
4
|
+
Example:
|
|
5
|
+
rails generate html5:assets admin
|
|
6
|
+
|
|
7
|
+
This will create:
|
|
8
|
+
app/assets/stylesheets/admin.css.scss
|
|
9
|
+
app/assets/stylesheets/_defaults.css.scss
|
|
10
|
+
app/assets/stylesheets/admin/document.css.scss
|
|
11
|
+
app/assets/stylesheets/admin/media_queries.css.scss
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
require "generators/html5/generator_helpers"
|
|
2
|
+
|
|
3
|
+
module Html5
|
|
4
|
+
module Generators
|
|
5
|
+
class AssetsGenerator < ::Rails::Generators::NamedBase
|
|
6
|
+
include Html5::Generators::GeneratorHelpers
|
|
7
|
+
|
|
8
|
+
source_root File.expand_path('../templates', __FILE__)
|
|
9
|
+
|
|
10
|
+
argument :name, :type => :string,
|
|
11
|
+
:required => false,
|
|
12
|
+
:default => "application"
|
|
13
|
+
|
|
14
|
+
def generate_javascripts
|
|
15
|
+
asset_path = "app/assets/javascripts/#{ asset_name }.js"
|
|
16
|
+
if File.exist?(asset_path) && File.read(asset_path) =~ /require jquery_ujs$/
|
|
17
|
+
inject_into_file asset_path, :after => "require jquery_ujs" do
|
|
18
|
+
"\n//= require h5bp"
|
|
19
|
+
end
|
|
20
|
+
gsub_file asset_path, /^\/\/= require_tree \.(\\n)?/, ""
|
|
21
|
+
else
|
|
22
|
+
template "javascripts/application.js", asset_path
|
|
23
|
+
end
|
|
24
|
+
template "javascripts/polyfills.js", "app/assets/javascripts/polyfills.js"
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def generate_stylesheets
|
|
28
|
+
if file_path == "application"
|
|
29
|
+
remove_file "app/assets/stylesheets/application.css"
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
file_ext = ".css.scss"
|
|
33
|
+
copy_file "stylesheets/_defaults#{ file_ext }", "app/assets/stylesheets/_defaults#{ file_ext }"
|
|
34
|
+
template "stylesheets/application#{ file_ext }", File.join("app/assets/stylesheets", asset_name + file_ext)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def generate_stylesheet_partials
|
|
38
|
+
if stylesheet_partials.any?
|
|
39
|
+
empty_directory File.join("app/assets/stylesheets", asset_name)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
file_ext = ".css.scss"
|
|
43
|
+
stylesheet_partials.each do |partial|
|
|
44
|
+
template File.join("stylesheets/application", partial + file_ext), File.join("app/assets/stylesheets", asset_name, partial + file_ext)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# TODO
|
|
49
|
+
# def add_precompiles
|
|
50
|
+
# end
|
|
51
|
+
|
|
52
|
+
protected
|
|
53
|
+
|
|
54
|
+
def asset_name
|
|
55
|
+
(class_path + [file_name]).join('_')
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def stylesheet_partials
|
|
59
|
+
%w(_defaults document media_queries)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
5
|
+
// the compiled file.
|
|
6
|
+
//
|
|
7
|
+
//= require jquery
|
|
8
|
+
//= require jquery_ujs
|
|
9
|
+
//= require h5bp
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was generated by html5-rails
|
|
2
|
+
// https://github.com/sporkd/html5-rails
|
|
3
|
+
// Upgrade with: $ rails generate html5:install
|
|
4
|
+
//
|
|
5
|
+
// This is a manifest for javascript polyfills that will be included
|
|
6
|
+
// in the head section of your layouts.
|
|
7
|
+
//
|
|
8
|
+
// polyfill (n): a JavaScript shim that replicates the standard API for older browsers.
|
|
9
|
+
//
|
|
10
|
+
//= require modernizr.min
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file was generated by html5-rails
|
|
2
|
+
// https://github.com/sporkd/html5-rails
|
|
3
|
+
// Upgrade with: $ rails generate html5:install
|
|
4
|
+
//
|
|
5
|
+
// These global SCSS(SASS) variables will be
|
|
6
|
+
// available to all your stylesheets.
|
|
7
|
+
|
|
8
|
+
//----------------------------------------------
|
|
9
|
+
// Html5 Boilerplate overrides
|
|
10
|
+
//----------------------------------------------
|
|
11
|
+
$line-height: 1.4; // 1.4 for true normalization
|
|
12
|
+
$font-color: #222;
|
|
13
|
+
$link-color: #00e;
|
|
14
|
+
$link-hover-color: #06e;
|
|
15
|
+
$link-visited-color: #551a8b;
|
|
16
|
+
$selected-font-color: #fff;
|
|
17
|
+
$selected-background-color: #ff5e99;
|
|
18
|
+
$invalid-background-color: #f0dddd;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// This file was generated by html5-rails
|
|
2
|
+
// https://github.com/sporkd/html5-rails
|
|
3
|
+
// Upgrade with: $ rails generate html5:install
|
|
4
|
+
|
|
5
|
+
//-----------------------------------------
|
|
6
|
+
// Define some variables first
|
|
7
|
+
//-----------------------------------------
|
|
8
|
+
@import "defaults";
|
|
9
|
+
@import "<%= file_path %>/defaults";
|
|
10
|
+
|
|
11
|
+
//-----------------------------------------
|
|
12
|
+
// Compass libraries and extensions
|
|
13
|
+
//-----------------------------------------
|
|
14
|
+
// @import "compass/**/*";
|
|
15
|
+
@import "h5bp";
|
|
16
|
+
|
|
17
|
+
//-----------------------------------------
|
|
18
|
+
// Html5 Boilerplate normalize.css
|
|
19
|
+
//-----------------------------------------
|
|
20
|
+
@include h5bp-normalize;
|
|
21
|
+
|
|
22
|
+
//-----------------------------------------
|
|
23
|
+
// Import all your custom partials below
|
|
24
|
+
//-----------------------------------------
|
|
25
|
+
@import "<%= file_path %>/document";
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
//-----------------------------------------
|
|
30
|
+
// Your media queries come last
|
|
31
|
+
//-----------------------------------------
|
|
32
|
+
@import "<%= file_path %>/media_queries";
|
|
33
|
+
|
|
34
|
+
//-----------------------------------------
|
|
35
|
+
// Html5 Boilerplate helpers
|
|
36
|
+
//-----------------------------------------
|
|
37
|
+
@include h5bp-helpers;
|
|
38
|
+
|
|
39
|
+
//-----------------------------------------
|
|
40
|
+
// Html5 Boilerplate media
|
|
41
|
+
//-----------------------------------------
|
|
42
|
+
@include h5bp-media;
|