From f3f78136d631892b9247bb345aa70a4d8812507c Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 18 Apr 2016 22:59:52 +0800 Subject: cleanup code & sort CSS properties alphabetically --- src/normalize.less | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) (limited to 'src/normalize.less') diff --git a/src/normalize.less b/src/normalize.less index e376c84..f48215b 100644 --- a/src/normalize.less +++ b/src/normalize.less @@ -7,8 +7,8 @@ html { font-family: sans-serif; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ + -ms-text-size-adjust: 100%; /* 2 */ } /** @@ -30,16 +30,19 @@ body { article, aside, -details, /* 1 */ +details, +/* 1 */ figcaption, figure, footer, header, -main, /* 2 */ +main, +/* 2 */ menu, nav, section, -summary { /* 1 */ +summary { + /* 1 */ display: block; } @@ -76,7 +79,8 @@ progress { * 1. Add the correct display in IE. */ -template, /* 1 */ +template, +/* 1 */ [hidden] { display: none; } @@ -112,8 +116,8 @@ a:hover { abbr[title] { border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ text-decoration: underline dotted; /* 2 */ + text-decoration: underline; /* 2 */ } /** @@ -149,7 +153,7 @@ dfn { h1 { font-size: 2em; - margin: 0.67em 0; + margin: .67em 0; } /** @@ -183,11 +187,11 @@ sup { } sub { - bottom: -0.25em; + bottom: -.25em; } sup { - top: -0.5em; + top: -.5em; } /* Embedded content @@ -273,8 +277,10 @@ optgroup { */ button, -input, /* 1 */ -select { /* 2 */ +input, +/* 1 */ +select { + /* 2 */ overflow: visible; } @@ -286,7 +292,8 @@ select { /* 2 */ button, input, select, -textarea { /* 1 */ +textarea { + /* 1 */ margin: 0; } @@ -296,7 +303,8 @@ textarea { /* 1 */ */ button, -select { /* 1 */ +select { + /* 1 */ text-transform: none; } @@ -326,7 +334,8 @@ button, */ button, -html [type="button"], /* 1 */ +html [type="button"], +/* 1 */ [type="reset"], [type="submit"] { -webkit-appearance: button; /* 2 */ @@ -358,7 +367,7 @@ input:-moz-focusring { fieldset { border: 1px solid #c0c0c0; margin: 0 2px; - padding: 0.35em 0.625em 0.75em; + padding: .35em .625em .75em; } /** @@ -421,4 +430,4 @@ textarea { [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; -} \ No newline at end of file +} -- cgit v1.3.1-23-gd82d