tokenfield-reactjs
Version:
TokenField is a highly customizable and generic input component for handling tokenized selections.
200 lines (191 loc) • 4.8 kB
CSS
#customScroll::-webkit-scrollbar {
width: 5px;
}
#customScroll::-webkit-scrollbar-track {
background: #f1f1f1;
}
#customScroll::-webkit-scrollbar-thumb {
background: #888;
border-radius: 5px;
}
#customScroll::-webkit-scrollbar-thumb:hover {
background: #555;
}
.tokenField:focus-within .title {
color: #2C2C2C;
}
.tokenField {
display: flex;
width: 100%;
gap: 8px;
align-items: center;
justify-content: space-between;
}
.tokenField .title {
font-weight: 600;
color: #2C2C2C;
}
.tokenField .tokenFieldContainerFull {
width: 100%;
display: flex;
flex-direction: column;
gap: 8px;
justify-content: space-between;
}
.tokenField .tokenFieldContainerFull .userSearchWrapper {
display: flex;
color: var(--title);
align-items: center;
justify-content: flex-start;
gap: 8px;
position: relative;
width: 100%;
cursor: pointer;
}
.tokenField .tokenFieldContainerFull .userSearchWrapper .fullContainer,
.tokenField .tokenFieldContainerFull .userSearchWrapper .container {
width: 100%;
display: flex;
justify-content: flex-start;
border: 1px solid;
height: 38px;
border-radius: 4px;
background-color: white;
}
.tokenField .tokenFieldContainerFull .userSearchWrapper .fullContainer .downArrow,
.tokenField .tokenFieldContainerFull .userSearchWrapper .container .downArrow {
margin-left: 15px;
margin-top: 2px;
}
.tokenField .tokenFieldContainerFull .userSearchWrapper .fullContainer select,
.tokenField .tokenFieldContainerFull .userSearchWrapper .container select {
width: 60%;
background-color: white;
height: 30px;
border-radius: 4px;
margin: 10px auto;
display: flex;
}
.tokenField .tokenFieldContainerFull .userSearchWrapper .fullContainer .input,
.tokenField .tokenFieldContainerFull .userSearchWrapper .container .input {
border-radius: 8px;
width: 100%;
height: 100%;
padding: 0px 10px;
border: none;
}
.tokenField .tokenFieldContainerFull .userSearchWrapper .fullContainer input:focus,
.tokenField .tokenFieldContainerFull .userSearchWrapper .container input:focus {
background-color: white;
width: 60%;
border-radius: 8px;
height: 100%;
padding: 0px 10px;
border: none;
outline: none;
}
.tokenField .tokenFieldContainerFull .userSearchWrapper .container {
display: flex;
justify-content: flex-start;
border: 1px solid rgb(14, 201, 234);
border-radius: 8px;
height: 48px;
}
.tokenField .tokenFieldContainerFull .userSearchWrapper .fullContainer:focus-within,
.tokenField .tokenFieldContainerFull .userSearchWrapper .container:focus-within {
background-color: white;
border: 1px solid rgb(14, 201, 234);
}
.tokenField .tokenFieldContainerFull .userSearchWrapper .fullContainer:focus-within .input,
.tokenField .tokenFieldContainerFull .userSearchWrapper .container:focus-within .input {
background-color: white;
}
.innerContainer {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
flex-direction: row;
margin: auto;
width: 100%;
gap: 8px;
}
.innerContainer .mailContainer {
display: flex;
padding: 6px 6px;
gap: 4px;
/* min-width: 160px; */
width: fit-content;
/* justify-content: space-between; */
flex-direction: row;
align-items: center;
background-color: #ededec;
background-color: lightblue;
border-radius: 80px;
}
.innerContainer .mailContainer .capitalLetter {
width: 30px;
height: 30px;
border-radius: 50%;
background-color: rgb(38, 226, 232);
color: black;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
.UserListDropDown {
max-height: 300px;
overflow-y: scroll;
position: absolute;
z-index: 1000;
border: 1px solid lightblue;
cursor: pointer;
background-color: white;
background: #ffffff;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.16);
border-radius: 8px;
width: 100%;
min-width: 300px;
top: 40px;
left: 0px;
}
.UserListDropDown .noResultInDropdown {
padding: 12px;
border: 1px solid lightblue;
}
.UserListDropDown .optionList,
.UserListDropDown .optionListHovered {
background-color: white;
display: flex;
align-items: center;
border: none;
padding: 6px 6px;
gap: 18px;
margin-top: 1px;
font-size: 16px;
}
.UserListDropDown .optionList .capitalLetter,
.UserListDropDown .optionListHovered .capitalLetter {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgb(37, 229, 216);
color: black;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
.UserListDropDown .optionList:hover {
background-color: lightblue;
}
.UserListDropDown .optionListHovered {
background-color: lightblue;
}
.UserListDropDown .userOption {
display: flex;
flex-direction: column;
justify-content: space-between;
margin-left: 10px;
}
/*# sourceMappingURL=styles.css.map */