Skip to content

Instantly share code, notes, and snippets.

@jasonmelgoza
Created March 15, 2021 00:46
Show Gist options
  • Save jasonmelgoza/4ee39058d8c2e9edb15519b9141542af to your computer and use it in GitHub Desktop.
Save jasonmelgoza/4ee39058d8c2e9edb15519b9141542af to your computer and use it in GitHub Desktop.
Button Reset
%button-reset {
width: auto;
padding: 0;
margin: 0;
overflow: visible;
font: inherit;
line-height: normal;
color: inherit;
text-decoration: none;
text-transform: none;
cursor: pointer;
background: transparent;
border: none;
outline: none;
box-shadow: none;
&:focus {
outline: none;
box-shadow: none;
}
&:hover {
background-color: transparent;
}
// Remove excess padding and border in Firefox 4+
&::-moz-focus-inner {
padding: 0;
border: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment