html5-starter 0.2.3b → 0.2.9b

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.
Files changed (44) hide show
  1. data/README.md +2 -2
  2. data/stylesheets/_html5-boilerplate.scss +1 -11
  3. data/stylesheets/html5-boilerplate/_helpers.scss +10 -17
  4. data/stylesheets/html5-boilerplate/_normalize.scss +214 -0
  5. data/stylesheets/html5-boilerplate/_print.scss +5 -10
  6. data/templates/project/files/404.html +42 -38
  7. data/templates/project/files/crossdomain.xml +8 -8
  8. data/templates/project/files/gitattributes.txt +1 -0
  9. data/templates/project/files/gitignore.txt +8 -3
  10. data/templates/project/files/htaccess +215 -158
  11. data/templates/project/files/humans.txt +43 -43
  12. data/templates/project/files/robots.txt +4 -5
  13. data/templates/project/index.html +34 -47
  14. data/templates/project/javascripts/libs/{jquery-1.5.1.js → jquery-1.7.1.js} +3125 -2175
  15. data/templates/project/javascripts/libs/jquery-1.7.1.min.js +4 -0
  16. data/templates/project/javascripts/libs/modernizr-2.5.3.min.js +4 -0
  17. data/templates/project/javascripts/plugins.js +4 -8
  18. data/templates/project/javascripts/script.js +1 -19
  19. data/templates/project/manifest.rb +6 -24
  20. data/templates/project/partials/_boilerplate-defaults.scss +7 -11
  21. data/templates/project/style.scss +28 -51
  22. metadata +10 -30
  23. data/stylesheets/html5-boilerplate/_fonts.scss +0 -38
  24. data/stylesheets/html5-boilerplate/_handheld.scss +0 -8
  25. data/stylesheets/html5-boilerplate/_reset.scss +0 -48
  26. data/stylesheets/html5-boilerplate/_styles.scss +0 -84
  27. data/templates/project/files/build/build.xml +0 -821
  28. data/templates/project/files/build/buildinfo.properties +0 -5
  29. data/templates/project/files/build/config/buildinfo.properties +0 -5
  30. data/templates/project/files/build/config/default.properties +0 -80
  31. data/templates/project/files/build/config/project.properties +0 -56
  32. data/templates/project/files/build/createproject.sh +0 -50
  33. data/templates/project/files/build/runbuildscript.bat +0 -5
  34. data/templates/project/files/build/tools/ant-contrib-1.0b3.jar +0 -0
  35. data/templates/project/files/build/tools/htmlcompressor-1.1.jar +0 -0
  36. data/templates/project/files/build/tools/jpegtran.exe +0 -0
  37. data/templates/project/files/build/tools/optipng-0.6.4-exe/LICENSE.txt +0 -21
  38. data/templates/project/files/build/tools/optipng-0.6.4-exe/optipng.exe +0 -0
  39. data/templates/project/files/build/tools/yuicompressor-2.4.5.jar +0 -0
  40. data/templates/project/handheld.scss +0 -8
  41. data/templates/project/javascripts/libs/dd_belatedpng.js +0 -13
  42. data/templates/project/javascripts/libs/jquery-1.5.1.min.js +0 -16
  43. data/templates/project/javascripts/libs/modernizr-1.7.min.js +0 -2
  44. data/templates/project/javascripts/rails.js +0 -156
data/README.md CHANGED
@@ -22,8 +22,8 @@ The `--javascripts-dir`, `--css-dir`, `--images-dir` and `--sass-dir` flags are
22
22
 
23
23
  Run `compass watch my_project` and the SCSS files will automatically get compiled to your Sass compilation directory whenever a change is made:
24
24
 
25
- assets/css/style.css
26
- assets/css/handheld.css
25
+ css/style.css
26
+ css/handheld.css
27
27
 
