Compare commits

...

508 Commits
v1.0 ... v3.0

Author SHA1 Message Date
Mathias Bynens
f9ebf5d2e9 Merge branch 'master' of github.com:h5bp/html5-boilerplate
* 'master' of github.com:h5bp/html5-boilerplate:
  2.5 version string in modernizr.
  update index for upgraded modernizr.
  update modernizr and yepnope to brand new latest.
2012-02-06 14:28:16 +01:00
Mathias Bynens
c93f45ff38 Normalize short URLs pointing to GitHub issues
Ref. #954.
2012-02-06 14:25:02 +01:00
Paul Irish
5dbb3b4b0a 2.5 version string in modernizr. 2012-02-05 22:20:28 -08:00
Paul Irish
deeb952314 update index for upgraded modernizr. 2012-02-05 22:03:22 -08:00
Paul Irish
0659528100 update modernizr and yepnope to brand new latest. 2012-02-05 22:03:01 -08:00
Mathias Bynens
4d65006439 .htaccess: Block access to Vim backup files correctly
Fixes #937.
2012-02-05 13:46:28 +01:00
Nicolas Gallagher
ab117fc461 Merge pull request #966 from dhaigh/master
Whitespace removal
2012-02-04 03:43:09 -08:00
Declan Haigh
5d2a6dbe3a obsessive compulsive whitespace removal 2012-02-04 21:31:25 +10:00
Nicolas Gallagher
cedd640083 Avoid using @defer on interdependent <script>s
Whenever a deferred script makes HTML be parsed into the DOM tree
(e.g. when innerHTML, insertAdjacentHTML(), appendChild(),
insertBefore(), replaceChild() etc. are used), IE < 10 may start
looking for more deferred scripts to run, immediately executing
them before the first deferred script has completed.

More information: https://github.com/paulirish/lazyweb-requests/issues/42

Close #961
2012-02-03 15:15:19 +00:00
Nicolas Gallagher
ac50fbc1e2 Update readme 2012-02-03 13:43:07 +00:00
Nicolas Gallagher
f96fed6942 Remove ant build script. Close #826
The ant build script is now in a separate, dedicated repo at:
http://github.com/h5bp/ant-build-script
2012-02-03 12:38:26 +00:00
Nicolas Gallagher
f2924da1b1 Merge pull request #960 from alrra/h5bp
added a more informative page link in the 'robots.txt' file
2012-02-03 03:45:37 -08:00
alrra
a111a79500 added a more informative page link in the 'robots.txt' file 2012-02-03 12:50:06 +02:00
Paul Irish
ce0c28932b update plugins.js to be jshint compliant. fixes #952 2012-01-31 17:31:07 -08:00
Paul Irish
d7e668235f Chromeframe prompt doesnt reccomend IE6 -> IE8. We need mitigate IE8's role as a boat anchor browser as much as possible 2012-01-31 12:26:54 -08:00
Nicolas Gallagher
8552d9543e Re-set default cursor for disabled input and button. Fix #887 2012-01-31 16:12:19 +00:00
Divya Manian
af3bd79de5 fixing the regexes, hopefully for the last time. Unsure where last night's commit went. Thanks @kblomqvist 2012-01-31 07:14:54 -08:00
Divya Manian
2dcdaf0104 fixing conflicts 2012-01-30 19:17:43 -08:00
Divya Manian
3cebea1671 fixing build script AGAIN. Wondering why it worked the first time around? :/ 2012-01-29 20:35:16 -08:00
Divya Manian
a5e31d6132 Updating build tools to their latest versions 2012-01-29 20:26:32 -08:00
Divya Manian
37470f8da6 Merge pull request #949 from adeelejaz/issue/201
Fixes #201 (finally!)
2012-01-29 19:55:50 -08:00
Adeel Ejaz
e1b81302bd Fixes #201 (finally!) 2012-01-30 03:23:23 +00:00
Divya Manian
965f3f1636 Fixing the appending of manifest when php tags exist. Fixes #912 2012-01-29 16:58:14 -08:00
Nicolas Gallagher
fddbaa3487 Move base font-family and color declaration to html.
Applying these shared styles to `html` ensures that people can set
their own overrides on `html` later in the CSS. If the starting
styles were on `body`, then setting them on `html` later in the
CSS would not have the intended effect.
2012-01-29 23:15:33 +00:00
Nicolas Gallagher
26d6be2479 Remove initial-scale from meta viewport. Fix #824 2012-01-29 23:09:12 +00:00
Divya Manian
611162c891 fixing damned whitespaces 2012-01-29 14:22:24 -08:00
Divya Manian
f5d13045c0 cleaning up style.css for chrome frame 2012-01-29 13:14:43 -08:00
Divya Manian
cff92881a8 updated the regex pattern to only look for href=<folder path>/style.css, so it doesnt matter where href is present in the link. Fixes #927 2012-01-29 13:06:10 -08:00
Divya Manian
2eb19a9c99 need opts.extra to be always present to stop build script from throwing an error that it is not found 2012-01-29 13:05:05 -08:00
Divya Manian
2b5f881ecc Made all the arguments for htmlcompressor part of config file. Also added optional additional arguments list in project.properties. Fixes #672 2012-01-29 11:21:39 -08:00
Divya Manian
6a304122b7 Reports of crashes using the chrome frame script check. Instead using the prompt message with a link to chrome frame or a newer IE. Fixes #695 2012-01-29 08:44:45 -08:00
Divya Manian
8b1f5ebe50 copying over the libraries, fixes #944 2012-01-29 08:19:50 -08:00
Nicolas Gallagher
4b213f9050 Merge branch 'master' of github.com:h5bp/html5-boilerplate 2012-01-26 15:33:29 +00:00
Nicolas Gallagher
0bf9143cd1 Additional tweaks to 404.
Simplify CSS styling the Google Search inputs. Improve the
appearance of the keyword input. Use `body` as wrapper. Add `lang`
attribute to `html`.

Thanks to @sindresorhus for suggestions and improvements in #941
2012-01-26 15:29:10 +00:00
Divya Manian
d269a55d45 OK, so this commit ensures that after removing mylibs. the build script works.
What it also ensures is that the file.js.bypass also still works. This means the script looks for these files within the parent js directory. Also finally these files will actually remain untouched compared to previous versions where they were minified/concatenated but just not included.

