mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Modified Chip design.
This commit is contained in:
parent
5f430a9b0d
commit
c34ab35e6c
@ -34,9 +34,11 @@ class Chip extends Component {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="chip">
|
<div className="chip">
|
||||||
|
<div className="chip-content">
|
||||||
<div className="chip-text">{this.props.content.value}</div>
|
<div className="chip-text">{this.props.content.value}</div>
|
||||||
<div className="chip-close-btn" onClick={this.onDeleteClick}>
|
<div className="chip-close-btn" onClick={this.onDeleteClick}>
|
||||||
<i className="fw fw-uncheck"></i>
|
<i className="fw fw-error"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -22,46 +22,49 @@
|
|||||||
* (-12px-{text (Roboto-Regular 13px)}-4px-{close button}-4px-)
|
* (-12px-{text (Roboto-Regular 13px)}-4px-{close button}-4px-)
|
||||||
*/
|
*/
|
||||||
.chip {
|
.chip {
|
||||||
display: flex;
|
margin-right: 5px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
background-color: #f1f1f1;
|
background-color: #f1f1f1;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
padding: 3px;
|
|
||||||
border: 10px;
|
border: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chip-content {
|
||||||
|
display: flex;
|
||||||
|
margin: 4px 4px 4px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.chip-text {
|
.chip-text {
|
||||||
padding-top: 4px;
|
height: 24px;
|
||||||
font-family: "Roboto-Regular";
|
font-family: "Roboto-Regular";
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: rgba(0, 0, 0, 0.87);
|
color: rgba(0, 0, 0, 0.87);
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
padding-left: 12px;
|
padding-top: 4px;
|
||||||
padding-right: 4px;
|
margin-right: 4px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chip-close-btn {
|
.chip-close-btn {
|
||||||
padding-left: 7px;
|
align-content: center;
|
||||||
padding-bottom: 6px;
|
padding-left: 4px;
|
||||||
border-radius: 50%;
|
padding-top: 1px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
|
transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-right: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chip-close-btn i {
|
.chip-close-btn i {
|
||||||
font-size: 10px;
|
color: #a9a9a9;
|
||||||
color: rgba(0, 0, 0, 0.258824);
|
color: rgba(0, 0, 0, 0.258824);
|
||||||
fill: rgba(0, 0, 0, 0.258824);
|
fill: rgba(0, 0, 0, 0.258824);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chip-close-btn:hover {
|
.chip-close-btn i:hover {
|
||||||
background-color: #e1e1e1;
|
color: #959595;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user