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


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

@button-font-size:                              11px;
@button-small-font-size:                        10px;
@button-large-font-size:                        11px;

@button-default-color:                          @global-color;
@button-default-background:                     transparent;
@button-default-hover-background:               @button-default-color;
@button-default-hover-color:                    @global-inverse-color;
@button-default-active-background:              lighten(@button-default-hover-background, 5%);
@button-default-active-color:                   @button-default-hover-color;

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

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

@button-danger-background:                      transparent;
@button-danger-color:                           @global-danger-background;
@button-danger-hover-color:                     @global-inverse-color;
@button-danger-hover-background:                @global-danger-background;
@button-danger-hover-color:                     @global-inverse-color;
@button-danger-active-background:               lighten(@global-danger-background, 5%);
@button-danger-active-color:                    @button-danger-hover-color;

@button-disabled-background:                    transparent;
@button-disabled-color:                         @global-muted-color;

//
// Master
//

@button-font-weight:                            @global-secondary-font-weight;
@button-letter-spacing:                         1px;

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

@button-primary-border:                         @button-primary-color;
@button-primary-hover-border:                   @button-primary-hover-background;
@button-primary-active-border:                  @button-primary-active-background;

@button-secondary-hover-border:                 @button-secondary-hover-color;

@button-danger-border:                          @global-danger-background;
@button-danger-hover-border:                    @button-danger-hover-background;
@button-danger-active-border:                   @button-danger-active-background;

@button-disabled-border:                        lighten(@button-disabled-color, 10%);

@button-text-mode:                              arrow;


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

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

@inverse-button-secondary-hover-background:    fade(@inverse-button-secondary-background, 80%);

@inverse-button-text-color:                    @inverse-global-emphasis-color;
@inverse-button-text-hover-color:              @inverse-global-muted-color;

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