diff --git a/.gitignore b/.gitignore index 5455e0c..92d86ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules .sass-cache +.DS_Store diff --git a/CHANGELOG.md b/CHANGELOG.md index 936e41d..7dc3ee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,30 @@ +## [v2.0.0] +:tada: Update with the latest version of Normalize. + +### Added: +- Fill `svg` with the current color when `fill` is not set +- `tab-size: 4` to `html` +- **[N]** Set `text-transform: none` for `button` +- **[N]** `outline-offset: -2px` to `[type="search"]` +- **[N]** Correct `legend` style +- **[N]** `height: 0` to `hr` +- **[N]** `width: 0` to `[type="number"]::-webkit` spin button + +### Removed: +- **[N]** Unnecessry normalization for general element +- **[N]** `text-decoration-skip` from `a`. +- **[N]** `color: inherit` from form elements +- `overflow-y: scroll` in `html` +- **[N]** `width: auto` from `[type="number"]` +- `audio:not([controls])` +- `::selection` normalization + +### Changed: +- **[N]** `border-style: none` instead of 0 for `moz-focus`. +- **[N]** `abbr[title]` style from `border-bottom` to `text-decoration` + +**[N]**_ormalize updates._ + ## [v1.2.2] - Also set `background-repeat: no-repeat` to pseudo elements (#14) diff --git a/README.md b/README.md index 531aa1a..b1d551d 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,10 @@ bower install --save ress 9. Remove the default button styling in all browsers. 10. Specify textarea resizability to vertical. 11. Apply `cursor: pointer` to button elements. +12. Apply `tab-size: 4` in `html`. +13. Style `select` like a standard input. +14. Style `cursor` by aria attributes. +15. Hide content from screens but not screenreaders. ## Crossbrowser **ress** uses [Normalize.css](https://github.com/necolas/normalize.css) under the hood with some customizations to apply a solid base to start your stylesheet. diff --git a/dist/ress.min.css b/dist/ress.min.css index 5640ee0..182f186 100644 --- a/dist/ress.min.css +++ b/dist/ress.min.css @@ -1,6 +1,5 @@ /*! - * ress.css • v1.2.2 + * ress.css • v2.0.0 * MIT License * github.com/filipelinhares/ress - */ -html{box-sizing:border-box;overflow-y:scroll;-webkit-text-size-adjust:100%}*,::after,::before{background-repeat:no-repeat;box-sizing:inherit}::after,::before{text-decoration:inherit;vertical-align:inherit}*{padding:0;margin:0}audio:not([controls]){display:none;height:0}hr{overflow:visible}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section{display:block}summary{display:list-item}small{font-size:80%}[hidden],template{display:none}abbr[title]{border-bottom:1px dotted;text-decoration:none}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}b,strong{font-weight:bolder}dfn{font-style:italic}mark{background-color:#ff0;color:#000}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}input{border-radius:0}[role=button],[type=button],[type=reset],[type=submit],button{cursor:pointer}[disabled]{cursor:default}[type=number]{width:auto}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:0;padding:0}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button:-moz-focusring{outline:1px dotted ButtonText}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}button,select{text-transform:none}button,input,select,textarea{background-color:transparent;border-style:none;color:inherit}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;max-width:100%;white-space:normal}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}img{border-style:none}progress{vertical-align:baseline}svg:not(:root){overflow:hidden}audio,canvas,progress,video{display:inline-block}@media screen{[hidden~=screen]{display:inherit}[hidden~=screen]:not(:active):not(:focus):not(:target){position:absolute!important;clip:rect(0 0 0 0)!important}}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled]{cursor:default}::-moz-selection{background-color:#b3d4fc;color:#000;text-shadow:none}::selection{background-color:#b3d4fc;color:#000;text-shadow:none} \ No newline at end of file + */html{box-sizing:border-box;-webkit-text-size-adjust:100%;word-break:break-word;-moz-tab-size:4;tab-size:4}*,:after,:before{background-repeat:no-repeat;box-sizing:inherit}:after,:before{text-decoration:inherit;vertical-align:inherit}*{padding:0;margin:0}hr{overflow:visible;height:0}details,main{display:block}summary{display:list-item}small{font-size:80%}[hidden]{display:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}a{background-color:transparent}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}pre{font-size:1em}b,strong{font-weight:bolder}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}input{border-radius:0}[disabled]{cursor:default}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}button,select{text-transform:none}[role=button],[type=button],[type=reset],[type=submit],button{cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button:-moz-focusring{outline:1px dotted ButtonText}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}button,input,select,textarea{background-color:transparent;border-style:none}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;white-space:normal;max-width:100%}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}img{border-style:none}progress{vertical-align:baseline}svg:not([fill]){fill:currentColor}@media screen{[hidden~=screen]{display:inherit}[hidden~=screen]:not(:active):not(:focus):not(:target){position:absolute!important;clip:rect(0 0 0 0)!important}}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled]{cursor:default} \ No newline at end of file diff --git a/package.json b/package.json index 4cb7f27..9bd02d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ress", - "version": "1.2.2", + "version": "2.0.0", "description": "A modern CSS reset", "author": "Filipe Linhares", "license": "MIT", diff --git a/ress.css b/ress.css index a4888f9..6c407f7 100755 --- a/ress.css +++ b/ress.css @@ -1,5 +1,5 @@ /*! - * ress.css • v1.2.2 + * ress.css • v2.0.0 * MIT License * github.com/filipelinhares/ress */