uipack-input-tag-component
Version:
UI Input Tag component for React.js / Next.js to create tags in an input
96 lines (82 loc) • 1.69 kB
CSS
.container {
min-height: 50px;
width: 600px;
border: 1px solid rgb(105, 105, 105);
border-radius: 8px;
padding: 5px;
background-color: white;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
.tag{
min-width: 65px;
height: 25px;
max-width: 180px;
border-radius: 10px;
background-color: rgba(175, 175, 175, 0.699);
display: inline-flex;
justify-content: center;
align-items: center;
padding: 3px;
margin-left: 8px;
margin-top: 9px;
cursor: pointer;
}
#txt{
margin-left: 2px;
}
#crs{
height: 10px;
width: 10px;
padding: 5px;
border-radius: 80%;
background-color: rgb(30, 236, 30);
font-size: 25px;
display: flex;
justify-content: center;
align-items: center;
color: white;
margin-left: 5px;
}
#inp{
flex-grow: 1;
margin-left: 8px;
height: 35px;
margin-top: 8px;
outline: none;
border: none;
font-size: 15px;
}
#inp::placeholder{
font-size: 15px;
}
#but{
height: 35px;
width: 90px;
border: none;
border-radius: 8px;
background-color: black;
color: white;
font-size: 15px;
cursor: pointer;
margin-left: 4px;
margin-top: 8px;
}
@media only screen and (max-width: 600px){
.container {
min-height: 50px;
width: 320px;
border: 1px solid rgb(105, 105, 105);
border-radius: 8px;
padding: 5px;
background-color: white;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
}