Skip to content

Commit 7739286

Browse files
committed
Remove the border and padding from color and range inputs in all browsers
1 parent a1eb7bc commit 7739286

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

forms.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ select:not([multiple]):not([size]) {
3535
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E");
3636
}
3737

38+
/**
39+
* Remove the border and padding in all browsers (opinionated).
40+
*/
41+
42+
[type="color"],
43+
[type="range"] {
44+
border-width: 0;
45+
padding: 0;
46+
}
47+
3848
/**
3949
* Change the inconsistent appearance in IE (opinionated).
4050
*/

0 commit comments

Comments
 (0)