pocko-ui
Version:
React components using pure Bootstrap 5+ which does not contain any external style and script libraries.
60 lines (57 loc) • 1.52 kB
CSS
.select-input__wrapper {
position: relative;
}
.select-input__wrapper .select-input__content {
position: relative;
}
.select-input__wrapper .select-input__content .select-input__content__input {
position: relative;
}
.select-input__wrapper .select-input__content .select-input__content__arrow {
position: absolute;
top: 50%;
right: 0.5rem;
transform: translateY(-50%);
cursor: pointer;
transition: transform 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.select-input__wrapper .select-input__content .select-input__content__arrow--reverse {
transform: translateY(-50%) rotate(180deg);
}
.select-input__wrapper .select-input__content .select-input__content__word__container {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.select-input__popup__menu {
max-height: 0;
overflow-x: auto;
}
.select-input__popup__menu .select-input__popup__list {
background-color: #fff;
}
.select-input__popup__menu .select-input__popup__list:hover {
background-color: #e2e2e2;
color: #474554;
cursor: pointer;
}
.select-input__popup__menu::-webkit-scrollbar {
width: 5px;
height: 10px;
background-color: #e6e6e6;
}
.select-input__popup__menu::-webkit-scrollbar-thumb {
background-color: #cccccc;
}
.select-input__popup__menu::-webkit-scrollbar-thumb:hover {
background-color: #929292;
}
.select-input__popup__menu::-webkit-scrollbar-corner {
background-color: #e6e6e6;
}
.select-input__popup__menu--isShow {
max-height: 200px;
}