mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 07:36:12 +08:00
- Fix issue with using this.props.children which was preventing rerendering - Updates styles for list - Updates create item input: - Add key to prevent warning - Add prop for the placeholder - Add onBlur behavior
66 lines
1.4 KiB
Text
66 lines
1.4 KiB
Text
@import "ui-variables";
|
|
|
|
.nylas-editable-list {
|
|
|
|
.items-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid @border-secondary-bg;
|
|
background-color: @background-secondary;
|
|
min-height: 50px;
|
|
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;
|
|
}
|
|
}
|
|
|
|
.editable-item+.create-item-input {
|
|
border-top: 1px solid @border-color-divider;
|
|
}
|
|
|
|
.create-item-input {
|
|
input {
|
|
padding: 0 @padding-small-vertical;
|
|
border: none;
|
|
font-size: inherit;
|
|
}
|
|
::-webkit-input-placeholder {
|
|
font-style: italic;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
}
|