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

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

.btn-theme-d(@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-radius:4px;
    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-d(@color;@background-color;);
}
