// Name:            Form select
// Description:     Extends form component
//
// Component:       `wk-form`
//
// Sub-objects:     `wk-form-select`
//
// Markup:
//
// <!-- wk-form-select -->
// <div class="wk-form-select" data-wk-form-select>
//     <span></span>
//     <select>
//         <option value=""></option>
//     </select>
// </div>
//
// ========================================================================


/* ========================================================================
   Component: Form select
 ========================================================================== */

/*
 * 1. Behave like form elements
 * 2. Create position context for dropdowns
 * 3. Clip content
 */

.wk-form-select {
    /* 1 */
    display: inline-block;
    vertical-align: middle;
    /* 2 */
    position: relative;
    /* 3 */
    overflow: hidden;
}

/*
 * 1. Required for Firefox
 * 1. Required for Webkit to make `height` work
 */

.wk-form-select select {
    position: absolute;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    /* 1 */
    left: 0;
    /* 2 */
    -webkit-appearance: none;
}


// Hooks
// ========================================================================

.hook-form-select-misc;

.hook-form-select-misc() {}