@btn-default-color:#38E;
@btn-default-background-color:#FFF;

// Button theme c
//
// Generated with config: <i>_themeName=c, bold=true, borderRadius=false, themeIndex=3, themeName=c</i>
//
// .btn-theme-c - Normal state style.
// .btn-theme-c.btn-state-hover - Hover state style.
// .btn-theme-c.btn-state-active - Active state style.
// .btn-theme-c.btn-primary - Primary button style.
// .btn-theme-c.btn-disabled - Disabled style.
//
// Markup:
// <a href="javascript:void(0)" class="btn-theme-c {$modifiers}">Anchor button</a>
// <button class="btn-theme-c {$modifiers}">Button button</button>
// <input type='submit' class="btn-theme-c {$modifiers}" value="Submit button"/>
//
// Styleguide 4.3

.btn-theme-c(@color:@btn-default-color;
@background-color:@btn-default-background-color;){
    border-width:1px;
    border-style:solid;
    display:inline-block;
    font-size:inherit;
    text-decoration:none;
    font-family: inherit;
    cursor:pointer;
    outline: none;
    
    border-color:@color;
    color:@color;
    background-color:@background-color;
    
    padding:.25em .5em;
    &.btn-state-hover,
    &:hover{
        @hoverColor:lighten(@color, 12);
        color:@hoverColor;
        border-color:@hoverColor;
        text-decoration:none;
    }
    &.btn-state-active,
    &:active{
        background-color: darken(@background-color, 2);
        box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5) inset;
    }
    &.btn-primary{
        @primary-color:contrast(@color, @color, @background-color, 50%);
        @primary-background-color:contrast(@background-color, @color, @background-color, 50%);
        color:@primary-color;
        background-color:@primary-background-color;

        &:hover{
            color:@primary-color;
            background-color:lighten(@primary-background-color, 5);
        }
        &:active{
            background-color:darken(@primary-background-color, 5);
        }
    }
    &.btn-disabled,
    &.btn-disabled&:hover,
    &.btn-disabled&:active{
        opacity:0.5;
        outline:none;
        cursor:default;
        color:@color;
        background-color:@background-color;
    }
}

.btn(@color;@background-color;){
    .btn-theme-c(@color;@background-color;);
}
