Mailspring/static/components/editable-list.less
Juan Tejada daa4e2a038 update(components): Add support to create new items inside EditableList
- Adds logic to allow simple item creation
- Adds new onItemCreated callback
- Updates specs
2015-12-07 12:40:39 -08:00

61 lines
1.3 KiB
Plaintext

@import "ui-variables";
.nylas-editable-list {
.items-wrapper {
display: flex;
flex-direction: column;
border: 1px solid @border-secondary-bg;
background-color: @background-secondary;
font-size: 0.9em;
.editable-item {
padding: @padding-small-vertical @padding-small-horizontal;
cursor: default;
&.selected {
background-color: @background-selected;
color: @text-color-selected;
}
&+.editable-item {
border-top: 1px solid @border-color-divider;
}
input {
border: none;
padding: 0;
font-size: inherit;
background-color: @background-selected;
color: @text-color-selected;
}
::-webkit-input-placeholder {
color: @text-color-inverse-very-subtle;
}
}
.create-item {
padding: @padding-small-vertical @padding-small-horizontal;
border-top: 1px solid @border-color-divider;
input {
border: none;
padding: 0;
font-size: inherit;
}
}
}
.buttons-wrapper {
margin-top: @padding-xs-horizontal;
.btn-editable-list {
height: 20px;
width: 30px;
text-align: center;
padding: 0 0 2px 0;
&+.btn-editable-list {
margin-left: 3px;
}
}
}
}