dh-c
Version:
The front-end development engineers jimberton gulp react component
159 lines (155 loc) • 4.91 kB
CSS
.dh-select {
box-sizing: border-box;
display: inline-block;
position: relative;
color: #666666;
width: 100%; }
.dh-select-selection {
outline: 0;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-user-select: none;
box-sizing: border-box;
display: block;
border-bottom: 1px solid #e6e6e6; }
.dh-select-selection--single {
position: relative;
cursor: pointer; }
.dh-select-selection__placeholder {
color: #999999;
font-size: 12px;
line-height: 15px; }
.dh-select-selection-selected-value {
position: relative;
font-size: 12px;
line-height: 15px;
color: #333333; }
.dh-select-arrow {
height: 100%;
position: absolute;
top: 0;
right: 0;
text-align: end; }
.dh-select-arrow b {
font-size: 12px;
position: relative;
font-family: "dhfont" ;
display: inline-block;
line-height: 23px;
transform: rotate(0deg); }
.dh-select-arrow b:after {
content: "\e63e"; }
.dh-select-open .dh-select-arrow b {
transform: rotate(180deg);
transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
.dh-select-selection__rendered {
display: block;
position: relative;
padding: 4px 0; }
.dh-select-selection--multiple .dh-select-selection__choice {
background-color: #f3f3f3;
border-radius: 3px;
cursor: default;
float: left;
max-width: 99%;
position: relative;
overflow: hidden;
-webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
padding: 0 20px 0 10px; }
.dh-select-selection--multiple .dh-select-selection__choice__content {
display: inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
-webkit-transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); }
.dh-select-selection--multiple .dh-select-selection__choice__remove {
font-style: normal;
vertical-align: baseline;
text-align: center;
text-transform: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: rgba(0, 0, 0, 0.43);
line-height: inherit;
cursor: pointer;
font-weight: 700;
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
display: inline-block;
font-size: 12px;
font-size: 8px\9;
-webkit-transform: scale(0.66667) rotate(0deg);
-ms-transform: scale(0.66667) rotate(0deg);
transform: scale(0.66667) rotate(0deg);
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)";
zoom: 1;
position: absolute;
right: 4px;
padding: 0 0 0 8px; }
.dh-select-selection--multiple .dh-select-selection__choice__remove:before {
content: "";
display: block;
font-family: dhfont ; }
.dh-select-selection--multiple .dh-select-search--inline {
float: left;
position: static; }
.dh-select-selection--multiple .dh-select-search--inline .dh-select--search__field__ {
width: .75em; }
.dh-select-search--inline .dh-select-search__field__warp {
width: 100%;
height: 100%; }
.dh-select-search--inline .dh-select-search__field {
border: 0;
font-size: 100%;
height: 100%;
width: 100%;
background: transparent;
outline: 0;
border-radius: 4px; }
.dh-select-dropdown {
background-color: #fff;
border: 1px solid #d9d9d9;
box-shadow: 0 1px 4px 0 rgba(31, 56, 88, 0.15);
border-radius: 3px;
box-sizing: border-box;
z-index: 1070;
left: -9999px;
top: -9999px;
position: absolute;
outline: 0; }
.dh-select-dropdown-hidden {
display: none; }
.dh-select-dropdown-menu {
outline: none;
margin-bottom: 0;
padding-left: 0;
list-style: none;
max-height: 250px;
overflow: auto; }
.dh-select-dropdown-menu-item {
position: relative;
display: block;
padding: 7px 16px;
font-weight: 400;
color: #666666;
white-space: nowrap;
cursor: pointer;
overflow: hidden;
-webkit-transition: background .3s ease;
transition: background .3s ease; }
.dh-select-dropdown-menu-item-disabled {
color: rgba(0, 0, 0, 0.25);
cursor: no-drop; }
.dh-select-dropdown-menu-item-active {
background-color: #f6f6f6;
color: #333333; }
.dh-select-dropdown-menu-item-selected {
color: #23c132;
background-color: transparent; }
.dh-select-dropdown-menu-item-selected:hover {
background-color: #f6f6f6; }