From fcd092e295d21303fcf46e0c757bcd3adb985413 Mon Sep 17 00:00:00 2001 From: Mathias Brouilly Date: Fri, 27 May 2016 09:57:47 +0200 Subject: [PATCH] indentation styling 2 --- normalize.styl | 179 ++++++++++++++++++++++++------------------------- 1 file changed, 88 insertions(+), 91 deletions(-) diff --git a/normalize.styl b/normalize.styl index 66b87e5..8169e0d 100644 --- a/normalize.styl +++ b/normalize.styl @@ -6,16 +6,16 @@ */ html - font-family sans-serif // 1 - -ms-text-size-adjust 100% // 2 - -webkit-text-size-adjust 100% // 2 + font-family sans-serif // 1 + -ms-text-size-adjust 100% // 2 + -webkit-text-size-adjust 100% // 2 /** * Remove the margin in all browsers (opinionated). */ body - margin 0 + margin 0 /* HTML5 display definitions ========================================================================== */ @@ -38,7 +38,7 @@ menu, nav, section, summary // 1 - display block + display block /** * Add the correct display in IE 9-. @@ -48,22 +48,22 @@ audio, canvas, progress, video - display inline-block + display inline-block /** * Add the correct display in iOS 4-7. */ audio:not([controls]) - display none - height 0 + display none + height 0 /** * Add the correct vertical alignment in Chrome, Firefox, and Opera */ progress - vertical-align baseline + vertical-align baseline /** * Add the correct display in IE 10-. @@ -72,7 +72,7 @@ progress template, // 1 [hidden] - display none + display none /* Links ========================================================================== */ @@ -83,8 +83,8 @@ template, // 1 */ a - background-color transparent // 1 - -webkit-text-decoration-skip objects // 2 + background-color transparent // 1 + -webkit-text-decoration-skip objects // 2 /** * Remove the outline on focused links when they are also active or hovered @@ -92,10 +92,10 @@ a */ a - &:active, - &:hover - outline-width 0 - + &:active, + &:hover + outline-width 0 + /* Text-level semantics ========================================================================== */ @@ -105,9 +105,9 @@ a */ abbr[title] - border-bottom none // 1 - text-decoration underline // 2 - text-decoration underline dotted // 2 + border-bottom none // 1 + text-decoration underline // 2 + text-decoration underline dotted // 2 /** * Prevent the duplicate appliclation of `bolder` by the next rule in Safari 6. @@ -115,7 +115,7 @@ abbr[title] b, strong - font-weight inherit + font-weight inherit /** * Add the correct font weight in Chrome, Edge, and Safari. @@ -123,14 +123,14 @@ strong b, strong - font-weight bolder + font-weight bolder /** * Add the correct font style in Android 4.3-. */ dfn - font-style italic + font-style italic /** * Correct the font size and margin on `h1` elements within `section` and @@ -138,23 +138,23 @@ dfn */ h1 - font-size 2em - margin 0.67em 0 + font-size 2em + margin 0.67em 0 /** * Add the correct background and color in IE 9-. */ mark - background-color #ff0 - color #000 + background-color #ff0 + color #000 /** * Add the correct font size in all browsers. */ small - font-size 80% + font-size 80% /** * Prevent `sub` and `sup` elements from affecting the line height in @@ -163,17 +163,17 @@ small sub, sup - font-size 75% - line-height 0 - position relative - vertical-align baseline - + font-size 75% + line-height 0 + position relative + vertical-align baseline + sub - bottom -0.25em - + bottom -0.25em + sup - top -0.5em - + top -0.5em + /* Embedded content ========================================================================== */ @@ -182,15 +182,15 @@ sup */ img - border-style none - + border-style none + /** * Hide the overflow in IE. */ svg:not(:root) - overflow hidden - + overflow hidden + /* Grouping content ========================================================================== */ @@ -203,26 +203,26 @@ code, kbd, pre, samp - font-family monospace, monospace // 1 - font-size 1em // 2 - + font-family monospace, monospace // 1 + font-size 1em // 2 + /** * Add the correct marin in IE 8. */ figure - margin 1em 40px - + margin 1em 40px + /** * 1. Add the correct box sizing in Firefox * 2. Show the overflow in Edge and IE. */ hr - box-sizing content-box // 1 - height 0 // 1 - overflow visible // 2 - + box-sizing content-box // 1 + height 0 // 1 + overflow visible // 2 + /* Forms ========================================================================== */ @@ -235,15 +235,15 @@ button, input, select, textarea - font inherit // 1 - margin 0 // 2 + font inherit // 1 + margin 0 // 2 /** * Restore the font weight unset by previous rule. */ optgroup - font-weight bold + font-weight bold /** * Show the overflow in IE. @@ -252,7 +252,7 @@ optgroup button, input - overflow visible + overflow visible /** * Remove the inheritance of text transform in Edge, Firefox, and IE. @@ -261,7 +261,7 @@ input button, select - text-transform none + text-transform none /** * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` @@ -270,11 +270,11 @@ select */ button, -html [type="button"], /* 1*/ +html [type="button"], // 1 [type="reset"], [type="submit"] - -webkit-appearance button // 2 - + -webkit-appearance button // 2 + /** * Remove the inner border and padding in Firefox */ @@ -283,9 +283,9 @@ button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner - border-style none - padding 0 - + border-style none + padding 0 + /** * Restore the focus styles unset by the previous rule. */ @@ -294,16 +294,16 @@ button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring - outline 1px dotted ButtonText + outline 1px dotted ButtonText /** * Change the border, margin, and padding, in all browsers (opinionated). */ fieldset - border 1px solid #c0c0c0 - margin 0 2px - padding 0.35em 0.625em 0.75em + border 1px solid #c0c0c0 + margin 0 2px + padding 0.35em 0.625em 0.75em /** * 1. Correct the text wrapping in Edge and IE. @@ -313,19 +313,19 @@ fieldset */ legend - box-sizing border-box // 1 - color inherit // 2 - display table // 1 - max-width 100% // 1 - padding 0 // 3 - white-space normal // 1 - + box-sizing border-box // 1 + color inherit // 2 + display table // 1 + max-width 100% // 1 + padding 0 // 3 + white-space normal // 1 + /** * Remove the default vertical scrollbar in IE. */ textarea - overflow auto + overflow auto /** * 1. Add the correct box sizing in IE 10-. @@ -334,8 +334,8 @@ textarea [type="checkbox"], [type="radio"] - box-sizing border-box // 1 - padding 0 // 2 + box-sizing border-box // 1 + padding 0 // 2 /** * Correct the cursor style of increment and decrement buttons in Chrome. @@ -343,7 +343,7 @@ textarea [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button - height auto + height auto /** * 1. Correct the odd appearance in Chrome and Safari. @@ -351,33 +351,30 @@ textarea */ [type="search"] - -webkit-appearance textfield - outline-offset -2px - + -webkit-appearance textfield + outline-offset -2px + /** * Remove the inner padding and cancel buttons in Chrome and Safari on OS X. */ - + [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration - -webkit-appearance none - + -webkit-appearance none + /** * Correct the text style of placeholders in Chrome, Edge, and Safari */ - + ::-webkit-input-placeholder - color inherit - opacity 0.54 - + color inherit + opacity 0.54 + /** * 1. Correct the inability to style clickable types in iOS and Safari. * 2. Change font properties to `inherit` in Safari. */ - -::-webkit-file-upload-button - -webkit-appearance button // 1 - font inherit // 2 - - +::-webkit-file-upload-button + -webkit-appearance button // 1 + font inherit // 2