From c542ed353443b3b25a47ea94adb3b797567bd933 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sat, 30 Jul 2011 13:41:14 -0600 Subject: [PATCH] h5bp updates --- css/style.css | 5 +-- inc/h5bp-.htaccess | 76 +++++++++++++++------------------------------- 2 files changed, 28 insertions(+), 53 deletions(-) diff --git a/css/style.css b/css/style.css index 20910ee..441a7ea 100644 --- a/css/style.css +++ b/css/style.css @@ -100,7 +100,7 @@ sub { bottom: -0.25em; } ul, ol { margin: 1em 0; padding: 0 0 0 40px; } dd { margin: 0 0 0 40px; } -nav ul, nav ol { list-style: none; margin: 0; padding: 0; } +nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; } /* ============================================================================= @@ -139,7 +139,8 @@ table button, table input { *overflow: auto; } button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; } -input[type="search"] { -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; } +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 { -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } diff --git a/inc/h5bp-.htaccess b/inc/h5bp-.htaccess index 42c54b8..1029179 100644 --- a/inc/h5bp-.htaccess +++ b/inc/h5bp-.htaccess @@ -1,3 +1,22 @@ +# Apache configuration file +# httpd.apache.org/docs/2.2/mod/quickreference.html + +# Note .htaccess files are an overhead, this logic should be in your Apache config if possible +# httpd.apache.org/docs/2.2/howto/htaccess.html + +# Techniques in here adapted from all over, including: +# Kroc Camen: camendesign.com/.htaccess +# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ +# Sample .htaccess file of CMS MODx: modxcms.com + + +### +### If you run a webserver other than apache, consider: +### github.com/paulirish/html5-boilerplate-server-configs +### + + + # ---------------------------------------------------------------------- # Better website experience for IE users # ---------------------------------------------------------------------- @@ -17,7 +36,7 @@ # 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 +# Cache control is set only if mod_headers is enabled, so that's unnecessary to declare @@ -41,9 +60,9 @@ # Allow access from all domains for webfonts. # Alternatively you could only whitelist your -# subdomains like "sub.domain.com". +# subdomains like "subdomain.example.com". - + Header set Access-Control-Allow-Origin "*" @@ -87,52 +106,6 @@ AddType text/x-vcard vcf -# ---------------------------------------------------------------------- -# Gzip compression -# ---------------------------------------------------------------------- - - - -# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/ - - - 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 - - - -# HTML, TXT, CSS, JavaScript, JSON, XML, HTC: - - 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/javascript - 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/x-javascript - FilterChain COMPRESS - FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no - - - - # 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 - - -# Webfonts and SVG: - - SetOutputFilter DEFLATE - - - - - # ---------------------------------------------------------------------- # Stop screen flicker in IE on CSS rollovers # ---------------------------------------------------------------------- @@ -168,7 +141,7 @@ AddType text/x-vcard vcf # ---------------------------------------------------------------------- # 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 +# https://www.example.com when your cert only allows https://secure.example.com # Uncomment the following lines to use this feature. # @@ -197,7 +170,7 @@ Options -MultiViews AddDefaultCharset utf-8 # Force UTF-8 for a number of file formats -AddCharset utf-8 .html .css .js .xml .json .rss +AddCharset utf-8 .html .css .js .xml .json .rss .atom @@ -261,6 +234,7 @@ Options -Indexes # 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