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

//
// Search component
//
// ==========================================================================

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

@search-width:                                  @global-height + 10;
@search-focus-width:                            210px;
@search-height:                                 @global-height + 10;
@search-padding:                                50px;
@search-border:                                 @global-secondary-background;
@search-color:                                  @global-color;
@search-placeholder-color:                      transparent;
@search-icon-size:                              20px;
@search-icon-color:                             @global-primary-background;
@search-close-size:                             18px;
@search-close-color:                            @global-color;

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

.hook-search() {}

.hook-search-icon() { padding: 0 0; }

// Sub-object `uk-search-field`
// ==========================================================================

.hook-search-field() {
    position: relative;
    padding: 0;
    border: none;
    z-index: 1;
    cursor: pointer;
}

.hook-search-field-focus() { border: none; }


// Sub-object `uk-search-close`
// ==========================================================================

.hook-search-close() { z-index: 2; }


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

.hook-search-misc() {

    .uk-search-field:focus,
    .uk-active .uk-search-field {
        padding: 0 @search-padding;
        cursor: text;
    }

}