Mailspring/internal_packages/thread-snooze/stylesheets/snooze-popover.less
Ben Gotow 9d0ebe9423 fix(snooze): A few minor popover adjustments. See desc.
- Rather than have a `showing` prop on the fixed popover, I just remove it and put a span in it's place when it's gone. This means we always get componentDidMount when the popover appears and simplifies when to focus it's content.
- The fixed popover implements esc and blur behaviors itself
- The fixed popover uses the background-secondary color and works in dark mode
- The snooze items have hover and active states
2016-02-24 20:05:21 -08:00

73 lines
1.7 KiB
Text

@import "ui-variables";
@snooze-quickaction-img: "../static/images/thread-list-quick-actions/ic-quickaction-snooze@2x.png";
.thread-list .list-item .list-column-HoverActions .action.action-snooze {
background: url(@snooze-quickaction-img) center no-repeat, @background-gradient;
}
.snooze-popover {
order: -104;
.btn-toolbar:only-of-type {
margin-right: 0;
}
.popover {
overflow: hidden;
}
}
.snooze-container {
color: fadeout(@btn-default-text-color, 20%);
display: flex;
flex-direction: column;
.snooze-row {
display: flex;
.snooze-item {
display: flex;
flex-direction: column;
align-items: center;
padding: 15px 0;
cursor: default;
width: 105px;
line-height: initial;
text-align: initial;
img { background-color: fadeout(@btn-default-text-color, 20%); }
&:hover {
background-color: darken(@btn-default-bg-color, 5%);
color: fadeout(@btn-default-text-color, 10%);
img { background-color: fadeout(@btn-default-text-color, 10%); }
}
&:active {
background-color: darken(@btn-default-bg-color, 8%);
color: fadeout(@btn-default-text-color, 0%);
img { background-color: fadeout(@btn-default-text-color, 0%); }
}
&+.snooze-item {
border-left: 1px solid @border-color-divider;
}
}
&+.snooze-row {
border-top: 1px solid @border-color-divider;
}
}
.snooze-input {
border-top: 1px solid @border-color-divider;
padding: @padding-large-vertical @padding-large-horizontal;
input {
margin-bottom: 3px;
}
em {
font-size: 0.9em;
opacity: 0.62;
}
}
}