28
28
  To see the complete list of files generated by this extension, see the [HTML5 Starter](https://github.com/rizkysyazuli/html5-starter) project repo.
29
29
 
@@ -1,15 +1,5 @@
1
1
  @import "compass/css3";
2
2
 
3
- @import "html5-boilerplate/reset";
4
- @import "html5-boilerplate/fonts";
5
- @import "html5-boilerplate/styles";
3
+ @import "html5-boilerplate/normalize";
6
4
  @import "html5-boilerplate/helpers";
7
5
  @import "html5-boilerplate/print";
8
-
9
- @mixin html5-boilerplate {
10
- @include html5-boilerplate-reset;
11
- @include html5-boilerplate-fonts;
12
- @include html5-boilerplate-styles;
13
- @include html5-boilerplate-helpers;
14
- @include html5-boilerplate-print;
15
- }
@@ -1,33 +1,26 @@
1
1
  @mixin clearfix {
2
- zoom: 1;
2
+ *zoom: 1;
3
3
 
4
- &:before, &:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
4
+ &:before, &:after { content: ""; display: table; }
5
5
  &:after { clear: both; }
6
6
  }
7
7
 
8
8
  @mixin html5-boilerplate-helpers {
9
- /**
10
- * Non-semantic helper classes: please define your styles before this section.
11
- */
12
-
13
9
  /* For image replacement */
14
- .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
10
+ .ir { border:0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; }
15
11
 
16
- /* Hide for both screenreaders and browsers:
17
- css-discuss.incutio.com/wiki/Screenreader_Visibility */
18
- .hidden { display: none; visibility: hidden; }
12
+ /* Hide from both screenreaders and browsers: h5bp.com/u */
13
+ .hidden { display: none !important; visibility: hidden; }
19
14
 
20
- /* Hide only visually, but have it available for screenreaders: by Jon Neal.
21
- www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
15
+ /* Hide only visually, but have it available for screenreaders: h5bp.com/v */
22
16
  .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
23
- /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */
24
- .visuallyhidden.focusable:active,
25
- .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
17
+
18
+ /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
19
+ .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
26
20
 
27
21
  /* Hide visually and from screenreaders, but maintain layout */
28
22
  .invisible { visibility: hidden; }
29
23
 
30
- /* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
31
- j.mp/bestclearfix */
24
+ /* Contain floats: h5bp.com/q */
32
25
  .clearfix { @include clearfix; }
33
26
  }
@@ -0,0 +1,214 @@
1
+ $font-family: unquote('sans-serif') !default;
2
+ $font-size: 1em !default;
3
+ $line-height: 1.4 !default;
4
+ $font-color: #222 !default;
5
+ $link-color: #00e !default;
6
+ $link-hover-color: #06e !default;
7
+ $link-visited-color: #551a8b !default;
8
+ $selected-font-color: #fff !default;
9
+ $selected-background-color: #fe57a1 !default;
10
+
11
+
12
+ @mixin html5-boilerplate-normalize {
13
+ /* =============================================================================
14
+ HTML5 display definitions
15
+ ========================================================================== */
16
+
17
+ article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
18
+ audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
19
+ audio:not([controls]) { display: none; }
20
+ [hidden] { display: none; }
21
+
22
+
23
+ /* =============================================================================
24
+ Base
25
+ ========================================================================== */
26
+
27
+ /*
28
+ * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
29
+ * 2. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
30
+ */
31
+
32
+ html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
33
+
34
+ html, button, input, select, textarea { font-family: $font-family; color: $font-color; }
35
+
36
+ body { margin: 0; font-size: 1em; line-height: $line-height; }
37
+
38
+ /*
39
+ * Remove text-shadow in selection highlight: h5bp.com/i
40
+ * These selection declarations have to be separate
41
+ * Also: hot pink! (or customize the background color to match your design)
42
+ */
43
+
44
+ ::-moz-selection { background: $selected-background-color; color: $selected-font-color; text-shadow: none; }
45
+ ::selection { background: $selected-background-color; color: $selected-font-color; text-shadow: none; }
46
+
47
+
48
+ /* =============================================================================
49
+ Links
50
+ ========================================================================== */
51
+
52
+ a { color: $link-color; }
53
+ a:visited { color: $link-visited-color; }
54
+ a:hover { color: $link-hover-color; }
55
+ a:focus { outline: thin dotted; }
56
+
57
+ /* Improve readability when focused and hovered in all browsers: h5bp.com/h */
58
+ a:hover, a:active { outline: 0; }
59
+
60
+
61
+ /* =============================================================================
62
+ Typography
63
+ ========================================================================== */
64
+
65
+ abbr[title] { border-bottom: 1px dotted; }
66
+
67
+ b, strong { font-weight: bold; }
68
+
69
+ blockquote { margin: 1em 40px; }
70
+
71
+ dfn { font-style: italic; }
72
+
73
+ hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
74
+
75
+ ins { background: #ff9; color: #000; text-decoration: none; }
76
+
77
+ mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
78
+
79
+ /* Redeclare monospace font family: h5bp.com/j */
80
+ pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
81
+
82
+ /* Improve readability of pre-formatted text in all browsers */
83
+ pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
84
+
85
+ q { quotes: none; }
86
+ q:before, q:after { content: ""; content: none; }
87
+
88
+ small { font-size: 85%; }
89
+
90
+ /* Position subscript and superscript content without affecting line-height: h5bp.com/k */
91
+ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
92
+ sup { top: -0.5em; }
93
+ sub { bottom: -0.25em; }
94
+
95
+
96
+ /* =============================================================================
97
+ Lists
98
+ ========================================================================== */
99
+
100
+ ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
101
+ dd { margin: 0 0 0 40px; }
102
+ nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
103
+
104
+
105
+ /* =============================================================================
106
+ Embedded content
107
+ ========================================================================== */
108
+
109
+ /*
110
+ * 1. Improve image quality when scaled in IE7: h5bp.com/d
111
+ * 2. Remove the gap between images and borders on image containers: h5bp.com/i/440
112
+ */
113
+
114
+ img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
115
+
116
+ /*
117
+ * Correct overflow not hidden in IE9
118
+ */
119
+
120
+ svg:not(:root) { overflow: hidden; }
121
+
122
+
123
+ /* =============================================================================
124
+ Figures
125
+ ========================================================================== */
126
+
127
+ figure { margin: 0; }
128
+
129
+
130
+ /* =============================================================================
131
+ Forms
132
+ ========================================================================== */
133
+
134
+ form { margin: 0; }
135
+ fieldset { border: 0; margin: 0; padding: 0; }
136
+
137
+ /* Indicate that 'label' will shift focus to the associated form element */
138
+ label { cursor: pointer; }
139
+
140
+ /*
141
+ * 1. Correct color not inheriting in IE6/7/8/9
142
+ * 2. Correct alignment displayed oddly in IE6/7
143
+ */
144
+
145
+ legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
146
+
147
+ /*
148
+ * 1. Correct font-size not inheriting in all browsers
149
+ * 2. Remove margins in FF3/4 S5 Chrome
150
+ * 3. Define consistent vertical alignment display in all browsers
151
+ */
152
+
153
+ button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
154
+
155
+ /*
156
+ * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
157
+ */
158
+
159
+ button, input { line-height: normal; }
160
+
161
+ /*
162
+ * 1. Display hand cursor for clickable form elements
163
+ * 2. Allow styling of clickable form elements in iOS
164
+ * 3. Correct inner spacing displayed oddly in IE7 (doesn't effect IE6)
165
+ */
166
+
167
+ button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
168
+
169
+ /*
170
+ * Re-set default cursor for disabled elements
171
+ */
172
+
173
+ button[disabled], input[disabled] { cursor: default; }
174
+
175
+ /*
176
+ * Consistent box sizing and appearance
177
+ */
178
+
179
+ input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
180
+ input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
181
+ input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
182
+
183
+ /*
184
+ * Remove inner padding and border in FF3/4: h5bp.com/l
185
+ */
186
+
187
+ button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
188
+
189
+ /*
190
+ * 1. Remove default vertical scrollbar in IE6/7/8/9
191
+ * 2. Allow only vertical resizing
192
+ */
193
+
194
+ textarea { overflow: auto; vertical-align: top; resize: vertical; }
195
+
196
+ /* Colors for form validity */
197
+ input:valid, textarea:valid { }
198
+ input:invalid, textarea:invalid { background-color: #f0dddd; }
199
+
200
+
201
+ /* =============================================================================
202
+ Tables
203
+ ========================================================================== */
204
+
205
+ table { border-collapse: collapse; border-spacing: 0; }
206
+ td { vertical-align: top; }
207
+
208
+
209
+ /* =============================================================================
210
+ Chrome Frame Prompt
211
+ ========================================================================== */
212
+
213
+ .chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }
214
+ }
@@ -1,21 +1,16 @@
1
1
  @mixin html5-boilerplate-print {
2
- /**
3
- * Print styles.
4
- *
5
- * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
6
- */
7
2
  @media print {
8
- * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
9
- -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
10
- a, a:visited { color: $font-color !important; text-decoration: underline; }
3
+ * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
4
+ a, a:visited { text-decoration: underline; }
11
5
  a[href]:after { content: " (" attr(href) ")"; }
12
6
  abbr[title]:after { content: " (" attr(title) ")"; }
13
7
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
14
8
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
15
- thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
9
+ thead { display: table-header-group; } /* h5bp.com/t */
16
10
  tr, img { page-break-inside: avoid; }
11
+ img { max-width: 100% !important; }
17
12
  @page { margin: 0.5cm; }
18
13
  p, h2, h3 { orphans: 3; widows: 3; }
19
- h2, h3{ page-break-after: avoid; }
14
+ h2, h3 { page-break-after: avoid; }
20
15
  }
21
16
  }
@@ -1,38 +1,42 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>Page Not Found :(</title>
6
- <style>
7
- body { text-align: center;}
8
- h1 { font-size: 50px; text-align: center }
9
- span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
10
- body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
11
- ::-moz-selection{ background:#FF5E99; color:#fff; }
12
- ::selection { background:#FF5E99; color:#fff; }
13
- article {display:block; text-align: left; width: 500px; margin: 0 auto; }
14
-
15
- a { color: rgb(36, 109, 56); text-decoration:none; }
16
- a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
17
- </style>
18
- </head>
19
- <body>
20
- <article>
21
- <h1>Not found <span frown>:(</span></h1>
22
- <div>
23
- <p>Sorry, but the page you were trying to view does not exist.</p>
24
- <p>It looks like this was the result of either:</p>
25
- <ul>
26
- <li>a mistyped address</li>
27
- <li>an out-of-date link</li>
28
- </ul>
29
- </div>
30
-
31
- <script>
32
- var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),
33
- GOOG_FIXURL_SITE = location.host;
34
- </script>
35
- <script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
36
- </article>
37
- </body>
38
- </html>
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Page Not Found :(</title>
6
+ <style>
7
+ ::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
8
+ ::selection { background: #fe57a1; color: #fff; text-shadow: none; }
9
+ html { padding: 30px 10px; font-size: 20px; line-height: 1.4; color: #737373; background: #f0f0f0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
10
+ html, input { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
11
+ body { max-width: 500px; _width: 500px; padding: 30px 20px 50px; border: 1px solid #b3b3b3; border-radius: 4px; margin: 0 auto; box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff; background: #fcfcfc; }
12
+ h1 { margin: 0 10px; font-size: 50px; text-align: center; }
13
+ h1 span { color: #bbb; }
14
+ h3 { margin: 1.5em 0 0.5em; }
15
+ p { margin: 1em 0; }
16
+ ul { padding: 0 0 0 40px; margin: 1em 0; }
17
+ .container { max-width: 380px; _width: 380px; margin: 0 auto; }
18
+ /* google search */
19
+ #goog-fixurl ul { list-style: none; padding: 0; margin: 0; }
20
+ #goog-fixurl form { margin: 0; }
21
+ #goog-wm-qt, #goog-wm-sb { border: 1px solid #bbb; font-size: 16px; line-height: normal; vertical-align: top; color: #444; border-radius: 2px; }
22
+ #goog-wm-qt { width: 220px; height: 20px; padding: 5px; margin: 5px 10px 0 0; box-shadow: inset 0 1px 1px #ccc; }
23
+ #goog-wm-sb { display: inline-block; height: 32px; padding: 0 10px; margin: 5px 0 0; white-space: nowrap; cursor: pointer; background-color: #f5f5f5; background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1); background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1); background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1); background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1); -webkit-appearance: none; -moz-appearance: none; appearance: none; *overflow: visible; *display: inline; *zoom: 1; }
24
+ #goog-wm-sb:hover, #goog-wm-sb:focus { border-color: #aaa; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); background-color: #f8f8f8; }
25
+ #goog-wm-qt:focus, #goog-wm-sb:focus { border-color: #105cb6; outline: 0; color: #222; }
26
+ input::-moz-focus-inner { padding: 0; border: 0; }
27
+ </style>
28
+ </head>
29
+ <body>
30
+ <div class="container">
31
+ <h1>Not found <span>:(</span></h1>
32
+ <p>Sorry, but the page you were trying to view does not exist.</p>
33
+ <p>It looks like this was the result of either:</p>
34
+ <ul>
35
+ <li>a mistyped address</li>
36
+ <li>an out-of-date link</li>
37
+ </ul>
38
+ <script>
39
+ var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
40
+ </script>
41
+ <script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
42
+ </div>
@@ -1,15 +1,15 @@
1
1
  <?xml version="1.0"?>
2
2
  <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
3
3
  <cross-domain-policy>
4
-
5
-
4
+
5
+
6
6
  <!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
7
7
 
8
8
  <!-- Most restrictive policy: -->
9
9
  <site-control permitted-cross-domain-policies="none"/>
10
-
11
-
12
-
10
+
11
+
12
+
13
13
  <!-- Least restrictive policy: -->
14
14
  <!--
15
15
  <site-control permitted-cross-domain-policies="all"/>
@@ -17,9 +17,9 @@
17
17
  <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
18
18
  -->
19
19
  <!--
20
- If you host a crossdomain.xml file with allow-access-from domain=“*”
21
- and don’t understand all of the points described here, you probably
20
+ If you host a crossdomain.xml file with allow-access-from domain="*"
21
+ and don’t understand all of the points described here, you probably
22
22
  have a nasty security vulnerability. ~ simon willison
23
23
  -->
24
24
 
25
- </cross-domain-policy>
25
+ </cross-domain-policy>
@@ -0,0 +1 @@
1
+ * text=auto
@@ -8,16 +8,19 @@
8
8
  *.swp
9
9
  *.vi
10
10
  *~
11
+ *.sass-cache
11
12
 
12
13
  # OS or Editor folders
13
14
  .DS_Store
15
+ Thumbs.db
14
16
  .cache
15
17
  .project
16
18
  .settings
19
+ .tmproj
20
+ *.esproj
17
21
  nbproject
18
- thumbs.db
19
- *.tmproj
20
- *.kpf
22
+ *.sublime-project
23
+ *.sublime-workspace
21
24
 
22
25
  # Dreamweaver added files
23
26
  _notes
@@ -30,6 +33,8 @@ dwsync.xml
30
33
  # Folders to ignore
31
34
  .hg
32
35
  .svn
36
+ .CVS
37
+ intermediate
33
38
  publish
34
39
  .idea
35
40