| Current Path : /home/j/l/g/jlgagfroyt/www/templates/yoo_katana/less/uikit/ |
| Current File : /home/j/l/g/jlgagfroyt/www/templates/yoo_katana/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-height-mini;
@button-small-height: @global-height-small;
@button-large-height: @global-height-large;
@button-line-height: @global-height;
@button-mini-line-height: @global-height-mini;
@button-small-line-height: @global-height-small;
@button-large-line-height: @global-height-large;
@button-mini-font-size: round((@button-font-size * 0.78));
@button-small-font-size: round((@button-font-size * 0.85));
@button-large-font-size: round((@button-font-size * 1.14));
@button-padding-horizontal: 20px;
@button-mini-padding-horizontal: 12px;
@button-small-padding-horizontal: 16px;
@button-large-padding-horizontal: 28px;
@button-color: @global-color;
@button-background: transparent;
@button-hover-color: @global-contrast-color;
@button-hover-background: @global-color;
@button-active-color: @global-contrast-color;
@button-active-background: @global-color;
@button-primary-background: transparent;
@button-primary-color: @global-primary-background;
@button-primary-hover-color: @global-contrast-color;
@button-primary-hover-background: @global-primary-background;
@button-primary-active-color: @global-contrast-color;
@button-primary-active-background: @global-primary-background;
@button-success-background: transparent;
@button-success-color: @global-success-background;
@button-success-hover-color: @global-contrast-color;
@button-success-hover-background: @global-success-background;
@button-success-active-color: @global-contrast-color;
@button-success-active-background: @global-success-background;
@button-danger-background: transparent;
@button-danger-color: @global-danger-background;
@button-danger-hover-color: @global-contrast-color;
@button-danger-hover-background: @global-danger-background;
@button-danger-active-color: @global-contrast-color;
@button-danger-active-background: @global-danger-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-font-size: 14px;
@button-font-weight: bold;
@button-border: @global-color;
@button-primary-border: @global-primary-background;
@button-success-border: @global-success-background;
@button-danger-border: @global-danger-background;
@button-disabled-border: @global-border;
@button-secondary-background: transparent;
@button-secondary-color: @global-secondary-background;
@button-secondary-border: @global-secondary-background;
@button-secondary-hover-background: @global-secondary-background;
@button-secondary-hover-color: @global-contrast-color;
@button-secondary-active-background: @global-secondary-background;
@button-secondary-active-color: @global-contrast-color;
@button-tertiary-background: transparent;
@button-tertiary-color: @global-tertiary-background;
@button-tertiary-border: @global-tertiary-background;
@button-tertiary-hover-background: @global-tertiary-background;
@button-tertiary-hover-color: @global-contrast-color;
@button-tertiary-active-background: @global-tertiary-background;
@button-tertiary-active-color: @global-contrast-color;
// Component
// ========================================================================
.hook-button() {
border-radius: @global-border-radius;
border: 2px solid @button-border;
font-weight: @button-font-weight;
box-shadow: inset 0 0 0 0 transparent;
-webkit-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
}
.hook-button-hover() {
box-shadow: inset 0 0 10px 30px @button-border;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.hook-button-active() {}
// Color modifiers
// ========================================================================
//
// Modifier: `uk-button-primary`
//
.hook-button-primary() { border-color: @button-primary-border; }
.hook-button-primary-hover() { box-shadow: inset 0 0 10px 30px @button-primary-border; }
.hook-button-primary-active() {}
//
// Modifier: `uk-button-success`
//
.hook-button-success() { border-color: @button-success-border; }
.hook-button-success-hover() { box-shadow: inset 0 0 10px 30px @button-success-border; }
.hook-button-success-active() {}
//
// Modifier: `uk-button-danger`
//
.hook-button-danger() { border-color: @button-danger-border; }
.hook-button-danger-hover() { box-shadow: inset 0 0 10px 30px @button-danger-border; }
.hook-button-danger-active() {}
// Disabled state
// ========================================================================
.hook-button-disable() {
border-color: @button-disabled-border;
box-shadow: none;
}
// 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 + .uk-button,
.uk-button-group > .uk-button:nth-child(n+2),
.uk-button-group > div:last-child .uk-button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
margin-left: -2px;
}
/*
* Modifier: `uk-button-secondary`
*/
.uk-button-secondary {
background-color: @button-secondary-background;
color: @button-secondary-color;
border-color: @button-secondary-border;
}
/* Hover */
.uk-button-secondary:hover,
.uk-button-secondary:focus {
background-color: @button-secondary-hover-background;
color: @button-secondary-hover-color;
box-shadow: inset 0 0 10px 30px @button-secondary-border;
}
/* Active */
.uk-button-secondary:active,
.uk-button-secondary.uk-active {
background-color: @button-secondary-active-background;
color: @button-secondary-active-color;
}
/*
* Modifier: `uk-button-tertiary`
*/
.uk-button-tertiary {
background-color: @button-tertiary-background;
color: @button-tertiary-color;
border-color: @button-tertiary-border;
}
/* Hover */
.uk-button-tertiary:hover,
.uk-button-tertiary:focus {
background-color: @button-tertiary-hover-background;
color: @button-tertiary-hover-color;
box-shadow: inset 0 0 10px 30px @button-tertiary-border;
}
/* Active */
.uk-button-tertiary:active,
.uk-button-tertiary.uk-active {
background-color: @button-tertiary-active-background;
color: @button-tertiary-active-color;
}
}