HTML5 Reset
HTML5 Reset is a simple set of best practices to get web projects off on the right foot.
Command-line installation:
bower install HTML5-Reset
Some of the features:
- A style sheet designed to strip initial styles from browsers, starting your development off with a blank slate.
- Easy to customize — remove whatever you don't need, keep what you do.
- Google Analytics and jQuery calls
- Meta tags ready for population
- Empty print and small-screen media queries
- Modernizr.js http://www.modernizr.com/ enables HTML5 compatibility with IE (and a dozen other great features)
- Prefix-free.js allowing us to only use un-prefixed styles in our CSS
- IE-specific classes for simple CSS targeting (if that's your thing)
- iPhone/iPad/iTouch icon snippets, plus social/app meta tags for Twitter, Facebook
- Lots of other keen details
Get the WordPress theme:
https://github.com/murtaugh/HTML5-Reset-WordPress-Theme
Make [hidden] more !important
I was wondering if you'd consider adding the rule
To your reset as it seems like the people in the WhatWG don't want to make their rule any more specific than
[hidden] { display: none; }
, so using your awesome reset will result in people having anomalies like:as
will override this. (http://jsfiddle.net/danbeam/MrEjL/2/)
Remove cracy IE6 CSS notation in order to be compatible with LESS
If you try to include the current reset.css into LESS (in order to combine a bunch of CSS files), you get the error:
This is because LESS does not understand the cracy IE6 CSS notation.
Can we drop this filter in favor of LESS and probably other CSS pre-compilers?
google analytics should be placed just before
http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
Add package.json with style entry.
This allows npm-capable css bundlers like sheetify, postcss-import, npm-css, and rework-npm to load the reset stylesheet with
@import 'HTML5-Reset'
.Having a
package.json
also allows this to be installed with npm. Would appreciate if you could publish it to npm too!Question: Should HTML5 Reset break into more files?
Should we break the Reset up into more files? (This would affect CSS the most, I think.)
A couple of thoughts:
legacy.css
file would be nice for styles that only affect older browsers.)What do you think?
Problem listing tags
Hi! I have noticed that was a problem with listing tags. Some tags doesn't list any posts and sometimes if I have 2 posts filed under the same tag, only shows 1.
Can you help me with that? Sorry for my english if I have made any mistake.
Thanks!
Put jQuery code inside the anonymous "remap jQuery to $" function
At _/js/functions.js, it uses an anonymous function to have a local
$
variable with jQuery. That$
variable only exists inside the anonymous function, so the current way its written doesn't make much sense - the rest of the code should be inside that anonymous function too.Dynamically-generated site name instead of www-sitename-com
Hey all, here's a solution I added to make the little
<head id="www-sitename-com"
inheader.php
a dynamic thing based on the user-entered site title, not just a static thing that would need be to be replaced.First, I created a hook in
functions.php
:This removes all non-letter characters, even numbers, and then makes the string all lowercase.
Then, I just replaced
with
So for the site I have with the title Hey It's George, www-heyitsgeorge-com is returned :)
Let me know if you guys have problems with this, if not maybe it can be added to the Reset.
Missing display: block for main tag
Internet Explorer up to version 11 doesn't support the
main
tag and seems to applydisplay: inline
(at least in v11) which isn't quite what you'd expect imho.Some simple tweaks to improve beginner knowledge
IE input button styling
Hi,
Currently there is:
/* make buttons play nice in IE */ button {width: auto; overflow: visible;}
But what about input type buttons
<input type="button" value="ahsdfhasdfh asdlfjkasdklfj asd"/>
? These buttons suffer the same fate in IE. Shouldn't there be a reset for it too?Thanks. D
Update readme.md; Clarification and summarisation