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

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


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

@form-height:                                   @global-height;
@form-border:                                   @global-border;
@form-background:                               @global-light-background;
@form-color:                                    @global-color;

@form-focus-border:                             darken(@form-border, 10%);
@form-focus-background:                         darken(@form-background, 2%);
@form-focus-color:                              @global-color;

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

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

@form-gutter:                                   @global-margin;

@form-legend-border:                            @global-border;
@form-legend-font-size:                         round(@global-font-size * 1.28); // 18px
@form-legend-line-height:                       round(@form-legend-font-size * 1.66); // 30px

@form-small-height:                             @global-small-height;
@form-large-height:                             @global-large-height;
@form-large-padding:                            8px 12px;
@form-small-font-size:                          round(@global-font-size * 0.85); // 12px
@form-large-font-size:                          @global-font-size; // 14px

@form-danger-border:                            fade(@form-danger-color, 50%);
@form-danger-background:                        fade(@form-danger-color, 10%);
@form-danger-color:                             @global-danger-background;

@form-success-border:                           fade(@form-success-color, 70%);
@form-success-background:                       fade(@form-success-color, 10%);
@form-success-color:                            @global-success-background;

@form-blank-border:                             @global-border;

@form-icon-width:                               @global-height;
@form-icon-font-size:                           @global-font-size;
@form-icon-color:                               @global-muted-color;

//
// New
//

@form-font-weight: 								300;
@form-font-size: 								round(@global-font-size * 0.85); // 12px


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

.hook-form() { font-weight: @form-font-weight; }

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

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


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

//
// Error state
//

.hook-form-danger() {}

//
// Success state
//

.hook-form-success() {}


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

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


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

.hook-form-misc() {

	.uk-form label {
		font-size: round(@global-font-size * 0.85); // 12px
	    font-weight: 300;
	    text-transform: uppercase;
	}

	/* Modifier: `uk-form-stacked`
	 ========================================================================== */

	.uk-form-stacked .uk-form-label {
		font-size: round(@global-font-size * 0.85); // 12px
	    font-weight: 300;
	    text-transform: uppercase;
	}

}