juliya
10/10/2017 - 2:34 PM

select2

<div class="form-group phone">
    <label class="label" for="time">Your best time to call:</label>
    <select id="time" class="form-control select2-select" name="time" title="Best time to call" style="width: 100%">
        <option value="empty" selected>Best time to call</option>
        <option value="Morning">Morning</option>
        <option value="Afternoon">Afternoon</option>
        <option value="Evening">Evening</option>
    </select>
</div>
.select2-container {
    max-width: 100%;
}
.select2-container--default .select2-selection--single {
    .box-sizing();
    .border-radius(21px);
    border: 1px solid @border-color-light;
    width: 100%;
    height: 42px;
    background-color: @bg-color-light;
    .transition();
    &:focus {
        outline: none;
        border: 1px solid @border-color-dark;
    }
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    .border-radius(21px);
    padding: 0 30px 0 15px;
    height: 40px;
    font-size: 16px;
    line-height: 40px;
    font-family: @font;
    color: @border-color;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 19px;
    right: 15px;
    width: 9px;
    height: 7px;
    background-image: url("../img/arrow-down.png");
    background-repeat: no-repeat;
    background-position: center center;
    b {
        display: none;
    }
}
.select2-dropdown {
    overflow: hidden;
    .border-radius(21px);
    border: 1px solid @border-color;
    .box-shadow(0, 28px, 92px, 0, rgba(0, 65, 101, 0.16));
}
.select2-search.select2-search--dropdown {
    display: none;
}
.select2-result__options {
    font-size: 16px;
    color: @border-color;
}
.select2-container--default .select2-results__option {
    padding-left: 15px;
    padding-right: 15px;
}
.select2-container--default .select2-results__option[aria-selected] {
    font-size: 16px;
    color: @border-color;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: #ffffff;
    background-color: @accent-color;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    color: #ffffff;
    background-color: @accent-color;
}



.landing-consultation-form .select2-container {
    max-width: 100%;
}
.landing-consultation-form .select2-container--default .select2-selection--single {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    border: 1px solid #e1e1e1;
    width: 100%;
    height: 55px;
    font-weight: 400;
    font-size: 14px;
    font-family: 'Verdana', sans-serif;
    color: #333333;
    background: #ffffff;
    -webkit-transition: all ease-in-out 0.3s;
    -moz-transition: all ease-in-out 0.3s;
    -ms-transition: all ease-in-out 0.3s;
    -o-transition: all ease-in-out 0.3s;
    transition: all ease-in-out 0.3s;
}
.landing-consultation-form .select2-container--default .select2-selection--single:hover,
.landing-consultation-form .select2-container--default .select2-selection--single:focus {
    outline: none;
    border-color: #b7b7b7;
    background: #ffffff;
}
.landing-consultation-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    padding: 0 45px 0 20px;
    height: 53px;
    font-size: 14px;
    line-height: 53px;
    font-family: 'Verdana', sans-serif;
    color: #333333;
}
.landing-consultation-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #b3b3b3;
}
.landing-consultation-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 1px;
    top: 1px;
    width: 45px;
    height: 53px;
}
.landing-consultation-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: absolute;
    right: 20px;
    left: auto;
    top: 50%;
    border: none;
    width: 13px;
    height: 7px;
    background-image: url("img/ico-arrow-bottom.png");
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transition: all ease-in 0.3s;
    -moz-transition: all ease-in 0.3s;
    -ms-transition: all ease-in 0.3s;
    -o-transition: all ease-in 0.3s;
    transition: all ease-in 0.3s;
}
.landing-consultation-form .select2-dropdown {
    overflow: hidden;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    border: 1px solid #b7b7b7;
    background: #ffffff;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.landing-consultation-form .select2-container--open .select2-container--below {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.landing-consultation-form .select2-container--open .select2-dropdown--below {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.landing-consultation-form .select2-container--open .select2-container--above {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.landing-consultation-form .select2-container--open .select2-dropdown--above {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.landing-consultation-form .select2-search.select2-search--dropdown {
    display: none;
}
.landing-consultation-form .select2-results__options {
    font-size: 14px;
    font-family: 'Verdana', sans-serif;
    color: #333333;
}
.landing-consultation-form .select2-container--default .select2-results__option {
    position: relative;
    border-bottom: 1px solid #b7b7b7;
    padding: 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: #333333;
    background-color: #ffffff;
}
.landing-consultation-form .select2-container--default .select2-results__option:last-child {
    border-bottom: 0;
}
.landing-consultation-form .select2-container--default .select2-results__option:hover {
    color: #333333;
    background: #f0f9fb;
}
.landing-consultation-form .select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: #333333;
    background-color: #ffffff;
}
.landing-consultation-form .select2-container--default .select2-results__option--highlighted[aria-selected]:hover {
    color: #333333;
    background: #f0f9fb;
}
.landing-consultation-form .select2-container--default .select2-results__option[aria-selected=true] {
    color: #333333;
    background: #f0f9fb;
}
.landing-consultation-form .select2-container--default .select2-results__option[aria-selected=true]::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    margin-top: -7px;
    width: 17px;
    height: 14px;
    background-image: url("img/ico-check.png");
    background-repeat: no-repeat;
}
$('select').select2({
    placeholder: "Best time to call"
});



        $('#consultation-city').select2({
            placeholder: "Выберите город",
            dropdownParent: $('#personal-form-group')
        });