html5-boilerplate 1.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/README.md +30 -94
  2. data/VERSION +1 -1
  3. data/lib/app/helpers/html5_boilerplate_helper.rb +1 -0
  4. data/lib/html5-boilerplate.rb +1 -1
  5. data/templates/project/_head.html.haml +8 -5
  6. data/templates/project/_javascripts.html.haml +16 -6
  7. data/templates/project/_stylesheets.html.haml +1 -1
  8. data/templates/project/application.html.haml +1 -1
  9. data/templates/project/files/apple-touch-icon-114x114-precomposed.png +0 -0
  10. data/templates/project/files/apple-touch-icon-57x57-precomposed.png +0 -0
  11. data/templates/project/files/apple-touch-icon-72x72-precomposed.png +0 -0
  12. data/templates/project/files/apple-touch-icon-precomposed.png +0 -0
  13. data/templates/project/files/apple-touch-icon.png +0 -0
  14. data/templates/project/files/htaccess +135 -110
  15. data/templates/project/index.html.haml +37 -20
  16. data/templates/project/javascripts/{jquery-1.6.js → jquery-1.6.2.js} +369 -253
  17. data/templates/project/javascripts/jquery-1.6.2.min.js +18 -0
  18. data/templates/project/javascripts/modernizr-2.0.6.min.js +4 -0
  19. data/templates/project/javascripts/plugins.js +7 -3
  20. data/templates/project/javascripts/rails.js +90 -37
  21. data/templates/project/manifest.rb +10 -7
  22. data/templates/project/partials/_base.scss +9 -18
  23. data/templates/project/partials/_media.scss +20 -14
  24. data/templates/project/partials/_overrides.scss +47 -57
  25. data/templates/project/partials/_page.scss +0 -32
  26. data/templates/project/style.scss +6 -10
  27. metadata +50 -61
  28. data/stylesheets/_html5-boilerplate.scss +0 -20
  29. data/stylesheets/html5-boilerplate/_fonts.scss +0 -42
  30. data/stylesheets/html5-boilerplate/_helpers.scss +0 -71
  31. data/stylesheets/html5-boilerplate/_media.scss +0 -35
  32. data/stylesheets/html5-boilerplate/_reset.scss +0 -43
  33. data/stylesheets/html5-boilerplate/_styles.scss +0 -126
  34. data/templates/project/handheld.scss +0 -8
  35. data/templates/project/javascripts/jquery-1.6.min.js +0 -16
  36. data/templates/project/javascripts/modernizr-1.7.min.js +0 -2
  37. data/templates/project/javascripts/respond.min.js +0 -7
@@ -4,44 +4,12 @@
4
4
  // The following html5-boilerplate styles should
5
5
  // probably be customized for each site
6
6
  //-----------------------------------------------
7
-
8
7
  body, select, input, textarea {
9
8
  color: $font-color;
10
9
  // Set your base font here, to apply evenly
11
10
  // font-family: Georgia, serif;
12
11
  }
13
12
 
