Skip to content

Commit

Permalink
Remove appearance for radio & inputs, fix appearance bug for number f…
Browse files Browse the repository at this point in the history
…ields in Firefox
  • Loading branch information
nicolas-cusan committed Nov 7, 2022
1 parent d0cb235 commit 69dd945
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
25 changes: 9 additions & 16 deletions destyle.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! destyle.css v3.0.2 | MIT License | https://github.com/nicolas-cusan/destyle.css */
/*! destyle.css v4.0.0 | MIT License | https://github.com/nicolas-cusan/destyle.css */

/* Reset box-model and set borders */
/* ============================================ */
Expand Down Expand Up @@ -241,20 +241,6 @@ textarea {
text-transform: inherit; /* 2 */
}

/**
* Reset radio and checkbox appearance to preserve their look in iOS.
*/

[type="checkbox"] {
-webkit-appearance: checkbox;
appearance: checkbox;
}

[type="radio"] {
-webkit-appearance: radio;
appearance: radio;
}

/**
* Correct cursors for clickable elements.
*/
Expand Down Expand Up @@ -333,7 +319,7 @@ textarea {
}

/**
* 1. Correct the outline style in Safari.
* Correct the outline style in Safari.
*/

[type="search"] {
Expand All @@ -358,6 +344,13 @@ textarea {
font: inherit; /* 2 */
}

/**
* Fix appearance for Firefox
*/
[type="number"] {
-moz-appearance: textfield;
}

/**
* Clickable labels
*/
Expand Down
4 changes: 2 additions & 2 deletions destyle.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "destyle.css",
"version": "3.0.2",
"version": "4.0.0",
"description": "Opinionated reset stylesheet that provides a clean slate for styling your html.",
"main": "destyle.css",
"style": "destyle.css",
Expand Down

0 comments on commit 69dd945

Please sign in to comment.