// Copyright (C) YOOtheme GmbH, http://www.gnu.org/licenses/gpl.html GNU/GPL */

//
// Component: Form
//
// ========================================================================


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

@form-height:                                   @global-height;
@form-border:                                   @global-border;
@form-background:                               rgba(0,0,0,0);
@form-color:                                    @global-color;

@form-focus-border:                             @global-dark-color;
@form-focus-background:                         rgba(0,0,0,0);
@form-focus-color:                              @global-dark-color;

@form-disabled-border:                          @global-border;
@form-disabled-background:                      @global-light-background;
@form-disabled-color:                           @global-muted-color;

@form-placeholder-color:                        @global-muted-color;

@form-danger-background:                        rgba(0,0,0,0);
@form-danger-color:                             @global-danger-color;

@form-success-background:                       rgba(0,0,0,0);
@form-success-color:                            @global-success-color;

@form-legend-border:                            @global-border;

@form-small-height:                             @global-height-small;
@form-large-height:                             @global-height-large;


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

.hook-form() {}

// Focus state
.hook-form-focus() {}

// Disabled state
.hook-form-disabled() {}

// Legend
.hook-form-legend() {}


// Validation states
// ========================================================================

//
// Error state
//

.hook-form-danger() {}

//
// Success state
//

.hook-form-success() {}


// Style modifiers
// ========================================================================

.hook-form-blank() {}

.hook-form-blank-focus() {}


// Sub-object: `uk-form-label`
// ========================================================================

.hook-form-stacked-label() {}

.hook-form-horizontal-label() {}


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

.hook-form-misc() {
    select.uk-form-small,
    textarea.uk-form-small,
    input[type].uk-form-small,
    input:not([type]).uk-form-small { line-height: @global-font-size; }
}