This means any js file in any folder not included by default in h5bp will be concatenated and minified and output as a single script-hsa.js file. If you do not want this, make sure to do <folder>/* in file.js.bypass in config/project.properties
2012-01-25 23:24:44 -08:00
Nicolas Gallagher
c04b0b57b5 Remove reference to Respond from HTML comment in head 2012-01-24 19:33:13 +00:00
Nicolas Gallagher
f6ccd1032d Simplify JS folder structure. Close #807 2012-01-24 19:31:12 +00:00
Nicolas Gallagher
af98e6fc51 Update Modernizr to remove Respond. Change placeholder Media Query.
Previous version of Respond was known to cause problems in IE8.
It was not necessary for developers who chose to write their CSS
in a 'mobile first' manner. Furthermore, there are some concerns
about the performance penalty Respond imposes upon legacy versions
of IE. If a future version of Respond is shown to be performant
and more reliable, it may be reconsidered for inclusion.

Along with this change is a simplification of the placeholder
Media Queries. Now there is only 1 Media Query example and it is
more clearly labelled as an example. The use of `em` units in the
condition is to reinforce the idea that Media Query breakpoints
should not be device-specific.

Fix #816
2012-01-24 19:19:52 +00:00
Nicolas Gallagher
f0358b52a5 Merge pull request #923 from muiku/gh-920
Fix gh-920
2012-01-24 03:27:27 -08:00
Nicolas Gallagher
1dd911f06a Update design of 404. Close #931
Implement and build upon the design provided by @sindresorhus.
Thanks!
2012-01-24 01:29:06 +00:00
Nicolas Gallagher
1738287ce9 Remove WebKit search cancel button from OS X
This WebKit pseudo-element is only displayed on OS X and is poorly
positioned once you begin to customise the style of a `search`
type input.
2012-01-22 22:01:18 +00:00
Nicolas Gallagher
5c02f406e4 Remove forced scrollbars on html element. Fix #918
This can cause problems for JavaScript plugins (such as modal or
drag-and-drop UIs) in Firefox.
2012-01-22 18:11:34 +00:00
Nicolas Gallagher
2dc1493df6 Allow legend text to wrap in older versions of Firefox. Fix #883 2012-01-22 18:09:44 +00:00
Nicolas Gallagher
79beb6c91c Merge pull request #762 from smashercosmo/master
Removing extra space around checkboxes and radio buttons in IE7
2012-01-22 10:06:28 -08:00
Paul Irish
26ea01971c buildscript properties file. inline example for excluding folders 2012-01-20 11:07:26 -08:00
Kim Blomqvist
4932b4070f It should have been a negative lookbehind
- In addition greater than character (>) in the regexp had to been escaped
2012-01-20 18:42:53 +02:00
Kim Blomqvist
27d1fda0dc Fix gh-920 2012-01-19 21:22:34 +02:00
Kim Blomqvist
e80a3e0637 Fix gh-912
- Add regexp lookahead to skip ?> (php-tag)
2012-01-19 20:41:01 +02:00
Paul Irish
a36d558702 Merge pull request #906 from gzoller/master
Support for js modules with cachebusting
2012-01-18 18:06:05 -08:00
Greg Zoller
3e0b0de9da Removed index.html example mods for module support. Comments in wiki. 2012-01-17 21:01:57 -06:00
Paul Irish
ce9c57c105 CFInstall: cannot have [defer] on a external/inline script combo. fixes #913 2012-01-17 08:47:11 -08:00
Mathias Bynens
f4cd5c18a3 Merge pull request #910 from mikealmond/master
Adding php dist files to the blocked extensions list
2012-01-12 22:06:13 -08:00
Mike Almond
0f9507774b Adding .dist files to the list of filetypes blocked to a user 2012-01-12 20:46:56 -05:00
Mathias Bynens
01296493e7 Revert e2ca1bf931
Ref. #891.
2012-01-07 21:18:58 +01:00
Nicolas Gallagher
8c4ce42af3 Remove author meta tag from head 2012-01-06 15:40:09 +00:00
Greg Zoller
3719f56c86 Added support for js modules 2012-01-05 17:46:14 -06:00
Divya Manian
b3755703b7 Merge pull request #873 from lukeb/patch-1
Requests shouldn't fail if the file or directory beginning with a period...
2011-12-31 07:18:15 -08:00
Divya Manian
f6830c199b Merge pull request #884 from tralston/master
Added target "copyall" in build.xml for the "dev" environment
2011-12-30 17:01:41 -08:00
Divya Manian
f93c8e1636 adding basedir for all tasks. Fixes #437 2011-12-30 07:48:38 -08:00
Divya Manian
5884c3a5fd Updating intermediate folder to not minify the bypassed files. Fixes. #694 2011-12-30 07:31:35 -08:00
Divya Manian
d5c0d33d10 removing imgcopy from buildscript as it is a remnant and not useful. Fixes #845 2011-12-30 07:18:15 -08:00
Divya Manian
b780098073 Merge pull request #881 from splendeo/fix-htaccess
make .htaccess (a bit) less restrictive
2011-12-30 06:53:34 -08:00
Divya Manian
2e1a7bf567 Merge pull request #872 from mikemorris/patch-1
Removed ' <!--<![endif' from regex search string for adding manifest attribute
2011-12-30 06:42:00 -08:00
Mathias Bynens
481dfc1966 Merge pull request #891 from laukstein/patch-2
Apache performance tweak with -SymLinksIfOwnerMatch and +FollowSymLinks
2011-12-28 02:45:25 -08:00
Binyamin Laukstein
71d5229611 Added Apache docs URL 2011-12-28 11:20:24 +02:00
Addy Osmani
32aabb23f7 Merge pull request #830 from mattyclarkson/master
404.html updates.
2011-12-27 16:46:03 -08:00
Mathias Bynens
fd52982efd Escape the . character correctly in FilesMatch directives
Fixes #898.
2011-12-24 08:56:42 +01:00
Mathias Bynens
9feb29f465 Omit .html and .txt from the AddCharset statement
As AddDefaultCharset already takes care of text/plain and text/html. This reverts 024600fd57.
2011-12-22 07:51:26 +01:00
Mathias Bynens
23bd766955 Only send CORS headers for images by default
Ref. #797.
2011-12-20 08:20:04 +01:00
Paul Irish
024600fd57 force utf-8 for .txt for funsies. 2011-12-17 12:06:58 -08:00
Binyamin Laukstein
e2ca1bf931 Apache Performance Tuning http://httpd.apache.org/docs/current/misc/perf-tuning.html#symlinks
Set -SymLinksIfOwnerMatch to avoid Apache extra system calls to check up on symlinks.
2011-12-14 21:58:54 +02:00
Paul Irish
2b5eeeef27 adding mimetype for .webapp, Mozilla's new app manifest type. more:
This content-type is neccessary apparently:
  https://developer.mozilla.org/en/Apps/The_Manifest
2011-12-13 11:51:33 -08:00
Nicolas Gallagher
e97689d7aa Merge pull request #885 from elexx/master
createproject.sh - removed test
2011-12-10 04:21:28 -08:00
elexx
791734033f Removed test from copy, because the directory has been removed long ago (0a80ebafd0). 2011-12-10 13:13:39 +01:00
Taylor Ralston
cafea9f090 Added target "copyall" in build.xml for the "dev" environment
Fixes issue with not copying non-optimized .css and .js files into the publish folder. If dev environment is selected, .css and .js aren't minified, thus they aren't copied over with existing "copy" target.
2011-12-09 13:04:21 -07:00
Enrique García Cota
d582fe5d8e made .htaccess less restrictive
The rule that made .htaccess restrict access to files (.log, .bak,
.sh, ...) was missing an escape sequence on its dot.

As a result, in addition filtering problematic files, it also filtered
some very valid urls. For example:

    mysite.com/blog        <- satisfies /.log$/ and gets filtered
    mysite.com/hit-refresh <- satisfies /.sh$/ and gets filtered

This change modifies .htacces so the dot is interpreted as a literal dot
character, avoiding those issues.
2011-12-07 19:02:42 +01:00
Luke Brookhart
a835a4dbb0 Requests shouldn't fail if the file or directory beginning with a period doesn't exist. Some CMS's will allow for appending ".qr" to a URL to get a QR code. 2011-11-30 11:54:35 -05:00
mikemorris
ba7d47f931 Removed ' <!--<![endif' from regex search string for adding manifest attribute. Works fine without this segment, and no longer prevents the build script from adding the manifest attribute if the IE conditional comments are removed. 2011-11-29 13:17:50 -05:00
Paul Irish
b1e3aa5fe4 Merge pull request #871 from drublic/master
Update jQuery to 1.7.1
2011-11-28 16:04:50 -08:00
drublic
a8e96a79a1 Update jQuery from version 1.7.0 to 1.7.1
Signed-off-by: drublic <hans@sa-designz.de>
2011-11-29 00:17:26 +01:00
drublic
d8e28f2f2e Merge branch 'master' of https://github.com/h5bp/html5-boilerplate 2011-11-29 00:10:18 +01:00
Mathias Bynens
2727fa23a6 Send CORS headers if browsers request them. This enables CORS-enabled images (@crossorigin). Closes #797. 2011-11-28 20:00:09 +01:00
Nicolas Gallagher
fdb58e6815 Merge pull request #866 from AD7six/feature/slim-gitignore
git ignore files do not need to ignore ignoring themselves
2011-11-23 04:45:00 -08:00
AD7six
875df4e9b5 git ignore files do not need to ignore ignoring themselves
To ensure the dir exists with git, a file is required - but it can be
completely empty.

Since the git ignore file is already in the repo it is not necessary to
not-ignore it - it is already tracked.

Though trivial these !.gitignore files are being understood by some to
mean that they must contain this exact syntax to ensure an empty folder
exists.
2011-11-23 13:20:56 +01:00
Nicolas Gallagher
a0cf284836 Merge pull request #862 from martinsik/master
removed _trackPageLoadTime - it's now enabled by default in Google Analytics
2011-11-20 12:05:52 -08:00
martinsik
a7b1a71624 removed _trackPageLoadTime because it's not necessary any more 2011-11-20 20:42:41 +01:00
Paul Irish
f40da1b529 minor. filename typo. 2011-11-17 12:37:37 -08:00
drublic
9efe695f4d jQuery minified was still 1.6.4. fixes #852
I don't know why pretty sure I updated it.
Anyway… here comes the latest version.

Signed-off-by: drublic <hans@sa-designz.de>
2011-11-17 09:32:53 -08:00
Paul Irish
05965584fc hey filename, take it easy. use your inside voice. 2011-11-17 09:32:22 -08:00
drublic
2dd8ad97f8 jQuery minified was still 1.6.4. fixes #852
I don't know why pretty sure I updated it.
Anyway… here comes the latest version.

Signed-off-by: drublic <hans@sa-designz.de>
2011-11-17 10:42:23 +01:00
Mathias Bynens
78533f248c Update Modernizr header with a more specific build link. 2011-11-11 09:09:34 +01:00
Paul Irish
8bf92b0989 Merge pull request #852 from drublic/master
Update jQuery to the latest version
2011-11-10 15:20:44 -08:00
drublic
8074f1584f Update jQuery form 1.6.4 to 1.7.0
Signed-off-by: drublic <hans@sa-designz.de>
2011-11-11 00:10:21 +01:00
Matt Clarkson
6122ef5ab1 Added the 'px' back in for the things that need it. Added consistent spacing to the styling. 2011-11-09 01:35:07 +00:00
Matt Clarkson
212afb9d43 Added padding to the inputs so that they look better. 'look' is always a personal opinion though... 2011-11-08 01:34:51 +00:00
Matt Clarkson
8278b4552d Updated styling to be more consistent and terse 2011-11-08 00:45:56 +00:00
Divya Manian
ce11ab3f8e Merge pull request #846 from mikealmond/master
Block access to backup/source/config files. Fixes issue #648
2011-11-07 07:44:14 -08:00
Mike Almond
8b634157e3 Block access to backup/source/config files. Fixes issue #648 2011-11-07 09:38:37 -05:00
Divya Manian
588e82c8dc Adding Opera extension to mimetypes and unsetting X-UA-Compatible for opera extensions. Fixes #827 2011-11-06 14:08:45 -08:00
Divya Manian
07634ccaf1 Merge pull request #838 from dplesca/master
Fix for issue #837
2011-11-06 01:33:54 -07:00
Paul Irish
1c18e9e8ca Merge pull request #842 from akavlie/master
Link fixes
2011-11-04 19:43:03 -07:00
Aaron Kavlie
821f3449aa Fix a couple of links in build files that still point to github.com/paulirish 2011-11-04 19:27:14 -07:00
Nicolas Gallagher
4a69c41694 Update urls in .htaccess to reference the new repo and wiki locations 2011-11-04 21:26:42 +00:00
dplesca
6290f4018c Fix for Issue #837. 2011-11-03 12:30:23 +02:00
Mathias Bynens
5718718cdd Use h5bp.com short URL for the viewport discussion. Closes #836. 2011-11-02 08:53:20 +01:00
Mathias Bynens
d526c488ea Merge pull request #836 from kridolfo/patch-1
Update short link for X-UA-Compatible issue in GitHub to point to new repo.
2011-11-02 00:51:53 -07:00
Kyle Ridolfo
e0b5b1c93d Update short link for X-UA-Compatible issue in GitHub to point to new repository. 2011-11-01 12:32:48 -03:00
Matt Clarkson
0eb2dc932a Removed dynamic URL 2011-10-31 09:07:41 +00:00
Paul Irish
fb6d9387ed Merge pull request #832 from adrienkohlbecker/master
Fixed PNG optimization on unix & macos
2011-10-30 11:24:56 -07:00
Adrien Kohlbecker
b0fd587b26 PNGs weren't optimized on unix & macos 2011-10-30 13:12:17 +01:00
Matt Clarkson
5347f874ed Added the URL to the mistyped address and some nicer styling to the text box and button 2011-10-28 17:15:20 +01:00
Nicolas Gallagher
d32dfb7a48 Update README repo urls 2011-10-26 22:00:32 +01:00
Nicolas Gallagher
380c4f80d8 Add default font-size and line-height styles.
Redeclare default font-size using ems (equates to 16px if user
has not altered their prefs). Set a common line-height value to
improve readability in most cases. Should keep people happy.

Ref #723
Close #825
2011-10-25 20:35:19 +01:00
Nicolas Gallagher
125a7a6840 Remove default font-size and line-height. Close #724
The previous font-size and line-height were fairly arbitrary
values taken from the much earlier use of YUI font defaults.
Remove them in favour of developers specifying their own values
based on the typographic requirements of their design.
2011-10-23 20:29:19 +01:00
Nicolas Gallagher
1437e0fefd Remove demo folder.
The demo files haven't been well maintained and are of limited
use. Remove them to simplify the boilerplate.

Ref #808
2011-10-23 20:19:47 +01:00
Nicolas Gallagher
0a80ebafd0 Remove test folder.
Over 80% of people polled are not using the qunit testing
provided. Remove it in favour of people using their unit testing
framework of choice.

Ref #808
2011-10-23 20:05:31 +01:00
Divya Manian
5fdb99f91b adding a depends -clean. fixes #692 2011-10-19 22:40:21 +05:30
Divya Manian
b72f114d95 Merge pull request #813 from dflydev/master
Handle absolute path for name and optionally accept name on command line
2011-10-19 09:52:41 -07:00
Divya Manian
90734c0b45 Adding all images in the img folder to the manifest. Fixes #760 2011-10-19 21:57:58 +05:30
Beau Simensen
f022785b64 Added internal documentation per #813 2011-10-19 10:25:24 -05:00
Paul Irish
d20c503e08 Merge pull request #818 from localpcguy/patch-1
Use REM for comments to avoid error messages on the DOS prompt for Window
2011-10-18 15:46:47 -07:00
localpcguy
a37f57addb Use REM for comments to avoid error messages on the DOS prompt for Windows users 2011-10-18 19:37:30 -03:00
Mathias Bynens
a87078d406 Cleaner, more obvious indentation in .htaccess. Closes #817. 2011-10-18 22:39:58 +03:00
Nicolas Gallagher
ecdb8d79ac Add line-height:0 to .ir helper class. Close #811
The .ir helper class's use of a negative text-indent is not enough
to hide the text of submit inputs in IE6/7. This deals with that
scenario.
2011-10-15 14:50:08 +01:00
Nicolas Gallagher
f3cc3a28e4 Rewrite the README.
Previous version was acting more like a changelog. This update
provides a better overview of the project, more useful information,
clearer description of how to get involved, and links to the
various project resources.
2011-10-15 12:03:26 +01:00
Beau Simensen
8d50ceb127 Handle absolute directories for "name" and optionally take name as command line argument. 2011-10-14 15:10:58 -05:00
Paul Irish
f1e9bb3f94 QUnit updated to 1.2.0pre - which is master, which is 1 day past the 1.1.0 release. :) 2011-10-11 16:19:51 -07:00
Mathias Bynens
5e213a872c Merge pull request #805 from samuelcarlton/patch-1
Added sublime-project and sublime-workspace files to ignore list
2011-10-10 21:41:53 -07:00
Sam Carlton
638f77206f Added sublime-project and sublime-workspace files to ignore list 2011-10-10 19:43:28 -05:00
Divya Manian
25fa9bedd7 Merge pull request #800 from jakearchibald/master
Changing IE class names to target browsers less than a version.
2011-10-09 13:40:09 -07:00
Jake Archibald
b230b84043 Changing IE class names to fall-back rather than target specifically.
Almost all layout bugs that exist in IE8 also exist in 6 & 7, almost all layout bugs in 7 exist in 6. With class names that target versions specifically I end up repeating my selectors for IE6, 7 & 8. This pattern of selectors avoids that. Developers should be more familiar with this behaviour, as this is how it works with the underscore & star hacks.

If a style needs to be applied to IE8 specifically, it could be set on .ltie9 then overridden in .ltie8 - this isn't pretty, but I've never had to target a specific IE in practice, so I'm going on the assumption that it's an edge-case.
2011-10-08 11:51:05 +01:00
Paul Irish
362eb87946 Merge pull request #799 from rigelglen/master
Validate 404 Page's HTML
2011-10-07 10:22:41 -07:00
rigelglen
eaf87bb500 Now Valid HTML 2011-10-07 22:20:22 +05:30
Divya Manian
5c85e31a21 Merge pull request #789 from unfinisheddev/master
Ammendment to CSS @import regex. This will now allow media queries like (min-width: 240px).
2011-10-06 06:07:54 -07:00
Dave Kirk
e17dc838a2 Ammended the regex used to match media queries for imported stylesheets as it wasn't matching qeuries containing certain characters 2011-09-26 10:39:07 +01:00
Nicolas Gallagher
3cdf17e1bc Prevent text inputs growing as you type in IE6/7.
Applying *overflow:visible to button/input causes text inputs to
grow to fit their content, even if an explicit, fixed width is
applied. It was originally included to remove excess inner
spacing on buttons and submit/reset/button-type inputs in IE6/7.

Fixing this bug in IE6 requires dropping the fix entirely because
there is no way to avoid it being applied to text inputs. If
there is a need to fix this excess spacing bug in IE6, then it
should be done using a class that is applied to the
necessary elements.

For IE7, the excess spacing fix can be moved into the ruleset
that targets button and submit/reset/button-type inputs. This
prevents text inputs from growing.
2011-09-22 18:47:24 +01:00
Divya Manian
994cd0801d Merge pull request #768 from mathiasbynens/master
.htaccess improvement: check if mod_headers is available before matching webfont files (instead of the other way around)
2011-09-18 07:02:47 -07:00
Divya Manian
e130ae32c2 Merge pull request #767 from whitman/master
Add -p flag to mkdir
2011-09-18 06:58:16 -07:00
Mathias Bynens
d8a3970e14 Check if mod_headers is available before matching webfont files. This tweak also makes it more consistent with the rest of the .htaccess file. 2011-09-18 10:21:33 +03:00
Alex Whitman
d98f4ae88e Add -p flag to mkdir
- Allows parent directories to be automatically created if necessary
2011-09-17 16:18:39 +02:00
Nicolas Gallagher
6673ce68ff Merge pull request #766 from rigelglen/master
Update Demo Pages with jQuery 1.6.4
2011-09-17 02:17:41 -07:00
Rigel Glen
535918a3ed Updated Demo Page with jQuery 1.6.4 2011-09-17 14:41:22 +05:30
Mathias Bynens
32fcb33604 Merge pull request #765 from rigelglen/master
Added jQuery version 1.6.4
2011-09-17 00:59:46 -07:00
Rigel Glen
d13dfdef40 Added jQuery 1.6.4 2011-09-17 13:05:54 +05:30
Rigel Glen
b23de068c5 Added jQuery 1.6.4 2011-09-17 13:03:30 +05:30
rigelglen
7f94518f6b Added jQuery 1.6.4 2011-09-17 12:52:39 +05:30
Vladislav Shkodin
53aded7bf3 added fixed sizes for checkbox and radio button. this will remove extra space around them in IE7 2011-09-16 04:49:49 +04:00
Divya Manian
7a984c7f84 Changing the default elements inside body. Fixes #203 2011-09-15 17:35:35 -07:00
Divya Manian
8aa70882b4 Removing prefixed box-shadow resets in print styles. 2011-09-13 17:48:53 -03:00
Divya Manian
fe2d67c9c0 Merge pull request #754 from lekkerduidelijk/patch-2
Reset box shadow, including vendor prefixes, for @media print.
2011-09-13 13:48:08 -07:00
RL
115bce064e Reset box shadow, including vendor prefixes, for @media print. 2011-09-13 14:06:55 +03:00
Paul Irish
4994e375a1 Merge pull request #748 from santry/patch-1
A couple grammatical fixes to README.md
2011-09-10 15:51:34 -07:00
Sean Santry
64c9e797b8 A couple grammatical fixes to README.md 2011-09-10 18:52:28 -03:00
Paul Irish
ceb6e819d3 Merge pull request #742 from owilliams/master
Fix small typo in createproject.sh
2011-09-06 14:49:44 -07:00
owilliams
ea716a8f46 Fixed small typo in createproject.sh
Fixed small typos in build/createproject.sh comments: "sucess" -> "success"
2011-09-06 18:20:45 -03:00
Mathias Bynens
715957bffc Correct Expires header to application/x-font-ttf. Fixes #740. 2011-09-06 18:43:15 +03:00
Divya Manian
981e448b36 Merge pull request #733 from inxilpro/master
Added project.xml to build process
2011-09-05 07:02:03 -07:00
Divya Manian
439778a2be Updated the readme to remove duplicate reference to modernizr.load Fixes #737 2011-09-04 15:52:12 -07:00
Mathias Bynens
7b3c30d8c8 Merge pull request #736 from philipvonbargen/master
Added new version of jQuery (1.6.3)
2011-09-03 04:54:26 -07:00
Shi Chuan
70a836c34d added new console api methods to console.log protection 2011-09-03 14:02:43 +08:00
Shi Chuan
75ac1ea512 Merge pull request #735 from joeytrapp/master
Modify .esproj ignore rule.
2011-09-01 20:46:59 -07:00
Philip von Bargen
d07c233422 Added new version of jQuery 2011-09-01 22:08:37 +02:00
Paul Irish
bd72320946 Merge pull request #734 from Danmer/master
Set the file encoding for ant
2011-09-01 09:14:36 -07:00
Joey Trapp
2ba5f9d80d Added * to .esproj as Espresso saves the file as [Project Name].esproj. 2011-09-01 08:16:55 -05:00
Egor Kotlyarov
9b32ced2b4 build script: set the default file encoding for ant. Closes #729. 2011-09-01 10:39:19 +06:00
Chris Morrell
a6bc1d4e69 Added project.xml for custom build targets
Added a project.xml file which should be used for custom build targets
that are specific to your project, and updated build.xml to import that
file.
2011-08-31 17:45:04 -04:00
Divya Manian
2df9a9a863 Merge pull request #732 from Zearin/patch-2
Not 100% complete, but added lots of backticks to make files, paths, and
2011-08-29 13:05:23 -07:00
Tony
19dd8f8318 Not 100% complete, but added lots of backticks to make files, paths, and inline code easier to spot (and read!). 2011-08-29 22:04:00 -03:00
Mathias Bynens
4caa411f01 Switch back to the optimized asynchronous Google Analytics snippet.
Don’t set .async = true, since it only makes a difference in Firefox 3.6. See http://mathiasbynens.be/notes/async-analytics-snippet#async for details.

This reverts commit d9cc711ea1 and fixes #720.
2011-08-25 23:02:07 +02:00
Nicolas Gallagher
fccc4824cc Merge pull request #721 from callum85/patch-1
Move media query placeholders to follow immediately after the primary styles, and before the helper classes
2011-08-24 05:44:18 -07:00
callum85
ef3c095baf Moved media queries placeholder immediately after primary (mobile-first) styles... and before the non-semantic helper classes. 2011-08-25 00:22:08 +02:00
Rutger de Knijf
3f22747dfb Changed -rev target description and renamed to -intro 2011-08-23 10:11:56 +03:00
Paul Irish
ca028d751f Merge pull request #716 from rdeknijf/master
build.xml -rev target clarity
2011-08-22 13:24:37 -07:00
Divya Manian
97c7ae774a adding .esproj to gitignore. Fixes #709 2011-08-21 10:40:31 -07:00
Divya Manian
6727b542ac changing hash length to 7 from 40 2011-08-21 10:24:25 -07:00
Matthew Donoughe
ad423ae3fd add hash.length property to control hash lengths
re: issue gh-696
2011-08-21 16:39:00 +00:00
Paul Irish
e88011b49b closure compiler. renamed the jar. fixup of 3233fdeeec 2011-08-20 22:42:46 -07:00
Divya Manian
01f0a9f999 Adding * to scope zoom to only IE6,7. fixes #710 2011-08-20 20:08:52 -07:00
Divya Manian
d2223de26a Merge branch 'master' of https://github.com/roblarsen/html5-boilerplate into closurecompiler 2011-08-20 19:44:44 -07:00
Rob Larsen
8cbb3e7155 moved the two options (warning_level and compilation_level) into the properites files 2011-08-17 22:03:33 -04:00
Paul Irish
7467f9c041 script.js and style.css both retain their path prefix when being swapped out for the concatenated/minified versions.
by @darktable.
https://github.com/paulirish/html5-boilerplate/pull/705

fixes #705.

Squashed commit of the following:

commit 6a77f5ad7e
Author: calvin <calvin@darktable.com>
Date:   Tue Aug 16 21:12:10 2011 -0700

    adding file.root.script property to default.properties

    this allows people to rename script.js and not have to hack through
    build.xml to keep everything working.

commit 27011c0a1a
Author: calvin <calvin@darktable.com>
Date:   Tue Aug 16 20:51:48 2011 -0700

    revert to normal css and js paths

    had testing paths in the previous commit.

(and some other merge happiness)
2011-08-17 16:14:07 -07:00
Rob Larsen
3233fdeeec issue #658 switch to Closure Compiler for js minification 2011-08-17 12:42:24 -04:00
Paul Irish
2aabc1a276 Merge pull request #697 from nwtn/master
Typo in index.html
2011-08-16 12:22:21 -07:00
David Newton
c8b87abd01 Comment typo: "an manifest" -> "a manifest" 2011-08-16 15:14:10 -03:00
Divya Manian
94b065fb97 okay so it uses the css.sha to replace just style.css to sha.css now 2011-08-15 23:51:52 -07:00
Divya Manian
9fe23b3f82 removed css prefixers, doing this with regex now. Updated regex to not add another /css/ 2011-08-15 23:37:13 -07:00
Paul Irish
c4ef2f3810 build script: tweak script replacement regex for whitespace. Thank You @kevva !
@kevva wins the award for fastest bug report. 118 minutes after a bug was committed,
  he reported it in #html5. And then I was a dunce and couldn't identify the fix
  and so he provided that too.

Not a trivial bug either.

Best bug reporter ever. :D

--

This is a fix for 2fb6ac3369...bf52178981 (L2R62)
2011-08-15 11:52:53 -07:00
calvin
2fef4ad3ee concatenated style.css retains the prefix from the pre-concat style.css.
fixes #686
2011-08-15 10:43:58 -07:00
Paul Irish
20976f7af4 minor. comment wording cleanup. 2011-08-15 10:39:06 -07:00
Paul Irish
64561534a6 kill off misleading css concat statements. build script docs will more clearly illuminate how css concat/importing works.
fixes #687
2011-08-15 10:10:08 -07:00
Paul Irish
bf52178981 Merge pull request #685 from drublic/master
Prefixing CSS/JS resources automatically, idea from @drublic, technique from @darktable
2011-08-15 09:42:11 -07:00
drublic
e1702af5ee Make gae_css.dir property available to use prefixes for any build type
Thanks to @darktable for commit 67d427c1a9

Signed-off-by: drublic <hans@sa-designz.de>
2011-08-15 10:09:04 +02:00
drublic
014b6d4153 Revert "Add option to prefix CSS and JS references in buildscript"
This reverts commit b139b59797.

Signed-off-by: drublic <hans@sa-designz.de>
2011-08-15 10:05:47 +02:00
drublic
b139b59797 Add option to prefix CSS and JS references in buildscript
Syntax: add `(prefix: /file/to/dir/)` in comment before reference
Signed-off-by: drublic <hans@sa-designz.de>
2011-08-14 20:53:16 +02:00
drublic
6c1e80d6dd Whitespace in comments surrounding CSS and JS references
Add whitespace before closing tags of comments surrounding CSS and JS references to maintain consistency with other comments

Signed-off-by: drublic <hans@sa-designz.de>
2011-08-14 20:50:52 +02:00
Paul Irish
2fb6ac3369 Merge pull request #682 from anthracite/cleanup
whitespace .. global code cleanup.. random protip: I use `git gui blame filename.ext` because the git gui has a Blame Previous Commit feature so i can go back beyond the blame commit it found. Useful with commits like this.
2011-08-14 11:25:49 -07:00
Martin Balfanz
50daa07400 Added blank lines to script.js 2011-08-14 20:18:14 +02:00
Mathias Bynens
b44a12d78c Enable gzip compression for favicons. Closes #684. 2011-08-14 11:04:32 +03:00
Martin Balfanz
fa785e0ef0 global code cleanup
includes: - tab removal from html/css
          - fixing indention
          - removing unnecessary whitespaces
2011-08-13 16:19:01 +02:00
Nicolas Gallagher
c86f2b52c0 Remove excess space around radio and checkbox in IE8/9 2011-08-13 02:55:02 +01:00
Paul Irish
0062417c59 Merge pull request #681 from philipvonbargen/master
@import url() starting with // did break build process
2011-08-12 08:53:05 -07:00
philipvonbargen
98e4ca1edf @import urls in the CSS starting with "//" were breaking the build process 2011-08-12 17:31:31 +02:00
Mathias Bynens
21933ec1ee Simplify .gitattributes. Thanks, @jeffbyrnes! See 7f31896fd4 (commitcomment-525963) for more details. 2011-08-11 14:29:58 +03:00
Mathias Bynens
85d8cc0ac0 Check if mod_autoindex.c is available before disabling the Indexes option. Fixes #676. Thanks, @sstok! 2011-08-11 12:42:35 +03:00
Nicolas Gallagher
1311138f3e Update monospace font stack fix to work in Safari 4 2011-08-11 10:40:27 +01:00
Divya Manian
1b3690933e Merge pull request #671 from chendrix/master
Clarified the wording on the new Modernizr build with Respond.js
2011-08-10 15:32:45 -07:00
Christopher Hendrix
b87096669b Clarified wording on the custom Modernizr build containing Respond.js 2011-08-10 18:29:28 -04:00
Paul Irish
7344d57029 Merge pull request #669 from SlexAxton/master
Defer chromeframe too.
2011-08-10 12:17:32 -07:00
Alex Sexton
060315b591 Add the defer attribute to the CF scripts at the bottom. 2011-08-10 14:12:08 -05:00
Divya Manian
5f2b327595 Adding Gavrismo to contrib list 2011-08-10 10:30:43 -07:00
Paul Irish
1e79f7b7df update readme. :) 2011-08-10 00:17:59 -07:00
Paul Irish
c6dbb2892b appcache improvements. :) details below:
* reduce extra code via <isset>
* `manifest` becomes its own ant task now
* html files are populated into the manifest based on ant config
* add manifest attribute to the HTML tag via Ant. So only the config switch is neccessary
* appcache back to disabled by default. toggling it on in config/project.properties is all that's neccessary
2011-08-09 23:07:03 -07:00
Paul Irish
c996f0e685 manifest: js files now include path, correctly. manifest file now named manifest.appcache. 2011-08-09 22:09:45 -07:00
Paul Irish
f10f81a241 build script: manifest improvements (and others).. details:
manifest:
* use a manifest template from build/config/cache.appcache each time
* the only css we are dropping in is the style.css (SHA'd), no more
* we include all js/mylibs/bypass files and all js/libs/*.min.js files
* change default name of manifest to `cache.appcache` but im gonna change it to `manifest.appcache` next commit ;)
* state of repo temporarily includes a manifest but that will revert soon

other:
* rename libs-concat.js to mylibs-concat.js for logic's sake
* add @defer attribute to concated script
2011-08-09 21:59:47 -07:00
Paul Irish
00be05ad18 minor. whitespace in build script following manifest commit (with tabs! omg!) 2011-08-09 19:53:52 -07:00
Nicolas Gallagher
5fe1dda97c Make .hidden class more robust. Update a couple of helper class links to point to better and/or more up-to-date explanations. 2011-08-10 02:10:06 +02:00
calvin
113c98f849 excluding the mylibs directory was preventing minification/concatenation of libs. 2011-08-09 16:50:46 -07:00
Paul Irish
341992913b Merge pull request #652 from gmoulin/master
appcache manifest generation via Ant
2011-08-09 16:49:07 -07:00
Mathias Bynens
1c9145c9a7 Correct Modernizr reference in the test file. Fixes #662. Thanks @jaimie-van-santen! 2011-08-09 15:46:33 +03:00
Mathias Bynens
e13f5c4b37 Add a note saying php_flag expose_php Off should be moved to php.ini since it doesn’t work in .htaccess files. Closes #611. 2011-08-09 10:25:10 +03:00
Paul Irish
d9cc711ea1 google analytics now uses Modernizr.load/yepnope for great justice. fixes #542 2011-08-08 23:03:16 -07:00
Paul Irish
55a7fc2466 Merge pull request #646 from ngryman/master
generic rewrite rules (for virtual host context)
2011-08-08 22:52:06 -07:00
Paul Irish
99e140ded4 Merge pull request #659 from Zearin/patch-1
Mostly lots of <code> additions for consistency.  (I think it also
2011-08-08 08:34:37 -07:00
Tony
b77d30c2f0 Mostly lots of &lt;code&gt; additions for consistency. (I think it also enhances readability, so inline code snippets are obvious.) Few minor capitalization & typographical fixes. 2011-08-08 11:46:58 -03:00
Paul Irish
b191777977 @import inlining should skip anything starting with http.. fixes #657 2011-08-07 18:28:54 -07:00
Divya Manian
6241a72722 Fixing typo in .htaccess file 2011-08-07 18:23:52 -07:00
Paul Irish
2db692e752 build script. flexibility in @import syntax parsing. fixes #649 forreal forreal 2011-08-05 09:20:29 -07:00
Guillaume Moulin
6c5b7719a6 optionnal manifest declaration 2011-08-05 13:44:00 +02:00
Guillaume Moulin
a314d2a374 modifications for manifest awareness in build.xml
with variables in project.properties for handling manifest file name,
javascripts files names and stylesheets files names

the javascripts files will be replaced by the concatened and minified
version
idem for the stylesheets
2011-08-05 13:24:11 +02:00
Guillaume Moulin
a81061aa37 modifications for manifest awareness in build.xml
with variable in project.properties for handling manifest file name

the javascripts files replaced are those concatened and minified by the
build
idem for the stylesheets
2011-08-05 13:00:13 +02:00
Guillaume Moulin
0d4f6b5261 Merge remote-tracking branch 'upstream/master'
Conflicts resolved:
	build/build.xml
	index.html
2011-08-05 10:58:57 +02:00
Guillaume Moulin
a556e26cb5 changes for site.manifest awareness 2011-08-05 10:50:39 +02:00
Paul Irish
cde1dc4f5c build script. flexibility in @import syntax parsing. fixes #649 2011-08-04 17:13:23 -07:00
Paul Irish
601fbc59e4 build script. flexibility in @import syntax parsing. fixes #649 2011-08-04 16:41:53 -07:00
Paul Irish
28b1ca4b8c build script. slightly cleaner css comment style, because we can. credit: darktable, again. 2011-08-04 16:39:46 -07:00
Nicolas Gallagher
ce89a01bef Separate [hidden] from .hidden helper class. Slight tidy up of CSS comments and consistently use h5bp.com shorturl throughout the file 2011-08-03 10:44:29 +01:00
Nicolas Gallagher
7b95c57e2d Remove webkit-overflow-scrolling inserted after a merge. See #577 2011-08-03 09:34:55 +01:00
Nicolas Gallagher
44bc2bdbf2 Leave default webkit-tap-highlight-color in place. Modify vertical alignment of td. Add a:hover color. 2011-08-03 09:32:56 +01:00
Nicolas Gryman
00d8b84570 generic rewrite rules (working in virtual host context) 2011-08-02 18:12:28 +02:00
Paul Irish
458cd36309 build script. protect legacy stylesheets from being consumed and digested by the css-split task. thx darktable. 2011-08-01 23:43:52 -07:00
Paul Irish
586dc13ee3 build script. update @import regex for max compat. 2011-08-01 23:08:23 -07:00
Paul Irish
4238aed87d Merge branch 'css-split' 2011-08-01 22:49:13 -07:00
Paul Irish
a48bd3ebaf Merge branch 'css-split' of https://github.com/darktable/html5-boilerplate into css-split 2011-08-01 21:29:32 -07:00
calvin
19450d9d59 using ==|== syntax to mark export delimiters 2011-08-01 21:21:38 -07:00
calvin
7fca5a5adf using ==|== syntax to mark export delimiters 2011-08-01 21:20:59 -07:00
Paul Irish
7668263695 improved gzip detection for turtletappers. thx @bluesmoon and @marcelduran. fixes #624 2011-08-01 14:40:11 -07:00
Paul Irish
d15376de77 merge in latest darktable. 2011-08-01 13:20:59 -07:00
Mathias Bynens
413822acbc Update demo pages so they use the smaller viewport <meta>. 2011-08-01 15:03:18 +02:00
calvin
11158f1bc4 the css-split method was using @import syntax that isn't standard. 2011-07-31 22:50:25 -07:00
calvin
0b15ec7d6d now the "url" chunk of the @import is optional. 2011-07-31 22:29:19 -07:00
calvin
05d83fcfeb there was a rogue "url" in the replacement regexp. 2011-07-31 22:13:40 -07:00
Gavrisimo
53f28cf87d moved border rule to .ir ruleset 2011-08-01 11:53:58 +08:00
Gavrisimo
4c9e90e730 added small fix for buttons and inputs that have .ir class 2011-08-01 11:53:58 +08:00
Jonathan Fielding
c537194736 jQuery updated to 1.6.2 2011-08-01 11:53:58 +08:00
Rob Larsen
fd345072df Added a task to test for ant version and fail (with instructions) if it's below 1.8.2. 2011-08-01 11:53:57 +08:00
meleyal
51d121e79a fix formatting 2011-08-01 11:53:57 +08:00
meleyal
777f14fa93 remove redundant color rule 2011-08-01 11:53:57 +08:00
meleyal
0a7a6f82bf also use black for links when printing, refs #147 2011-08-01 11:53:57 +08:00
Robert Ros
2792309862 Use substring matching in gzip filter_module and re-enable gzip for some common MIME-types 2011-08-01 11:53:56 +08:00
Robert Ros
976fc0f9ba Workaround for broken regexes in mod_filter
More info: #549
Fixes: #441 #499 #535
2011-08-01 11:53:56 +08:00
darktable
aee2fa8f29 fixes issue where I was including the for task using a namespace 2011-07-31 20:41:05 -07:00
Paul Irish
73f6f66039 minor. buildscript whitespace. 2011-07-31 19:51:50 -07:00
Paul Irish
e7e087854b merged in darktable's css-split branch. 2011-07-31 19:05:13 -07:00
Paul Irish
b14b4a60d1 Normalize javascript mimetype to application/javascript. Reduces cruft. Thx @danbeam for the work. Fixes #485 2011-07-31 18:50:38 -07:00
Paul Irish
8b168ad3b1 Merge pull request #642 from roblarsen/master
two changes for issue  #615
2011-07-31 18:49:20 -07:00
Rob Larsen
f2f59b04ec added a quick example to the file.bypass.js explanation 2011-07-31 19:44:10 -04:00
Paul Irish
727ef92941 htmlcompressor up to 1.4.3 because he fixed #550, #641 for us. \o/ 2011-07-31 15:23:01 -07:00
Mathias Bynens
5c97f98709 Smaller viewport <meta> — 1 is the new 1.0. 2011-07-31 23:32:30 +03:00
Paul Irish
41246db22b build script: htmlcompressor preserves SSI comments by default. fixes #640, #503. 2011-07-31 12:06:15 -07:00
Rob Larsen
3611b4c4e0 issue 615 "files.bypass does not work." It was a case of unraveling where/when the scripts were getting copied over and changing the way, slightly, that the excluded file list was fed to the script. 2011-07-31 09:12:28 -04:00
Nicolas Gallagher
299291e6be Add defer where possible to demo page scripts. Ref #542 2011-07-31 11:26:32 +01:00
Nicolas Gallagher
0d1c066177 Update demo pages to use modernizr 2.0.6 custom build including respond.js 2011-07-31 11:01:32 +01:00
Paul Irish
ffb7b8e359 update to htmlcompressor 1.4.2. fixes #608 2011-07-30 20:11:42 -07:00
Paul Irish
401e66acb4 script defer added where possible. H5BP is now faster!! thx @beverloo. fixes #542 2011-07-30 20:05:07 -07:00
Paul Irish
e49793fdc9 upgrade modernizr to 2.0.6 custom build including respond.js. 2011-07-30 19:53:03 -07:00
Paul Irish
a36c13a732 update the (disabled) SSI for better windows compatibility. fixes #628. code from @aldomx. 2011-07-30 19:40:59 -07:00
Paul Irish
9a6433f92f Vary: User-Agent is no more. We send our X-UA-Compat to everyone, but only for html payloads.. fixes #414 2011-07-30 19:22:39 -07:00
Paul Irish
bd88d3e457 update htmlcompressor to 1.4.1 from 1.1. Outstanding issue upstream but tracked in #608 2011-07-30 19:21:29 -07:00
Paul Irish
58816dd249 golf down the size of @kirbysayshi's log() improvement. ref #498.
I steal log's apply method instead of reaching all the way into Function.prototype.apply.. timesaver and bytesaver. just really ugly.
And then a nasty ( omg ? ternary : action); as a statement. But hey.. sometimes you feel like a nut.

kirby, plz code review this. :p
tested in Chrome 14.
2011-07-30 17:32:47 -07:00
Paul Irish
8175a1c468 console.markTimeline() is now console.timeStamp(). http://webk.it/63317 2011-07-30 17:19:20 -07:00
Paul Irish
ebe10aef34 improve the console.log nerfing for ff3.6. thx @drewcovi. fixes #455 2011-07-30 17:19:20 -07:00
Paul Irish
e52f6af093 Merge pull request #498 from kirbysayshi/master
log() arguments are no longer wrapped in extraneous array
2011-07-30 17:19:04 -07:00
Nicolas Gallagher
559bc56768 Re-fix IE6/7 list-style:none problem. See #263 2011-07-30 15:56:26 +01:00
Mathias Bynens
78641b530f Change the short URL for more <head> tips to something that works in all browsers. Fixes #631. 2011-07-27 19:55:38 +03:00
Paul Irish
6fee66d751 more docs for php_flag html_errors Off. thx @leek. fixes #622 2011-07-23 19:25:54 -07:00
Shi Chuan
c23caaf1d8 #614 changed replace directory to intermediate 2011-07-24 01:24:03 +08:00
Paul Irish
b4229a4d49 Merge pull request #619 from Phize/patch/3
allow access from all domains for .ttc webfont.
2011-07-22 10:56:05 -07:00
Phize
3f3f95de4e allow access from all domains for .ttc webfont. 2011-07-23 02:08:21 +09:00
Phize
acdae81735 add settings for Atom. 2011-07-22 10:00:53 -07:00
Nicolas Gallagher
7f52ddf680 Reintroduce search input normalization. Avoids significant WebKit styling limitations. 2011-07-22 17:22:49 +01:00
Nicolas Gallagher
dc1604c697 Ensure IE6 applies styles for <audio>, <canvas>, and <video>; ensure modern browsers hide <audio> without controls 2011-07-20 20:38:37 +01:00
Nicolas Gallagher
d965db4c5e Add {background-color: transparent} to .ir helper class. Removes default background-color from elements like <button>. Ref #609 2011-07-20 14:56:51 +01:00
Nicolas Gallagher
f78016f555 Make HTML5 [hidden] attribute hide an element from screenreaders and browsers that support the attribute selector. Close #607 2011-07-20 14:27:48 +01:00
Mathias Bynens
c72a81c5e9 Use example.com instead of domain.com, as per RFC 2606. Fixes #613. 2011-07-20 02:03:51 -07:00
Mathias Bynens
639cb05ba0 Typo. Fixes #612. 2011-07-19 23:16:45 -07:00
Nicolas Gallagher
5416bcd103 Add {resize: vertical} to <textarea> 2011-07-16 11:46:46 +02:00
Divya Manian
37446e28af Merge pull request #599 from Gavrisimo/master
Fix buttons and inputs that have .ir class attached
2011-07-12 10:09:09 -07:00
Nicolas Gallagher
a709725b06 Set {overflow:auto} for <button> and <input> in <table> in IE6/7. Avoids numerous layout and whitespace issues that result from setting {overflow:visible} to fix the odd inner spacing of those form elements. 2011-07-12 14:00:11 +02:00
Nicolas Gallagher
d3dc77b211 Add link to CSS wiki in style.css. Close #575 2011-07-12 13:54:04 +02:00
Mathias Bynens
7db1acaeb5 Follow the H5BP coding style guidelines for quotes. http://h5bp.com/docs/#The-markup 2011-07-11 03:00:55 -07:00
Gavrisimo
29c7e128cd moved border rule to .ir ruleset 2011-07-09 21:32:23 +02:00
Gavrisimo
09a8c715cb added small fix for buttons and inputs that have .ir class 2011-07-09 20:53:16 +02:00
Divya Manian
536b6ace6b Merge pull request #595 from rros/master
Modify apache mod_deflate .htaccess triggers
2011-07-06 06:20:28 -07:00
Mathias Bynens
f4a43fd2e4 Merge pull request #596 from jonathan-fielding/master
jQuery Updated to 1.6.2
2011-07-06 04:17:30 -07:00
Jonathan Fielding
c80cc610e2 jQuery updated to 1.6.2 2011-07-06 12:15:11 +01:00
Robert Ros
fca04b1e3e Merge remote-tracking branch 'rmsr/master'
Conflicts:
	.htaccess
2011-07-06 00:48:08 +02:00
Divya Manian
e150d87944 updating csslint to latest version 2011-07-05 15:26:41 -07:00
Divya Manian
b131981d84 Now you can set images.bypass with a list of image files or folders within the img directory that you do not want to be optimized. Fixes #564 2011-07-04 13:56:44 -07:00
Divya Manian
d19dea0572 1. Added a bypass option that lets you bypass certain folders/files in mylibs dir. 2. Cleaned up the human error fix from yesterday to use if else conditions like rest of the targets. 3. Cleaned up usage of mylibs to refer to dir.js.mylibs everywhere 2011-07-04 12:54:51 -07:00
Divya Manian
f5e2524c96 Merge pull request #593 from roblarsen/master
Test for ant version to head off problems with ant < 1.8.2
2011-07-04 07:55:01 -07:00
Rob Larsen
3fb77e0cfa Added a task to test for ant version and fail (with instructions) if it's below 1.8.2. 2011-07-04 10:04:45 -04:00
Divya Manian
e3367bc021 removing concatinated css files from wherever they are linked to with link tag. Fixes #452 2011-07-04 01:42:37 -07:00
Divya Manian
e12930a242 removing unnecessary check on -clean for -invalid 2011-07-04 01:01:25 -07:00
Divya Manian
8e0864f509 with great trepidation I have tested this build conditions to make sure these values ., .., ./, ../, / for dir.publish do not result in a successful build. I have tested all the combinations. Fixes #393 2011-07-04 00:49:33 -07:00
Paul Irish
93f0e38c51 update chromeframe install to 1.0.3. thx @davidmurdoch. 2011-07-01 12:27:19 -04:00
Nicolas Gallagher
705493215e Merge pull request #586 from meleyal/print-styles
Use black for links when printing, refs #147
2011-07-01 09:13:48 -07:00
meleyal
02e749a3f4 fix formatting 2011-06-29 22:58:33 +02:00
meleyal
d9146777db remove redundant color rule 2011-06-29 22:52:19 +02:00
Paul Irish
f7da334d36 Merge pull request #589 from BrunoDeBarros/master
csslint without whitespace
2011-06-29 13:03:44 -07:00
Bruno De Barros
8628fef73e csslint
Does the same as https://github.com/paulirish/html5-boilerplate/pull/567 but without the whitespace, as per @paulirish's request.
2011-06-29 20:58:36 +01:00
meleyal
35872f2e58 also use black for links when printing, refs #147 2011-06-29 13:00:10 +02:00
Mike Almond
ddd7ae43a5 Updating TTF mimetype to fix Google Chrome warning 2011-06-28 20:46:08 -07:00
Divya Manian
954d45cbcb added vertical-align: middle to fix borders on image containers. Fixes #440 2011-06-28 20:29:49 -07:00
Paul Irish
f569ad9813 Merge pull request #585 from rros/master
Workaround for bug in mod_filter

Fixes #441. Fixes #499. Fixes #535.
Closes #549. (the grouping ticket)
Ref #576 (the similar PR)
2011-06-28 17:25:47 -07:00
Robert Ros
210fbe0947 Merge remote-tracking branch 'upstream/master' 2011-06-29 01:13:10 +02:00
Robert Ros
86581681eb Use substring matching in gzip filter_module and re-enable gzip for some common MIME-types 2011-06-29 01:12:12 +02:00
Paul Irish
26a391c60d Revert "Added native iOS inertia scrolling" Details below:
We had discussion here: fbfbbd5dad
and here: https://github.com/paulirish/html5-boilerplate/pull/577

And @irae's explanation helped clarify why this is a bad call as a default:
https://github.com/paulirish/html5-boilerplate/pull/577#issuecomment-1444977

Thanks everyone for weighing and sorry for jumping on the excitement train a bit too fast! :)

This reverts commit 14ba59535e.
Ref #577
2011-06-26 22:26:18 -07:00
darktable
b125225228 added css-split task to split a tagged css file into multiple files
added 'css-split' task to build.xml and changed style.css back to the main version, with "- h5bp-export: filename - " tags in it to allow automated splitting into root file with @imports and satellite files.
2011-06-26 13:15:14 -07:00
Nicolas Gallagher
b61671ccc6 Merge pull request #580 from thatcoolguy/master
Format svg ruleset the same way other rulesets are formatted
2011-06-26 09:43:17 -07:00
Frank
91f39213da changed svg formatting 2011-06-26 12:48:44 -03:00
darktable
036b1e5e4b more robust @import regexp. 2011-06-25 22:15:08 -07:00
darktable
401250356e swapped style.css for property name ${file.root.stylesheet}
swapped to property name to make the build process more flexible.
2011-06-25 20:08:14 -07:00
darktable
2d09367d64 another experimental method for concatenating css files
This build converts the @import statement in style.css to tags that are then swapped for the file contents.
It also converts the media types after the import to @media ... {} style tags.
2011-06-25 19:38:14 -07:00
darktable
0928889ddc new way to concat css files together
adding css/concat directory with the css files named in the order they should be included.
the build script then concats these files in alphabetical order and replaces their block with the concated file using the same method as the .js swap (looks for the surrounding comments).
2011-06-25 12:53:03 -07:00
Paul Irish
fbfbbd5dad Merge pull request #577 from joeybaker/master
Added native iOS inertia scrolling (avaliable in iOS5 beta2)
2011-06-25 12:28:32 -07:00
Joey Baker
14ba59535e Added native iOS inertia scrolling (avaliable in iOS5 beta2) 2011-06-25 12:11:28 -07:00
Robert Ros
6edd2cb9b2 Workaround for broken regexes in mod_filter
More info: #549
Fixes: #441 #499 #535
2011-06-25 11:55:11 +02:00
Mathias Bynens
5e26749118 Encourage people to send the X-UA-Compatible HTTP header instead of leaving it in the HTML, to avoid edge case issues. Fixes #378. 2011-06-24 12:00:32 -07:00
Paul Irish
b84c9aeb50 Merge pull request #573 from retlehs/master
protocol-relative URL for Chrome Frame install prompt
2011-06-23 22:39:52 -07:00
Ben Word
4c8e51a459 protocol-relative URL for the Chrome Frame install prompt 2011-06-23 23:08:35 -06:00
Paul Irish
8ace459e0e move chromeframe to bottom of page after the other scripts. also reference exact version # for higher expires headers. 2011-06-23 21:13:25 -07:00
Paul Irish
c03be7e137 Merge pull request #572 from adeelejaz/upstream
Prompt IE 6 users to install Chrome Frame. #495
2011-06-23 21:09:24 -07:00
Adeel Ejaz
bca1d30716 Prompt IE 6 users to install Chrome Frame. #495 2011-06-24 01:47:06 +01:00
Paul Irish
82c2125692 Merge pull request #570 from botskonet/master
very minor gitignore additions of textmate project folder, and older CVS folders
2011-06-23 09:20:48 -07:00
Mike Botsko
5572931889 adding back in lost sass_cache gitignore 2011-06-23 08:58:18 -07:00
Shi Chuan
b37d518d81 removed trailing slash redirects in htacess
a wiki page is created for people who want to use it: https://github.com/paulirish/html5-boilerplate/wiki/Proper-usage-of-trailing-slash-redirects
it is also under the Make it better section of the wiki https://github.com/paulirish/html5-boilerplate/wiki/Make-it-better
this has been discussed at many issues/tickets/mailinglist posts #493 #515
2011-06-23 22:57:34 +08:00
Paul Irish
d5d05a36cd if you type <input type=search> then you're getting a search input. ohmagawd. 2011-06-22 21:21:02 -07:00
Mike Botsko
94c63ee571 adding textmate project and CVS folders to gitignore 2011-06-22 15:21:35 -07:00
Nicolas Gallagher
b49ca17032 Add <svg> overflow fix for IE9. Group <img> and <svg> rules in an 'embedded content' section of CSS file. Add {cursor:pointer} to <label> element. 2011-06-21 18:53:11 +01:00
Nicolas Gallagher
6aba703c89 Add <img> and <svg> to elements.html 2011-06-21 18:49:34 +01:00
Nicolas Gallagher
73b878bf9e Merge branch 'master' of github.com:paulirish/html5-boilerplate 2011-06-21 00:36:34 +01:00
Nicolas Gallagher
ddaf66a515 Major: Now using css normalization instead of css reset + building up default styles
We're pulling in http://github.com/necolas/normalize.css/ developed by Nicolas Gallagher along with Jonathan Neal.

normalize.css retains useful browser defaults and includes several common fixes to improve cross-browser (desktop and mobile) styling consistency.

Lots of research has gone into normalize, verifying what are the default user agent styles provided by each browser. We can very specifically change only the ones we need to instead of the bulldozer approach.

Why this is great news:

* Who likes being so damn redudant and declaring: em, i { font-style: italic; }
* By using normalization instead of a reset + building up default styles, we use less styles and save bytes
* Less noise in your dev tools: when debugging, you don't have to trawl through every reset selector to reach the actual style that is causing the issue.
* More details here: http://necolas.github.com/normalize.css/

We're really happy to get user feedback on this, as we think style normalization is a better direction than resetting; and want to make sure you do too. :) Leave a comment here or in the Google Group: http://h5bp.com/group

Fixes #412
Fixes #500
Fixes #534
Closes #456

Links #566
2011-06-21 00:34:58 +01:00
Nicolas Gallagher
e9f342b91f Update HTML elements demo: reduce repetition, remove deprecated elements, add certain HTML5 elements, add more comprehensive collection of HTML5 input types, include different form markup styles, add form elements box-sizing test 2011-06-20 22:11:06 +01:00
Paul Irish
6d8a8ef805 Merge pull request #548 from darktable/master
minify css and js files that are not being concatenated and fix optipng reference.
2011-06-20 11:21:45 -07:00
Divya Manian
31025414e9 Merge pull request #568 from disusered/master
.htaccess comment normalization & ignore .sass-cache in Git
2011-06-20 09:58:41 -07:00
Carlos Rosquillas
4f2003b5fe Added SASS Cache to git exclusion list 2011-06-20 09:39:18 -07:00
Carlos Rosquillas
bfe9a84023 Modified htaccess for consistent capitalization and comment style 2011-06-20 09:35:34 -07:00
Nicolas Gallagher
929eeccc5f Add simpler escape for to demo html files 2011-06-19 23:42:14 +01:00
Paul Irish
2f370b8156 Merge pull request #565 from toddhgardner/patch-1
Added DOCTYPE so Eclipse and other IDE's do not complain about the lack o
2011-06-16 21:45:17 -07:00
toddhgardner
d97a2ff818 Added DOCTYPE so Eclipse and other IDE's do not complain about the lack of schema.
http://stackoverflow.com/questions/363768/disable-dtd-warning-for-ant-scripts-in-eclipse
2011-06-16 20:20:39 -07:00
Nicolas Gallagher
ff68f939b6 Merge branch 'master' of github.com:paulirish/html5-boilerplate 2011-06-15 23:12:45 +01:00
Nicolas Gallagher
1a54c57370 Remove unnecessary units from 0 values in box-shadow. Remove unnecessary h1-6 {font-weight:bold} declaration. Improve white-space consistency. 2011-06-15 23:12:01 +01:00
Mathias Bynens
0b5d68c0af Merge pull request #559 from rdeknijf/patch-1
typo
2011-06-14 08:31:06 -07:00
rdeknijf
bec3000690 typo 2011-06-14 08:25:26 -07:00
Nicolas Gallagher
bc1b720915 Switch to outline:0 for accesible focus treatment. Avoids Opera bug when combined with transitions. Also saves bytes. 2011-06-14 12:35:03 +01:00
Nicolas Gallagher
dab7d7ebc7 Merge pull request #557 from johnattebury/master
Correct comment typo
2011-06-12 03:11:10 -07:00
John Attebury
b4432895b5 typo 2011-06-12 00:32:35 -05:00
Mathias Bynens
7610e41dad Typo. 2011-06-08 11:29:16 -07:00
Mathias Bynens
b10c7c04c4 Simpler escape for </script>. See http://mths.be/etago for more information. 2011-06-07 13:32:25 -07:00
Paul Irish
83f3d6ab09 move tap-highlight to hang with the other hot pinks. 2011-06-06 19:17:47 -07:00
darktable
ef41c51637 updating windows optipng and jpegtran paths to include ${basedir} 2011-06-06 13:47:42 -07:00
darktable
a2c89c0964 removed duplicated block. 2011-06-06 10:18:15 -07:00
Calvin Rien
dc31d7c852 build doesn't fail in mylibs directory doesn't exist.
removed undefined property from css swap regexp.
2011-06-06 10:13:48 -07:00
Calvin Rien
e02dd35b51 minification affects all .css and .js files in /css and /js dirs,
not just the ones explicitly included in concatenation.

using a more flexible regexp to replace style.css in html files.
2011-06-06 10:00:20 -07:00
Audioname
452c2836b2 Merge branch 'master' of github.com:darktable/html5-boilerplate
Conflicts:
	build/build.xml
2011-06-06 09:49:13 -07:00
Audioname
2834081fac Merge https://github.com/paulirish/html5-boilerplate 2011-06-06 09:42:41 -07:00
Mathias Bynens
7f31896fd4 Add .gitattributes. 2011-06-06 08:51:25 +02:00
Divya Manian
9cba6fcae9 Merge pull request #547 from thatryan/patch-1
Removed comment stating closing media query comment was required for respond.js
2011-06-05 00:41:27 -07:00
Ryan
26463fe491 Removed comment stating closing media query comment was required for respond.js. 2011-06-05 00:39:04 -07:00
Mathias Bynens
0a3456758b Fix typo. 2011-06-04 06:06:25 -07:00
necolas
ab3abb63db Update Respond.js to improved, comment-free version. Remove the CSS comments that the old version of Respond required. 2011-06-02 18:48:21 +01:00
necolas
4504c11445 Update demo files to reference Modernizr 2.0 2011-06-02 18:44:29 +01:00
Mathias Bynens
695d2ca304 Encourage people to use a custom Modernizr build containing only the features they need for that particular project. 2011-06-02 01:43:38 -07:00
Mathias Bynens
7b37e95341 Merge pull request #543 from daylerees/master
Modernizr 2.0 Update.
2011-06-02 01:39:32 -07:00
Dayle Rees
7227e7fb27 Updated to Modernizr 2.0 Complete, Production minified. 2011-06-02 09:28:54 +01:00
darktable
fdbbc12871 merging from main 2011-05-31 20:48:42 -07:00
Paul Irish
bad4fb5288 build script: compress all images in subfolders, too. thx calvin rien. 2011-05-30 19:02:45 -07:00
darktable
d9f114c019 added gae.js_dir and gae.css_dir so that App Engine projects can have the correct directory names swapped in their templates.
added a second replace token statement so that "/css/style.css" gets swapped too.
2011-05-30 14:49:12 -07:00
darktable
5c93b03069 swapped "apply rm" for delete task. much faster.
change *.png and *.jpg to **/*.png and **/*.jpg so that optimize commands reach subdirectories.
2011-05-30 14:41:24 -07:00
Ryan Smith-Roberts
c7f763c966 mod_deflate trigger rules modifications
* Add gzip support for xhtml, rss, atom
* Move font & svg compression from FilesMatch to FilterProvider / AddOutputFilterByType
2011-05-28 13:04:07 -07:00
Paul Irish
c24b78462a Merge pull request #530 from brianblakely/patch-1
Issue 482: https://github.com/paulirish/html5-boilerplate/issues/482
2011-05-28 02:06:07 -07:00
brianblakely
3300a6847f Issue 482: https://github.com/paulirish/html5-boilerplate/issues/482 2011-05-27 22:09:28 -07:00
Audioname
347e0c0053 testing123 2011-05-26 15:20:47 -07:00
Audioname
1d0ec96931 Adding properties to project.properties so that
Google App Engine builds don't have "static"
prepended when swapping for minified versions.
2011-05-26 15:02:51 -07:00
Paul Irish
fdb8f6aced Merge pull request #527 from heff/master
Added additional mp4 extensions to MIME types
2011-05-26 11:41:52 -07:00
Steve Heffernan
a30e338dc5 Added m4a (Need it for IE9) and m4v (HandBrake default) MIME types. 2011-05-26 11:18:38 -07:00
Paul Irish
14608f44cf Merge pull request #421 from JoeMorgan/master
Added JSLint target to build script
2011-05-25 15:10:27 -07:00
necolas
cbbaaecc0e Add 'oldie' class to conditional <html> classnames. Fix #522 2011-05-24 20:53:51 +01:00
necolas
7f53f98ec7 Revert "Change our conditional comments around the HTML tag to use a single .oldie class."
This reverts commit e5e057e538.
2011-05-24 20:47:21 +01:00
Paul Irish
b4a91bda9f build script is compatible with php files now. it appears. fixes #392. thx robbyrice. 2011-05-20 14:13:23 -07:00
necolas
e5e057e538 Change our conditional comments around the HTML tag to use a single .oldie class.
http://mathiasbynens.be/notes/safe-css-hacks

We're doing this because that quadruple conditional comment <html> tag definition looks pretty scary and especially when combined with namespace augmenting stuff like Facebook's gross xmlns:fb="http://www.facebook.com/2008/fbml" bullshit.

We are trying to simplify the markup we use in H5BP and a combination of conditional classnames with IE-specific hacks would be much simpler than the markup bloat we currently have.

We'll target IE6 and IE7 specifically with attribute syntax hacks.
http://paulirish.com/2009/browser-specific-css-hacks/


    /* CLEAN NO HACKS */
    div { color: blue; }

    /* HACKS FOR IE */
    .oldie div {
      color: blue; /* IE 8 and below */
      *color: blue; /* IE 7 and below */
      _color: blue; /* IE 6 */
    }

    /* IE6, IE7 - star hack */
    .oldie div { *color: blue; }

    /* IE8 - winning hack */
    .oldie div { color: blue\0/; } /* must be last declaration in the selector's ruleset */

