Source: Codepen.io – Reset button style.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
/* Base */ @mixin button-reset() { // -webkit-box-sizing: content-box; // -moz-box-sizing: content-box; // box-sizing: content-box; background: none; border: 0; color: inherit; /* cursor: default; */ font: inherit; line-height: normal; overflow: visible; padding: 0; -webkit-appearance: button; /* for input */ -webkit-user-select: none; /* for button */ -moz-user-select: none; -ms-user-select: none; &::-moz-focus-inner, &::-moz-focus-inner { border: 0; padding: 0; } } /* Make `a` like a button */ @mixin a-button-reset() { color: inherit; cursor: default; display: inline-block; text-align: center; text-decoration: none; white-space: pre; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } |