From 95b4971ffcfe33ff42e2d23c5bb69d5eed6ee6e0 Mon Sep 17 00:00:00 2001 From: necolas Date: Fri, 27 May 2011 01:50:38 +0100 Subject: [PATCH] Add normalize.css --- normalize.css | 405 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 405 insertions(+) create mode 100644 normalize.css diff --git a/normalize.css b/normalize.css new file mode 100644 index 0000000..38e27f1 --- /dev/null +++ b/normalize.css @@ -0,0 +1,405 @@ +/* ============================================================================================================= HTML5 ELEMENT DISPLAY */ + +/* + * Add display for block-level HTML5 elements + * Display not defined in IE6/7/8/9 & FF3 + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +nav, +section { + display: block; +} + +/* + * Add display for embedded HTML5 elements + * Display not defined in IE6/7/8/9 & FF3 + */ + +audio, +canvas, +video { + display: inline-block; + *display: inline; + *zoom: 1; +} + + +/* ============================================================================================================= BASE STYLES & FIXES */ + +/* + * 1. Add vertical scrollbar to element + * Keeps page centred in all browsers regardless of content height + * 2. Remove iOS tap highlight color to prevent entire container's being highlighted + * www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/ + * 3. Remove iOS text size adjust without disabling user zoom + * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ + */ + +html { + overflow-y: scroll; /* 1 */ + -webkit-tap-highlight-color: transparent; /* 2 */ + -webkit-text-size-adjust: 100%; /* 3 */ + -ms-text-size-adjust: 100%; +} + +/* + * 1. Define the base font-size of choice; set in % or em to retain text resizing in IE6/7 + * 2. Define the base line-height of choice. + * 3. Remove margin from element + */ + +body { + font-size: 100%; /* 1 */ + line-height: normal; /* 2 */ + margin: 0; /* 3 */ +} + +/* + * Define the base font-family and text color for and form elements + * Fixes font-family inconsistency between