rails-boilerplate 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/.gitmodules +3 -0
- data/Gemfile +11 -0
- data/Guardfile +14 -0
- data/LICENSE +19 -0
- data/README.md +37 -0
- data/Rakefile +73 -0
- data/html5-boilerplate/.gitattributes +1 -0
- data/html5-boilerplate/.gitignore +41 -0
- data/html5-boilerplate/.htaccess +506 -0
- data/html5-boilerplate/404.html +38 -0
- data/html5-boilerplate/README.md +387 -0
- data/html5-boilerplate/apple-touch-icon-114x114-precomposed.png +0 -0
- data/html5-boilerplate/apple-touch-icon-57x57-precomposed.png +0 -0
- data/html5-boilerplate/apple-touch-icon-72x72-precomposed.png +0 -0
- data/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
- data/html5-boilerplate/apple-touch-icon.png +0 -0
- data/html5-boilerplate/build/build.xml +1051 -0
- data/html5-boilerplate/build/config/default.properties +116 -0
- data/html5-boilerplate/build/config/manifest.appcache +20 -0
- data/html5-boilerplate/build/config/project.properties +96 -0
- data/html5-boilerplate/build/createproject.sh +50 -0
- data/html5-boilerplate/build/project.xml +7 -0
- data/html5-boilerplate/build/runbuildscript.bat +6 -0
- data/html5-boilerplate/build/tools/ant-contrib-1.0b3.jar +0 -0
- data/html5-boilerplate/build/tools/closure-compiler-v1346.jar +0 -0
- data/html5-boilerplate/build/tools/csslint-rhino.js +11138 -0
- data/html5-boilerplate/build/tools/fulljshint.js +5904 -0
- data/html5-boilerplate/build/tools/fulljslint.js +6651 -0
- data/html5-boilerplate/build/tools/htmlcompressor-1.4.3.jar +0 -0
- data/html5-boilerplate/build/tools/jpegtran.exe +0 -0
- data/html5-boilerplate/build/tools/optipng-0.6.4-exe/LICENSE.txt +21 -0
- data/html5-boilerplate/build/tools/optipng-0.6.4-exe/optipng.exe +0 -0
- data/html5-boilerplate/build/tools/rhino.jar +0 -0
- data/html5-boilerplate/build/tools/yuicompressor-2.4.5.jar +0 -0
- data/html5-boilerplate/crossdomain.xml +25 -0
- data/html5-boilerplate/css/style.css +293 -0
- data/html5-boilerplate/demo/elements.html +493 -0
- data/html5-boilerplate/demo/hack.css +84 -0
- data/html5-boilerplate/demo/hack2.css +41 -0
- data/html5-boilerplate/demo/internet_explorer.png +0 -0
- data/html5-boilerplate/demo/test_tubes.png +0 -0
- data/html5-boilerplate/demo/tests.html +300 -0
- data/html5-boilerplate/favicon.ico +0 -0
- data/html5-boilerplate/humans.txt +43 -0
- data/html5-boilerplate/img/.gitignore +2 -0
- data/html5-boilerplate/index.html +79 -0
- data/html5-boilerplate/js/libs/jquery-1.6.3.js +9044 -0
- data/html5-boilerplate/js/libs/jquery-1.6.3.min.js +4 -0
- data/html5-boilerplate/js/libs/modernizr-2.0.6.min.js +4 -0
- data/html5-boilerplate/js/mylibs/.gitignore +2 -0
- data/html5-boilerplate/js/plugins.js +20 -0
- data/html5-boilerplate/js/script.js +8 -0
- data/html5-boilerplate/robots.txt +5 -0
- data/html5-boilerplate/test/index.html +31 -0
- data/html5-boilerplate/test/qunit/qunit.css +148 -0
- data/html5-boilerplate/test/qunit/qunit.js +1265 -0
- data/html5-boilerplate/test/tests.js +24 -0
- data/index.html.patch +62 -0
- data/lib/generators/boilerplate/install/install_generator.rb +33 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon-114x114-precomposed.png +0 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon-57x57-precomposed.png +0 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon-72x72-precomposed.png +0 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon-precomposed.png +0 -0
- data/lib/generators/boilerplate/install/templates/apple-touch-icon.png +0 -0
- data/lib/generators/boilerplate/install/templates/crossdomain.xml +25 -0
- data/lib/generators/boilerplate/install/templates/favicon.ico +0 -0
- data/lib/generators/boilerplate/install/templates/humans.txt +43 -0
- data/lib/generators/boilerplate/install/templates/index.html +60 -0
- data/lib/generators/boilerplate/install/templates/robots.txt +5 -0
- data/lib/generators/boilerplate/resource_helpers.rb +13 -0
- data/lib/rails_boilerplate.rb +7 -0
- data/lib/rails_boilerplate/version.rb +3 -0
- data/rails-boilerplate.gemspec +24 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/home_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/home/index.html.erb +1 -0
- data/test/dummy/app/views/layouts/application.html.erb +68 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +43 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +22 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +25 -0
- data/test/dummy/config/environments/production.rb +49 -0
- data/test/dummy/config/environments/test.rb +35 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/javascripts/application.js +2 -0
- data/test/dummy/public/javascripts/controls.js +965 -0
- data/test/dummy/public/javascripts/dragdrop.js +974 -0
- data/test/dummy/public/javascripts/effects.js +1123 -0
- data/test/dummy/public/javascripts/prototype.js +6001 -0
- data/test/dummy/public/javascripts/rails.js +191 -0
- data/test/dummy/public/stylesheets/.gitkeep +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/generators/fixtures/application.css +7 -0
- data/test/generators/fixtures/application.js +9 -0
- data/test/generators/generators_test_helper.rb +8 -0
- data/test/generators/install_generator_test.rb +51 -0
- data/test/rails_boilerplate_test.rb +16 -0
- data/test/test_helper.rb +12 -0
- data/vendor/assets/javascripts/modernizr.js +4 -0
- data/vendor/assets/javascripts/plugins.js +20 -0
- data/vendor/assets/stylesheets/reset.css +293 -0
- metadata +167 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
/*
|
2
|
+
style.css contains a reset, font normalization and some base styles.
|
3
|
+
|
4
|
+
credit is left where credit is due.
|
5
|
+
additionally, much inspiration was taken from these projects:
|
6
|
+
yui.yahooapis.com/2.8.1/build/base/base.css
|
7
|
+
camendesign.com/design/
|
8
|
+
praegnanz.de/weblog/htmlcssjs-kickstart
|
9
|
+
*/
|
10
|
+
|
11
|
+
/*
|
12
|
+
html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
|
13
|
+
v1.4 2009-07-27 | Authors: Eric Meyer & Richard Clark
|
14
|
+
html5doctor.com/html-5-reset-stylesheet/
|
15
|
+
*/
|
16
|
+
|
17
|
+
html, body, div, span, object, iframe,
|
18
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
19
|
+
abbr, address, cite, code,
|
20
|
+
del, dfn, em, img, ins, kbd, q, samp,
|
21
|
+
small, strong, sub, sup, var,
|
22
|
+
b, i,
|
23
|
+
dl, dt, dd, ol, ul, li,
|
24
|
+
fieldset, form, label, legend,
|
25
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
26
|
+
article, aside, canvas, details, figcaption, figure,
|
27
|
+
footer, header, hgroup, menu, nav, section, summary,
|
28
|
+
time, mark, audio, video {
|
29
|
+
margin:0;
|
30
|
+
padding:0;
|
31
|
+
border:0;
|
32
|
+
outline:0;
|
33
|
+
font-size:100%;
|
34
|
+
vertical-align:baseline;
|
35
|
+
background:transparent;
|
36
|
+
}
|
37
|
+
|
38
|
+
article, aside, details, figcaption, figure,
|
39
|
+
footer, header, hgroup, menu, nav, section {
|
40
|
+
display:block;
|
41
|
+
}
|
42
|
+
|
43
|
+
nav ul { list-style:none; }
|
44
|
+
|
45
|
+
blockquote, q { quotes:none; }
|
46
|
+
|
47
|
+
blockquote:before, blockquote:after,
|
48
|
+
q:before, q:after { content:""; content:none; }
|
49
|
+
|
50
|
+
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
|
51
|
+
|
52
|
+
ins { background-color:#ff9; color:#000; text-decoration:none; }
|
53
|
+
|
54
|
+
mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
|
55
|
+
|
56
|
+
del { text-decoration: line-through; }
|
57
|
+
|
58
|
+
abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }
|
59
|
+
|
60
|
+
/* tables still need cellspacing="0" in the markup */
|
61
|
+
table { border-collapse:collapse; border-spacing:0; }
|
62
|
+
|
63
|
+
hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
|
64
|
+
|
65
|
+
input, select { vertical-align:middle; }
|
66
|
+
/* END RESET CSS */
|
67
|
+
|
68
|
+
|
69
|
+
/* fonts.css from the YUI Library: developer.yahoo.com/yui/
|
70
|
+
Please refer to developer.yahoo.com/yui/fonts/ for font sizing percentages
|
71
|
+
|
72
|
+
There are three custom edits:
|
73
|
+
* remove arial, helvetica from explicit font stack
|
74
|
+
* we normalize monospace styles ourselves
|
75
|
+
* table font-size is reset in the HTML5 reset above so there is no need to repeat
|
76
|
+
*/
|
77
|
+
body { font:13px/1.231 sans-serif; *font-size:small; } /* hack retained to preserve specificity */
|
78
|
+
|
79
|
+
select, input, textarea, button { font:99% sans-serif; }
|
80
|
+
|
81
|
+
/* normalize monospace sizing
|
82
|
+
* en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
|
83
|
+
*/
|
84
|
+
pre, code, kbd, samp { font-family: monospace, sans-serif; }
|
@@ -0,0 +1,41 @@
|
|
1
|
+
body { font:13px/1.231 sans-serif; *font-size:small; } /* hack retained to preserve specificity */
|
2
|
+
body, select, input, textarea {
|
3
|
+
/* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */
|
4
|
+
color: #444;
|
5
|
+
/* set your base font here, to apply evenly */
|
6
|
+
/* font-family: Georgia, serif; */
|
7
|
+
}
|
8
|
+
|
9
|
+
/* Headers (h1,h2,etc) have no default font-size or margin,
|
10
|
+
you'll want to define those yourself. */
|
11
|
+
h1,h2,h3,h4,h5,h6 { font-weight: bold; }
|
12
|
+
h1 { font-size: 2em; }
|
13
|
+
select, input, textarea, button { font:99% sans-serif; }
|
14
|
+
|
15
|
+
/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
|
16
|
+
a:hover, a:active { outline: none; }
|
17
|
+
|
18
|
+
.current { background: #ccc; }
|
19
|
+
header span { padding: 0.2em 0.5em; display: inline-block; }
|
20
|
+
dd, h1, body, html { margin: 0;}
|
21
|
+
|
22
|
+
|
23
|
+
a, a:active, a:visited { color: #607890; }
|
24
|
+
a:hover { color: #036; }
|
25
|
+
.wrapper {width:200px; border:1px solid red;}
|
26
|
+
|
27
|
+
dl {margin:0 auto; width:900px;}
|
28
|
+
dt {background-color:#ccc; margin-bottom:20px; cursor:pointer; cursor:hand; padding:5px; font-weight:bold; }
|
29
|
+
dd {margin-bottom:30px;}
|
30
|
+
|
31
|
+
#clear-demo {width:500px; border:1px solid black;}
|
32
|
+
#clear-demo-l {width:200px; border:1px solid black; float:left;}
|
33
|
+
#clear-demo-r {width:200px; border:1px solid black; float:right;}
|
34
|
+
#clear-demo-b {width:200px; border:1px solid black;}
|
35
|
+
|
36
|
+
header {text-align:center;}
|
37
|
+
.show, .hide {color: #607890; cursor:pointer; cursor:hand;}
|
38
|
+
|
39
|
+
body {
|
40
|
+
padding-bottom: 200px;
|
41
|
+
}
|
Binary file
|
Binary file
|
@@ -0,0 +1,300 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
3
|
+
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
4
|
+
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
5
|
+
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
6
|
+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
7
|
+
<head>
|
8
|
+
<meta charset="utf-8">
|
9
|
+
|
10
|
+
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
11
|
+
Remove this if you use the .htaccess -->
|
12
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
13
|
+
|
14
|
+
<title>Boilerplate Test Suite</title>
|
15
|
+
<meta name="description" content="">
|
16
|
+
<meta name="author" content="">
|
17
|
+
|
18
|
+
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
|
19
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
20
|
+
|
21
|
+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
|
22
|
+
|
23
|
+
<!-- CSS: implied media=all -->
|
24
|
+
<link rel="stylesheet" href="../css/style.css">
|
25
|
+
<link rel="stylesheet" href="hack2.css">
|
26
|
+
|
27
|
+
<!-- All JavaScript at the bottom, except for Modernizr / Respond.
|
28
|
+
Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
|
29
|
+
For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
|
30
|
+
<script src="../js/libs/modernizr-2.0.6.min.js"></script>
|
31
|
+
</head>
|
32
|
+
|
33
|
+
<body>
|
34
|
+
|
35
|
+
<div id="container">
|
36
|
+
<header>
|
37
|
+
<br /><br /><h1>HTML5 Boilerplate CSS Hack Sheet</h1><br /><br />
|
38
|
+
</header>
|
39
|
+
|
40
|
+
|
41
|
+
<div id="main" style="display:block;">
|
42
|
+
<dl>
|
43
|
+
<dt>Hack 01 - Set default color</dt>
|
44
|
+
<dd>
|
45
|
+
HTML5 Boilerplate suggests the default color looks better when set to #444 instead of #000.<br />
|
46
|
+
<span style="color:black;">Web font default color</span>
|
47
|
+
</dd>
|
48
|
+
|
49
|
+
<dt>Hack 02 - Vertical Scroll Bar</dt>
|
50
|
+
<dd>
|
51
|
+
Click <a href="#" id="shorten">contract</a> | <a href="#" id="expand">expand</a> to see how Boilerplate forces a scrollbar in non-IE.
|
52
|
+
</dd>
|
53
|
+
|
54
|
+
<dt>Hack 03 - Accessible focus style</dt>
|
55
|
+
<dd>
|
56
|
+
Remove dotted outline around 'a' element on hover and on focus in certain browsers
|
57
|
+
<br /><br />
|
58
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
59
|
+
<br /><br />
|
60
|
+
<a href="#" class="preventDefault">Click me</a>
|
61
|
+
</dd>
|
62
|
+
|
63
|
+
<dt>Hack 04 - Pre Wrapping</dt>
|
64
|
+
<dd>
|
65
|
+
Default <code>pre</code> doesn't wrap text. Boilerplate forces <code>pre</code> to wrap text.
|
66
|
+
<br /><br />
|
67
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
68
|
+
<br /><br />
|
69
|
+
with wrapping:<br /><br />
|
70
|
+
<div style="height:115px;">
|
71
|
+
<div class="wrapper">
|
72
|
+
<pre>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</pre>
|
73
|
+
</div>
|
74
|
+
</div><br />
|
75
|
+
without wrapping:<br /><br />
|
76
|
+
<div class="wrapper">
|
77
|
+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
78
|
+
</div>
|
79
|
+
</dd>
|
80
|
+
|
81
|
+
<dt>Hack 05 - Remove default textarea scrollbar in IE</dt>
|
82
|
+
<dd>
|
83
|
+
IE shows a disabled scrollbar on empty <code>textarea</code>.<br><br>
|
84
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
85
|
+
<br /><br />
|
86
|
+
<form>
|
87
|
+
<textarea></textarea>
|
88
|
+
</form>
|
89
|
+
</dd>
|
90
|
+
|
91
|
+
<dt>Hack 06 - IE6,7 legend margin</dt>
|
92
|
+
<dd>
|
93
|
+
Left align form legend to the inner text in IE 6,7.<br /><br />
|
94
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
95
|
+
<br /><br />
|
96
|
+
<form>
|
97
|
+
<fieldset>
|
98
|
+
<legend>Information:</legend><br />
|
99
|
+
Name: <input type="text" size="30" /><br />
|
100
|
+
Email: <input type="text" size="30" /><br />
|
101
|
+
Date of birth: <input type="text" size="10" />
|
102
|
+
</fieldset>
|
103
|
+
</form>
|
104
|
+
</dd>
|
105
|
+
|
106
|
+
<dt>Hack 07 - Vertically align checkboxes, radios, text inputs with their label</dt>
|
107
|
+
<dd>
|
108
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
109
|
+
<br /><br />
|
110
|
+
<input type="radio" /> Option A <br /><br />
|
111
|
+
<input type="checkbox" /> Item B <br /><br />
|
112
|
+
Name: <input type="text" />
|
113
|
+
</dd>
|
114
|
+
|
115
|
+
<dt>Hack 08 - Hand cursor on clickable input elements</dt>
|
116
|
+
<dd>
|
117
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
118
|
+
<br /><br />
|
119
|
+
Input with type submit <input type="submit" value="submit" />
|
120
|
+
</dd>
|
121
|
+
|
122
|
+
|
123
|
+
<dt>Hack 09 - Webkit browsers form elements margin</dt>
|
124
|
+
<dd>
|
125
|
+
Webkit browsers add a 2px margin outside the chrome of form elements.<br /><br />
|
126
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
127
|
+
<br /><br />
|
128
|
+
<form>
|
129
|
+
<input type="submit" value="submit" /><br /><br />
|
130
|
+
<button type="button">Click Me!</button><br /><br />
|
131
|
+
<select><option>Default</option></select>
|
132
|
+
</form>
|
133
|
+
</dd>
|
134
|
+
|
135
|
+
<dt>Hack 10 - Make buttons width rendered correctly</dt>
|
136
|
+
<dd>
|
137
|
+
IE adds extra padding to <code>button</code>. This fixes the issue. <br /><br />
|
138
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
139
|
+
<br /><br />
|
140
|
+
<form>
|
141
|
+
<button type="button">Click Me!</button>
|
142
|
+
<button type="button">This is a really long button</button>
|
143
|
+
</form>
|
144
|
+
</dd>
|
145
|
+
|
146
|
+
<dt>Hack 11 - Bicubic resizing for non-native sized IMG</dt>
|
147
|
+
<dd>
|
148
|
+
IE7 hack to reduce distortion caused by image resizing <br /><br />
|
149
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
150
|
+
<br /><br />
|
151
|
+
<img src="../apple-touch-icon.png" width="27" /><br />
|
152
|
+
<img src="../apple-touch-icon.png" width="57" /><br />
|
153
|
+
<img src="../apple-touch-icon.png" width="157" /><br />
|
154
|
+
</dd>
|
155
|
+
|
156
|
+
<dt>Hack 12 - Hide visually</dt>
|
157
|
+
<dd>
|
158
|
+
Hide elements visually, but have it available for screen readers.
|
159
|
+
<br /><br />
|
160
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
161
|
+
<br /><br />
|
162
|
+
<div class="visuallyhidden">showing</div>
|
163
|
+
</dd>
|
164
|
+
|
165
|
+
<dt>Hack 13 - Image text replacement</dt>
|
166
|
+
<dd>
|
167
|
+
Replace text with images.
|
168
|
+
<br /><br />
|
169
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
170
|
+
<br /><br />
|
171
|
+
|
172
|
+
<div class="ir" style="background:url('../apple-touch-icon.png'); width:57px; height:57px;">Apple Touch Icon</div>
|
173
|
+
|
174
|
+
</dd>
|
175
|
+
|
176
|
+
<dt>Hack 14 - Clear Floats</dt>
|
177
|
+
<dd>
|
178
|
+
Clear Floated elements without extra markup.
|
179
|
+
<br /><br />
|
180
|
+
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
|
181
|
+
<br /><br />
|
182
|
+
<div id="clear-demo" class="clearfix">
|
183
|
+
<div id="clear-demo-l">text floated left</div><div id="clear-demo-r">text floated right</div>
|
184
|
+
</div>
|
185
|
+
<div id="clear-demo-b">unfloated text</div>
|
186
|
+
</dd>
|
187
|
+
|
188
|
+
|
189
|
+
<dt>Hack 15 - PNG fix</dt>
|
190
|
+
<dd>fix pngs for correct display in IE6
|
191
|
+
<br /> <br />
|
192
|
+
|
193
|
+
<div style="position:relative">
|
194
|
+
|
195
|
+
<!-- wassup gradient. -->
|
196
|
+
<div style="
|
197
|
+
position:absolute; height: 40px; background-color: #444444; background-image: -moz-linear-gradient(top, #444444, #999999);
|
198
|
+
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #444444),color-stop(1, #999999));
|
199
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#444444', EndColorStr='#999999');
|
200
|
+
">
|
201
|
+
|
202
|
+
<div class="png_bg" style="
|
203
|
+
border:1px solid #ddd; width:100px; padding:10px 10px 10px 50px;
|
204
|
+
display:inline-block; background:url(test_tubes.png) no-repeat 5px center;
|
205
|
+
">
|
206
|
+
<img src="internet_explorer.png" alt="IE is so awesome" />
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
</div>
|
210
|
+
</dd>
|
211
|
+
</dl>
|
212
|
+
</div>
|
213
|
+
<footer>
|
214
|
+
|
215
|
+
</footer>
|
216
|
+
</div> <!--! end of #container -->
|
217
|
+
|
218
|
+
|
219
|
+
<!-- Javascript at the bottom for fast page loading -->
|
220
|
+
|
221
|
+
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
|
222
|
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
|
223
|
+
<script>window.jQuery || document.write('<script src="../js/libs/jquery-1.6.3.min.js"><\/script>')</script>
|
224
|
+
|
225
|
+
|
226
|
+
<script>
|
227
|
+
$("#expand").click(function() {
|
228
|
+
$("#container").css("height","auto").css("overflow","");
|
229
|
+
return false;
|
230
|
+
});
|
231
|
+
|
232
|
+
$("#shorten").click(function() {
|
233
|
+
$("#container").css("height","300px").css("overflow","hidden");
|
234
|
+
return false;
|
235
|
+
});
|
236
|
+
|
237
|
+
$("#atag").click(function() {
|
238
|
+
return false;
|
239
|
+
});
|
240
|
+
|
241
|
+
$(".show").click(function(){
|
242
|
+
$(".show").addClass("current")
|
243
|
+
$(".hide").removeClass("current");
|
244
|
+
showStyle();
|
245
|
+
return false;
|
246
|
+
});
|
247
|
+
$(".hide").click(function(){
|
248
|
+
$(".hide").addClass("current")
|
249
|
+
$(".show").removeClass("current");
|
250
|
+
// freeze the size of each tests so the page doesnt jump.
|
251
|
+
$("dd").each(function(){
|
252
|
+
$(this).height( $(this).height() );
|
253
|
+
});
|
254
|
+
|
255
|
+
hideStyle();
|
256
|
+
return false;
|
257
|
+
});
|
258
|
+
|
259
|
+
var linkTags = $("link");
|
260
|
+
function hideStyle() {
|
261
|
+
// tee hee
|
262
|
+
$("link[href*='style.css']").attr("media","braille");
|
263
|
+
}
|
264
|
+
function showStyle() {
|
265
|
+
$("link[href*='style.css']").attr("media","all");
|
266
|
+
}
|
267
|
+
|
268
|
+
$(".preventDefault").click(function() {
|
269
|
+
return false;
|
270
|
+
});
|
271
|
+
|
272
|
+
$(function(){
|
273
|
+
$(".show").addClass("current");
|
274
|
+
})
|
275
|
+
</script>
|
276
|
+
|
277
|
+
|
278
|
+
<!-- scripts concatenated and minified via ant build script-->
|
279
|
+
<script defer src="../js/plugins.js"></script>
|
280
|
+
<script defer src="../js/script.js"></script>
|
281
|
+
<!-- end scripts-->
|
282
|
+
|
283
|
+
<!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
|
284
|
+
mathiasbynens.be/notes/async-analytics-snippet -->
|
285
|
+
<script>
|
286
|
+
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview'],['_trackPageLoadTime']];
|
287
|
+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
288
|
+
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
289
|
+
s.parentNode.insertBefore(g,s)}(document,'script'));
|
290
|
+
</script>
|
291
|
+
|
292
|
+
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
|
293
|
+
chromium.org/developers/how-tos/chrome-frame-getting-started -->
|
294
|
+
<!--[if lt IE 7 ]>
|
295
|
+
<script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
|
296
|
+
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
|
297
|
+
<![endif]-->
|
298
|
+
|
299
|
+
</body>
|
300
|
+
</html>
|
Binary file
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/* the humans responsible & colophon */
|
2
|
+
/* humanstxt.org */
|
3
|
+
|
4
|
+
|
5
|
+
/* TEAM */
|
6
|
+
<your title>: <your name>
|
7
|
+
Site:
|
8
|
+
Twitter:
|
9
|
+
Location:
|
10
|
+
|
11
|
+
/* THANKS */
|
12
|
+
Names (& URL):
|
13
|
+
|
14
|
+
/* SITE */
|
15
|
+
Standards: HTML5, CSS3
|
16
|
+
Components: Modernizr, jQuery
|
17
|
+
Software:
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
-o/-
|
22
|
+
+oo//-
|
23
|
+
:ooo+//:
|
24
|
+
-ooooo///-
|
25
|
+
/oooooo//:
|
26
|
+
:ooooooo+//-
|
27
|
+
-+oooooooo///-
|
28
|
+
-://////////////+oooooooooo++////////////::
|
29
|
+
:+ooooooooooooooooooooooooooooooooooooo+:::-
|
30
|
+
-/+ooooooooooooooooooooooooooooooo+/::////:-
|
31
|
+
-:+oooooooooooooooooooooooooooo/::///////:-
|
32
|
+
--/+ooooooooooooooooooooo+::://////:-
|
33
|
+
-:+ooooooooooooooooo+:://////:--
|
34
|
+
/ooooooooooooooooo+//////:-
|
35
|
+
-ooooooooooooooooooo////-
|
36
|
+
/ooooooooo+oooooooooo//:
|
37
|
+
:ooooooo+/::/+oooooooo+//-
|
38
|
+
-oooooo/::///////+oooooo///-
|
39
|
+
/ooo+::://////:---:/+oooo//:
|
40
|
+
-o+/::///////:- -:/+o+//-
|
41
|
+
:-:///////:- -:/://
|
42
|
+
-////:- --//:
|
43
|
+
-- -:
|