From 759cadf639ee5d752c2c55caca37266ce84bf22d Mon Sep 17 00:00:00 2001 From: Nicolas Cusan Date: Wed, 12 Aug 2020 14:15:59 +0200 Subject: [PATCH] Fix input selector, unify checkbox & radio style --- destyle.css | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/destyle.css b/destyle.css index ad3a6e6..b45c867 100644 --- a/destyle.css +++ b/destyle.css @@ -231,8 +231,7 @@ iframe { */ button, -input:not([type="radio"]), -input:not([type="checkbox"]), +input:not([type="radio"]):not([type="checkbox"]), optgroup, select, textarea { @@ -250,12 +249,6 @@ textarea { text-align: inherit; } -[type="radio"], -[type="checkbox"] { - margin: 0; - outline: 0; -} - /** * Show the overflow in IE. * 1. Show the overflow in Edge. @@ -380,12 +373,14 @@ textarea { } /** - * 1. Remove the padding in IE 10. + * Remove margin, padding & outline. */ [type="checkbox"], [type="radio"] { - padding: 0; /* 1 */ + padding: 0; + margin: 0; + outline: 0; } /**