14
- //Headers (h1, h2, etc) have no default font-size or margin; define those yourself
15
- h1, h2, h3, h4, h5, h6 {
16
- // Bold might not be the best choice if you are
17
- // embedding a @font-face that's already bold
18
- font-weight: bold;
19
- }
20
-
21
- a, a:active, a:visited { color: $link-color; }
22
- a:hover { color: $link-hover-color; }
23
-
24
- strong, th {
25
- font-weight: bold;
26
- }
27
-
28
- small {
29
- // Use font-size mixin to convert to percentage for YUI
30
- // http://developer.yahoo.com/yui/3/cssfonts/#fontsize
31
- @include font-size(11px); // approx 85% when base-font-size eq 13px
32
- }
33
-
34
- // Add the 'required' attribute on your
35
- // inputs if you want to use these
36
- input:valid, textarea:valid {}
37
- input:invalid, textarea:invalid {
38
- @include border-radius(1px);
39
- @include single-box-shadow(red, 0, 0, 5px, 0);
40
- }
41
- .no-boxshadow input:invalid,
42
- .no-boxshadow textarea:invalid { background-color: #f0dddd; }
43
-
44
-
45
13
  //-----------------------------------
46
14
  // Add your own custom styles below
47
15
  //-----------------------------------
@@ -2,18 +2,11 @@
2
2
  @import "partials/base";
3
3
 
4
4
  // Then we'll import the compass extension
5
- @import "html5-boilerplate";
5
+ @import "h5bp";
6
6
 
7
7
  // Now, you can simply include everything
8
- // (except media) by uncommeting this line
9
- //@include html5-boilerplate;
10
-
11
- // Or, you can pick and choose only the sections
12
- // you want by using the these includes
13
- @include html5-boilerplate-reset;
14
- @include html5-boilerplate-fonts;
15
- @include html5-boilerplate-styles;
16
- @include html5-boilerplate-helpers;
8
+ // (except print and helpers) by uncommeting this line
9
+ @include h5bp-normalize;
17
10
 
18
11
  // Or, you can import the "overrides" partial if
19
12
  // you want more control over individual mixins
@@ -24,5 +17,8 @@
24
17
  @import "partials/fonts";
25
18
  @import "partials/page";
26
19
 
20
+ // Helpers classes should come second-to-last
21
+ @include h5bp-helpers;
22
+
27
23
  // Media should come last
28
24
  @import "partials/media";
metadata CHANGED
@@ -1,58 +1,53 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: html5-boilerplate
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 0
9
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Peter Gumeson
9
+ - Grady Kuhnline
13
10
  autorequire:
14
11
  bindir: bin
15
12
  cert_chain: []
16
-
17
- date: 2011-05-11 00:00:00 -07:00
13
+ date: 2012-01-24 00:00:00.000000000 -08:00
18
14
  default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
21
17
  name: compass
18
+ requirement: &2164535520 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
24
+ type: :runtime
22
25
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
26
+ version_requirements: *2164535520
27
+ - !ruby/object:Gem::Dependency
28
+ name: compass-h5bp
29
+ requirement: &2164535080 !ruby/object:Gem::Requirement
24
30
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 11
31
- - 1
32
- version: 0.11.1
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
33
35
  type: :runtime
34
- version_requirements: *id001
35
- description: A Compass extension based on Paul Irish's HTML5 Boilerplate at http://html5boilerplate.com
36
- email: gumeson@gmail.com
36
+ prerelease: false
37
+ version_requirements: *2164535080
38
+ description: A Compass implementation of Paul Irish's HTML5 Boilerplate at http://html5boilerplate.com
39
+ email:
40
+ - gumeson@gmail.com
37
41
  executables: []
38
-
39
42
  extensions: []
40
-
41
43
  extra_rdoc_files: []
42
-
43
- files:
44
+ files:
44
45
  - README.md
45
46
  - LICENSE
46
47
  - VERSION
47
48
  - templates/project/files/htaccess
48
49
  - lib/app/helpers/html5_boilerplate_helper.rb
49
50
  - lib/html5-boilerplate.rb
50
- - stylesheets/_html5-boilerplate.scss
51
- - stylesheets/html5-boilerplate/_fonts.scss
52
- - stylesheets/html5-boilerplate/_helpers.scss
53
- - stylesheets/html5-boilerplate/_media.scss
54
- - stylesheets/html5-boilerplate/_reset.scss
55
- - stylesheets/html5-boilerplate/_styles.scss
56
51
  - templates/project/_flashes.html.haml
57
52
  - templates/project/_footer.html.haml
58
53
  - templates/project/_head.html.haml
@@ -61,20 +56,22 @@ files:
61
56
  - templates/project/_stylesheets.html.haml
62
57
  - templates/project/application.html.haml
63
58
  - templates/project/files/404.html
59
+ - templates/project/files/apple-touch-icon-114x114-precomposed.png
60
+ - templates/project/files/apple-touch-icon-57x57-precomposed.png
61
+ - templates/project/files/apple-touch-icon-72x72-precomposed.png
62
+ - templates/project/files/apple-touch-icon-precomposed.png
64
63
  - templates/project/files/apple-touch-icon.png
65
64
  - templates/project/files/crossdomain.xml
66
65
  - templates/project/files/favicon.ico
67
66
  - templates/project/files/google.yml
68
67
  - templates/project/files/humans.txt
69
68
  - templates/project/files/robots.txt
70
- - templates/project/handheld.scss
71
69
  - templates/project/index.html.haml
72
- - templates/project/javascripts/jquery-1.6.js
73
- - templates/project/javascripts/jquery-1.6.min.js
74
- - templates/project/javascripts/modernizr-1.7.min.js
70
+ - templates/project/javascripts/jquery-1.6.2.js
71
+ - templates/project/javascripts/jquery-1.6.2.min.js
72
+ - templates/project/javascripts/modernizr-2.0.6.min.js
75
73
  - templates/project/javascripts/plugins.js
76
74
  - templates/project/javascripts/rails.js
77
- - templates/project/javascripts/respond.min.js
78
75
  - templates/project/javascripts/script.js
79
76
  - templates/project/manifest.rb
80
77
  - templates/project/partials/_base.scss
@@ -86,34 +83,26 @@ files:
86
83
  has_rdoc: true
87
84
  homepage: http://github.com/sporkd/compass-html5-boilerplate
88
85
  licenses: []
89
-
90
86
  post_install_message:
91
87
  rdoc_options: []
92
-
93
- require_paths:
88
+ require_paths:
94
89
  - lib
95
- required_ruby_version: !ruby/object:Gem::Requirement
90
+ required_ruby_version: !ruby/object:Gem::Requirement
96
91
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- segments:
101
- - 0
102
- version: "0"
103
- required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
97
  none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- segments:
109
- - 0
110
- version: "0"
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
111
102
  requirements: []
112
-
113
103
  rubyforge_project:
114
- rubygems_version: 1.3.7
104
+ rubygems_version: 1.6.2
115
105
  signing_key:
116
106
  specification_version: 3
117
- summary: A Compass extension based on Paul Irish's HTML5 Boilerplate
107
+ summary: A Compass implementation of Paul Irish's HTML5 Boilerplate
118
108
  test_files: []
119
-
@@ -1,20 +0,0 @@
1
- // HTML5 Boilerplate
2
- //
3
- // Credit is left where credit is due.
4
- // Much inspiration was taken from these projects:
5
- // - yui.yahooapis.com/2.8.1/build/base/base.css
6
- // - camendesign.com/design/
7
- // - praegnanz.de/weblog/htmlcssjs-kickstart
8
-
9
- @import "html5-boilerplate/reset";
10
- @import "html5-boilerplate/fonts";
11
- @import "html5-boilerplate/styles";
12
- @import "html5-boilerplate/helpers";
13
- @import "html5-boilerplate/media";
14
-
15
- @mixin html5-boilerplate {
16
- @include html5-boilerplate-reset;
17
- @include html5-boilerplate-fonts;
18
- @include html5-boilerplate-styles;
19
- @include html5-boilerplate-helpers;
20
- }
@@ -1,42 +0,0 @@
1
- $base-font-family: unquote("sans-serif") !default;
2
- $base-font-size: 13px !default;
3
- $base-line-height: 1.231 !default;
4
-
5
- //
6
- // Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
7
- // Whatever parts of this port of YUI to Sass that are copyrightable, are Copyright (c) 2008, Christopher Eppstein. All Rights Reserved.
8
- //
9
-
10
- @mixin html5-boilerplate-fonts($family: $base-font-family, $size: $base-font-size, $line-height: $base-line-height) {
11
- body {
12
- font-size: $size;
13
- font-family: $family;
14
- line-height: $line-height; // hack retained to preserve specificity
15
- *font-size: small;
16
- }
17
-
18
- // Normalize monospace sizing:
19
- // en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
20
- pre, code, kbd, samp { font-family: monospace, sans-serif; }
21
- }
22
-
23
- @mixin font-smoothing {
24
- @warn "The 'font-smoothing' mixin has been deprecated as it made monospace too thin.";
25
- }
26
-
27
- // Sets the font size specified in pixels using percents so that the base
28
- // font size changes and 1em has the correct value. When nesting font size
29
- // declarations, within the DOM tree, the base_font_size must be the parent's
30
- // effective font-size in pixels.
31
- // Usage Examples:
32
- // .big
33
- // +font-size(16px)
34
- // .bigger
35
- // +font-size(18px)
36
- // .big .bigger
37
- // +font-size(18px, 16px)
38
- //
39
- // For more information see the table found at http://developer.yahoo.com/yui/3/cssfonts/#fontsize
40
- @mixin font-size($size, $base-font-size: $base-font-size) {
41
- font-size: ceil(percentage($size / $base-font-size));
42
- }
@@ -1,71 +0,0 @@
1
- @import "compass/typography/text/replacement";
2
- @import "compass/utilities/general/clearfix";
3
-
4
- //
5
- // Non-semantic helper classes
6
- // It's better to include these mixins in your own styles
7
- //
8
-
9
- @mixin html5-boilerplate-helpers {
10
- .ir { @include image-replacement; }
11
-
12
- .hidden { @include hidden; }
13
-
14
- .visuallyhidden { @include visually-hidden; }
15
-
16
- .clearfix { @include micro-clearfix; }
17
- }
18
-
19
- // Almost the same as compass replace-text
20
- // but adding direction: ltr
21
- @mixin image-replacement($img: none, $x: 50%, $y: 50%) {
22
- @include hide-text;
23
- direction: ltr;
24
- background-repeat: no-repeat;
25
- @if $img != none {
26
- background-image: image-url($img);
27
- background-position: $x $y;
28
- }
29
- }
30
-
31
- @mixin sized-image-replacement($img, $x: 50%, $y: 50%) {
32
- @include image-replacement($img, $x, $y);
33
- width: image-width($img);
34
- height: image-height($img);
35
- }
36
-
37
- // Hide for both screenreaders and browsers
38
- // css-discuss.incutio.com/wiki/Screenreader_Visibility
39
- @mixin hidden {
40
- display:none;
41
- visibility: hidden;
42
- }
43
-
44
- // Hide only visually, but have it available for screenreaders: by Jon Neal
45
- // www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden
46
- @mixin visually-hidden {
47
- border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
48
- // Extends the .visuallyhidden class to allow the element to be focusable
49
- // when navigated to via the keyboard: drupal.org/node/897638
50
- &.focusable:active, &.focusable:focus {
51
- clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto;
52
- }
53
- }
54
-
55
- // Hide visually and from screenreaders, but maintain layout
56
- @mixin invisible { visibility: hidden; }
57
-
58
- // The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements in most situations.
59
- // nicolasgallagher.com/micro-clearfix-hack/
60
- @mixin micro-clearfix {
61
- &:before, &:after { content: ""; display: table; }
62
- &:after { clear: both; }
63
- zoom: 1;
64
- }
65
-
66
-
67
- // The Magnificent CLEARFIX << j.mp/phayesclearfix
68
- @mixin magnificent-clearfix {
69
- @warn "The 'magnificent-clearfix' mixin has been deprecated. Use 'pie-clearfix' in compass core instead.";
70
- @include pie-clearfix;
71
- }
@@ -1,35 +0,0 @@
1
- @mixin html5-boilerplate-media {
2
- @warn "The 'html5-boilerplate-media' mixin has been deprecated.";
3
- }
4
-
5
- //
6
- // Print styles
7
- // Inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/
8
-
9
- @mixin media-print {
10
- * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
11
- -ms-filter: none !important; } // Black prints faster: sanbeiji.com/archives/953
12
- a, a:visited { color: #444 !important; text-decoration: underline; }
13
- a[href]:after { content: " (" attr(href) ")"; }
14
- abbr[title]:after { content: " (" attr(title) ")"; }
15
- .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } // Don't show links for images, or javascript/internal links
16
- pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
17
- thead { display: table-header-group; } // css-discuss.incutio.com/wiki/Printing_Tables
18
- tr, img { page-break-inside: avoid; }
19
- img { max-width: 100% !important; }
20
- @page { margin: 0.5cm; }
21
- p, h2, h3 { orphans: 3; widows: 3; }
22
- h2, h3{ page-break-after: avoid; }
23
- }
24
-
25
- @mixin media-orientation-portrait {
26
- @warn "The 'media-orientation-portrait' mixin has been deprecated.";
27
- }
28
-
29
- @mixin media-orientation-landscape {
30
- @warn "The 'media-orientation-landscape' mixin has been deprecated.";
31
- }
32
-
33
- @mixin media-mobile($optimize: true) {
34
- @warn "The 'media-mobile' mixin has been deprecated.";
35
- }
@@ -1,43 +0,0 @@
1
- // html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
2
- // v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
3
- // html5doctor.com/html-5-reset-stylesheet/
4
-
5
- @mixin html5-boilerplate-reset {
6
- html, body, div, span, object, iframe,
7
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
- abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
9
- small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
10
- fieldset, form, label, legend,
11
- table, caption, tbody, tfoot, thead, tr, th, td,
12
- article, aside, canvas, details, figcaption, figure,
13
- footer, header, hgroup, menu, nav, section, summary,
14
- time, mark, audio, video {
15
- margin: 0;
16
- padding: 0;
17
- border: 0;
18
- font-size: 100%;
19
- vertical-align: baseline;
20
- }
21
-
22
- article, aside, details, figcaption, figure,
23
- footer, header, hgroup, menu, nav, section {
24
- display: block;
25
- }
26
-
27
- blockquote, q { quotes: none; }
28
-
29
- blockquote:before, blockquote:after,
30
- q:before, q:after { content: ""; content: none; }
31
-
32
- ins { background-color: #ff9; color: #000; text-decoration: none; }
33
-
34
- mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
35
-
36
- del { text-decoration: line-through; }
37
-
38
- abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
39
-
40
- table { border-collapse: collapse; border-spacing: 0; }
41
-
42
- hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
43
- }