//
// Component: Button
//
// ========================================================================


// Variables
// ========================================================================

@button-font-size:                              @global-small-font-size;
@button-large-font-size:                        @global-small-font-size;

@button-padding-horizontal:                     34px;
@button-small-padding-horizontal:               18px;
@button-large-padding-horizontal:               56px;

@button-default-background:                     transparent;
@button-default-hover-background:               transparent;
@button-default-active-background:              transparent;

@button-primary-background:                     lighten(@global-primary-background, 2%);
@button-primary-color:                          @global-color;
@button-primary-hover-background:               lighten(@button-primary-background, 2%);
@button-primary-hover-color:                    @global-color;
@button-primary-active-background:              @button-primary-background;
@button-primary-active-color:                   @global-color;

@button-secondary-active-background:            @button-secondary-background;

@button-danger-active-background:               @button-danger-background;

//
// Master
// 

@button-text-border-width:                      2px;

@button-border-width:                           @global-border-width;

@button-default-border:                         @global-border;
@button-default-hover-border:                   fade(@global-emphasis-color, 40%);
@button-default-active-border:                  @global-border;

@button-border-radius:                          @global-border-radius;

@button-small-border-radius:                    @global-border-radius;
@button-large-border-radius:                    @global-border-radius;


// Component
// ========================================================================

.hook-button() {}

.hook-button-hover() {}

.hook-button-focus() {}

.hook-button-active() {}


// Style modifiers
// ========================================================================

.hook-button-default() {}

.hook-button-default-hover() {}

.hook-button-default-active() {}

//
// Primary
//

.hook-button-primary() {}

.hook-button-primary-hover() {}

.hook-button-primary-active() {}

//
// Secondary
//

.hook-button-secondary() {}

.hook-button-secondary-hover() {}

.hook-button-secondary-active() {}

//
// Danger
//

.hook-button-danger() {}

.hook-button-danger-hover() {}

.hook-button-danger-active() {}


// Disabled
// ========================================================================

.hook-button-disabled() {}


// Size modifiers
// ========================================================================

.hook-button-small() {}

.hook-button-large() {}


// Text modifier
// ========================================================================

.hook-button-text() {}

.hook-button-text-hover() {}

.hook-button-text-disabled() {}


// Link modifier
// ========================================================================

.hook-button-link() {}


// Miscellaneous
// ========================================================================

.hook-button-misc() {}


// Inverse
// ========================================================================

@inverse-button-default-background:            transparent;
@inverse-button-default-color:                 @inverse-global-emphasis-color;
@inverse-button-default-hover-color:           @inverse-global-emphasis-color;
@inverse-button-default-active-color:          @inverse-global-emphasis-color;
@inverse-button-secondary-background:          @button-secondary-background;
@inverse-button-secondary-color:               @button-secondary-color;
@inverse-button-secondary-hover-background:    @button-secondary-hover-background;
@inverse-button-secondary-hover-color:         @button-secondary-hover-color;
@inverse-button-secondary-active-background:   @button-secondary-active-background;
@inverse-button-secondary-active-color:        @button-secondary-active-color;

//
// Master
//

@inverse-button-default-border:                @inverse-global-border;
@inverse-button-default-hover-border:          @inverse-global-muted-color;
@inverse-button-default-active-border:         @inverse-global-border;

.hook-inverse-button-default() {}
.hook-inverse-button-default-hover() {}
.hook-inverse-button-default-active() {}

.hook-inverse-button-primary() {}
.hook-inverse-button-primary-hover() {}
.hook-inverse-button-primary-active() {}

.hook-inverse-button-secondary() {}
.hook-inverse-button-secondary-hover() {}
.hook-inverse-button-secondary-active() {}

.hook-inverse-button-text() {}
.hook-inverse-button-text-hover() {}
.hook-inverse-button-text-disabled() {}

.hook-inverse-button-link() {}