Your IP : 216.73.217.80


Current Path : /home/j/l/g/jlgagfroyt/www/AAOLD/templates/yoo_digit copie/less/uikit/
Upload File :
Current File : /home/j/l/g/jlgagfroyt/www/AAOLD/templates/yoo_digit copie/less/uikit/button.less

// Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

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

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

@button-height:                                 @global-height;
@button-mini-height:                            @global-mini-height;
@button-small-height:                           @global-small-height;
@button-large-height:                           @global-large-height;

@button-line-height:                            @global-height;
@button-mini-line-height:                       @global-mini-height;
@button-small-line-height:                      @global-small-height;
@button-large-line-height:                      @global-large-height;

@button-mini-font-size:                         round((@global-font-size * 0.78));
@button-small-font-size:                        round((@global-font-size * 0.85));
@button-large-font-size:                        round((@global-font-size * 1.14));

@button-padding-horizontal:                     15px;
@button-mini-padding-horizontal:                8px;
@button-small-padding-horizontal:               12px;
@button-large-padding-horizontal:               18px;

@button-background:                             darken(@global-background, 4%);
@button-color:                                  @global-color;
@button-hover-background:                       darken(@global-background, 6%);
@button-hover-color:                            @global-color;
@button-active-background:                      darken(@global-background, 8%);
@button-active-color:                           @global-color;

@button-primary-background:                     darken(@global-primary-background, 4%);
@button-primary-color:                          @global-contrast-color;
@button-primary-hover-background:               darken(@global-primary-background, 6%);
@button-primary-hover-color:                    @global-contrast-color;
@button-primary-active-background:              darken(@global-primary-background, 8%);
@button-primary-active-color:                   @global-contrast-color;

@button-success-background:                     @global-success-background;
@button-success-color:                          @global-contrast-color;
@button-success-hover-background:               darken(@global-success-background, 5%);
@button-success-hover-color:                    @global-contrast-color;
@button-success-active-background:              darken(@global-success-background, 8%);
@button-success-active-color:                   @global-contrast-color;

@button-danger-background:                      @global-danger-background;
@button-danger-color:                           @global-contrast-color;
@button-danger-hover-background:                darken(@global-danger-background, 5%);
@button-danger-hover-color:                     @global-contrast-color;
@button-danger-active-background:               darken(@global-danger-background, 8%);
@button-danger-active-color:                    @global-contrast-color;
@button-disabled-background:                    darken(@global-background, 1%);
@button-disabled-color:                         @global-muted-color;

@button-link-color:                             @global-link-color;
@button-link-hover-color:                       @global-link-hover-color;
@button-link-disabled-color:                    @global-muted-color;

//
// New
//

@button-border-radius:                          @global-border-radius;
@button-box-shadow:                             rgba(0,0,0,0.05);
@button-inset-box-shadow:                       rgba(255,255,255,0.02);


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

.hook-button() {
    border-radius: @button-border-radius;
    box-shadow: 0 1px @button-box-shadow, inset 0 1px @button-inset-box-shadow;
}

.hook-button-hover() { box-shadow: 0 1px @button-inset-box-shadow, inset 0 1px @button-box-shadow; }

.hook-button-active() { box-shadow: 0 1px @button-inset-box-shadow, inset 0 1px @button-box-shadow; }


// Color modifiers
// ========================================================================

//
// Modifier: `uk-button-primary`
//

.hook-button-primary() {}

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

//
// Modifier: `uk-button-success`
//

.hook-button-success() {}

.hook-button-success-hover() {}
.hook-button-success-active() {}

//
// Modifier: `uk-button-danger`
//

.hook-button-danger() {}

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


// Disabled state
// ========================================================================

.hook-button-disable() {

    &:hover { box-shadow: 0 1px @button-box-shadow, inset 0 1px @button-inset-box-shadow; }

}


// Modifier: `uk-button-link`
// ========================================================================

.hook-button-link() { box-shadow: none; }


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

.hook-button-large() {}


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

.hook-button-misc() {

    /*
     * Reset border-radius
     */

    .uk-button-group > .uk-button:not(:first-child):not(:last-child),
    .uk-button-group > div:not(:first-child):not(:last-child) .uk-button { border-radius: 0; }

    .uk-button-group > .uk-button:first-child,
    .uk-button-group > div:first-child .uk-button {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .uk-button-group > .uk-button:last-child,
    .uk-button-group > div:last-child .uk-button {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

}