<commit_before>// BUTTON TYPES
// --------------------------------------------------------------------
// Gradient button
@mixin gradient-button($bg: $alt-grey, $fg: $black, $rad: 4px) {
    @include x-linear-gradient(lighten($bg, 13.2%), $bg);
    background-clip: padding-box;
    border: 1px solid;
    border-color: $bg darken($bg, 13.2%) darken($bg, 26.5%);
    border-radius: $rad;
    color: $fg;
    display: inline-block;
    line-height: normal;
    outline: 0;
    @include x-rem(padding, 0.1875 0.625);
    text-align: center;
    text-decoration: none;
    text-shadow: invert($fg) 0 1px 1px;
    width: auto;

    @if $ie7-support {
        *padding-top: 2px;
        *padding-bottom: 0;
    }

    &:hover {
        @include x-linear-gradient(lighten($bg, 13.2%), darken($bg, 6.5%));
    }

    &:active {
        @include x-linear-gradient(lighten($bg, 13.2%), lighten($bg, 6.5%));
        box-shadow: inset rgba($black, 0.25) 0 1px 2px 0;
        border-color: darken($bg, 26.5%) darken($bg, 13.2%) $bg;
    }

    &:focus {
        box-shadow: #06f 0 0 5px 0;
        z-index: 1;
    }

    &:active,
    &:visited,
    &:hover,
    &:focus {
        color: $fg;
    }
}<commit_msg>Add a mixin for 'flat' buttons.<commit_after>// BUTTON TYPES
// --------------------------------------------------------------------
// Gradient button
@mixin gradient-button($bg: $alt-grey, $fg: $black, $rad: 4px) {
    @include x-linear-gradient(lighten($bg, 13.2%), $bg);
    background-clip: padding-box;
    border: 1px solid;
    border-color: $bg darken($bg, 13.2%) darken($bg, 26.5%);
    border-radius: $rad;
    color: $fg;
    display: inline-block;
    line-height: normal;
    outline: 0;
    @include x-rem(padding, 0.1875 0.625);
    text-align: center;
    text-decoration: none;
    text-shadow: invert($fg) 0 1px 1px;
    width: auto;

    @if $ie7-support {
        *padding-top: 2px;
        *padding-bottom: 0;
    }

    &:hover {
        @include x-linear-gradient(lighten($bg, 13.2%), darken($bg, 6.5%));
    }

    &:active {
        @include x-linear-gradient(lighten($bg, 13.2%), lighten($bg, 6.5%));
        box-shadow: inset rgba($black, 0.25) 0 1px 2px 0;
        border-color: darken($bg, 26.5%) darken($bg, 13.2%) $bg;
    }

    &:focus {
        box-shadow: #06f 0 0 5px 0;
        z-index: 1;
    }

    &:active,
    &:visited,
    &:hover,
    &:focus {
        color: $fg;
    }
}

// Flat button
@mixin flat-button($bg: $alt-grey, $fg: $black, $rad: 4px, $ag: complement($bg)) {
    background: $bg;
    background-clip: padding-box;
    border: 0 none;
    border-radius: $rad;
    color: $fg;
    display: inline-block;
    line-height: normal;
    outline: 0;
    @include x-rem(padding, 0.1875 0.625);
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    width: auto;

    @if $ie7-support {
        *padding-top: 2px;
        *padding-bottom: 0;
    }

    &:hover,
    &:focus {
        background: $ag;
    }

    &:active {
        @include x-linear-gradient(lighten($bg, 13.2%), lighten($bg, 6.5%));
        box-shadow: none;
    }

    &:focus {
        box-shadow: none;
        z-index: auto;
    }

    &:active,
    &:visited,
    &:hover,
    &:focus {
        color: $fg;
    }
}
{'fraction_non_alphanumeric': 0.21478981282602025, 'fraction_numerical': 0.04111690702669531, 'mean_word_length': 1.936936936936937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '484708', 'n_tokens_mistral': 1335, 'n_tokens_neox': 1194, 'n_words': 272}