Last active
March 9, 2021 05:24
-
-
Save abhianair/891a48970c765e8fa763161abf26032a to your computer and use it in GitHub Desktop.
Select menu css style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="select_box"> | |
<select id="test"> | |
<!-- options here --> | |
</select> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.select_box .ui-selectmenu-button, .select_box .date_picker { | |
min-width: 150px; | |
background: #f4f4f5; | |
border: 1px solid #f4f4f5; | |
max-height: 52px; | |
} | |
.select_box.min_none .ui-selectmenu-button, .select_box .date_picker { | |
min-width: auto; | |
} | |
.grey_form .label_box .form-control { | |
background: #fff; | |
} | |
.grey_form .select_box .ui-selectmenu-button, | |
.grey_form .select_box .date_picker { | |
background: #fff; | |
} | |
.select_box .ui-selectmenu-button span.ui-selectmenu-text { | |
font-size: 14px; | |
color: #252525; | |
font-weight: 600; | |
/* padding: 26px 50px 8px 20px; */ | |
} | |
.space_center.select_box .ui-selectmenu-button span.ui-selectmenu-text { | |
padding: 17px 2.1em 17px 1em; | |
} | |
.label_box:hover .remove_input { | |
opacity: 1; | |
visibility: visible; | |
} | |
.select_box .ui-icon, .select_box .ui-widget-content .ui-icon { | |
background: url("icon.svg") no-repeat; | |
background-size: 12px; | |
opacity: .5; | |
} | |
.select_box .ui-selectmenu-button-open .ui-icon, .select_box .ui-selectmenu-button-open .ui-widget-content .ui-icon { | |
margin-top: -10px; | |
transform: rotate(180deg); | |
} | |
.select_box.has_no_vlaue label{ | |
padding: 17px 2.1em 17px 1em; | |
font-size: 14px; | |
color: #252525; | |
font-weight: 600; | |
padding: 10px 0; | |
transition: all .5s; | |
} | |
.ui-selectmenu-menu .ui-menu-item.no_value { | |
display: none; | |
} | |
.select_inline .ui-selectmenu-button span.ui-selectmenu-text{ | |
font-size: 14px; | |
line-height: 19px; | |
color: #001225; | |
font-weight: 400; | |
padding: 0; | |
} | |
.select_inline .ui-selectmenu-button{ | |
background-color: transparent; | |
padding: 0 15px 0 0; | |
margin-top: -7px; | |
} | |
.select_inline .ui-selectmenu-button span.ui-icon { | |
right: 0; | |
background-image: url("<%= asset_path 'arrow_down_dark_fill.svg' %>"); | |
background-size: 7px; | |
/* background-position: center right; */ | |
background-position: center; | |
margin-top: -7px; | |
} | |
.select_md_box .ui-selectmenu-button span.ui-selectmenu-text { | |
font-size: 12px; | |
line-height: 16px; | |
color: #7D7D7D; | |
padding: 5px 44px 5px 10px; | |
} | |
.select_md_box .ui-selectmenu-button{ | |
background: #FBFBFB; | |
border: 1px solid #EBEAEF; | |
box-sizing: border-box; | |
border-radius: 4px; | |
} | |
.select_md_box { | |
padding-right: 10px; | |
} | |
.select_md_box .ui-selectmenu-button span.ui-icon { | |
right: 7px; | |
margin-top: -7px; | |
background-position: center; | |
background-size: 11px; | |
} | |
.ui-selectmenu-button-open span.ui-icon{ | |
transform: rotate(180deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment