From ce0c3469e040b4d88663b03d1325cc274e35d4c9 Mon Sep 17 00:00:00 2001 From: necolas Date: Tue, 31 May 2011 23:06:06 +0100 Subject: [PATCH] Minor changes to properties and values that could be shortened. Improve comment language and change section-comment format (via Jonathan Neal). --- normalize.css | 157 +++++++++++++++++++++++++++++--------------------- 1 file changed, 91 insertions(+), 66 deletions(-) diff --git a/normalize.css b/normalize.css index bfe564f..0920df2 100644 --- a/normalize.css +++ b/normalize.css @@ -1,8 +1,10 @@ -/* ============================================================================================================= HTML5 ELEMENT DISPLAY */ +/* ============================================================================= + HTML5 element display + ========================================================================== */ /* * Add display for block-level HTML5 elements - * Display not defined in IE6/7/8/9 & FF3 + * Addresses display not defined in IE6/7/8/9 & FF3 */ article, @@ -20,7 +22,7 @@ section { /* * Add display for embedded HTML5 elements - * Display not defined in IE6/7/8/9 & FF3 + * Addresses display not defined in IE6/7/8/9 & FF3 */ audio[controls], @@ -32,15 +34,17 @@ video { } -/* ============================================================================================================= BASE STYLES & FIXES */ +/* ============================================================================= + Base + ========================================================================== */ /* - * 1. Add vertical scrollbar to element - * Keeps page centred in all browsers regardless of content height + * 1. Add vertical scrollbar + * Keeps page centred in all browsers regardless of content height * 2. Remove Android and iOS tap highlight color to prevent entire container being highlighted - * www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/ + * 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/ + * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */ html { @@ -51,9 +55,9 @@ html { } /* - * 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 + * 1. Define the base font-size (using % or em will retain text resizing in IE6/7) + * 2. Define the base line-height. + * 3. Remove margin */ body { @@ -63,8 +67,8 @@ body { } /* - * Define the base font-family and text color for and form elements - * Fixes font-family inconsistency between