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


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

@button-line-height:                            38px;

@button-font-size:                              14px;
@button-large-font-size:                        @button-font-size;

@button-padding-horizontal:                     25px;

@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-radius:                          500px;
@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%);

@button-text-mode:                              arrow;
@button-link-hover-text-decoration:             none;


// 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-primary-background:             @global-primary-background;
@inverse-button-primary-color:                  @inverse-global-color;
@inverse-button-primary-hover-background:       @inverse-global-emphasis-color;
@inverse-button-primary-active-background:      darken(@inverse-global-emphasis-color, 10%);

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