Using these attribute hacks by themselves does not change the selector specificity. If you've worked with a large, long-term codebase, you'll know managing your specificity wisely is critical. Also watch Nicole Sullivan's talks.
2011-05-20 01:32:42 +01:00
Divya Manian
362d0b78d3 Merge pull request #513 from barneycarroll/patch-1
Fix .ir fringe case failure when <br>s are used in the .ir text.
2011-05-19 10:53:22 -07:00
Barney Carroll
bb94ded9f3 Hard breaks in image-replaced text negate the negative text indent. This fix causes line breaks in image-replaced text not to be displayed, fixing the effect. 2011-05-19 08:53:00 -07:00
Shi Chuan
9ee01e94dc moved ETag removal configs closer 2011-05-19 15:10:34 +08:00
Paul Irish
91ff0b8fec Merge pull request #511 from gormus/patch-1
added Header unset ETag
2011-05-18 22:53:23 -07:00
Osman Gormus
1f94b05317 added Header unset ETag
In some servers setting "FileETag None" alone, is not enough. Removing header and setting it to None fixes the issue.
2011-05-18 22:45:11 -07:00
Paul Irish
648026d780 Tweaking our hot pink ::selection based on a suggestion from David Murdoch and research from Adam Diehm.
It is now #fe57a1, which is Festal (adj): pertaining to or befitting a feast, festival, holiday, or gala occasion.

