| Current Path : /home/s/u/n/sunflowe/www2/floridevilladereve/templates/saffron/less/uikit/ |
| Current File : /home/s/u/n/sunflowe/www2/floridevilladereve/templates/saffron/less/uikit/button.less |
// Copyright (C) arrowthemes, https://www.gnu.org/licenses/gpl.html GNU/GPL */
//
// Component: Button
//
// ========================================================================
// Variables
// ========================================================================
@button-height: @global-height;
@button-mini-height: @global-mini-height;
@button-small-height: @global-small-height;
@button-large-height: 45px;
@button-large-padding-horizontal: 25px;
@button-line-height: @global-height;
@button-mini-line-height: @global-mini-height;
@button-small-line-height: @global-small-height;
@button-large-line-height: 45px;
@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-simple-background: @global-background;
@button-simple-hover-background: desaturate(darken(@button-simple-background, 3%), 10%);
@button-simple-color: @global-color;
@button-line-background: none;
@button-line-color: @button-primary-background;
@button-line-border: @button-line-color;
@button-line-hover-color: fade(@global-color, 90%);
@button-line-hover-border: @button-line-hover-color;
// Component
// ========================================================================
.hook-button() {
border-radius: @global-border-radius;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
border: 1px solid @global-border;
}
.hook-button-hover() { }
.hook-button-active() {
background-image: none;
box-shadow: inset 0 2px 2px @global-border;
}
// 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() {
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`
========================================================================== */
.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;
border-left: 1px solid @theme_global-light-shadow;
}
.uk-button-group > .uk-button:not(:first-child):not(:last-child),
.uk-button-group > div:not(:first-child):not(:last-child) .uk-button {
border-left: 1px solid @theme_global-light-shadow;
}
.uk-button-line,
.uk-button.uk-button-line {
background: @button-line-background;
border: 1px solid @button-line-border;
color: @button-line-color;
border-radius: @global-border-radius;
}
.uk-button-line:hover,
.uk-button.uk-button-line:hover {
background: @button-line-background;
border: 1px solid @button-line-hover-border;
color: @button-line-hover-color
}
.uk-button {
&.uk-button-simple {
background-color: @button-simple-background;
color: @button-simple-color;
background-image: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.05));
background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.05));
border: 1px solid rgba(0, 0, 0, 0.15);
font-size: @form-font-size;
}
&.uk-button-simple:hover,
&.uk-button-simple:focus,
&.uk-button-simple:active {
background-color: @button-simple-hover-background;
}
&.uk-button-simple:active{
box-shadow: inset 0 2px 2px rgba(0,0,0,0.1);
}
}
}