html5-boilerplate 0.2.1 → 0.2.2
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/VERSION +1 -1
- data/stylesheets/html5-boilerplate/_fonts.scss +2 -3
- data/stylesheets/html5-boilerplate/_helpers.scss +1 -1
- data/stylesheets/html5-boilerplate/_media.scss +6 -4
- data/stylesheets/html5-boilerplate/_styles.scss +12 -1
- data/templates/project/_footer.html.haml +1 -1
- data/templates/project/_head.html.haml +8 -11
- data/templates/project/_javascripts.html.haml +3 -1
- data/templates/project/_stylesheets.html.haml +4 -2
- data/templates/project/application.html.haml +3 -10
- data/templates/project/files/htaccess +9 -5
- data/templates/project/files/nginx.conf +2 -2
- data/templates/project/files/web.config +0 -1
- data/templates/project/index.html.haml +29 -29
- data/templates/project/partials/_page.scss +4 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -5,9 +5,10 @@ $base-line-height: 1.231 !default;
|
|
5
5
|
//
|
6
6
|
// fonts.css from the YUI Library: developer.yahoo.com/yui/fonts
|
7
7
|
//
|
8
|
-
// There are
|
8
|
+
// There are three custom edits:
|
9
9
|
// * remove arial, helvetica from explicit font stack
|
10
10
|
// * we normalize monospace styles ourselves
|
11
|
+
// * table font-size is reset in the HTML5 reset above so there is no need to repeat
|
11
12
|
//
|
12
13
|
// Whatever parts of this port of YUI to Sass that are copyrightable, are Copyright (c) 2008, Christopher Eppstein. All Rights Reserved.
|
13
14
|
//
|
@@ -20,8 +21,6 @@ $base-line-height: 1.231 !default;
|
|
20
21
|
*font-size: small;
|
21
22
|
}
|
22
23
|
|
23
|
-
table { font-size: inherit; font: 100%; }
|
24
|
-
|
25
24
|
select, input, textarea, button { font: 99% $family; }
|
26
25
|
|
27
26
|
// normalize monospace sizing
|
@@ -53,7 +53,7 @@
|
|
53
53
|
// Hide visually and from screenreaders, but maintain layout
|
54
54
|
@mixin invisible { visibility: hidden; }
|
55
55
|
|
56
|
-
// The Magnificent CLEARFIX
|
56
|
+
// The Magnificent CLEARFIX << j.mp/phayesclearfix
|
57
57
|
@mixin magnificent-clearfix {
|
58
58
|
@warn "The 'magnificent-clearfix' mixin has been deprecated. Use 'pie-clearfix' in compass core instead.";
|
59
59
|
@include pie-clearfix;
|
@@ -28,12 +28,14 @@
|
|
28
28
|
a:after { content: " (" attr(href) ")"; }
|
29
29
|
|
30
30
|
abbr:after { content: " (" attr(title) ")"; }
|
31
|
-
|
31
|
+
|
32
32
|
.ir a:after { content: ""; } // Don't show links for images
|
33
|
-
|
33
|
+
|
34
34
|
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
|
35
|
-
|
36
|
-
|
35
|
+
|
36
|
+
thead { display: table-header-group; } // css-discuss.incutio.com/wiki/Printing_Tables
|
37
|
+
|
38
|
+
tr, img { page-break-inside: avoid; }
|
37
39
|
|
38
40
|
@page { margin: 0.5cm; }
|
39
41
|
|
@@ -25,9 +25,11 @@ $list-left-margin: 1.8em !default;
|
|
25
25
|
td, td img { vertical-align: top; }
|
26
26
|
|
27
27
|
sub { @include sub; }
|
28
|
-
|
28
|
+
|
29
29
|
sup { @include sup; }
|
30
30
|
|
31
|
+
textarea { overflow: auto; } // thnx ivannikolic! www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars
|
32
|
+
|
31
33
|
@include accessible-focus;
|
32
34
|
|
33
35
|
@include quoted-pre;
|
@@ -36,6 +38,8 @@ $list-left-margin: 1.8em !default;
|
|
36
38
|
|
37
39
|
@include hand-cursor-inputs;
|
38
40
|
|
41
|
+
@include webkit-reset-form-elements;
|
42
|
+
|
39
43
|
@include selected-text;
|
40
44
|
|
41
45
|
@include webkit-tap-highlight;
|
@@ -81,6 +85,11 @@ $list-left-margin: 1.8em !default;
|
|
81
85
|
label, input[type=button], input[type=submit], button { cursor: pointer; }
|
82
86
|
}
|
83
87
|
|
88
|
+
// webkit browsers add a 2px margin outside the chrome of form elements
|
89
|
+
@mixin webkit-reset-form-elements {
|
90
|
+
button, input, select, textarea { margin: 0; }
|
91
|
+
}
|
92
|
+
|
84
93
|
// These selection declarations have to be separate.
|
85
94
|
// No text-shadow: twitter.com/miketaylr/status/12228805301
|
86
95
|
// Also: hot pink.
|
@@ -107,4 +116,6 @@ $list-left-margin: 1.8em !default;
|
|
107
116
|
// bicubic resizing for non-native sized IMG:
|
108
117
|
// code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
|
109
118
|
.ie7 img { -ms-interpolation-mode: bicubic; }
|
119
|
+
|
120
|
+
.ie6 legend, .ie7 legend { margin-left: -7px; } // thnx ivannikolic!
|
110
121
|
}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
%small.copyright
|
2
|
-
Copyright © #{Date.today.year}
|
2
|
+
Copyright © #{Date.today.year}
|
@@ -1,26 +1,23 @@
|
|
1
1
|
%head
|
2
|
-
%meta{:charset => "utf-8"}/
|
3
|
-
|
4
|
-
-# www.phpied.com/conditional-comments-block-downloads/
|
5
|
-
/[if IE]
|
2
|
+
%meta{ :charset => "utf-8" }/
|
6
3
|
|
7
4
|
-#
|
8
5
|
Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
9
6
|
Remove this if you use the .htaccess
|
10
|
-
%meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}/
|
7
|
+
%meta{ :content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible" }/
|
11
8
|
|
12
9
|
%title
|
13
|
-
== #{controller.controller_name.titleize} - #{controller.action_name.titleize}
|
10
|
+
== #{ controller.controller_name.titleize } - #{ controller.action_name.titleize }
|
14
11
|
|
15
|
-
%meta{:content => "", :name => "description"}/
|
16
|
-
%meta{:content => "", :name => "author"}/
|
12
|
+
%meta{ :content => "", :name => "description" }/
|
13
|
+
%meta{ :content => "", :name => "author" }/
|
17
14
|
|
18
15
|
-# Mobile viewport optimized: j.mp/bplateviewport
|
19
|
-
%meta{:content => "width=device-width; initial-scale=1.0", :name => "viewport"}/
|
16
|
+
%meta{ :content => "width=device-width; initial-scale=1.0", :name => "viewport" }/
|
20
17
|
|
21
18
|
-# Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references
|
22
|
-
-# %link{:href => "/favicon.ico", :rel => "shortcut icon"}/
|
23
|
-
-# %link{:href => "/apple-touch-icon.png", :rel => "apple-touch-icon"}/
|
19
|
+
-# %link{ :href => "/favicon.ico", :rel => "shortcut icon" }/
|
20
|
+
-# %link{ :href => "/apple-touch-icon.png", :rel => "apple-touch-icon" }/
|
24
21
|
|
25
22
|
= render :partial => 'layouts/stylesheets'
|
26
23
|
|
@@ -1,6 +1,8 @@
|
|
1
1
|
-# CSS : implied media="all"
|
2
2
|
= stylesheet_link_tag 'style', :media => 'all'
|
3
|
-
|
4
|
-
|
3
|
+
|
4
|
+
-# Uncomment if you are specifically targeting less enabled mobile browsers
|
5
|
+
-#= stylesheet_link_tag 'handheld', :media => 'handheld'
|
6
|
+
|
5
7
|
-# Append your own using content_for :stylesheets
|
6
8
|
= yield :stylesheets
|
@@ -1,14 +1,8 @@
|
|
1
1
|
!!! 5
|
2
|
-
-#
|
3
|
-
|
4
|
-
the IE conditionals on the HTML tag instead of the body tag
|
5
|
-
http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither
|
6
|
-
|
7
|
-
-# ie_html :lang => 'en', :class => 'no-js' do
|
8
|
-
%html.no-js{:lang => "en"}
|
2
|
+
-# http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither
|
3
|
+
-ie_html :lang => 'en', :class => 'no-js' do
|
9
4
|
= render :partial => 'layouts/head'
|
10
|
-
|
11
|
-
- ie_body :class => "#{controller.controller_name}" do
|
5
|
+
%body{ :class => "#{controller.controller_name}" }
|
12
6
|
#container
|
13
7
|
%header#header
|
14
8
|
= render :partial => 'layouts/header'
|
@@ -17,6 +11,5 @@
|
|
17
11
|
= yield
|
18
12
|
%footer#footer
|
19
13
|
= render :partial => 'layouts/footer'
|
20
|
-
|
21
14
|
-# Javascript at the bottom for fast page loading
|
22
15
|
= render :partial => 'layouts/javascripts'
|
@@ -16,10 +16,13 @@
|
|
16
16
|
</IfModule>
|
17
17
|
</IfModule>
|
18
18
|
|
19
|
+
<IfModule mod_headers.c>
|
19
20
|
# Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
|
20
21
|
# We need to inform proxies that content changes based on UA
|
21
|
-
<IfModule mod_headers.c>
|
22
22
|
Header append Vary User-Agent
|
23
|
+
# Ensure proxy caching, since gzip is accept-encoding dependent.
|
24
|
+
Header append Vary Accept-Encoding
|
25
|
+
# Cache control is set only if mod_headers is enabled, so that's unncessary to declare
|
23
26
|
</IfModule>
|
24
27
|
|
25
28
|
# hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/
|
@@ -87,7 +90,8 @@ AddType text/x-component htc
|
|
87
90
|
<IfModule mod_deflate.c>
|
88
91
|
|
89
92
|
# html, txt, css, js, json, xml, htc:
|
90
|
-
|
93
|
+
AddOutputFilter DEFLATE text/html text/plain text/css text/javascript application/javascript application/json
|
94
|
+
AddOutputFilter DEFLATE text/xml application/xml text/x-component
|
91
95
|
|
92
96
|
# webfonts and svg:
|
93
97
|
<FilesMatch "\.(ttf|otf|eot|svg)$" >
|
@@ -107,7 +111,7 @@ AddType text/x-component htc
|
|
107
111
|
# "access plus 1 week" or so
|
108
112
|
|
109
113
|
<IfModule mod_expires.c>
|
110
|
-
Header set
|
114
|
+
Header set Cache-Control "public"
|
111
115
|
ExpiresActive on
|
112
116
|
|
113
117
|
# Perhaps better to whitelist expires rules? Perhaps.
|
@@ -184,8 +188,8 @@ FileETag None
|
|
184
188
|
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
|
185
189
|
</IfModule>
|
186
190
|
|
187
|
-
# without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist
|
188
|
-
# webmasterworld.com/apache/3808792.htm
|
191
|
+
# without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist
|
192
|
+
# e.g. /blog/hello : webmasterworld.com/apache/3808792.htm
|
189
193
|
Options -MultiViews
|
190
194
|
# -Indexes will have Apache block users from browsing folders without a default document
|
191
195
|
# Options -Indexes
|
@@ -28,7 +28,7 @@ http {
|
|
28
28
|
gzip_min_length 1100;
|
29
29
|
gzip_buffers 4 8k;
|
30
30
|
gzip_proxied any;
|
31
|
-
gzip_types text/html text/plain text/xml application/xml application/xml+rss text/css
|
31
|
+
gzip_types text/html text/plain text/xml application/xml application/xml+rss text/css text/javascript application/javascript application/json;
|
32
32
|
|
33
33
|
gzip_static on;
|
34
34
|
|
@@ -45,7 +45,7 @@ http {
|
|
45
45
|
|
46
46
|
#static assets
|
47
47
|
location ~* ^.+\.(manifest)$ {
|
48
|
-
expires
|
48
|
+
expires -1D;
|
49
49
|
root /sites/example.com/public;
|
50
50
|
access_log logs/static.log;
|
51
51
|
}
|
@@ -93,7 +93,6 @@
|
|
93
93
|
<add mimeType="text/*" enabled="true" />
|
94
94
|
<add mimeType="message/*" enabled="true" />
|
95
95
|
<add mimeType="application/javascript" enabled="true" />
|
96
|
-
<add mimeType="application/x-javascript" enabled="true" />
|
97
96
|
<add mimeType="application/json" enabled="true" />
|
98
97
|
<add mimeType="*/*" enabled="false" />
|
99
98
|
</staticTypes>
|
@@ -1,43 +1,41 @@
|
|
1
1
|
!!! 5
|
2
|
-
|
2
|
+
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
|
3
|
+
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
|
4
|
+
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
|
5
|
+
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
|
6
|
+
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
7
|
+
<!--[if (gt IE 9)|!(IE)]><!-->
|
8
|
+
%html.no-js{ :lang => "en" }
|
9
|
+
<!--<![endif]-->
|
3
10
|
%head
|
4
|
-
%meta{:charset => "utf-8"}/
|
5
|
-
-# www.phpied.com/conditional-comments-block-downloads/
|
6
|
-
/[if IE]
|
11
|
+
%meta{ :charset => "utf-8" }/
|
7
12
|
|
8
13
|
-#
|
9
14
|
Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
10
15
|
Remove this if you use the .htaccess
|
11
|
-
%meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}/
|
16
|
+
%meta{ :content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible" }/
|
12
17
|
|
13
18
|
%title
|
14
|
-
%meta{:content => "", :name => "description"}/
|
15
|
-
%meta{:content => "", :name => "author"}/
|
19
|
+
%meta{ :content => "", :name => "description" }/
|
20
|
+
%meta{ :content => "", :name => "author" }/
|
16
21
|
|
17
22
|
-# Mobile viewport optimized: j.mp/bplateviewport
|
18
|
-
%meta{:content => "width=device-width; initial-scale=1.0", :name => "viewport"}/
|
23
|
+
%meta{ :content => "width=device-width; initial-scale=1.0", :name => "viewport" }/
|
19
24
|
|
20
25
|
-# Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references
|
21
|
-
-# %link{:href => "/favicon.ico", :rel => "shortcut icon"}/
|
22
|
-
-# %link{:href => "/apple-touch-icon.png", :rel => "apple-touch-icon"}/
|
26
|
+
-# %link{ :href => "/favicon.ico", :rel => "shortcut icon" }/
|
27
|
+
-# %link{ :href => "/apple-touch-icon.png", :rel => "apple-touch-icon" }/
|
23
28
|
|
24
29
|
-# CSS : implied media="all"
|
25
|
-
%link{:href => "css/style.css?v=1", :media => "all", :rel => "stylesheet"}/
|
30
|
+
%link{ :href => "css/style.css?v=1", :media => "all", :rel => "stylesheet" }/
|
26
31
|
|
27
|
-
-#
|
28
|
-
%link{:href => "css/handheld.css?v=1", :media => "handheld", :rel => "stylesheet"}/
|
32
|
+
-# Uncomment if you are specifically targeting less enabled mobile browsers
|
33
|
+
-# %link{ :href => "css/handheld.css?v=1", :media => "handheld", :rel => "stylesheet" }/
|
29
34
|
|
30
35
|
-# All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects
|
31
|
-
%script{:src => "js/modernizr-1.5.min.js"}
|
32
|
-
|
33
|
-
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
|
34
|
-
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]-->
|
35
|
-
<!--[if IE 7 ]> <body class="ie7"> <![endif]-->
|
36
|
-
<!--[if IE 8 ]> <body class="ie8"> <![endif]-->
|
37
|
-
<!--[if IE 9 ]> <body class="ie9"> <![endif]-->
|
38
|
-
<!--[if (gt IE 9)|!(IE)]><!-->
|
36
|
+
%script{ :src => "js/modernizr-1.5.min.js" }
|
37
|
+
|
39
38
|
%body
|
40
|
-
<!--<![endif]-->
|
41
39
|
#container
|
42
40
|
%header
|
43
41
|
#main
|
@@ -46,19 +44,21 @@
|
|
46
44
|
-#
|
47
45
|
Javascript at the bottom for fast page loading
|
48
46
|
Grab Google CDN's jQuery. fall back to local if necessary
|
49
|
-
%script{:src => "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"}
|
47
|
+
%script{ :src => "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" }
|
50
48
|
:javascript
|
51
49
|
!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')
|
52
50
|
|
53
|
-
%script{:src => "js/plugins.js?v=1"}
|
54
|
-
%script{:src => "js/script.js?v=1"}
|
51
|
+
%script{ :src => "js/plugins.js?v=1" }
|
52
|
+
%script{ :src => "js/script.js?v=1" }
|
55
53
|
|
56
54
|
/[if lt IE 7 ]
|
57
|
-
|
58
|
-
|
55
|
+
%script{ :src => "js/dd_belatedpng.js" }
|
56
|
+
:javascript
|
57
|
+
DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images
|
58
|
+
|
59
59
|
-# yui profiler and profileviewer - remove for production
|
60
|
-
%script{:src => "js/profiling/yahoo-profiling.min.js?v=1"}
|
61
|
-
%script{:src => "js/profiling/config.js?v=1"}
|
60
|
+
%script{ :src => "js/profiling/yahoo-profiling.min.js?v=1" }
|
61
|
+
%script{ :src => "js/profiling/config.js?v=1" }
|
62
62
|
|
63
63
|
-# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
|
64
64
|
-# change the UA-XXXXX-X to be your site's ID
|
@@ -23,11 +23,13 @@ small {
|
|
23
23
|
|
24
24
|
// Add the 'required' attribute on your
|
25
25
|
// inputs if you want to use these
|
26
|
-
input:valid {}
|
27
|
-
input:invalid {
|
26
|
+
input:valid, textarea:valid {}
|
27
|
+
input:invalid, textarea:invalid {
|
28
28
|
@include border-radius(1px);
|
29
29
|
@include box-shadow(red, 0, 0, 5px, 0);
|
30
30
|
}
|
31
|
+
.no-boxshadow input:invalid,
|
32
|
+
.no-boxshadow textarea:invalid { background-color: #f0dddd; }
|
31
33
|
|
32
34
|
|
33
35
|
//-----------------------------------
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Peter Gumeson
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-09-
|
17
|
+
date: 2010-09-10 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|