| Current Path : /var/www/iplanru/data/www/i-plan.ru/templates/yoo_everest/less/uikit/ |
| Current File : /var/www/iplanru/data/www/i-plan.ru/templates/yoo_everest/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); // 11px
@button-small-font-size: round(@global-font-size * 0.85); // 12px
@button-large-font-size: round(@global-font-size * 1.14); // 16px
@button-background: @global-default-background;
@button-color: @global-contrast-color;
@button-hover-background: desaturate(darken(@button-background, 3%), 10%);
@button-hover-color: @global-contrast-color;
@button-active-background: darken(@button-hover-background, 3%);
@button-active-color: @global-contrast-color;
@button-primary-background: @global-primary-background;
@button-primary-color: @global-contrast-color;
@button-primary-hover-background: desaturate(darken(@button-primary-background, 3%), 3%);
@button-primary-hover-color: @global-contrast-color;
@button-primary-active-background: darken(@button-primary-hover-background, 3%);
@button-primary-active-color: @global-contrast-color;
@button-success-background: @global-success-background;
@button-success-color: @global-contrast-color;
@button-success-hover-background: desaturate(darken(@button-success-background, 3%), 10%);
@button-success-hover-color: @global-contrast-color;
@button-success-active-background: darken(@button-success-hover-background, 3%);
@button-success-active-color: @global-contrast-color;
@button-danger-background: @global-danger-background;
@button-danger-color: @global-contrast-color;
@button-danger-hover-background: desaturate(darken(@button-danger-background, 3%), 10%);
@button-danger-hover-color: @global-contrast-color;
@button-danger-active-background: darken(@button-danger-hover-background, 3%);
@button-danger-active-color: @global-contrast-color;
@button-disabled-background: @global-light-background;
@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-gradient-top: @global-default-gradient-top;
@button-gradient-bottom: @global-default-gradient-bottom;
@button-primary-gradient-top: @global-primary-gradient-top;
@button-primary-gradient-bottom: @global-primary-gradient-bottom;
@button-success-gradient-top: @global-success-gradient-top;
@button-success-gradient-bottom: @global-success-gradient-bottom;
@button-warning-gradient-top: @global-warning-gradient-top;
@button-warning-gradient-bottom: @global-warning-gradient-bottom;
@button-danger-gradient-top: @global-danger-gradient-top;
@button-danger-gradient-bottom: @global-danger-gradient-bottom;
// Component
// ========================================================================
.hook-button() {
background-image: -webkit-linear-gradient(top, @button-gradient-top, @button-gradient-bottom);
background-image: linear-gradient(to bottom, @button-gradient-top, @button-gradient-bottom);
border-radius: @global-border-radius;
}
.hook-button-hover() { background-image: none; }
.hook-button-active() {
background-image: none;
box-shadow: inset 0 2px 2px rgba(0,0,0,0.1);
}
// Color modifiers
// ========================================================================
//
// Modifier: `uk-button-primary`
//
.hook-button-primary() {
background-image: -webkit-linear-gradient(top, @button-primary-gradient-top, @button-primary-gradient-bottom);
background-image: linear-gradient(to bottom, @button-primary-gradient-top, @button-primary-gradient-bottom);
}
.hook-button-primary-hover() {}
.hook-button-primary-active() {}
//
// Modifier: `uk-button-success`
//
.hook-button-success() {
background-image: -webkit-linear-gradient(top, @button-success-gradient-top, @button-success-gradient-bottom);
background-image: linear-gradient(to bottom, @button-success-gradient-top, @button-success-gradient-bottom);
}
.hook-button-success-hover() {}
.hook-button-success-active() {}
//
// Modifier: `uk-button-danger`
//
.hook-button-danger() {
background-image: -webkit-linear-gradient(top, @button-danger-gradient-top, @button-danger-gradient-bottom);
background-image: linear-gradient(to bottom, @button-danger-gradient-top, @button-danger-gradient-bottom);
}
.hook-button-danger-hover() {}
.hook-button-danger-active() {}
// Disabled state
// ========================================================================
.hook-button-disable() {
box-shadow:none;
background-image: none;
}
// Modifier: `uk-button-link`
// ========================================================================
.hook-button-link() { box-shadow:none; }
// Size modifiers
// ========================================================================
.hook-button-large() {}
// Miscellaneous
// ========================================================================
.hook-button-misc() {
/* Sub-object `uk-button-group`
========================================================================== */
/*
* 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;
}
}