Party!! Party in your webpage! With Festal!!!!

thx also to lexidecimal.com for putting a name to this damn thing and inspiring david to inspire others.
2011-05-18 12:09:51 -07:00
necolas
24f174de59 Fix incorrect paths to Modernizr and Respond in demo pages 2011-05-17 19:24:54 +01:00
necolas
1cec539712 Use minified CDN jQuery by default on demo pages 2011-05-17 19:24:08 +01:00
necolas
b6a8dec0e4 Further quote consistency changes 2011-05-17 19:23:11 +01:00
Paul Irish
0e1c7ba929 Use minified jQuery by default.
While I personally prefer developing with an unminified jQuery (as
it makes debugging easier) I understand that most people don't need that.

So the onus is now on more advanced developers to s/.min.js/.js/
Though they're safe with the build script which will switch the refs back to the min.

And everyone else will default to min'd js, regardless of if they use the
build script.

:)
2011-05-17 09:40:24 -07:00
Paul Irish
f467a7e84b minor whitespace. 2011-05-17 09:38:20 -07:00
Mathias Bynens
c5289aad2b Consistent quotes. Hat tip: @walker. 2011-05-17 09:20:08 -07:00
Paul Irish
4c3301b9cc Merge pull request #505 from jtokoph/master
Fixing broken link to wiki in the changelog
2011-05-16 14:04:23 -07:00
Jason Tokoph
e3d389a171 Fixed URL typo in the changelog 2011-05-16 13:36:59 -07:00
necolas
974d1e2d0b Merge branch 'master' of git://github.com/paulirish/html5-boilerplate 2011-05-15 19:25:58 +01:00
Paul Irish
3522122e31 Merge pull request #502 from sguolin/master
Build script compatibility with Netbeans
2011-05-15 10:59:41 -07:00
See Guo Lin
fb41ccd538 Improved build script compatibility with Netbeans IDE. 2011-05-15 19:15:23 +08:00
See Guo Lin
4bbbfc88de default.properties: added IDE generated files/folders to exclude from build script 2011-05-15 19:14:20 +08:00
See Guo Lin
0c9eec9b52 .gitignore: Filename case correction for Windows generated Thumb.db 2011-05-15 19:13:06 +08:00
necolas
5cad48ced5 Fix #374 2011-05-13 15:39:59 +01:00
necolas
8a3955dae6 Normalize <b> font-weight 2011-05-13 15:05:03 +01:00
necolas
59b993abe9 Update to jQuery 1.6.1 2011-05-13 15:04:11 +01:00
Shi Chuan
b0685726da fixes to pull requests 427 2011-05-13 19:54:50 +08:00
Drew Petersen
0e41abd9e2 formatting style correction 2011-05-12 13:02:27 -04:00
Drew Petersen
caab9d30bd don't wrap all args from log to console.log with array 2011-05-12 12:48:09 -04:00
Nicolas Gallagher
e10e3f04b4 Merge pull request #491 from jphustman/patch-3
typo line 41: buidling a development environment
2011-05-09 01:05:19 -07:00
Jeremey Hustman
98180a91f9 typo line 41: buidling a development environment 2011-05-08 17:50:23 -07:00
necolas
0e2062cb4a Add placeholder CSS MQs for mobile-first approach 2011-05-08 20:50:34 +01:00
necolas
7d792b6845 Add respond.js as part of shift to 'mobile first' approach 2011-05-08 20:42:41 +01:00
necolas
e65c1ad37f Remove icon links in demo files 2011-05-08 20:06:16 +01:00
Divya Manian
9c1188592a Editing the comment for adding touch icons 2011-05-08 11:29:52 -07:00
Divya Manian
1faa76a804 Merge pull request #490 from jamwil/touch-icons
Removing touch icon link tags and retaining only the comment.
2011-05-08 11:28:05 -07:00
James Williams
f4283547f8 Removed redundant icon links and cleaned up the comment 2011-05-08 10:30:16 -06:00
Mathias Bynens
2833b89914 Add Options +FollowSymlinks when RewriteEngine is used. Fixes #489. 2011-05-07 23:42:48 -07:00
James Williams
d284eac8fd Improved the comment. 2011-05-07 22:14:52 -06:00
James Williams
6a71a7e9d5 Added maximum touch-icon support as per http://mathiasbynens.be/notes/touch-icons#sizes 2011-05-07 21:58:28 -06:00
necolas
cf2ee8e826 Update demo tests file 2011-05-07 11:31:54 +01:00
necolas
ef83a0481e Update qunit test page to reference jQuery 1.6 2011-05-07 11:27:31 +01:00
necolas
758f2f4f4c Update elements.html template to match that of index.html 2011-05-07 11:13:37 +01:00
Nicolas Gallagher
e7089e8cf8 Merge pull request #484 from jsma/master
Removed reference to handheld.css
2011-05-05 15:36:58 -07:00
John-Scott Atlakson
8e36358c04 Removed reference to handheld.css now that this has been removed. 2011-05-05 15:32:48 -07:00
Divya Manian
496898500c Merge pull request #483 from jsma/master
Removed dd_belatedpng.js from index.html
2011-05-05 15:32:28 -07:00
John-Scott Atlakson
fe1d2a3f70 Removed dd_belatedpng.js from index.html now that the file has been removed from the project. 2011-05-05 15:24:58 -07:00
necolas
dbed4dacf7 Remove handheld.css and belatedpng fix 2011-05-05 19:04:35 +01:00
necolas
fd2a816d53 Change form element alignments; group and reduce repetition of form element selectors 2011-05-05 18:33:28 +01:00
necolas
a7361c1a13 Remove font:inherit from reset. Fix #451 2011-05-05 18:01:41 +01:00
Divya Manian
3180b3f3dd Merge pull request #439 from clemos/master
trailing slash redirections should be relative
2011-05-04 21:05:16 -07:00
slavic
1a398b3eaf some more security for php - turn off error display and turn on error logging 2011-05-05 11:17:03 +08:00
slavic
61557bbe09 some more security for php 2011-05-05 11:13:33 +08:00
Divya Manian
1d229e42d1 Merge pull request #480 from walker/master
jQuery 1.6 update
2011-05-04 19:39:02 -07:00
Mathias Bynens
d96d5b6c8b Merge pull request #481 from jsma/patch-1
Added Site Speed tracking for Google Analytics.
2011-05-04 12:52:24 -07:00
John-Scott Atlakson
7bc7e96d96 Added Site Speed tracking for Google Analytics.
See => http://www.google.com/support/analyticshelp/bin/answer.py?hl=en&answer=1205784&topic=1120718
2011-05-04 12:51:19 -07:00
Paul Irish
edd1da8572 Merge pull request #478 from Calvein/master.
Moved the ::selection declaration
2011-05-04 12:08:32 -07:00
walker
ffa8bc9438 Updated links for 1.6 2011-05-04 12:17:23 -04:00
walker
c1e3a7e6b4 jQuery 1.6 2011-05-04 11:42:06 -04:00
François Robichet
6ce2a0f9f9 You might tweak the ::selection's color too. 2011-05-04 02:11:53 -07:00
necolas
ac92ae7a5f Update micro clearfix method 2011-04-26 22:59:45 +01:00
Paul Irish
37462b1bcc Merged pull request #469 from leobetosouza/patch-1.
Allow blackberry to read vcards
2011-04-26 12:34:06 -07:00
leobetosouza
fc7d9e1ebb Allow blackberry to read vcards 2011-04-26 12:25:51 -07:00
Mathias Bynens
b2faa1fc3c Add img { max-width: 100%; } to print styles to prevent images from getting cut off.
Hat tip: http://twitter.com/dontcallmedom/status/40413256942235648
2011-04-25 13:18:46 -07:00
necolas
1b78ceb957 Add overflow:hidden to pseudo-elements for clearfix. Avoids edge case of space at top of body in Firefox. 2011-04-21 19:57:53 +01:00
necolas
9a9660b2f9 Tidied up link to clearfix explanation 2011-04-21 17:09:22 +01:00
necolas
5373835d17 Update clearfix to use 'micro' clearfix 2011-04-21 11:32:49 +01:00
Matthew Donoughe
7e5efcc23c change jpeg task so it doesn't run unnecessarily
on my computer, unlike the old warning said, jpegtran was being run even
if the image had not changed
2011-04-16 18:49:47 +00:00
Matthew Donoughe
a2274d1993 copy files last
This slightly simplifies copying because we don't have to exclude png,
jpeg, or html files from the copy stage.
2011-04-16 18:43:57 +00:00
Matthew Donoughe
a59a243eda dd_belatedpng should be dd_belatedpng.min
it comes preminified, and we don't need to minify it again

This also updates the html so that the script is not missing if the
unminified scripts are unavailable on the server

This commit requires a change to existing html files :/
2011-04-16 18:38:39 +00:00
Shi Chuan
c0d3d939d7 Merge remote branch 'danielfilho/master' 2011-04-16 14:54:44 +08:00
Patrick Hall
b62ca34b72 curly quotes hates us 2011-04-14 16:48:55 -07:00
Daniel Filho
5b0dd0f4df fixing the order of stylesheets on build.xml as suggested by @shichuan. Fixes #435 2011-04-14 16:37:03 -03:00
Divya Manian
6ee79bc4ba making nicolas comment less wordy 2011-04-14 12:20:55 -07:00
necolas
72bb744064 Group link styles. Group form styles. Simplify the way input, button, textarea normalisation is done 2011-04-15 03:03:34 +08:00
necolas
0e18366fc5 Add input and button padding fixes for IE and Firefox 2011-04-15 03:03:33 +08:00
AD7six
45cd0378d5 don't add the callee - unless you're going to use it 2011-04-15 01:14:28 +08:00
walker
24b0f14ca0 Added in jquery 1.5.2 2011-04-15 00:55:44 +08:00
Daniel Filho
0843a608eb Put the -strip-console.log right befor all js.* calls on build.xml 2011-04-13 19:07:55 -03:00
Clément
1cf9f7487f removed slash to allow relative redirections 2011-04-12 12:23:07 +02:00
necolas
d2acfe0654 Simplify the conditional comment containing code for IE 9+ and modern browsers 2011-04-09 23:58:31 +08:00
Matthew Donoughe
eab37feb45 fix the recursive concatination properly
don't minify scripts-concat and libs-concat and there won't be a
scripts-concat.min.js to include into the next scripts-concat.js
2011-04-09 05:17:43 +00:00
Matthew Donoughe
f1a8fbf649 don't include scripts-concat in scripts-concat
otherwise your scripts duplicate and pile up
2011-04-08 21:51:20 +00:00
Matthew Donoughe
043491dea5 fix imgcopy 2011-04-08 18:30:24 +00:00
Matthew Donoughe
b817d1758c work around OptiPNG #2671422
delete old optimized pngs because optipng does not support overwriting
2011-04-08 18:29:19 +00:00
Matthew Donoughe
a0ac99a4d9 optimize build process
Intermediate stages are stored in a new intermediate folder, and only
files that should be published are copied into the publish folder.

Files are not deleted at the beginning of every build, and files that
have already been processed will not be reprocessed unless the source
has changed.

Versioned files are referenced by a SHA-1 hash of the content rather
than a build number. This means that changing your HTML and rebuilding
will not cause your users to redownload the same CSS and Javascript, and
a reverted change may cause users to use a copy that was previously
downloaded. It may be better to use only part of the hash so the HTTP
request is shorter.

Cleaning must be done manually to delete unreferenced files, or you will
eventually fill your publish folder with unreferenced files. AFAIK this
is a very hard problem to solve properly with Ant because there's no
file dependency tree available to show which files are not products of
the current build. It's doable by creating a map from source to publish
and excluding those files while deleting everything from publish, but it
may be better to just delete the publish directory?

