Mailspring/packages/client-app/static/components/outline-view.less

149 lines
3.4 KiB
Text

@import "ui-variables";
@import "ui-mixins";
@count-color: fadeout(@text-color-subtle, 40%);
.nylas-outline-view {
order: 1;
section {
margin-bottom: @padding-base-vertical;
}
section.item-children {
padding-left: @padding-base-horizontal;
margin-bottom: 0;
}
.heading {
display: flex;
align-items: center;
cursor: default;
color: @text-color-very-subtle;
font-weight: @font-weight-semi-bold;
font-size: @font-size-small * 0.9;
padding-left:@padding-small-horizontal;
padding-top:@padding-small-horizontal;
padding-right: @padding-xs-horizontal;
letter-spacing: -0.2px;
span:first-child {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.add-item-button {
margin-left: @padding-small-horizontal;
margin-right: @padding-small-horizontal;
cursor: pointer;
img {background: @text-color-very-subtle; }
display: none;
}
.collapse-button {
cursor: pointer;
display: none;
min-width: 30px;
margin-left: auto;
margin-right: 8px;
}
}
&:hover {
.heading {
.collapse-button,.add-item-button {
display: inherit;
}
}
}
.item-container {
display:flex;
&.dropping {
background-color: lighten(@source-list-bg, 20%);
.item {
color: @source-list-active-color;
img.content-mask { background-color: @source-list-active-color; }
}
}
}
.item {
color: @text-color-subtle;
flex: 1;
display: flex;
align-items: baseline;
font-size: @font-size-base;
font-weight: 400;
padding-right: @spacing-standard;
line-height: @line-height-large;
clear: both;
// The overflow needs to be `hidden` in order for the name to flex
// fit within the contained space.
overflow: hidden;
img.content-mask {
background-color: @text-color-subtle;
vertical-align: text-bottom;
}
.icon {
flex-shrink: 0;
order: 1;
}
.name {
order: 2;
padding-left: @padding-small-horizontal * 0.85;
overflow: hidden;
line-height: @line-height-small;
text-overflow: ellipsis;
}
.item-count-box {
order: 3;
flex-shrink: 0;
font-weight: @font-weight-semi-bold;
color: @count-color;
margin-left: @padding-small-horizontal * 0.8;
box-shadow: 0 0.5px 0 @count-color, 0 -0.5px 0 @count-color, 0.5px 0 0 @count-color, -0.5px 0 0 @count-color;
}
.item-count-box.alt-count {
color: @source-list-active-bg;
background: @source-list-active-color;
box-shadow: none;
}
.item-count-box.archive,
.item-count-box.all,
.item-count-box.spam {
display: none;
}
&.selected {
background: @source-list-active-bg;
color: @source-list-active-color;
img.content-mask { background-color: @source-list-active-color; }
}
&.dropping {
background-color: lighten(@source-list-bg, 20%);
color: @source-list-active-color;
img.content-mask { background-color: @source-list-active-color; }
}
&.editing {
align-items: center;
.item-input {
order: 2;
font-size: @font-size-small;
margin-left: @padding-small-horizontal * 0.3;
height: 22px;
padding-left: 0;
text-indent: @padding-small-horizontal * 0.55;
width: 85%;
}
}
&:hover {
cursor: default;
}
}
}