mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 17:38:28 +02:00
✨ Make the multi-input more generic
This commit is contained in:
parent
a1c3789ec2
commit
cfe657d853
6 changed files with 173 additions and 148 deletions
|
@ -227,6 +227,64 @@ textarea {
|
|||
}
|
||||
}
|
||||
|
||||
.custom-multi-input {
|
||||
border-radius: 2px;
|
||||
border: 1px solid $color-gray-20;
|
||||
|
||||
&.invalid {
|
||||
label {
|
||||
color: unset;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
border: 0px;
|
||||
|
||||
&.no-padding {
|
||||
padding-top: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.selected-items {
|
||||
padding-top: 25px;
|
||||
padding-left: 15px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.selected-item {
|
||||
// margin-bottom: 5px;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.around {
|
||||
border: 1px solid $color-gray-20;
|
||||
padding-left: 5px;
|
||||
border-radius: 4px;
|
||||
&.invalid {
|
||||
border: 1px solid $color-danger;
|
||||
}
|
||||
|
||||
.text {
|
||||
display: inline-block;
|
||||
max-width: 85%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
line-height: 15px;
|
||||
font-size: 14px;
|
||||
color: $color-black;
|
||||
}
|
||||
.icon {
|
||||
cursor: pointer;
|
||||
margin-left: 10px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.custom-select {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue