-
Star
(102)
You must be signed in to star a gist -
Fork
(15)
You must be signed in to fork a gist
-
-
Save MoOx/9137295 to your computer and use it in GitHub Desktop.
`.reset-Button {
border: none;
outline: none;
margin: 0;
padding: 0;
width: auto;
overflow: visible;
background: transparent;
/* inherit font & color from ancestor */
color: inherit;
font: inherit;
/* Normalize line-height. Cannot be changed from normal in Firefox 4+. */
line-height: normal;
/* Corrects font smoothing for webkit */
-webkit-font-smoothing: inherit;
-moz-osx-font-smoothing: inherit;
/* Corrects inability to style clickable input types in iOS */
-webkit-appearance: none;
}
.reset-Button::-moz-focus-inner {
border: 0;
padding: 0;
}
.reset-Button:focus {
outline: none;
}
.reset-Button:focus:not(:focus-visible) {
outline: none;
}
.reset-Button:focus:not(:-moz-focusring) {
outline: none;
}`
I think nowadays you just need this:
button { all: unset; }Lol. Never seen a more powerful one-liner in my entire career. Thanks, @fregante
whoever decided to add the all prop to the spec low-key chose violence in the best way possible
boss 🤯