// Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */ // // Component: Form // // ======================================================================== // Variables // ======================================================================== @form-height: @global-height; @form-padding: 4px 0; @form-border: @global-border; @form-background: rgba(0,0,0,0); @form-color: @global-color; @form-focus-border: @global-primary-background; @form-focus-background: rgba(0,0,0,0); @form-focus-color: @global-color; @form-disabled-border: lighten(@global-border, 10%); @form-disabled-background: rgba(0,0,0,0); @form-disabled-color: lighten(@global-muted-color, 10%); @form-placeholder-color: @global-muted-color; @form-gutter: @global-margin; @form-legend-border: rgba(0,0,0,0); @form-legend-font-size: round((@global-font-size * 1.2)); // 18px @form-legend-line-height: round((@form-legend-font-size * 1.68)); // 30px @form-small-height: @global-height-small; @form-large-height: @global-height-large; @form-small-padding: 3px 0; @form-large-padding: 8px 0; @form-small-font-size: round((@global-font-size * 0.8)); // 12px @form-large-font-size: round((@global-font-size * 1.333)); // 16px @form-danger-border: @global-danger-background; @form-danger-background: rgba(0,0,0,0); @form-danger-color: @global-danger-color; @form-success-border: @global-success-background; @form-success-background: rgba(0,0,0,0); @form-success-color: @global-success-color; @form-blank-border: @global-border; @form-icon-font-size: @global-font-size; @form-icon-color: @global-muted-color; // // New // @form-focus-box-shadow: 0 1px 0 0 @global-primary-background; @form-danger-focus-box-shadow: 0 1px 0 0 @global-danger-background; @form-success-focus-box-shadow: 0 1px 0 0 @global-success-background; // Component // ======================================================================== .hook-form() { border-width: 0 0 @form-border-width 0; } // Focus state .hook-form-focus() { box-shadow: @form-focus-box-shadow; } // Disabled state .hook-form-disabled() {} // Legend .hook-form-legend() {} // Validation states // ======================================================================== // // Error state // .hook-form-danger() { &:focus { box-shadow: @form-danger-focus-box-shadow !important; } } // // Success state // .hook-form-success() { &:focus { box-shadow: @form-success-focus-box-shadow !important; } } // Style modifiers // ======================================================================== .hook-form-blank() { &:focus { box-shadow: none !important; } } .hook-form-blank-focus() {} // Sub-object: `uk-form-label` // ======================================================================== .hook-form-stacked-label() {} .hook-form-horizontal-label() {} // Miscellaneous // ======================================================================== .hook-form-misc() {}