console.log statements are no longer commented out. The regular
expression responsible did not work properly if there were parenthesis
inside the console.log, and it put comments into the scripts that had
just been minimized, so they weren't really minimal anymore.
2011-04-07 23:10:28 +00:00
Matthew Donoughe
96d7b26406 change the source htaccess rather than updating it 2011-04-07 23:10:28 +00:00
Matthew Donoughe
c35755b8d6 try not to reoptimize the same images every time 2011-04-07 23:09:48 +00:00
Paul Irish
e3007f0b31 nerf the serverconfig manip by checking to make sure it exists. fixes #423 2011-04-07 13:38:30 -07:00
Joe Morgan
2d4ddfeca9 Added JSHint as separate target and added ability to configure options in the project.properites file 2011-04-05 11:48:26 -04:00
Joe Morgan
164dcab88b Added JSHint target (separate from JSLint, so users could call either without having to make edits to the properties file) 2011-04-05 10:53:51 -04:00
Joe Morgan
5ea8b6446b Added JSLint target to build script (runs independently on source JS, excludes *.min.js and libs/*.js files) 2011-04-05 09:15:48 -04:00
Joe Morgan
ce6878eeb4 added comment 2011-04-05 09:11:33 -04:00
Joe Morgan
7ef42605c2 added some globals for rhino functions 2011-04-05 09:09:18 -04:00
Joe Morgan
b736756a92 prettied up the JSLint code 2011-04-05 09:06:51 -04:00
Joe Morgan
3820568da4 added config options to jslint 2011-04-04 21:50:14 -04:00
Joe Morgan
ce7e249ae4 added jslint target 2011-04-04 21:40:49 -04:00
Paul Irish
8185bc313a Update htmlcompressor to 1.1 which uses the new yuicompressor for CSS. fixing a @media query bug (for inline style tags.) 2011-03-30 12:51:52 -07:00
Paul Irish
bb22ca66a8 Remove the cache-busting query parameters from the HTML. Details below:
In case you were wondering what ?v=2 was for.. read this:
http://html5boilerplate.com/docs/#Version-Control-with-Cachebusting

Query param revving is bad news:
http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/

Even though that warning is from 2008, I've confirmed with Souders (a few months ago)
that this is still a concern.

The build script automatically revs filenames for you, so this is taken care of.
If you need to manually cachebust, then feel free to add the query params yourself, but
be aware of the small consequences. It shouldn't be a regular thing. ;)
2011-03-30 08:26:45 -07:00
Mike Almond
5b6db9d0bd Disable directory browsing by default 2011-03-29 12:01:22 -07:00
Han Lin Yap
edf9c3fbdb httponly 2011-03-29 22:53:34 +08:00
Gregg Gajic
9b1a477b12 Fix typo in Changelog 2011-03-28 17:55:11 -05:00
Paul Irish
41c657a05a adjust attribution byline. 2011-03-26 16:54:40 -07:00
Samus_
b9341fe4ce protecting against git rev-parse silly behavior on unrecognized options 2011-03-25 23:25:50 -04:00
Samus_
91fa216839 protect commands from weird filenames 2011-03-25 22:55:25 -04:00
Paul Irish
e4edeff4fa Revert "Fixing input type="search" behaviour in Safari by John Lein http://diveintohtml5.org/forms.html thanks to MarcHaunschild and hoopyfrood fixes #396"
This reverts commit 4dc87b52c2.

Based on the conversation here:
https://github.com/paulirish/html5-boilerplate/commit/4dc87b52c2
2011-03-23 13:30:34 -07:00
Shi Chuan
4dc87b52c2 Fixing input type="search" behaviour in Safari by John Lein http://diveintohtml5.org/forms.html thanks to MarcHaunschild and hoopyfrood fixes #396 2011-03-24 00:33:24 +08:00
Shi Chuan
71880dee16 fixed missing letter t in properties files in build tool 2011-03-23 00:49:08 +08:00
Shi Chuan
5c9fa3a83d fixed typo styleshee to stylesheet in build default properties 2011-03-23 00:32:14 +08:00
alrra
19fec34e0d modified the 404 page (it can cause some problems in IE if the user decided to use the html5shiv: e.g.: http://i.imgur.com/iK5ad.png) 2011-03-22 21:49:55 +08:00
Paul Irish
50fb1a7870 update yuicompressor to 2.4.5. fixes media query minification issue.
Basically ...

@media screen and (max-width:980px){

was getting minified to

@media screen and(max-width:980px){

Which webkit was rejecting.. So.. now the updated yuicompressor leaves that space in place.
And all is well with the world.
<3z
2011-03-21 23:19:13 -07:00
43 changed files with 3792 additions and 6434 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
* text=auto

9
.gitignore vendored
View File

@@ -8,14 +8,19 @@
*.swp
*.vi
*~
*.sass-cache
# OS or Editor folders
.DS_Store
Thumbs.db
.cache
.project
.settings
.tmproj
*.esproj
nbproject
thumbs.db
*.sublime-project
*.sublime-workspace
# Dreamweaver added files
_notes
@@ -28,6 +33,8 @@ dwsync.xml
# Folders to ignore
.hg
.svn
.CVS
intermediate
publish
.idea

371
.htaccess
View File

@@ -11,8 +11,8 @@
###
### If you run a webserver other than apache, consider:
### github.com/paulirish/html5-boilerplate-server-configs
### If you run a webserver other than Apache, consider:
### github.com/h5bp/server-configs
###
@@ -25,18 +25,12 @@
# github.com/rails/rails/commit/123eb25#commitcomment-118920
# Use ChromeFrame if it's installed for a better experience for the poor IE folk
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
</IfModule>
</IfModule>
<IfModule mod_headers.c>
# Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
# We need to inform proxies that content changes based on UA
Header append Vary User-Agent
# Cache control is set only if mod_headers is enabled, so that's unncessary to declare
Header set X-UA-Compatible "IE=Edge,chrome=1"
# mod_headers can't match by content-type, but we don't want to send this header on *everything*...
<FilesMatch "\.(js|css|gif|png|jpe?g|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|oex|xpi|safariextz|vcf)$" >
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
@@ -44,7 +38,7 @@
# Cross-domain AJAX requests
# ----------------------------------------------------------------------
# Serve cross-domain ajax requests, disabled.
# Serve cross-domain Ajax requests, disabled by default.
# enable-cors.org
# code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
@@ -53,20 +47,40 @@
# </IfModule>
# ----------------------------------------------------------------------
# CORS-enabled images (@crossorigin)
# ----------------------------------------------------------------------
# Send CORS headers if browsers request them; enabled by default for images.
# developer.mozilla.org/en/CORS_Enabled_Image
# blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
# hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
# wiki.mozilla.org/Security/Reviews/crossoriginAttribute
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
# mod_headers, y u no match by Content-Type?!
<FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">
SetEnvIf Origin ":" IS_CORS
Header set Access-Control-Allow-Origin "*" env=IS_CORS
</FilesMatch>
</IfModule>
</IfModule>
# ----------------------------------------------------------------------
# Webfont access
# ----------------------------------------------------------------------
# allow access from all domains for webfonts
# alternatively you could only whitelist
# your subdomains like "sub.domain.com"
# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like "subdomain.example.com".
<FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
<IfModule mod_headers.c>
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$">
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
</FilesMatch>
</IfModule>
@@ -74,107 +88,134 @@
# Proper MIME type for all files
# ----------------------------------------------------------------------
# audio
AddType audio/ogg oga ogg
# video
# JavaScript
# Normalize to standard type (it's sniffed in IE anyways)
# tools.ietf.org/html/rfc4329#section-7.2
AddType application/javascript js
# Audio
AddType audio/ogg oga ogg
AddType audio/mp4 m4a
# Video
AddType video/ogg ogv
AddType video/mp4 mp4
AddType video/mp4 mp4 m4v
AddType video/webm webm
# Proper svg serving. Required for svg webfonts on iPad
# SVG
# Required for svg webfonts on iPad
# twitter.com/FontSquirrel/status/14855840545
AddType image/svg+xml svg svgz
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
# webfonts
# Webfonts
AddType application/vnd.ms-fontobject eot
AddType font/truetype ttf
AddType application/x-font-ttf ttf ttc
AddType font/opentype otf
AddType application/x-font-woff woff
# assorted types
AddType image/x-icon ico
AddType image/webp webp
AddType text/cache-manifest appcache manifest
AddType text/x-component htc
AddType application/x-chrome-extension crx
AddType application/x-xpinstall xpi
AddType application/octet-stream safariextz
# Assorted types
AddType image/x-icon ico
AddType image/webp webp
AddType text/cache-manifest appcache manifest
AddType text/x-component htc
AddType application/x-chrome-extension crx
AddType application/x-opera-extension oex
AddType application/x-xpinstall xpi
AddType application/octet-stream safariextz
AddType application/x-web-app-manifest+json webapp
AddType text/x-vcard vcf
# ----------------------------------------------------------------------
# Allow concatenation from within specific js and css files
# Allow concatenation from within specific js and css files
# ----------------------------------------------------------------------
# e.g. Inside of script.combined.js you could have
# <!--#include file="libs/jquery-1.5.0.min.js" -->
# <!--#include file="plugins/jquery.idletimer.js" -->
# and they would be included into this single file
# and they would be included into this single file.
# this is not in use in the boilerplate as it stands. you may
# choose to name your files in this way for this advantage
# or concatenate and minify them manually.
# This is not in use in the boilerplate as it stands. You may
# choose to name your files in this way for this advantage or
# concatenate and minify them manually.
# Disabled by default.
# <FilesMatch "\.combined\.(js|css)$">
# Options +Includes
# SetOutputFilter INCLUDES
# </FilesMatch>
#<FilesMatch "\.combined\.js$">
# Options +Includes
# AddOutputFilterByType INCLUDES application/javascript application/json
# SetOutputFilter INCLUDES
#</FilesMatch>
#<FilesMatch "\.combined\.css$">
# Options +Includes
# AddOutputFilterByType INCLUDES text/css
# SetOutputFilter INCLUDES
#</FilesMatch>
# ----------------------------------------------------------------------
# gzip compression
# Gzip compression
# ----------------------------------------------------------------------
<IfModule mod_deflate.c>
# force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s,?\s(gzip|deflate)?|X{4,13}|~{4,13}|-{4,13})$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
</IfModule>
# html, txt, css, js, json, xml, htc:
<IfModule filter_module>
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE resp=Content-Type /text/(html|css|javascript|plain|x(ml|-component))/
FilterProvider COMPRESS DEFLATE resp=Content-Type /application/(javascript|json|xml|x-javascript)/
FilterChain COMPRESS
FilterProtocol COMPRESS change=yes;byteranges=no
</IfModule>
<IfModule !mod_filter.c>
# Legacy versions of Apache
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
</IfModule>
# HTML, TXT, CSS, JavaScript, JSON, XML, HTC:
<IfModule filter_module>
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $image/x-icon
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
FilterChain COMPRESS
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
</IfModule>
# webfonts and svg:
<FilesMatch "\.(ttf|otf|eot|svg)$" >
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
<IfModule !mod_filter.c>
# Legacy versions of Apache
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
</IfModule>
</IfModule>
# ----------------------------------------------------------------------
# Expires headers (for better cache control)
# ----------------------------------------------------------------------
# these are pretty far-future expires headers
# they assume you control versioning with cachebusting query params like
# These are pretty far-future expires headers.
# They assume you control versioning with cachebusting query params like
# <script src="application.js?20100608">
# additionally, consider that outdated proxies may miscache
# Additionally, consider that outdated proxies may miscache
# www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
# if you don't use filenames to version, lower the css and js to something like
# "access plus 1 week" or so
# If you don't use filenames to version, lower the CSS and JS to something like
# "access plus 1 week" or so.
<IfModule mod_expires.c>
ExpiresActive on
@@ -182,24 +223,25 @@ AddType application/octet-stream safariextz
# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"
# cache.appcache needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5)
# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"
# your document html
# Your document html
ExpiresByType text/html "access plus 0 seconds"
# data
# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
# rss feed
# Feed
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
# favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
# media: images, video, audio
# Media: images, video, audio
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
@@ -208,26 +250,21 @@ AddType application/octet-stream safariextz
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# htc files (css3pie)
# HTC files (css3pie)
ExpiresByType text/x-component "access plus 1 month"
# webfonts
ExpiresByType font/truetype "access plus 1 month"
# Webfonts
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
# css and javascript
ExpiresByType text/css "access plus 2 months"
ExpiresByType application/javascript "access plus 2 months"
ExpiresByType text/javascript "access plus 2 months"
<IfModule mod_headers.c>
Header append Cache-Control "public"
</IfModule>
# CSS and JavaScript
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
@@ -236,6 +273,11 @@ AddType application/octet-stream safariextz
# ETag removal
# ----------------------------------------------------------------------
# FileETag None is not enough for every server.
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
# Since we're sending far-future expires, we don't need ETags for
# static content.
# developer.yahoo.com/performance/rules.html#etags
@@ -278,8 +320,10 @@ FileETag None
# ----------------------------------------------------------------------
# Turning on the rewrite engine is necessary for the following rules and features.
# FollowSymLinks must be enabled for this to work.
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
</IfModule>
@@ -303,65 +347,29 @@ FileETag None
# ----------------------------------------------------------------------
# Option 1:
# Rewrite "www.domain.com -> domain.com"
# Rewrite "www.example.com -> example.com"
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
</IfModule>
# ----------------------------------------------------------------------
# Option 2:
# To rewrite "domain.com -> www.domain.com" uncomment the following lines.
# To rewrite "example.com -> www.example.com" uncomment the following lines.
# Be aware that the following rule might not be a good idea if you
# use "real" subdomains for certain parts of your website.
# <IfModule mod_rewrite.c>
# RewriteCond %{HTTPS} !=on
# RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
# RewriteCond %{HTTP_HOST} (.+)$ [NC]
# RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
# RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# </IfModule>
# ----------------------------------------------------------------------
# Add/remove trailing slash to (non-file) URLs
# ----------------------------------------------------------------------
# Google treats URLs with and without trailing slashes separately.
# Forcing a trailing slash is usually preferred, but all that's really
# important is that one correctly redirects to the other.
# By default option 1 (force trailing slash) is activated.
# http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html
# http://www.alistapart.com/articles/slashforward/
# http://httpd.apache.org/docs/2.0/misc/rewriteguide.html#url Trailing Slash Problem
# ----------------------------------------------------------------------
# Option 1:
# Rewrite "domain.com/foo -> domain.com/foo/"
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$
RewriteRule ^(.*)$ /$1/ [R=301,L]
</IfModule>
# ----------------------------------------------------------------------
# Option 2:
# Rewrite "domain.com/foo/ -> domain.com/foo"
#<IfModule mod_rewrite.c>
# RewriteRule ^(.*)/$ /$1 [R=301,L]
#</IfModule>
# ----------------------------------------------------------------------
# Built-in filename-based cache busting
# ----------------------------------------------------------------------
@@ -371,7 +379,7 @@ FileETag None
# /css/style.20110203.css to /css/style.css
# To understand why this is important and a better idea than all.css?v1231,
# read: github.com/paulirish/html5-boilerplate/wiki/Version-Control-with-Cachebusting
# read: github.com/h5bp/html5-boilerplate/wiki/Version-Control-with-Cachebusting
# Uncomment to enable.
# <IfModule mod_rewrite.c>
@@ -381,18 +389,18 @@ FileETag None
# </IfModule>
# ----------------------------------------------------------------------
# Prevent SSL cert warnings
# ----------------------------------------------------------------------
# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
# https://www.domain.com when your cert only allows https://secure.domain.com
# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
# https://www.example.com when your cert only allows https://secure.example.com
# Uncomment the following lines to use this feature.
# <IfModule mod_rewrite.c>
# RewriteCond %{SERVER_PORT} !^443
# RewriteRule (.*) https://example-domain-please-change-me.com/$1 [R=301,L]
# RewriteRule ^ https://example-domain-please-change-me.com%{REQUEST_URI} [R=301,L]
# </IfModule>
@@ -401,15 +409,15 @@ FileETag None
# Prevent 404 errors for non-existing redirected folders
# ----------------------------------------------------------------------
# without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist
# without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist
# e.g. /blog/hello : webmasterworld.com/apache/3808792.htm
Options -MultiViews
Options -MultiViews
# ----------------------------------------------------------------------
# custom 404 page
# Custom 404 page
# ----------------------------------------------------------------------
# You can add custom pages to handle 500 or 403 pretty easily, if you like.
@@ -421,11 +429,11 @@ ErrorDocument 404 /404.html
# UTF-8 encoding
# ----------------------------------------------------------------------
# use utf-8 encoding for anything served text/plain or text/html
# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset utf-8
# force utf-8 for a number of file formats
AddCharset utf-8 .html .css .js .xml .json .rss
# Force UTF-8 for a number of file formats
AddCharset utf-8 .css .js .xml .json .rss .atom
@@ -443,16 +451,30 @@ AddCharset utf-8 .html .css .js .xml .json .rss
# "-Indexes" will have Apache block users from browsing folders without a default document
# Usually you should leave this activated, because you shouldn't allow everybody to surf through
# every folder on your server (which includes rather private places like CMS system folders).
# Options -Indexes
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
# Block access to "hidden" directories whose names begin with a period. This
# includes directories used by version control systems such as Subversion or Git.
<IfModule mod_rewrite.c>
RewriteCond %{SCRIPT_FILENAME} -d
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule "(^|/)\." - [F]
</IfModule>
# Block access to backup and source files
# This files may be left by some text/html editors and
# pose a great security danger, when someone can access them
<FilesMatch "(\.(bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
# If your server is not already configured as such, the following directive
# should be uncommented in order to set PHP's register_globals option to OFF.
# This closes a major security hole that is abused by most XSS (cross-site
@@ -470,6 +492,45 @@ AddCharset utf-8 .html .css .js .xml .json .rss
# php_flag register_globals Off
# Rename session cookie to something else, than PHPSESSID
# php_value session.name sid
# Do not show you are using PHP
# Note: Move this line to php.ini since it won't work in .htaccess
# php_flag expose_php Off
# Level of log detail - log all errors
# php_value error_reporting -1
# Write errors to log file
# php_flag log_errors On
# Do not display errors in browser (production - Off, development - On)
# php_flag display_errors Off
# Do not display startup errors (production - Off, development - On)
# php_flag display_startup_errors Off
# Format errors in plain text
# Note: Leave this setting 'On' for xdebug's var_dump() output
# php_flag html_errors Off
# Show multiple occurrence of error
# php_flag ignore_repeated_errors Off
# Show same errors from different sources
# php_flag ignore_repeated_source Off
# Size limit for error messages
# php_value log_errors_max_len 1024
# Don't precede error with string (doesn't accept empty string, use whitespace if you need)
# php_value error_prepend_string " "
# Don't prepend to error (doesn't accept empty string, use whitespace if you need)
# php_value error_append_string " "
# Increase cookie security
<IfModule php5_module>
php_value session.cookie_httponly true
</IfModule>

View File

@@ -1,32 +1,44 @@
<!doctype html>
<title>Page Not Found</title>
<style>
body { text-align: center;}
h1 { font-size: 50px; text-align: center }
span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
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); }
::-moz-selection{ background:#FF5E99; color:#fff; }
::selection { background:#FF5E99; color:#fff; }
article {display:block; text-align: left; width: 500px; margin: 0 auto; }
a { color: rgb(36, 109, 56); text-decoration:none; }
a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
</style>
<article>
<h1>Not found <span frown>:(</span></h1>
<div>
<p>Sorry, but the page you were trying to view does not exist.</p>
<p>It looks like this was the result of either:</p>
<ul>
<li>a mistyped address</li>
<li>an out-of-date link</li>
</ul>
</div>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Not Found :(</title>
<style>
::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }
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%; }
html, input { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
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; }
h1 { margin: 0 10px; font-size: 50px; text-align: center; }
h1 span { color: #bbb; }
h3 { margin: 1.5em 0 0.5em; }
p { margin: 1em 0; }
ul { padding: 0 0 0 40px; margin: 1em 0; }
.container { max-width: 380px; _width: 380px; margin: 0 auto; }
/* google search */
#goog-fixurl ul { list-style: none; padding: 0; margin: 0; }
#goog-fixurl form { margin: 0; }
#goog-wm-qt, #goog-wm-sb { border: 1px solid #bbb; font-size: 16px; line-height: normal; vertical-align: top; color: #444; border-radius: 2px; }
#goog-wm-qt { width: 220px; height: 20px; padding: 5px; margin: 5px 10px 0 0; box-shadow: inset 0 1px 1px #ccc; }
#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; }
#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; }
#goog-wm-qt:focus, #goog-wm-sb:focus { border-color: #105cb6; outline: 0; color: #222; }
input::-moz-focus-inner { padding: 0; border: 0; }
</style>
</head>
<body>
<div class="container">
<h1>Not found <span>:(</span></h1>
<p>Sorry, but the page you were trying to view does not exist.</p>
<p>It looks like this was the result of either:</p>
<ul>
<li>a mistyped address</li>
<li>an out-of-date link</li>
</ul>
<script>
var GOOG_FIXURL_LANG = (navigator.language || "").slice(0,2),
GOOG_FIXURL_SITE = location.host;
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
</script>
<script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
</article>
</div>
</body>
</html>

228
README.md
View File

@@ -1,228 +0,0 @@
# HTML5 Boilerplate [http://html5boilerplate.com](http://html5boilerplate.com)
## Changelog:
### v.1.0 : March 21st, 2010
#### Build Script
<ul>
<li>Files linked via @import will be inlined into the files they are imported to using Corey Hart's CSS Compressor.</li>
<li>Environments are definable.</li>
<li>htaccess Expires headers are upgraded to 1year, as the filenames are revved</li>
<li>Massive rewrite so you can define which HTML, CSS, JS files to operate on in your configurable project.properties files. This allows you to let the build script operate on very unique folder architecture, including non-H5BP projects.</li>
<li>Added a source directory option in the build config, so your source files can be in a different directory from the final generated files (useful for other CMSes/frameworks like Django). </li>
</ul>
#### index.html
<ul>
<li>We use a <a href="http://paulirish.com/2010/the-protocol-relative-url/">protocol-relative url</a> for the jQuery include, to prevent the mixed content warning.</li>
<li>The order of <code>&lt;meta></code> tags, <code>&lt;title></code>, and charset has been <a href="https://github.com/paulirish/html5-boilerplate/wiki/The-markup ">documented more extensively now</a>. TL;DR: You are <a href="https://github.com/paulirish/html5-boilerplate/commit/4b67ea5cabb8c2b75faf2e255344cdffdf190464">safe to use the boilerplate's order of tags</a>.</li>
<li>We've shortened up the Google Analytics snippet.</li>
<li>Added an ARIA <code>role</code> attribute to <code>div#main</code>. This assumes your main content goes within that container.</li>
<li>IE9 doesn't get it's own conditional class! Yay!</li>
</ul>
#### style.css
<ul>
<li>Added <code>.focusable</code> helper class that extends <code>.visuallyhidden</code> to allow the element to be focusable when navigated to via the keyboard.</li>
<li>Anchor links are no longer reset. Basically our reset is the effectively merged with Eric Meyer's recent CSS reset update and also the HTML5 Doctor reset.</li>
<li>An unordered list within a nav element will no longer have a margin.</li>
<li>All helper classes are now after primary styles to ensure correct overrides and not be burdened with resets. </li>
<li><code>.visuallyhidden</code> is no longer camelCase, as to be consistent with other classname formats.</li>
<li>Updated the specificity of <code>.visuallyhidden</code> rule to make sure it overrides all other declarations. </li>
<li>Removed reset on image elements within table cells as they look ugly alongside multiline texts. Browsers default to baseline alignment for images which works better than top alignment.</li>
<li>Increased margin-left on ol, to allow for 2-digit list numbers.</li>
<li>Added a print reset on IE's proprietary filters.</li>
<li>Print styles no longer prints hash links or javascript links.</li>
<li>Updated sub/sup css to make them not be impacted by line-height, so now you can do sub/superscripts without worrying.</li>
</ul>
#### Project
<ul>
<li>Added a <a href="http://humanstxt.org">humans.txt</a> so you can clarify authorship and tools used</li>
<li>Removed YUI profiling. You probably weren't using it anyway.</li>
<li>Removed QUnit's unit tests. There is no need to ship with them, really.</li>
</ul>
#### Webserver Configs
#### .htaccess
<ul>
<li>.htaccess is far more documented now. Take a read through it!</li>
<li><a href="https://github.com/paulirish/html5-boilerplate/commit/37b5fec090d00f38de64b591bcddcb205aadf8ee">Changed mimetype of .ico files to "image/x-icon"</a>.</li>
<li>HTML Manifest files now use <code>.appcache</code> extension instead of <code>.manifest</code>, as per <a href="http://html5.org/r/5812">http://html5.org/r/5812</a>.</li>
<li>Force deflate for accept-encoding headers mangled by turtle tappers, courtesy of <a href="http://developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/">Yahoo!'s research</a></li>
<li>We nerfed some of the directives in case you're on server without <code>mod_headers</code>. (Which is totally crazy, man)</li>
<li>Block access to .git and .svn folders.</li>
<li>Eradicating Chrome's console warning on WOFF font downloads.</li>
<li>More optimizations available if you set the .htaccess details up in your httpd.conf</li>
<li>.htaccess now caches .htc files</li>
<li>Moved all server configurations (except apache's .htaccess) over to <a href ="https://github.com/paulirish/html5-boilerplate-server-configs">the new html5-boilerplate-server-configs repo</a>. Head over there if you are not using Apache. </li>
<li>Updated <code>.htaccess</code> and <code>mime.types</code> for ogg formats.</li>
<li>Fixed regression where EOT fonts had been excluded from DEFLATE compression</li>
<li>Apache version independence: Use <code>mod_filter</code> for compression, with fallback to AddOutputFilterByType directive for legacy versions</li>
<li>Added plugin/extension mime types for Safari, Chrome, Firefox</li>
</ul>
#### nginx
<ul>
<li>Cleaned up cache expires directives.</li>
<li>Now includes SVG and font formats for gzipping.</li>
<li>expires header bug fixed.</li>
</ul>
#### IIS
<ul>
<li>Added Flash video mime types to IIS server</li>
<li>Fixed some mimetype weirdness that was preventing proper caching</li>
</ul>
<ul>
<li>Also Google App Engine, Lighttpd, and NodeJS <a href="https://github.com/paulirish/html5-boilerplate-server-configs">configurations were added</a></li>
</ul>
<p>Basically a lot of great updates were made for 1.0. <a href="https://github.com/paulirish/html5-boilerplate/compare/v0.9.5...v1.0">Here are all 220 commits since last release.</a>. You may ask though, <a href="http://html5boilerplate.com/docs/#FAQs★do-i-need-to-upgrade-my-sites-to-a-new-version">do I need to upgrade existing sites</a>? Short answer: nah, you're good.</p>
#### Contributors
[Mickael Daniel](http://blog.mklog.fr/), Dave Kirk, [Jonathan Verrecchia](http://www.html5-css3.fr/), [nlogax](https://github.com/nlogax), [Rob Larsen](http://htmlcssjavascript.com/),
[David Murdoch](http://www.vervestudios.co/), [AD7six](http://www.ad7six.com/),
[Mathias Bynens](http://mathiasbynens.be/), [Michael van Laar](http://www.michael-van-laar.de/), [Mike West](http://mikewest.org/), [Mikko Tikkanen](http://www.mintusability.com/), [Velir](http://velir.com/), [Stephen Gariepy](http://garowetz.ca/)
##### Boilerplate
[Adam J. McIntyre](http://www.amodernfable.com/), [Adeel Ejaz](http://adeelejaz.com/), akolesnikov, [Alex Dunae](http://dialect.ca/), [Andrew Le](http://andrewdle.com/), [ashnur](https://github.com/ashnur), [Ben Truyman](http://bentruyman.com/), [Bruno Aguirre](http://brunoaguirre.com/), [Chris Hager](http://metachris.org/), [Corey Ward](http://blog.coreyward.net/), [Craig Barnes](https://github.com/craigbarnes), crappish, [Daniel Schildt](http://autiomaa.org/), [Dave DeSandro](https://github.com/daveatnclud), [Dustin Whittle](http://dustinwhittle.com/), grigio, [Irakli Nadareishvili](http://freshblurbs.com/), [Jaime Bueza](http://jaime.bueza.com/), [Jake Ingman](https://github.com/jingman), [James A. Rosen](http://jamesarosen.com/), [Jeremy Balch](https://github.com/balchjd), [joe bartlett](http://twitter.com/jdbartlett), [Joe Sak](http://www.joesak.com/), [John Bacon](https://github.com/johnbacon)
[Jonathan Fielding](https://github.com/jonathan-fielding), [Jonathan Neal](http://iecss.com/), [kblomqvist](https://github.com/kblomqvist), [Kenneth Nordahl](http://nordahl.me/), [Maarten Verbaarschot](https://github.com/mverbaar), [Manuel Strehl](http://www.manuel-strehl.de/), [Marcel Turi](http://marcel.turi.co/), [Martin Hintzmann](https://github.com/Hintzmann), [mikealmond](https://github.com/mikealmond)
[mikkotikkanen](http://www.mintusability.com/), [Nic Pottier](https://github.com/nicpottier), [Paul Neave](http://www.neave.com/), [Peter Beverloo](http://peter.sh/), [Rick Waldron](http://weblog.bocoup.com/), [Rob Flaherty](http://www.ravelrumba.com/), [S Anand](http://www.s-anand.net/), [Sam Sherlock](http://samsherlock.com/), [Michael Cetrulo](http://www.linkedin.com/in/web2samus), [simshaun](https://github.com/simshaun), [Sirupsen](http://sirupsen.com/), [Stephen Gariepy](http://garowetz.ca/), [timemachine3030 ](https://github.com/timemachine3030), [Vinay](http://www.artminister.com/), [Weston Ruter](http://weston.ruter.net/), [WraithKenny](http://unfocus.com/), [Yann Mainier](http://yann.mainier.com/), [Michael van Laar](http://www.michael-van-laar.de/), [Massimo Lombardo](http://unwiredbrain.com/), [Ivan Nikolić ](http://twitter.com/niksy), [Kaelig](http://kaelig.fr/), [Richard Bradshaw](http://bradshawenterprises.com/), [SammyK](http://sammyk.me/), [alrra](https://github.com/alrra), [Rizky Syazuli](http://id.linkedin.com/in/rizky), [iszak](https://github.com/Iszak), [aaron peters](https://github.com/aaronpeters), [Swaroop C H](http://www.swaroopch.com/), [Mike Połtyn](http://mike.poltyn.com/), Marco d'Itri, Mike Lamb , [BIG Folio](http://bigfolio.com/), Philip von Bargen, Meander, Daniel Harttman, rse, timwillison, ken nordahl, [Erik Dahlström](http://my.opera.com/macdev_ed), christopherjacob, [Chew Choon Keat](http://blog.choonkeat.com/), benalman, stoyan, Markus, [Vladimir Carrer](http://www.vcarrer.com/), [aristidesfl](https://github.com/aristidesfl), [Trevor Norris](http://blog.trevorjnorris.com/)
#####Configs
[Dusan Hlavaty](http://sk.linkedin.com/in/dusanhlavaty), [Sean Caetano Martin](http://www.xonecas.com/), [yaph](http://www.ramiro.org/), [michaud](https://github.com/michaud), Paul Sarena, [Graham Weldon](http://grahamweldon.com/), [Ron. Adams](http://visual-assault.org/)
#####Translators
[alrra](http://twitter.com/alrra), [Anton Kovalyov](http://self.kovalyov.net/), [Milos Gavrilovic](http://www.arvag.net/), [jorge-vitrubio](https://github.com/jorge-vitrubio), Julian Wachholz, [laviperchik](https://github.com/laviperchik), [lenzcom](https://github.com/lenzcom), [Mathias Bynens](http://mathiasbynens.be/), [Mickael Daniel](http://blog.mklog.fr/), [Mike West](http://mikewest.org/), [Niels Bom](http://www.nielsbom.com/), Ricardo Tomasi, [skill83 ](https://github.com/skill83), [Sean Caetano Martin](http://www.xonecas.com/), [Yuya Saito](http://css.studiomohawk.com/), [Zee-Julien](https://github.com/Zee-Julien)
### v.0.9.5 : October 25th, 2010
Major changes:
<ul>
<li>Removed <code>-webkit-font-smoothing: antialiased;</code> it makes monospace too thin.</li>
<li>IE conditional classes have moved from the <code>&lt;body&gt;</code> tag to the <code>&lt;html&gt;</code> tag ( #44 ).</li>
<li>Dropped <code>text-rendering: <a href="http://www.aestheticallyloyal.com/public/optimize-legibility/">optimizeLegibility</a></code> as it breaks small-caps, looks odd on Linux machines, and goes invisible on WebOS.</li>
<li>Added a IE6 call for the minified <code>dd_belatedpng</code>.</li>
<li>Revised viewport declaration to allow user scaling and clear Webkit console errors ( #37 ).</li>
<li>Updated Modernizr to 1.6 </li>
<li>Added <code>web.config</code> file for Microsoft IIS</li>
<li>Beta release of the <a href="http://github.com/paulirish/html5-boilerplate/wiki/Build-script">Build Script</a> (this is HUGE)</li>
<li>New project scaffolding <a href="http://github.com/paulirish/html5-boilerplate/wiki/makep.sh">bash script</a>.</li>
</ul>
#### General
* Updated Modernizr to 1.6 (smaller and faster)
* Added web.config file for Microsoft IIS. Now forcing latest IE version and ChromeFrame, if installed.
* Added favicon and default icon for iOS.
* Updated crossdomain.xml wording for better security guidelines ( #124 ).
* Expires value for nginx.conf corrected.
* License clarified.
#### style.css
* Removed -webkit-font-smoothing: antialiased; as it made monospace too thin.
* Updated fonts normalization to YUI 3.2.0 PR1.
* Table Header set explicitly for IE6 and table row now has page-break: avoid in print CSS.
* text-shadow:none !important set for all text in print css.
* Removed scrollbar from textareas in IE.
* Fixed textarea stylings and form field treatment for validity. Added default background-color.
* New robust clearfix solution without IE 5.5 hack ( #45 #126 ).
* Margins for form-elements explicitly set to 0 as webkit adds 2px space around form elements' chrome.
* Dropped text-rendering: optimizeLegibility as it breaks small-caps and looks odd on Linux machines.
* Lists now have a left margin of 1.8em. Default list-style-type for ordered list is decimal.
* Image Replacement now works with right-to-left text ( #68 ).
* Removed "Star Hack" for checkboxes in favor of .ie7 selector.
#### index.html
* IE conditional classes have moved from the <body> tag to the <html> tag ( #44 ).
* Added a IE6 call for the minified dd_belatedpng.
* Google Analytics script will now work with SSL in IE6.
* Added protocol independent absolute path for cdn jquery, with improved fallback-to-local code to protect against edge case IE bug.
* Commented out handheld CSS ( #73 ).
* Mobile viewport and textsize styles adjusted per group feedback ( #37 ).
#### .htaccess
* More files are served via gzip like .htc ( #55 ).
* Added Expires header for content types image/gif and video/webm.
* Fixed favicon display in IE6 ( #113 ).
* Corrected mimetypes for fonts.
* Removed caching for files of type json/xml.
* Better use of ifmodule for more stability in different Apache environments.
[View full diff and commit history](http://github.com/paulirish/html5-boilerplate/compare/v0.9.1...v0.9.5)
#### Contributors
Shi Chuan, Rob Larsen, Ivan Nikolić, Mikko Tikkanen, Velir, Paul Neave, Weston Ruter, Jeffrey Barke, Robert Meissner, SirFunk, Philip von Bargen, Kroc Camen, Rick Waldron, Andreas Madsen, Marco d'Itri, Adeelejaz, James Rosen, Dave DeSandro, Ken Newman, Daniel Lenz, Swaroop C H, Yann Mainier, Joe Sak, Irakli, Rob Flaherty, Jeff Starr, Mike Lamb, Holek, Aaron Peters, Kaelig, Meander, Charlie Ussery, Ciney, Région Wallonne, Sirupsen, and Paul Hayes.
### v.0.9.1 : August 13th, 2010
* HTML5 Boilerplate is now in the Public Domain
* Nginx configuration added
* Font stacks (sans-serif and monospace) simplified
* Very accessible a:focus styles.
* Corrected IE=edge,chromeframe enabling (As a result, the base HTML [does not validate](http://bit.ly/cGSSgr))
* ServerSideIncludes disabled by default.
* Apache config bugfixes
* Conditional body tag class combined
* dd_belatedPNG updated to 0.0.8. Redundant BackgroundImageCache fix removed.
[View full diff and commit history](http://github.com/paulirish/html5-boilerplate/compare/v0.9...v0.9.1)
##### Thanks:
voodootikigod, garowetz, fearphage, christopherjacob, mathias byenens, daniel harttman, rse, chris dary, erik dahlstrom, timwillison, kenneth nordahl, riddle, elcuervo, andreas kuckartz, 3rdEden, riley willis, majic3
### v0.9 : August 10th, 2010 - Initial release
## License:
Major components:
* Modernizr: MIT/BSD license
* jQuery: MIT/GPL license
* DD_belatedPNG: MIT license
* YUI Profiling: BSD license
* HTML5Doctor CSS reset: Public Domain
* CSS Reset Reloaded: Public Domain
Everything else:
* [The Unlicense](http://unlicense.org) (aka: public domain)
## Summary:
This is a set of files that a front-end developer can use to get started on a website, with following included:
1. Cross-browser compatible (IE6, yeah we got that.)
2. HTML5 ready. Use the new tags with certainty.
3. Optimal caching and compression rules for grade-A performance
4. Best practice site configuration defaults
5. Think there's too much? The HTML5 Boilerplate is delete-key friendly. :)
6. Mobile browser optimizations
7. Progressive enhancement graceful degredation ........ yeah yeah we got that
8. IE specific classes for maximum cross-browser control
9. Want to write unit tests but lazy? A full, hooked up test suite is waiting for you.
10. Javascript profiling.. in IE6 and IE7? Sure, no problem.
11. Console.log nerfing so you won't break anyone by mistake.
12. Never go wrong with your doctype or markup!
13. An optimal print stylesheet, performance optimized
14. iOS, Android, Opera Mobile-adaptable markup and CSS skeleton.
15. IE6 pngfix baked in.
16. jQuery, waiting for you
## Releases
There are two releases: a documented release, which is exactly what you see here, and a "stripped" release, with most of the descriptive comments stripped out.
Watch the [current tickets](http://github.com/paulirish/html5-boilerplate/issues) to view the areas of active development.

View File

@@ -1,816 +0,0 @@
<?xml version="1.0"?>
<project name="Boilerplate Build" default="build" basedir="../"> <!-- one back since we're in build/ -->
<!-- Load in Ant-Contrib to give us access to some very useful tasks! -->
<!-- the .jar file is located in the tools directory -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${basedir}/build/tools/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<!-- load shell environment -->
<property environment="ENV" />
<!-- load property files -->
<property file="build/config/project.properties"/>
<property file="build/config/default.properties"/>
<!-- merge the stylesheet properties -->
<var name="stylesheet-files" value="${file.stylesheets}, ${file.default.stylesheets}"/>
<!-- merge the pages properties -->
<var name="page-files" value="${file.pages}, ${file.pages.default.include}"/>
<!--
*************************************************
* BASE TARGETS *
*************************************************
-->
<target name="basics">
<if>
<equals arg1="${env}" arg2="dev"/>
<then>
<!-- Build a dev environment -->
<echo message="Building a Development Environment..."/>
<antcall target="-basics.dev"/>
</then>
<elseif>
<equals arg1="${env}" arg2="test"/>
<then>
<!-- Build a test environment -->
<echo message="Building a Test Environment..."/>
<antcall target="-basics.test"/>
</then>
</elseif>
<else>
<!-- Build a production environment -->
<echo message="Building a Production Environment..."/>
<antcall target="-basics.production"/>
</else>
</if>
</target>
<target name="text">
<if>
<equals arg1="${env}" arg2="dev"/>
<then>
<!-- Build a dev environment -->
<echo message="Building a Development Environment..."/>
<antcall target="-text.dev"/>
</then>
<elseif>
<equals arg1="${env}" arg2="test"/>
<then>
<!-- Build a test environment -->
<echo message="Building a Test Environment..."/>
<antcall target="-text.test"/>
</then>
</elseif>
<else>
<!-- Build a production environment -->
<echo message="Building a Production Environment..."/>
<antcall target="-text.production"/>
</else>
</if>
<!-- funky order due to jpegtran being a jerk. See comment at top of imagesjpg task -->
<antcall target="-jpgcopy"/>
</target>
<target name="buildkit">
<if>
<equals arg1="${env}" arg2="dev"/>
<then>
<!-- Build a dev environment -->
<echo message="Building a Development Environment..."/>
<antcall target="-buildkit.dev"/>
</then>
<elseif>
<equals arg1="${env}" arg2="test"/>
<then>
<!-- Build a test environment -->
<echo message="Building a Test Environment..."/>
<antcall target="-buildkit.test"/>
</then>
</elseif>
<else>
<!-- Build a production environment -->
<echo message="Building a Production Environment..."/>
<antcall target="-buildkit.production"/>
</else>
</if>
</target>
<target name="build">
<if>
<equals arg1="${env}" arg2="dev"/>
<then>
<!-- Build a dev environment -->
<echo message="Building a Development Environment..."/>
<antcall target="-build.dev" />
</then>
<elseif>
<equals arg1="${env}" arg2="test"/>
<then>
<!-- Build a test environment -->
<echo message="Building a Test Environment..."/>
<antcall target="-build.test" />
</then>
</elseif>
<else>
<!-- Build a production environment -->
<echo message="Building a Production Environment..."/>
<antcall target="-build.production" />
</else>
</if>
</target>
<target name="minify">
<if>
<equals arg1="${env}" arg2="dev"/>
<then>
<!-- Build a dev environment -->
<echo message="Building a Development Environment..."/>
<antcall target="-minify.dev"/>
</then>
<elseif>
<equals arg1="${env}" arg2="test"/>
<then>
<!-- Build a test environment -->
<echo message="Building a Test Environment..."/>
<antcall target="-minify.test"/>
</then>
</elseif>
<else>
<!-- Build a production environment -->
<echo message="Building a Production Environment..."/>
<antcall target="-minify.production"/>
</else>
</if>
</target>
<!--
*************************************************
* BUILD TARGETS *
*************************************************
-->
<!-- Target: basics -->
<target name="-basics.dev"
depends="-rev,
-clean,
-copy"/>
<target name="-basics.test"
depends="-rev,
-clean,
-copy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-css,
-html"/>
<target name="-basics.production"
depends="-rev,
-clean,
-copy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-strip-console.log,
-css,
-html"/>
<!-- Target: text -->
<target name="-text.dev"
depends="-rev,
-clean,
-copy"/>
<target name="-text.test"
depends="-rev,
-clean,
-copy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-css,
-html,
-htmlclean"/>
<target name="-text.production"
depends="-rev,
-clean,
-copy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-strip-console.log,
-css,
-html,
-htmlclean"/>
<!-- Target: buildkit -->
<target name="-buildkit.dev"
depends="-rev,
-clean,
-prodcopy,
-imagespng,
-imagesjpg"/>
<target name="-buildkit.test"
depends="-rev,
-clean,
-prodcopy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-css,
-html,
-htmlbuildkit,
-imagespng,
-imagesjpg"/>
<target name="-buildkit.production"
depends="-rev,
-clean,
-prodcopy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-strip-console.log,
-css,
-html,
-htmlbuildkit,
-imagespng,
-imagesjpg"/>
<!-- Target: build -->
<target name="-build.dev"
depends="-rev,
-clean,
-prodcopy,
-imagespng,
-imagesjpg"/>
<target name="-build.test"
depends="-rev,
-clean,
-prodcopy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-css,
-html,
-htmlclean,
-imagespng,
-imagesjpg"/>
<target name="-build.production"
depends="-rev,
-clean,
-prodcopy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-strip-console.log,
-css,
-html,
-htmlclean,
-imagespng,
-imagesjpg"/>
<!-- Target: minify -->
<target name="-minify.dev"
depends="-rev,
-clean,
-prodcopy,
-imagespng,
-imagesjpg"/>
<target name="-minify.test"
depends="-rev,
-clean,
-prodcopy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-css,
-html,
-htmlcompress,
-imagespng,
-imagesjpg"/>
<target name="-minify.production"
depends="-rev,
-clean,
-prodcopy,
-usemin,
-js.all.minify,
-js.main.concat,
-js.mylibs.concat,
-js.scripts.concat,
-js.delete,
-strip-console.log,
-css,
-html,
-htmlcompress,
-imagespng,
-imagesjpg"/>
<!--
*************************************************
* FUNCTION TARGETS *
*************************************************
-->
<target name="-load-build-info" description="(PRIVATE) Loads the build versioning information">
<property file="./${dir.build}/config/${build.version.info}"/>
</target>
<target name="-clean" description="(PRIVATE) Wipe the previous build (Deletes the dir.publish directory">
<!-- This is a private target -->
<echo message="Cleaning up previous build directory..."/>
<delete dir="./${dir.publish}/"/>
</target>
<target name="-rev" description="(PRIVATE) Increase the current build number by one and set build date">
<!-- This is a private target -->
<echo message="====================================================================="/>
<echo message="Welcome to the HTML5 Boilerplate Build Script!"/>
<echo message=" "/>
<echo message="We're going to get your site all ship-shape and ready for prime time."/>
<echo message=" "/>
<echo message="This should take somewhere between 15 seconds and a few minutes,"/>
<echo message="mostly depending on how many images we're going to compress."/>
<echo message=" "/>
<echo message="Feel free to come back or stay here and follow along."/>
<echo message="====================================================================="/>
<echo message=" "/>
<echo message=" "/>
<echo message="Increasing the build number..."/>
<propertyfile file="./${dir.build}/config/${build.version.info}" comment="Build Information File - DO NOT CHANGE">
<entry key="build.number" type="int" default="0000" operation="+" pattern="0000"/>
<entry key="build.date" type="date" value="now" pattern="dd.MM.yyyy HH:mm"/>
</propertyfile>
<property file="./${dir.build}/config/${build.version.info}"/>
<echo>Creating build ${build.number}</echo>
</target>
<target name="current-number" depends="-load-build-info" description="(PUBLIC) Returns the current build number">
<echo>Current build number: ${build.number}</echo>
</target>
<target name="-copy" depends="-load-build-info">
<!-- This is a private target -->
<echo message="Copying over new files..."/>
<!-- combine the 2 exclude properties -->
<var name="excluded-files" value="${file.default.exclude}, ${file.exclude}"/>
<copy todir="./${dir.publish}">
<fileset dir="${dir.source}/" excludes="${excluded-files}"/>
</copy>
<echo message="A copy of all non-dev files are now in: ./${dir.publish}."/>
</target>
<target name="-prodcopy" depends="-load-build-info">
<!-- This is a private target -->
<echo message="Copying over new files..."/>
<!-- combine the 2 exclude properties -->
<var name="prod-excluded-files" value="${file.default.exclude}, ${file.jpg.exclude}, ${file.exclude}"/>
<copy todir="./${dir.publish}">
<fileset dir="${dir.source}/" excludes="${prod-excluded-files}"/>
</copy>
<echo message="A copy of all non-dev files are now in: ./${dir.publish}."/>
</target>
<!-- JAVASCRIPT -->
<target name="-js.main.concat" depends="-load-build-info" description="(PRIVATE) Concatenates the JS files in dir.js">
<echo message="Concatenating Main JS scripts..."/>
<concat destfile="./${dir.publish}/${dir.js}/scripts-${build.number}.js">
<fileset dir="./${dir.publish}/">
<include name="**/${dir.js.main}/*.min.js"/>
<exclude name="**/${dir.js.mylibs}/*.js"/>
<exclude name="**/${dir.js.libs}/*.js"/>
</fileset>
</concat>
</target>
<target name="-js.mylibs.concat" depends="-load-build-info" description="(PRIVATE) Concatenates the JS files in dir.js.mylibs">
<echo message="Concatenating JS libraries"/>
<concat destfile="./${dir.publish}/${dir.js}/libs-${build.number}.js">
<fileset dir="./${dir.publish}/${dir.js.mylibs}/">
<include name="**/*.min.js"/>
</fileset>
</concat>
</target>
<target name="-js.scripts.concat" depends="-load-build-info" if="build.concat.scripts">
<echo message="Concatenating library file with main script file"/>
<concat destfile="./${dir.publish}/${dir.js}/scripts-${build.number}.min.js">
<fileset dir="./${dir.publish}/${dir.js}/">
<include name="libs-${build.number}.js"/>
<include name="scripts-${build.number}.js"/>
</fileset>
</concat>
<echo message="Concatenating library file with main debug script file"/>
<concat destfile="./${dir.publish}/${dir.js}/scripts-${build.number}-debug.min.js">
<fileset dir="./${dir.publish}/${dir.js}/">
<include name="libs-${build.number}.js"/>
<include name="scripts-${build.number}-debug.js"/>
</fileset>
</concat>
</target>
<target name="-js.all.minify" depends="-js.libs.minify" description="(PRIVATE) Minifies the scripts.js files created by js.scripts.concat">
<echo message="Minifying concatenated script- and library-file"/>
<apply executable="java" parallel="false">
<fileset dir="./${dir.publish}/${dir.js}">
<include name="**/*.js"/>
<exclude name="**/*.min.js"/>
<exclude name="**/${dir.js.libs}/*.js"/>
</fileset>
<arg line="-jar"/>
<arg path="./${dir.build.tools}/${tool.yuicompressor}"/>
<srcfile/>
<arg line="--line-break"/>
<arg line="4000"/>
<arg line="-o"/>
<mapper type="glob" from="*.js" to="../${dir.publish}/${dir.js}/*.min.js"/>
<targetfile/>
</apply>
</target>
<target name="-js.libs.minify" depends="-load-build-info" description="(PRIVATE) Minifies the helper files in dir.js.libs">
<echo message="Minifying helper JS files..."/>
<apply executable="java" parallel="false">
<fileset dir="./${dir.publish}/${dir.js.libs}/" includes="*.js" excludes="*.min.js"/>
<arg line="-jar"/>
<arg path="./${dir.build.tools}/${tool.yuicompressor}"/>
<srcfile/>
<arg line="-o"/>
<mapper type="glob" from="*.js" to="../${dir.publish}/${dir.js.libs}/*-${build.number}.min.js"/>
<targetfile/>
</apply>
</target>
<target name="-js.delete" depends="-load-build-info" description="(PRIVATE) Deletes the unoptimized js files from build if set">
<if>
<equals arg1="${build.delete.unoptimized}" arg2="true"/>
<then>
<echo message="Deleting unoptimized files..."/>
<delete file="./${dir.publish}/${dir.js}/scripts-${build.number}.js"/>
<delete file="./${dir.publish}/${dir.js}/scripts-${build.number}-debug.js"/>
<!--
<delete dir="./${dir.publish}/${dir.js.lib}/"/>
<delete file="./${dir.publish}/${dir.js}/libs-${build.number}.js"/>
this guy probably COULD be on but I think it's better if we keep him off for now. ^pi
<delete includeemptydirs="true">
<fileset dir="./${dir.publish}/${dir.js.libs}/" includes="*.js" excludes="*.min.js"/>
</delete>
-->
</then>
</if>
<if>
<and>
<equals arg1="${build.delete.unoptimized}" arg2="true"/>
<equals arg1="${build.concat.scripts}" arg2="true"/>
</and>
<then>
<delete file="./${dir.publish}/${dir.js}/libs-${build.number}.js"/>
<delete file="./${dir.publish}/${dir.js}/scripts-${build.number}.js"/>
</then>
</if>
</target>
<target name="-strip-console.log" description="(PRIVATE)Comments out any console.log statements">
<echo message="Commenting out console.log lines"/>
<replaceregexp match="(console.log\(.*\))" replace="/\*\1\*/" flags="g" >
<fileset dir="./${dir.publish}/${dir.js}/">
<include name="**/*.js"/>
<exclude name="**/*.min.js"/>
</fileset>
</replaceregexp>
</target>
<!-- HTML -->
<target name="-usemin" depends="-serverconfig" description="(PRIVATE) Replaces references to non-minified scripts">
<echo message="Switching to minified js files..."/>
<!-- switch from a regular jquery to minified -->
<replaceregexp match="jquery-(\d|\d(\.\d)+)\.js" replace="jquery-\1.min.js" flags="g">
<fileset dir="./${dir.publish}" includes="${page-files}"/>
</replaceregexp>
<!-- switch any google CDN reference to minified -->
<replaceregexp match="(\d|\d(\.\d)+)\/jquery\.js" replace="\1/jquery.min.js" flags="g">
<fileset dir="./${dir.publish}" includes="${page-files}"/>
</replaceregexp>
<echo>Kill off those versioning flags: ?v=2</echo>
<replaceregexp match='\?v=\d+">' replace='">' flags="g">
<fileset dir="./${dir.publish}" includes="${page-files}"/>
</replaceregexp>
<echo>Remove favicon.ico reference if it is pointing to the root</echo>
<replaceregexp match="&lt;link rel=&quot;shortcut icon&quot; href=&quot;/favicon\.ico&quot;&gt;" replace="">
<fileset dir="./${dir.publish}" includes="${page-files}"/>
</replaceregexp>
<!-- we maintain the apple-touch-icon reference for Android 2.2 www.ravelrumba.com/blog/android-apple-touch-icon
<replace token="&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/apple-touch-icon.png&quot;>" value="">
<fileset dir="./${dir.publish}" includes="${page-files}"/>
</replace>
-->
</target>
<target name="-html" depends="-load-build-info" description="(PRIVATE) Very basic clean up of the HTML">
<echo message="Update the HTML to reference our concatenated script file: scripts-${build.number}.min.js"/>
<!-- style.css replacement handled as a replacetoken above -->
<replaceregexp match="&lt;!-- scripts concatenated [\d\w\s\W]*?!-- end ((scripts)|(concatenated and minified scripts))--&gt;" replace="&lt;script src='${dir.js}/scripts-${build.number}.min.js\'&gt;&lt;/script&gt;" flags="m">
<fileset dir="./${dir.publish}" includes="${page-files}"/>
</replaceregexp>
<!--[! use comments like this one to avoid having them get minified -->
</target>
<target name="-htmlclean">
<echo message="Run htmlcompressor on the HTML"/>
<echo message=" - maintaining whitespace"/>
<echo message=" - removing html comments"/>
<echo message=" - compressing inline style/script tag contents"/>
<apply executable="java" parallel="false" force="true" dest="./${dir.publish}/" >
<fileset dir="./${dir.publish}/" includes="${page-files}"/>
<arg value="-jar"/>
<arg path="./${dir.build}/tools/${tool.htmlcompressor}"/>
<arg line="--type html"/>
<arg line="--preserve-multi-spaces"/>
<arg line="--remove-quotes"/>
<arg line="--compress-js"/>
<arg line="--compress-css"/>
<srcfile/>
<arg value="-o"/>
<mapper type="glob" from="*.html" to="../${dir.publish}/*.html"/>
<targetfile/>
</apply>
</target>
<target name="-htmlbuildkit">
<echo message="Run htmlcompressor on the HTML"/>
<echo message=" - maintaining whitespace"/>
<echo message=" - retain html comments"/>
<echo message=" - compressing inline style/script tag contents"/>
<apply executable="java" parallel="false" force="true" dest="./${dir.publish}/" >
<fileset dir="./${dir.publish}/" includes="${page-files}"/>
<arg value="-jar"/>
<arg path="./${dir.build}/tools/${tool.htmlcompressor}"/>
<arg value="--preserve-comments"/>
<arg line="--preserve-multi-spaces"/>
<arg line="--type html"/>
<arg line="--compress-js"/>
<arg line="--compress-css"/>
<srcfile/>
<arg value="-o"/>
<mapper type="glob" from="*.html" to="../${dir.publish}/*.html"/>
<targetfile/>
</apply>
</target>
<target name="-htmlcompress">
<echo message="Run htmlcompressor on the HTML"/>
<echo message=" - removing unnecessary whitespace"/>
<echo message=" - removing html comments"/>
<echo message=" - compressing inline style/script tag contents"/>
<apply executable="java" parallel="false" force="true" dest="./${dir.publish}/" >
<fileset dir="./${dir.publish}/" includes="${page-files}"/>
<arg value="-jar"/>
<arg path="./${dir.build}/tools/${tool.htmlcompressor}"/>
<arg line="--type html"/>
<arg line="--remove-quotes"/>
<arg line="--compress-js"/>
<arg line="--compress-css"/>
<srcfile/>
<arg value="-o"/>
<mapper type="glob" from="*.html" to="../${dir.publish}/*.html"/>
<targetfile/>
</apply>
</target>
<target name="-serverconfig" description="(PRIVATE) Upgrades expires headers">
<echo message="Upgrading expires header timeouts for js/css to 1yr..."/>
<replace file="./${dir.publish}/${file.serverconfig}" token="access plus 2 months" value="access plus 1 year"/>
</target>
<!-- CSS -->
<target name="-css" depends="-load-build-info" description="Concatenates and Minifies any stylesheets listed in the file.stylesheets property">
<echo message="Concatenating css..."/>
<concat destfile="./${dir.publish}/${dir.css}/style-${build.number}.css">
<filelist dir="./${dir.publish}/${dir.css}" files="${stylesheet-files}"/>
</concat>
<echo message="Minifying css..."/>
<apply executable="java" parallel="false">
<fileset dir="./${dir.publish}/${dir.css}/" includes="style-${build.number}.css"/>
<arg line="-jar"/>
<arg path="./${dir.build.tools}/${tool.yuicompressor}"/>
<srcfile/>
<arg line="-o"/>
<mapper type="glob" from="style-${build.number}.css" to="../${dir.publish}/${dir.css}/style-${build.number}.min.css"/>
<targetfile/>
</apply>
<echo message="Updating the HTML with the new css filename"/>
<replace token="style.css" value="style-${build.number}.min.css" dir="${dir.publish}" includes="${page-files}"/>
</target>
<!-- IMAGES -->
<target name="-imagespng" description="(PRIVATE) Optimizes .png images using optipng">
<echo message="Optimizing images..."/>
<echo message="This part might take a while. But everything else is already done."/>
<echo message=" "/>
<echo message="First, we run optipng on the .png files..."/>
<!-- osfamily=unix is actually true on OS X as well -->
<!-- On *nix's and OS X, check for optipng and give a helpful message if it's not installed -->
<if>
<and>
<os family="unix" />
<available file="optipng" filepath="${ENV.PATH}" />
</and>
<then>
<apply executable="optipng" osfamily="unix">
<arg value="-quiet"/>
<arg value="-o7"/>
<fileset dir="./${dir.publish}/">
<include name="**/*.png"/>
</fileset>
</apply>
</then>
<elseif>
<os family="unix" />
<then>
<echo message="*** optipng NOT INSTALLED. SKIPPING OPTIMIZATION OF PNGs." />
<echo message="*** Install optipng to enable png optimization." />
<echo message="*** For instructions see 'Dependencies' at: http://html5boilerplate.com/docs/#Build-script#dependencies" />
</then>
</elseif>
</if>
<apply executable="tools/optipng-0.6.4-exe/optipng.exe" osfamily="windows">
<arg value="-o7"/>
<arg value="-quiet"/>
<fileset dir="./${dir.publish}/">
<include name="**/*.png"/>
</fileset>
</apply>
</target>
<target name="-imagesjpg" description="(PRIVATE) Optimizes .jpg images using jpegtan">
<echo message="Now, we clean up those jpgs..."/>
<!-- jpegtran is a little weird in that it assumes a pre-existing file means it's already optimized. -->
<!-- why? good question. To combat this, we skipped copying over the ${dir.images}/*.jpg earlier in the -->
<!-- copy task. Now, we're using jpegtran to copy the files over while we crunch 'em. -->
<if>
<equals arg1="${images.strip.metadata}" arg2="true"/>
<then>
<var name="strip-meta-tags" value="none"/>
</then>
<else>
<var name="strip-meta-tags" value="all"/>
</else>
</if>
<!-- On *nix's and OS X, check for jpegtran and give a helpful message if it's not installed -->
<if>
<and>
<os family="unix" />
<available file="jpegtran" filepath="${ENV.PATH}" />
</and>
<then>
<apply executable="jpegtran" osfamily="unix">
<fileset dir="${dir.source}/${dir.images}" includes="*.jpg"/>
<arg value="-copy"/>
<arg value="${strip-meta-tags}"/>
<arg value="-optimize"/>
<srcfile/>
<redirector>
<outputmapper type="glob" from="*.jpg" to="./${dir.publish}/${dir.images}/*.jpg"/>
</redirector>
<!-- you may want to flag optimized images. If so, do it here. Otherwise change this to type="identity" -->
</apply>
</then>
<elseif>
<os family="unix" />
<then>
<echo message="*** jpegtran NOT INSTALLED. SKIPPING OPTIMIZATION OF JPEGs." />
<echo message="*** Install jpegtran to enable jpeg optimization." />
<echo message="*** For instructions see 'Dependencies' at: http://html5boilerplate.com/docs/#Build-script#dependencies" />
</then>
</elseif>
</if>
<apply executable="tools/jpegtran.exe" osfamily="windows">
<fileset dir="${dir.source}/${dir.images}" includes="*.jpg"/>
<arg value="-copy"/>
<arg value="${strip-meta-tags}"/>
<arg value="-optimize"/>
<srcfile/>
<targetfile/>
<!-- you may want to flag optimized images. If so, do it here. Otherwise change this to type="identity" -->
<mapper type="glob" from="*.jpg" to="../${dir.publish}/${dir.images}/*.jpg"/>
</apply>
</target>
<target name="-jpgcopy">
<echo message="Copying over the unmodified jpegs."/>
<copy todir="./${dir.publish}/${dir.images}">
<fileset dir="${dir.source}/${dir.images}" includes="*.jpg"/>
</copy>
</target>
</project>

View File

@@ -1,80 +0,0 @@
#
# Default Build Settings
# you can override these settings on a project basis in a project.properties file
# so probably best not to touch these as they could be overwritten in later versions!
#
#
# Directory Paths
#
dir.source = .
dir.publish = publish
dir.build = build
dir.build.tools = ${dir.build}/tools
dir.test = test
dir.demo = demo
dir.js = js
dir.js.main = ${dir.js}
# scripts in the lib direcotry will only be minified, not concatenated together
dir.js.libs = ${dir.js}/libs
dir.js.mylibs = ${dir.js}/mylibs
dir.css = css
dir.images = img
#
# HTML, PHP, etc files to clean and update script/css references
#
file.pages.default.include = index.html, 404.html
# You will need to include the property file.pages.include in your project.properties file
# and add any extra pages you want to be updated by the scripts in a comma separated lis
# the server configuration you're going with. If you don't use apache,
# get a different one here: github.com/paulirish/html5-boilerplate-server-configs
file.serverconfig = .htaccess
#
# Files not to be copied over by the script to the publish directory
#
file.default.exclude = .gitignore, .project, .settings, README.markdown, README.md, **/.git/**, **/.svn/**, **/${dir.build}/**, **/${dir.test}/**, **/${dir.demo}/**
file.jpg.exclude = ${dir.images}/*.jpg
# Declare the file.exclude property in your project.properties file if you want to exclude files / folders you have added
# Note: you cannot decalre an empty file.exclude property
#
# Default Styleshee
#
file.default.stylesheets = style.css
#
# Script Optimisation
#
# If set, concat libraries with main scripts file, producing single script file
build.concat.scripts = true
# If set, delete minified but unconcatted files.
build.delete.unoptimized = true
#
# Image Optimisation
#
images.strip.metadata = true
# Seting this to true will strip the metadata from all jpeg files.
# YOU SHOULD ONLY DO THIS IF YOU OWN THE COPYRIGHT TO ALL THE IMAGES IN THE BUILD
# Build Info
build.version.info = buildinfo.properties
build.scripts.dir = ${dir.build}/build-scripts
# Tools
tool.yuicompressor = yuicompressor-2.4.2.jar
tool.htmlcompressor = htmlcompressor-0.9.9.jar
tool.csscompressor = css-compressor/cli.php

View File

@@ -1,56 +0,0 @@
# project.properties file defines overrides for default.properties
# Explanation: This file should be created by each user as and when he or she needs to override particular values.
# Consequently, it should not be placed under version control.
# Stylesheets
#
# Note: Stylesheets will be concatenated in the order they are listed in the file.stylesheets property (i.e. the las
# file listed will be at the end of the concatenated file), so it probably makes sense to have the main style.css file
# as the first entry
# Example:
# file.stylesheets = style.css, lightbox.css, plugin.css
#
file.stylesheets =
# Web Pages
#
# These are the pages (files) that will be served to users (.html, .php, .asp, etc). Files in this property will
# be minified / optimised and have any stylesheet or javascript references updated to the minified examples
#
# The paths need to be relative
#
# Files can be added in a comma separated form
file.pages =
# Excluded files and dirs
#
# Add any files or directories you add to the project and do not want to be copied to the publish directory as a
# comma separated lis
# These files are ignored in addition to the default ones specified in default.properties.
file.exclude =
# Specify an environment to build
#
# By Default, it builds a production environmen
# Set to dev if buidling a development environmen
# Set to test if building a test environmen
env =
# Directory Structure
#
# Override any directory paths specific to this projec
#
# dir.publish
# dir.js
# dir.js.libs
# dir.js.mylibs
# dir.css
# dir.images

View File

@@ -1,42 +0,0 @@
#!/usr/bin/env bash
#Generate a new project from your HTML5 Boilerplate repo clone
#Created 2010-10-13, Rick Waldron
##first run
# $ cd html5-boilerplate/build
# $ chmod +x createproject.sh && ./createproject.sh
##usage
# $ cd html5-boilerplate/build
# $ ./createproject.sh
# find project root (also ensure script is ran from within repo)
src=$(git rev-parse --show-toplevel) || exit 1
# get a name for new project
while [[ -z $name ]]
do
echo "To create a new html5-boilerplate project, enter a new directory name:"
read name || exit
done
dst=$src/../$name
if [[ -d $dst ]]
then
echo "$dst exists"
else
#create new project
mkdir "$dst" || exit 1
#sucess message
echo "Created Directory: $dst"
cd "$src"
cp -vr css js img build test *.html *.xml *.txt *.png *.ico .htaccess "$dst"
#sucess message
echo "Created Project: $dst"
fi

View File

@@ -1,5 +0,0 @@
# This is for windows users only.
# If you're on a mac or linux, just run `ant build` from this folder in Terminal
set MYDIR=%~dp0
ant build

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,21 +0,0 @@
Copyright (C) 2001-2010 Cosmin Truta.
This software is provided 'as-is', without any express or implied
warranty. In no event will the author(s) be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not
be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

Binary file not shown.

View File

@@ -1,15 +1,15 @@
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
<!-- Most restrictive policy: -->
<site-control permitted-cross-domain-policies="none"/>
<!-- Least restrictive policy: -->
<!--
<site-control permitted-cross-domain-policies="all"/>
@@ -17,9 +17,9 @@
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
-->
<!--
If you host a crossdomain.xml file with allow-access-from domain=“*”
and dont understand all of the points described here, you probably
If you host a crossdomain.xml file with allow-access-from domain="*"
and dont understand all of the points described here, you probably
have a nasty security vulnerability. ~ simon willison
-->
</cross-domain-policy>
</cross-domain-policy>

View File

@@ -1,8 +0,0 @@
* {
float: none; /* Screens are not big enough to account for floats */
background: #fff; /* As much contrast as possible */
color: #000;
}
/* Slightly reducing font size to reduce need to scroll */
body { font-size: 80%; }

View File

@@ -1,261 +1,293 @@
/**
* HTML5 Boilerplate
/*
* HTML5 Boilerplate
*
* style.css contains a reset, font normalization and some base styles.
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*
* Credit is left where credit is due.
* Much inspiration was taken from these projects:
* - yui.yahooapis.com/2.8.1/build/base/base.css
* - camendesign.com/design/
* - praegnanz.de/weblog/htmlcssjs-kickstart
* Detailed information about this CSS: h5bp.com/css
*
* ==|== normalize ==========================================================
*/
/**
* html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
* v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
* html5doctor.com/html-5-reset-stylesheet/
/* =============================================================================
HTML5 display definitions
========================================================================== */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
/* =============================================================================
Base
========================================================================== */
/*
* 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
* 2. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
html, button, input, select, textarea { font-family: sans-serif; color: #222; }
blockquote, q { quotes: none; }
body { margin: 0; font-size: 1em; line-height: 1.4; }
blockquote:before, blockquote:after,
q:before, q:after { content: ""; content: none; }
/*
* Remove text-shadow in selection highlight: h5bp.com/i
* These selection declarations have to be separate
* Also: hot pink! (or customize the background color to match your design)
*/
ins { background-color: #ff9; color: #000; text-decoration: none; }
::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }
mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
del { text-decoration: line-through; }
/* =============================================================================
Links
========================================================================== */
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
table { border-collapse: collapse; border-spacing: 0; }
/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }
/* =============================================================================
Typography
========================================================================== */
abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
input, select { vertical-align: middle; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
/**
* Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
*/
/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity */
select, input, textarea, button { font:99% sans-serif; }
/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
/* Normalize monospace sizing:
en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
pre, code, kbd, samp { font-family: monospace, sans-serif; }
/**
* Minimal base styles.
*/
/* Always force a scrollbar in non-IE */
html { overflow-y: scroll; }
/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: none; }
ul, ol { margin-left: 2em; }
ol { list-style-type: decimal; }
/* Remove margins for navigation lists */
nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
strong, th { font-weight: bold; }
td { vertical-align: top; }
/* Set sub, sup without affecting line-height: gist.github.com/413930 */
sub, sup { font-size: 75%; line-height: 0; position: relative; }
/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
pre {
/* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
white-space: pre; white-space: pre-wrap; word-wrap: break-word;
padding: 15px;
}
textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
/* =============================================================================
Lists
========================================================================== */
.ie6 legend, .ie7 legend { margin-left: -7px; }
ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
/* Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css */
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; }
.ie7 input[type="checkbox"] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }
/* Hand cursor on clickable input elements */
label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
/* =============================================================================
Embedded content
========================================================================== */
/* Webkit browsers add a 2px margin outside the chrome of form elements */
button, input, select, textarea { margin: 0; }
/*
* 1. Improve image quality when scaled in IE7: h5bp.com/d
* 2. Remove the gap between images and borders on image containers: h5bp.com/i/440
*/
img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
/*
* Correct overflow not hidden in IE9
*/
svg:not(:root) { overflow: hidden; }
/* =============================================================================
Figures
========================================================================== */
figure { margin: 0; }
/* =============================================================================
Forms
========================================================================== */
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }
/*
* 1. Correct color not inheriting in IE6/7/8/9
* 2. Correct alignment displayed oddly in IE6/7
*/
legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
/*
* 1. Correct font-size not inheriting in all browsers
* 2. Remove margins in FF3/4 S5 Chrome
* 3. Define consistent vertical alignment display in all browsers
*/
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
/*
* 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
*/
button, input { line-height: normal; }
/*
* 1. Display hand cursor for clickable form elements
* 2. Allow styling of clickable form elements in iOS
* 3. Correct inner spacing displayed oddly in IE7 (doesn't effect IE6)
*/
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
/*
* Re-set default cursor for disabled elements
*/
button[disabled], input[disabled] { cursor: default; }
/*
* Consistent box sizing and appearance
*/
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
/*
* Remove inner padding and border in FF3/4: h5bp.com/l
*/
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
/*
* 1. Remove default vertical scrollbar in IE6/7/8/9
* 2. Allow only vertical resizing
*/
textarea { overflow: auto; vertical-align: top; resize: vertical; }
/* Colors for form validity */
input:valid, textarea:valid { }
input:invalid, textarea:invalid {
border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;
}
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
input:valid, textarea:valid { }
input:invalid, textarea:invalid { background-color: #f0dddd; }
/* These selection declarations have to be separate
No text-shadow: twitter.com/miketaylr/status/12228805301
Also: hot pink! */
::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
::selection { background:#FF5E99; color:#fff; text-shadow: none; }
/* =============================================================================
Tables
========================================================================== */
/* j.mp/webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color: #FF5E99; }
table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }
/* Make buttons play nice in IE:
www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
button { width: auto; overflow: visible; }
/* Bicubic resizing for non-native sized IMG:
code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
.ie7 img { -ms-interpolation-mode: bicubic; }
/* =============================================================================
Chrome Frame Prompt
========================================================================== */
/**
* You might tweak these..
*/
.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }
body, select, input, textarea {
/* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */
color: #444;
/* Set your base font here, to apply evenly */
/* font-family: Georgia, serif; */
/* ==|== primary styles =====================================================
Author:
========================================================================== */
/* ==|== media queries ======================================================
EXAMPLE Media Query for Responsive Design.
This example overrides the primary ('mobile first') styles
Modify as content requires.
========================================================================== */
@media only screen and (min-width: 35em) {
/* Style adjustments for viewports that meet the condition */
}
/* Headers (h1, h2, etc) have no default font-size or margin; define those yourself */
h1, h2, h3, h4, h5, h6 { font-weight: bold; }
a, a:active, a:visited { color: #607890; }
a:hover { color: #036; }
/**
* Primary styles
*
* Author:
*/
/**
* Non-semantic helper classes: please define your styles before this section.
*/
/* ==|== non-semantic helper classes ========================================
Please define your styles before this section.
========================================================================== */
/* For image replacement */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
/* Hide for both screenreaders and browsers:
css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden { display: none; visibility: hidden; }
/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }
/* Hide only visually, but have it available for screenreaders: by Jon Neal.
www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }
/* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
j.mp/bestclearfix */
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
.clearfix { zoom: 1; }
.clearfix { *zoom: 1; }
/**
* Media queries for responsive design.
*
* These follow after primary styles so they will successfully override.
*/
/* ==|== print styles =======================================================
Print styles.
Inlined to avoid required HTTP connection: h5bp.com/r
========================================================================== */
@media all and (orientation:portrait) {
/* Style adjustments for portrait mode goes here */
}
@media all and (orientation:landscape) {
/* Style adjustments for landscape mode goes here */
}
/* Grade-A Mobile Browsers (Opera Mobile, Mobile Safari, Android Chrome)
consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-device-width: 480px) {
/* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you: j.mp/textsizeadjust */
/* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
}
/**
* Print styles.
*
* Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
*/
@media print {
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
-ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
a, a:visited { color: #444 !important; text-decoration: underline; }
* { 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 */
a, a:visited { text-decoration: underline; }
a[href]:after { content: " (" attr(href) ")"; }
abbr[title]:after { content: " (" attr(title) ")"; }
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
thead { display: table-header-group; } /* h5bp.com/t */
tr, img { page-break-inside: avoid; }
img { max-width: 100% !important; }
@page { margin: 0.5cm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3{ page-break-after: avoid; }
h2, h3 { page-break-after: avoid; }
}

View File

@@ -1,531 +0,0 @@
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Element Consistency Tests</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!-- CSS : implied media="all" -->
<link rel="stylesheet" href="../css/style.css?v=2">
<!-- Uncomment if you are specifically targeting less enabled mobile browsers
<link rel="stylesheet" media="handheld" href="../css/handheld.css?v=2"> -->
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
<script src="../js/libs/modernizr-1.7.min.js"></script>
</head>
<body>
<div id="container">
<header>
</header>
<div id="main">
<!-- demo content lovingly lifted from the azbuka project
http://code.google.com/p/azbuka/
and the bluetrip project
http://bluetrip.org/
and peter beverloo
http://peter.sh/examples/?/html/meter-progress.html
-->
<h1>Title 01 Heading</h1>
<hr />
<h2>Level 02 Heading</h2>
<p>Lorem ipsum <em>emphasised text</em> dolor sit amet, <strong>strong text</strong>
consectetur adipisicing elit, <abbr title="">abbreviated text</abbr> sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut
<q>quoted text</q> enim ad minim veniam, quis nostrud exercitation <a href="/">link text</a>
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
<ins>inserted text</ins> irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat <code>code text</code> cupidatat
non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>
Suspendisse rhoncus, est ac sollicitudin viverra, leo orci sagittis massa, sed condimentum <acronym title="">acronym text</acronym> est tortor a lectus. Curabitur porta feugiat ullamcorper. Integer lacinia mi id odio faucibus eget tincidunt nisl iaculis. Nam adipiscing hendrerit turpis, et porttitor felis sollicitudin et. Donec dictum massa ac neque accumsan tempor. Cras aliquam, ipsum sit amet laoreet hendrerit, purus <del>deleted text</del> sapien convallis dui, et porta leo ipsum ac nunc. Nullam ornare porta dui ac semper. Cras aliquam laoreet hendrerit. Quisque vulputate dolor eget mi porta vel porta nisl pretium. Vivamus non leo magna, quis imperdiet risus. Morbi tempor risus placerat tellus imperdiet fringilla.
</p>
<blockquote>
<p>I am not one who was born in the possession of knowledge; I am one who is fond of antiquity, and earnest in seeking it there.</p>
</blockquote>
<p><cite><a href="/">Confucius, The Confucian Analects</a></cite>, (551 BC - 479 BC)</p>
<h3>Level 03 Heading</h3>
<p>Extended paragraph. <a href="">Lorem ipsum</a> dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<ol>
<li>Unus</li>
<li>Duo</li>
<li>Tres</li>
<li>Quattuor</li>
</ol>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum.</p>
<h3>Header 3</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.</p>
<h4>Unordered lists</h4>
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipisicing elit</li>
<li>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</li>
<li>Ut enim ad minim veniam</li>
</ul>
<p>Lorem ipsum dolor sit amet,consectetur adipisicing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.</p>
<pre><code>body { font:0.8125em/1.618 Arial, sans-serif;
background-color:#fff;
color:#111;
}</code></pre>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum.</p>
<h4>Header 4</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.</p>
<dl>
<dt>Definition list</dt>
<dd>Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat.</dd>
<dt>Lorem ipsum dolor sit amet</dt>
<dd>Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat.</dd>
</dl>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.</p>
<h4>Ordered list</h4>
<ol>
<li>List item</li>
<li>List item</li>
<li>List item
<ol>
<li>List item level 2</li>
<li>List item level 2
<ol>
<li>List item level 3</li>
<li>List item level 3</li>
</ol>
</li>
</ol>
</li>
</ol>
<h4>Unordered list</h4>
<ul>
<li>List item 01</li>
<li>List item 02</li>
<li>List item 03
<ul>
<li>List item level 2</li>
<li>List item level 2
<ul>
<li>List item level 3</li>
<li>List item level 3</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.</p>
<h4>Tables</h4>
<table summary="Jimi Hendrix albums">
<caption>
Jimi Hendrix - albums
</caption>
<thead>
<tr>
<th>Album</th>
<th>Year</th>
<th>Price</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Album</td>
<td>Year</td>
<td>Price</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Are You Experienced</td>
<td>1967</td>
<td>$10.00</td>
</tr>
<tr>
<td>Axis: Bold as Love</td>
<td>1967</td>
<td>$12.00</td>
</tr>
<tr>
<td>Electric Ladyland</td>
<td>1968</td>
<td>$10.00</td>
</tr>
<tr>
<td>Band of Gypsys</td>
<td>1970</td>
<td>$12.00</td>
</tr>
</tbody>
</table>
<p>
I am <a href="http://devkick.com/lab/tripoli/sample.php?abc123">the a tag</a> example<br>
I am <abbr title="test">the abbr tag</abbr> example<br>
I am <acronym>the acronym tag</acronym> example<br>
I am <b>the b tag</b> example<br>
I am <big>the big tag</big> example<br>
I am <cite>the cite tag</cite> example<br>
I am <code>the code tag</code> example<br>
I am <del>the del tag</del> example<br>
I am <dfn>the dfn tag</dfn> example<br>
I am <em>the em tag</em> example<br>
I am <font face="verdana">the font tag</font> example<br>
I am <i>the i tag</i> example<br>
I am <ins>the ins tag</ins> example<br>
I am <kbd>the kbd tag</kbd> example<br>
I am <q>the q tag <q>inside</q> a q tag</q> example<br>
I am <s>the s tag</s> example<br>
I am <samp>the samp tag</samp> example<br>
I am <small>the small tag</small> example<br>
I am <span>the span tag</span> example<br>
I am <strike>the strike tag</strike> example<br>
I am <strong>the strong tag</strong> example<br>
I am <sub>the sub tag</sub> example<br>
I am <sup>the sup tag</sup> example<br>
I am <tt>the tt tag</tt> example<br>
I am <var>the var tag</var> example<br>
I am <u>the u tag</u> example
</p>
<p>This is a &lt;p&gt; with some <code>code</code> inside.</p>
<h3>What is Lorem Ipsum?</h3>
<p><b>Lorem Ipsum</b> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p><strong>This</strong> Lorem Ipsum HTML example is created from the parts of Placeholder Markup with Lorem Ipsum - Jon Tan,
Emastic CSS Framework,
Tripoli CSS Framework and
Baseline CSS Framework .</p>
<address>Address: somewhere, World</address>
<p>
<a href="#">Link</a><br>
<strong>&lt;strong&gt;</strong><br>
<del>&lt;del&gt; deleted</del><br>
<dfn>&lt;dfn&gt; dfn</dfn><br>
<em>&lt;em&gt; emphasis</em>
</p>
<pre>
<code>&lt;html&gt;</code>
<code>&lt;head&gt;</code>
<code>&lt;/head&gt;</code>
<code>&lt;body&gt;</code>
<code>&lt;div class = "main"&gt; &lt;div&gt;</code>
<code>&lt;/body&gt;</code>
<code>&lt;/html&gt; </code>
</pre>
<tt>&lt;tt&gt;
Pellentesque tempor, dui ut ultrices viverra, neque urna blandit nisi, id accumsan dolor est vitae risus.
</tt>
<hr>
<!-- this following markup from http://bluetrip.org/ -->
<dl>
<dt>Description list title 01</dt>
<dd>Description list description 01</dd>
<dt>Description list title 02</dt>
<dd>Description list description 02</dd>
<dd>Description list description 03</dd>
</dl>
<table>
<caption>Table Caption</caption>
<thead>
<tr>
<th>Table head th</th>
<td>Table head td</td>
</tr>
</thead>
<tfoot>
<tr>
<th>Table foot th</th>
<td>Table foot td</td>
</tr>
</tfoot>
<tbody>
<tr>
<th>Table body th</th>
<td>Table body td</td>
</tr>
<tr>
<td>Table body td</td>
<td>Table body td</td>
</tr>
</tbody>
</table>
<hr>
<form action="#">
<fieldset>
<legend>Form legend</legend>
<div><label for="f1">Optional Text input:</label><input type="text" id="f1" value="input text" /></div>
<div><label for="rt1">Required Text input:</label><input type="text" id="rt1" required /></div>
<div><label for="twp1">Text input with pattern requirement and placeholder:</label><input type="text" pattern="\d{5}(-\d{4})?" title="a US Zip code, with or without the +4 exension" placeholder="12345-6789"/></div>
<div><label for="s1">Search input:</label><input type="search" id="s1" /></div>
<div><label for="e1">Email input:</label><input type="email" id="e1" /></div>
<div><label for="u1">URL input:</label><input type="url" id="u1" /></div>
<div><label for="pw">Password input:</label><input type="password" id="pw" value="password" /></div>
<div><label for="f2">Radio input:</label><input type="radio" id="f2" /></div>
<div><label for="f3">Checkbox input:</label><input type="checkbox" id="f3" /></div>
<div><label for="f4">Select field:</label><select id="f4"><option>Option 01</option><option>Option 02</option></select></div>
<div><label for="f5">Textarea:</label><textarea id="f5" cols="30" rows="5" >Textarea text</textarea></div>
<div><label for="f6">Input Button:</label> <input type="button" id="f6" value="button text" /></div>
<div><label for="f7">Submit Button:</label> <input type="submit" id="f7" value="button text" /></div>
</fieldset>
</form>
<!-- thx peter beverloo: http://peter.sh/examples/?/html/meter-progress.html -->
<p id="no-support" style="color: red; margin-bottom: 12px;">
Your browser does not support these elements yet! Consider downloading a <a href="http://tools.peter.sh/download-latest-chromium.php">Chromium Nightly</a>.<br />
</p>
<h3>&lt;progress&gt;</h3>
<p>
The progress element (spec: <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-progress-element">4.10.16</a>) represents the completion progress of a task and can be both indeterminate as determinate.
</p>
<ul class="compact">
<li>
<label>Indeterminate</label>
<progress max="100"></progress>
</li>
<li>
<label>Progress: 0%</label>
<progress max="10" value="0"></progress>
</li>
<li>
<label>Progress: 100%</label>
<progress max="3254" value="3254"></progress>
</li>
<li>
<label>Progress: 57%</label>
<progress max="0.7" value="0.4"></progress>
</li>
<li>
<label>Javascript</label>
<progress id="progress-javascript-example"></progress>
</li>
</ul>
<h3>&lt;meter&gt;</h3>
<p>
Displaying a scalar measurement within a known range, like hard drive usage, can be done using the meter element (spec: <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-meter-element">4.10.17</a>)
</p>
<ul class="compact">
<li>
<label>Meter: empty</label>
<meter value="0"></meter>
</li>
<li>
<label>Meter: full</label>
<meter value="1"></meter>
</li>
<li>
<label>Meter: "a bit"</label>
<meter min=".34" max=".41" value=".36"></meter>
</li>
<li>
<label>Preferred usage</label>
<meter min="50" max="250" low="100" high="200" value="120"></meter>
</li>
<li>
<label>Too much traffic</label>
<meter min="1024" max="10240" low="2048" high="8192" value="9216"></meter>
</li>
<li>
<label>Optimum value</label>
<meter value=".5" optimum=".8"></meter>
</li>
<li>
<label>Javascript</label>
<meter id="meter-javascript-example" value="0"></meter>
</li>
</ul>
<script>
(function () {
if (! ("position" in document.createElement ("progress"))) {
var elements = document.querySelectorAll ("meter, progress");
for (var i = 0, j = elements.length; i < j; i++) {
elements [i].style.border = "1px solid red";
elements [i].style.height = "12px";
elements [i].style.display = "inline-block";
elements [i].style.webkitAppearance = "none";
}
return ;
}
document.getElementById ("no-support").style.display = "none";
/** Setup the <progress> JavaScript example **/
var progressExample = document.getElementById ("progress-javascript-example");
progressExample.min = 50;
progressExample.max = 122;
setInterval (function ()
{
progressExample.value = progressExample.min + Math.random () * (progressExample.max - progressExample.min);
}, 1000);
/** We'd like some fancy <meter> examples too **/
var meterExample = document.getElementById ("meter-javascript-example");
meterExample.min = 0;
meterExample.max = 100;
meterExample.value = 50;
meterExample.low = 20;
meterExample.high = 80;
meterExample.optimum = 65;
setInterval (function ()
{
meterExample.value = meterExample.min + Math.random () * (meterExample.max - meterExample.min);
meterExample.optimum = 65 + (5 - Math.random () * 10);
}, 1000);
})();
</script>
</div>
<footer>
</footer>
</div> <!--! end of #container -->
<!-- Javascript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
<script>window.jQuery || document.write("<script src='../js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script>
<!-- scripts concatenated and minified via ant build script-->
<script src="../js/plugins.js"></script>
<script src="../js/script.js"></script>
<!-- end scripts-->
<!--[if lt IE 7 ]>
<script src="../js/libs/dd_belatedpng.js"></script>
<script> DD_belatedPNG.fix("img, .png_bg"); //fix any <img> or .png_bg background-images </script>
<![endif]-->
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));
</script>
</body>
</html>

View File

@@ -1,85 +0,0 @@
/*
style.css contains a reset, font normalization and some base styles.
credit is left where credit is due.
additionally, much inspiration was taken from these projects:
yui.yahooapis.com/2.8.1/build/base/base.css
camendesign.com/design/
praegnanz.de/weblog/htmlcssjs-kickstart
*/
/*
html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
v1.4 2009-07-27 | Authors: Eric Meyer & Richard Clark
html5doctor.com/html-5-reset-stylesheet/
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display:block;
}
nav ul { list-style:none; }
blockquote, q { quotes:none; }
blockquote:before, blockquote:after,
q:before, q:after { content:""; content:none; }
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
ins { background-color:#ff9; color:#000; text-decoration:none; }
mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }
/* tables still need cellspacing="0" in the markup */
table { border-collapse:collapse; border-spacing:0; }
hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
input, select { vertical-align:middle; }
/* END RESET CSS */
/* fonts.css from the YUI Library: developer.yahoo.com/yui/
Please refer to developer.yahoo.com/yui/fonts/ for font sizing percentages
There are three custom edits:
* remove arial, helvetica from explicit font stack
* we normalize monospace styles ourselves
* table font-size is reset in the HTML5 reset above so there is no need to repeat
*/
body { font:13px/1.231 sans-serif; *font-size:small; } /* hack retained to preserve specificity */
select, input, textarea, button { font:99% sans-serif; }
/* normalize monospace sizing
* en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
*/
pre, code, kbd, samp { font-family: monospace, sans-serif; }

View File

@@ -1,41 +0,0 @@
body { font:13px/1.231 sans-serif; *font-size:small; } /* hack retained to preserve specificity */
body, select, input, textarea {
/* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */
color: #444;
/* set your base font here, to apply evenly
/* font-family: Georgia, serif; */
}
/* Headers (h1,h2,etc) have no default font-size or margin,
you'll want to define those yourself. */
h1,h2,h3,h4,h5,h6 { font-weight: bold; }
h1 { font-size: 2em; }
select, input, textarea, button { font:99% sans-serif; }
/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: none; }
.current { background: #ccc; }
header span { padding: 0.2em 0.5em; display: inline-block; }
dd, h1, body, html { margin: 0;}
a, a:active, a:visited { color: #607890; }
a:hover { color: #036; }
.wrapper {width:200px; border:1px solid red;}
dl {margin:0 auto; width:900px;}
dt {background-color:#ccc; margin-bottom:20px; cursor:pointer; cursor:hand; padding:5px; font-weight:bold; }
dd {margin-bottom:30px;}
#clear-demo {width:500px; border:1px solid black;}
#clear-demo-l {width:200px; border:1px solid black; float:left;}
#clear-demo-r {width:200px; border:1px solid black; float:right;}
#clear-demo-b {width:200px; border:1px solid black;}
header {text-align:center;}
.show, .hide {color: #607890; cursor:pointer; cursor:hand;}
body {
padding-bottom: 200px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 674 B

View File

@@ -1,313 +0,0 @@
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Boilerplate Test Suite</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!-- CSS : implied media="all" -->
<link rel="stylesheet" href="../css/style.css?v=2">
<link rel="stylesheet" href="hack2.css">
<!-- Uncomment if you are specifically targeting less enabled mobile browsers
<link rel="stylesheet" media="handheld" href="../css/handheld.css?v=2"> -->
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
<script src="../js/libs/modernizr-1.7.min.js"></script>
</head>
<body>
<div id="container">
<header>
<br /><br /><h1>HTML5 Boilerplate CSS Hack Sheet</h1><br /><br />
</header>
<div id="main" style="display:block;">
<dl>
<dt>Hack 01 - Set default color</dt>
<dd>
HTML5 Boilerplate suggests the default color looks better when set to #444 instead of #000.<br />
<span style="color:black;">Web font default color</span>
</dd>
<dt>Hack 02 - Vertical Scroll Bar</dt>
<dd>
Click <a href="#" id="shorten">contract</a> | <a href="#" id="expand">expand</a> to see how Boilerplate forces a scrollbar in non-IE.
</dd>
<dt>Hack 03 - Accessible focus style</dt>
<dd>
Remove dotted outline around 'a' element on hover and on focus in certain browsers
<br /><br />
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<a href="#" class="preventDefault">Click me</a>
</dd>
<dt>Hack 04 - Pre Wrapping</dt>
<dd>
Default <code>pre</code> doesn't wrap text. Boilerplate forces <code>pre</code> to wrap text.
<br /><br />
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
with wrapping:<br /><br />
<div style="height:115px;">
<div class="wrapper">
<pre>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</pre>
</div>
</div><br />
without wrapping:<br /><br />
<div class="wrapper">
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</div>
</dd>
<dt>Hack 05 - Remove default textarea scrollbar in IE</dt>
<dd>
IE shows a disabled scrollbar on empty <code>textarea</code>.<br><br>
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<form>
<textarea></textarea>
</form>
</dd>
<dt>Hack 06 - IE6,7 legend margin</dt>
<dd>
Left align form legend to the inner text in IE 6,7.<br /><br />
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<form>
<fieldset>
<legend>Information:</legend><br />
Name: <input type="text" size="30" /><br />
Email: <input type="text" size="30" /><br />
Date of birth: <input type="text" size="10" />
</fieldset>
</form>
</dd>
<dt>Hack 07 - Vertically align checkboxes, radios, text inputs with their label</dt>
<dd>
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<input type="radio" /> Option A <br /><br />
<input type="checkbox" /> Item B <br /><br />
Name: <input type="text" />
</dd>
<dt>Hack 08 - Hand cursor on clickable input elements</dt>
<dd>
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
Input with type submit <input type="submit" value="submit" />
</dd>
<dt>Hack 09 - Webkit browsers form elements margin</dt>
<dd>
Webkit browsers add a 2px margin outside the chrome of form elements.<br /><br />
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<form>
<input type="submit" value="submit" /><br /><br />
<button type="button">Click Me!</button><br /><br />
<select><option>Default</option></select>
</form>
</dd>
<dt>Hack 10 - Make buttons width rendered correctly</dt>
<dd>
IE adds extra padding to <code>button</code>. This fixes the issue. <br /><br />
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<form>
<button type="button">Click Me!</button>
<button type="button">This is a really long button</button>
</form>
</dd>
<dt>Hack 11 - Bicubic resizing for non-native sized IMG</dt>
<dd>
IE7 hack to reduce distortion caused by image resizing <br /><br />
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<img src="../apple-touch-icon.png" width="27" /><br />
<img src="../apple-touch-icon.png" width="57" /><br />
<img src="../apple-touch-icon.png" width="157" /><br />
</dd>
<dt>Hack 12 - Hide visually</dt>
<dd>
Hide elements visually, but have it available for screen readers.
<br /><br />
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<div class="visuallyhidden">showing</div>
</dd>
<dt>Hack 13 - Image text replacement</dt>
<dd>
Replace text with images.
<br /><br />
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<div class="ir" style="background:url('../apple-touch-icon.png'); width:57px; height:57px;">Apple Touch Icon</div>
</dd>
<dt>Hack 14 - Clear Floats</dt>
<dd>
Clear Floated elements without extra markup.
<br /><br />
<span href="#" class="show">With Boilerplate CSS</span> | <span href="#" class="hide">Without Boilerplate CSS</span>
<br /><br />
<div id="clear-demo" class="clearfix">
<div id="clear-demo-l">text floated left</div><div id="clear-demo-r">text floated right</div>
</div>
<div id="clear-demo-b">unfloated text</div>
</dd>
<dt>Hack 15 - PNG fix</dt>
<dd>fix pngs for correct display in IE6
<br /> <br />
<div style="position:relative">
<!-- wassup gradient. -->
<div style="
position:absolute; height: 40px; background-color: #444444; background-image: -moz-linear-gradient(top, #444444, #999999);
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #444444),color-stop(1, #999999));
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#444444', EndColorStr='#999999');
">
<div class="png_bg" style="
border:1px solid #ddd; width:100px; padding:10px 10px 10px 50px;
display:inline-block; background:url(test_tubes.png) no-repeat 5px center;
">
<img src="internet_explorer.png" alt="IE is so awesome" />
</div>
</div>
</div>
</dd>
</dl>
</div>
<footer>
</footer>
</div> <!--! end of #container -->
<!-- Javascript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.js"></script>
<script>!window.jQuery && document.write(unescape("%3Cscript src='../js/libs/jquery-1.5.0.js'%3E%3C/script%3E"))</script>
<script>
$("#expand").click(function() {
$("#container").css("height","auto").css("overflow","");
return false;
});
$("#shorten").click(function() {
$("#container").css("height","300px").css("overflow","hidden");
return false;
});
$("#atag").click(function() {
return false;
});
$(".show").click(function(){
$(".show").addClass("current")
$(".hide").removeClass("current");
showStyle();
return false;
});
$(".hide").click(function(){
$(".hide").addClass("current")
$(".show").removeClass("current");
// freeze the size of each tests so the page doesnt jump.
$("dd").each(function(){
$(this).height( $(this).height() );
});
hideStyle();
return false;
});
var linkTags = $("link");
function hideStyle() {
// tee hee
$("link[href*='style.css']").attr("media","braille");
}
function showStyle() {
$("link[href*='style.css']").attr("media","all");
}
$(".preventDefault").click(function() {
return false;
});
$(function(){
$(".show").addClass("current");
})
</script>
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
<script>window.jQuery || document.write("<script src='../js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script>
<!-- scripts concatenated and minified via ant build script-->
<script src="../js/plugins.js"></script>
<script src="../js/script.js"></script>
<!-- end scripts-->
<!--[if lt IE 7 ]>
<script src="../js/libs/dd_belatedpng.js"></script>
<script> DD_belatedPNG.fix("img, .png_bg"); //fix any <img> or .png_bg background-images </script>
<![endif]-->
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));
</script>
</body>
</html>

View File

@@ -4,40 +4,40 @@
/* TEAM */
<your title>: <your name>
Site:
Twitter:
Location:
Site:
Twitter:
Location:
/* THANKS */
Names (& URL):
Names (& URL):
/* SITE */
Standards: HTML5, CSS3
Components: Modernizr, jQuery
Software:
-o/-
+oo//-
:ooo+//:
-ooooo///-
/oooooo//:
:ooooooo+//-
-+oooooooo///-
-://////////////+oooooooooo++////////////::
:+ooooooooooooooooooooooooooooooooooooo+:::-
-o/-
+oo//-
:ooo+//:
-ooooo///-
/oooooo//:
:ooooooo+//-
-+oooooooo///-
-://////////////+oooooooooo++////////////::
:+ooooooooooooooooooooooooooooooooooooo+:::-
-/+ooooooooooooooooooooooooooooooo+/::////:-
-:+oooooooooooooooooooooooooooo/::///////:-
--/+ooooooooooooooooooooo+::://////:-
-:+ooooooooooooooooo+:://////:--
/ooooooooooooooooo+//////:-
-ooooooooooooooooooo////-
/ooooooooo+oooooooooo//:
:ooooooo+/::/+oooooooo+//-
-oooooo/::///////+oooooo///-
/ooo+::://////:---:/+oooo//:
-o+/::///////:- -:/+o+//-
:-:///////:- -:/://
-////:- --//:
-- -:
--/+ooooooooooooooooooooo+::://////:-
-:+ooooooooooooooooo+:://////:--
/ooooooooooooooooo+//////:-
-ooooooooooooooooooo////-
/ooooooooo+oooooooooo//:
:ooooooo+/::/+oooooooo+//-
-oooooo/::///////+oooooo///-
/ooo+::://////:---:/+oooo//:
-o+/::///////:- -:/+o+//-
:-:///////:- -:/://
-////:- --//:
-- -:

2
img/.gitignore vendored
View File

@@ -1,2 +0,0 @@
!.gitignore

View File

@@ -1,80 +1,67 @@
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/i/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
<link rel="stylesheet" href="css/style.css">
<!-- CSS: implied media="all" -->
<link rel="stylesheet" href="css/style.css?v=2">
<!-- Uncomment if you are specifically targeting less enabled mobile browsers
<link rel="stylesheet" media="handheld" href="css/handheld.css?v=2"> -->
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
<script src="js/libs/modernizr-1.7.min.js"></script>
<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
<!-- All JavaScript at the bottom, except this Modernizr build.
Modernizr enables HTML5 elements & feature detects for optimal performance.
Create your own custom Modernizr build: www.modernizr.com/download/ -->
<script src="js/libs/modernizr-2.5.0.min.js"></script>
</head>
<body>
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
<header>
<div id="container">
<header>
</header>
<div role="main">
</header>
<div id="main" role="main">
</div>
<footer>
</div>
<footer>
</footer>
</div> <!--! end of #container -->
</footer>
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
<script>window.jQuery || document.write("<script src='js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script>
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script>
<!-- scripts concatenated and minified via ant build script-->
<!-- scripts concatenated and minified via build script -->
<script src="js/plugins.js"></script>
<script src="js/script.js"></script>
<!-- end scripts-->
<!-- end scripts -->
<!--[if lt IE 7 ]>
<script src="js/libs/dd_belatedpng.js"></script>
<script>DD_belatedPNG.fix("img, .png_bg"); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
<![endif]-->
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
mathiasbynens.be/notes/async-analytics-snippet -->
<script>
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

4
js/libs/jquery-1.7.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
js/libs/modernizr-2.5.0.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
!.gitignore

View File

@@ -1,14 +1,10 @@
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
arguments.callee = arguments.callee.caller;
if(this.console) console.log( Array.prototype.slice.call(arguments) );
};
window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};
// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});
(function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}})
(function(){try{console.log();return window.console;}catch(a){return (window.console={});}}());
// place any jQuery/helper plugins in here, instead of separate, slower script files.

View File

@@ -1,26 +1,8 @@
/* Author:
/* Author:
*/

55
readme.md Normal file
View File

@@ -0,0 +1,55 @@
# [HTML5 Boilerplate](http://html5boilerplate.com)
HTML5 Boilerplate is a professional front-end template that helps you build fast, robust, adaptable, and future-proof websites. Spend more time developing and less time reinventing the wheel.
This project is the product of many years of iterative development and combined community knowledge. It does not impose a specific development philosophy or framework, so you're free to architect your code in the way that you want.
## Quick start
Clone the git repo - `git clone git://github.com/h5bp/html5-boilerplate.git` - or [download it](https://github.com/h5bp/html5-boilerplate/zipball/master)
## Features
* HTML5 ready. Use the new elements with confidence.
* Cross-browser compatible (Chrome, Opera, Safari, Firefox 3.6+, IE6+).
* Designed with progressive enhancement in mind.
* CSS normalizations and common bug fixes.
* IE-specific classes for easier cross-browser control.
* A default print stylesheet, performance optimized.
* Mobile browser optimizations.
* Protection against any stray `console.log` causing JavaScript errors in IE6/7.
* The latest jQuery via CDN, with a local fallback.
* A custom Modernizr build for feature detection.
* An optimized Google Analytics snippet.
* Apache server caching, compression, and other configuration defaults for Grade-A performance.
* Cross-domain Ajax and Flash.
* "Delete-key friendly." Easy to strip out parts you don't need.
* Extensive inline and accompanying documentation.
## Contributing
Anyone and everyone is welcome to [contribute](https://github.com/h5bp/html5-boilerplate/wiki/contribute). Hundreds of developers have helped make the HTML5 Boilerplate what it is today.
## Project information
* Source: http://github.com/h5bp/html5-boilerplate
* Web: http://html5boilerplate.com
* Docs: http://html5boilerplate.com/docs
* Twitter: http://twitter.com/h5bp
## License
### Major components:
* jQuery: MIT/GPL license
* Modernizr: MIT/BSD license
* Normalize.css: Public Domain
### Everything else:
The Unlicense (aka: public domain)

View File

@@ -1,5 +1,4 @@
# www.robotstxt.org/
# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449
# http://code.google.com/web/controlcrawlindex/
User-agent: *

View File

@@ -1,31 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>QUnit Tests</title>
<link rel="stylesheet" href="qunit/qunit.css" media="screen">
<!-- reference your own javascript files here -->
<script src="../js/libs/modernizr-1.7.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="../js/plugins.js"></script>
<script src="../js/script.js"></script>
<!-- test runner files -->
<script src="qunit/qunit.js"></script>
<script src="tests.js"></script>
</head>
<body class="flora">
<h1 id="qunit-header">QUnit Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup</div>
</body>
</html>

View File

@@ -1,148 +0,0 @@
/** Font Family and Sizes */
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
}
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
#qunit-tests { font-size: smaller; }
/** Resets */
#qunit-tests, #qunit-tests li ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
margin: 0;
padding: 0;
}
/** Header */
#qunit-header {
padding: 0.5em 0 0.5em 1em;
color: #fff;
text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
background-color: #0d3349;
border-radius: 15px 15px 0 0;
-moz-border-radius: 15px 15px 0 0;
-webkit-border-top-right-radius: 15px;
-webkit-border-top-left-radius: 15px;
}
#qunit-banner {
height: 5px;
}
#qunit-testrunner-toolbar {
padding: 0em 0 0.5em 2em;
}
#qunit-userAgent {
padding: 0.5em 0 0.5em 2.5em;
background-color: #2b81af;
color: #fff;
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
}
/** Tests: Pass/Fail */
#qunit-tests {
list-style-position: inside;
}
#qunit-tests li {
padding: 0.4em 0.5em 0.4em 2.5em;
border-bottom: 1px solid #fff;
list-style-position: inside;
}
#qunit-tests li strong {
cursor: pointer;
}
#qunit-tests li ol {
margin-top: 0.5em;
padding: 0.5em;
background-color: #fff;
border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
box-shadow: inset 0px 2px 13px #999;
-moz-box-shadow: inset 0px 2px 13px #999;
-webkit-box-shadow: inset 0px 2px 13px #999;
}
#qunit-tests li li {
margin: 0.5em;
padding: 0.4em 0.5em 0.4em 0.5em;
background-color: #fff;
border-bottom: none;
list-style-position: inside;
}
/*** Passing Styles */
#qunit-tests li li.pass {
color: #5E740B;
background-color: #fff;
border-left: 26px solid #C6E746;
}
#qunit-tests li.pass { color: #528CE0; background-color: #D2E0E6; }
#qunit-tests li.pass span.test-name { color: #366097; }
#qunit-tests li li.pass span.test-actual,
#qunit-tests li li.pass span.test-expected { color: #999999; }
strong b.pass { color: #5E740B; }
#qunit-banner.qunit-pass { background-color: #C6E746; }
/*** Failing Styles */
#qunit-tests li li.fail {
color: #710909;
background-color: #fff;
border-left: 26px solid #EE5757;
}
#qunit-tests li.fail { color: #000000; background-color: #EE5757; }
#qunit-tests li.fail span.test-name,
#qunit-tests li.fail span.module-name { color: #000000; }
#qunit-tests li li.fail span.test-actual { color: #EE5757; }
#qunit-tests li li.fail span.test-expected { color: green; }
strong b.fail { color: #710909; }
#qunit-banner.qunit-fail,
#qunit-testrunner-toolbar { background-color: #EE5757; }
/** Footer */
#qunit-testresult {
padding: 0.5em 0.5em 0.5em 2.5em;
color: #2b81af;
background-color: #D2E0E6;
border-radius: 0 0 15px 15px;
-moz-border-radius: 0 0 15px 15px;
-webkit-border-bottom-right-radius: 15px;
-webkit-border-bottom-left-radius: 15px;
}
/** Fixture */
#qunit-fixture {
position: absolute;
top: -10000px;
left: -10000px;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,27 +0,0 @@
// documentation on writing tests here: http://docs.jquery.com/QUnit
// example tests: https://github.com/jquery/qunit/blob/master/test/same.js
// below are some general tests but feel free to delete them.
module("example tests");
test("HTML5 Boilerplate is sweet",function(){
expect(1);
equals("boilerplate".replace("boilerplate","sweet"),"sweet","Yes. HTML5 Boilerplate is, in fact, sweet");
})
// these test things from plugins.js
test("Environment is good",function(){
expect(3);
ok( !!window.log, "log function present");
var history = log.history && log.history.length || 0;
log("logging from the test suite.")
equals( log.history.length - history, 1, "log history keeps track" )
ok( !!window.Modernizr, "Modernizr global is present")
})