mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
e3fc29ee36
Summary: - FixedPopover now correctly adjusts itself when overflowing outside window, in all directions - Updates styles - Adds specs - Remove Popover and popover.less, and refactor all code that used it in favor of the new FixedPopover Test Plan: Unit tests Reviewers: drew, evan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2697
60 lines
1.5 KiB
Text
60 lines
1.5 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-button {
|
|
order: -104;
|
|
}
|
|
|
|
.snooze-popover {
|
|
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;
|
|
}
|
|
}
|
|
}
|