Skip to content

Instantly share code, notes, and snippets.

@kamry-bowman
Forked from MoOx/reset-button.css
Created February 10, 2019 20:52
Show Gist options
  • Select an option

  • Save kamry-bowman/065ece2e75a58cae84ecc9c812deb66b to your computer and use it in GitHub Desktop.

Select an option

Save kamry-bowman/065ece2e75a58cae84ecc9c812deb66b to your computer and use it in GitHub Desktop.

Revisions

  1. @MoOx MoOx created this gist Feb 21, 2014.
    29 changes: 29 additions & 0 deletions reset-button.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    %reset-Button {
    border: 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;
    }

    /* Remove excess padding and border in Firefox 4+ */
    &::-moz-focus-inner {
    border: 0;
    padding: 0;
    }