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


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

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

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

@button-primary-hover-background:               transparent;
@button-primary-hover-color:                    @global-primary-background;
@button-primary-active-background:              transparent;
@button-primary-active-color:                   fade(@button-primary-hover-color, 80%);

@button-secondary-hover-background:             transparent;
@button-secondary-hover-color:                  @global-secondary-background;
@button-secondary-active-background:            transparent;
@button-secondary-active-color:                 fade(@button-secondary-hover-color, 80%);

@button-danger-hover-background:                transparent;
@button-danger-hover-color:                     @global-danger-background;
@button-danger-active-background:               transparent;
@button-danger-active-color:                    fade(@button-danger-hover-color, 80%);

//
// Master
//

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

@button-default-hover-border:                   @global-border;
@button-default-active-border:                  darken(@global-border, 10%);

@button-primary-hover-border:                   @global-primary-background;
@button-primary-active-border:                  fade(@global-primary-background, 60%);

@button-secondary-hover-border:                 @global-secondary-background;
@button-secondary-active-border:                fade(@global-secondary-background, 60%);

@button-danger-hover-border:                    @global-danger-background;
@button-danger-active-border:                   fade(@global-danger-background, 60%);


// 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:            @inverse-global-muted-background;
@inverse-button-default-color:                 @inverse-global-color;
@inverse-button-default-hover-background:      transparent;
@inverse-button-default-hover-color:           @inverse-global-emphasis-color;
@inverse-button-default-active-background:     transparent;
@inverse-button-default-active-color:          @inverse-global-muted-color;
@inverse-button-default-border:                transparent;
@inverse-button-default-hover-border:          @inverse-global-border;
@inverse-button-default-active-border:         @inverse-global-primary-background;

@inverse-button-primary-background:            @inverse-global-primary-background;
@inverse-button-primary-color:                 @inverse-global-inverse-color;
@inverse-button-primary-hover-background:      transparent;
@inverse-button-primary-hover-color:           @inverse-global-emphasis-color;
@inverse-button-primary-active-background:     transparent;
@inverse-button-primary-active-color:          @inverse-global-color;
@inverse-button-primary-border:                transparent;
@inverse-button-primary-hover-border:          @inverse-global-border;
@inverse-button-primary-active-border:         @inverse-global-primary-background;

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

.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() {}