snappymail/dev/Styles/User/MessageList.less

446 lines
7 KiB
Plaintext
Raw Normal View History

2021-02-15 23:05:38 +08:00
html.rl-mobile,
2016-05-01 09:07:10 +08:00
html.rl-no-preview-pane {
.message-selected #V-MailMessageList {
display: none;
}
}
#V-MailMessageList.focused .messageList {
border-color: #9d9d9d;
}
2021-03-27 07:57:04 +08:00
#sort-list-dropdown-id {
padding-left: 6px;
padding-right: 6px;
}
#V-MailMessageList .btn-toolbar {
height: 30px;
padding: 10px 1px;
white-space: nowrap;
}
.messageList {
height: calc(100% - 50px);
background-color: #fff;
border: 1px solid @rlMainDarkColor;
border-radius: @rlMainBorderRadius;
box-shadow: @rlMainShadow;
display: flex;
flex-direction: column;
.b-footer {
display: flex;
flex-shrink: 0;
padding: 7px;
background-color: var(--message-list-toolbar-bg-color, #eee);
// #gradient > .vertical(#f4f4f4, #dfdfdf);
border-bottom-right-radius: @rlMainBorderRadius;
border-bottom-left-radius: @rlMainBorderRadius;
2021-02-10 19:13:17 +08:00
border-top: 1px solid #bbb;
.e-quota {
border-bottom: 1px dashed #333;
display: inline-block;
margin-top: 5px;
margin-left: 5px;
font-size: 18px;
cursor: help;
}
}
.b-footer nav {
flex-grow: 1;
text-align: right;
}
.btn.buttonMoreSearch {
2021-07-31 05:11:05 +08:00
font-size: 11px;
padding-left: 8px;
padding-right: 8px;
}
.second-toolbar {
display: flex;
flex-shrink: 0;
padding: 10px 8px 10px 11px;
2016-05-01 09:07:10 +08:00
white-space: nowrap;
background-color: var(--message-list-toolbar-bg-color, #eee);
// #gradient > .vertical(#f4f4f4, #dfdfdf);
border-top-right-radius: @rlMainBorderRadius;
border-top-left-radius: @rlMainBorderRadius;
2021-02-10 19:13:17 +08:00
border-bottom: 1px solid #bbb;
}
.checkboxCheckAll {
cursor: pointer;
margin: 0.45em 0.5em 0 0;
}
.search-input-wrp {
flex-grow: 1;
position: relative;
text-align: right;
}
.inputSearch {
max-width: 300px;
width: 100%;
}
.closeSearch {
position: absolute;
right: 0;
top: 5px;
margin: 0 7px;
z-index: 100;
vertical-align: middle;
opacity: .4;
&:hover {
opacity: .6;
}
}
.b-content {
height: 100%;
padding: 0;
overflow: auto;
scroll-behavior: smooth;
.listClear {
text-align: center;
padding: 10px;
line-height: 13px;
}
2021-08-10 18:22:55 +08:00
.listEmptyMessage, .listLoading, .listDragOver, .listError {
color: #999;
text-align: center;
padding: 60px 10px;
font-size: 24px;
line-height: 30px;
}
.listDragOver {
max-height: 0;
overflow: hidden;
padding: 0 10px;
}
.listDragOver.viewAppendArea {
max-height: 120px;
padding: 30px 10px;
}
.listDragOver.dragOverEnter {
background-color: #e0fdda;
color: #333;
}
.listError {
color: #DA4F49;
}
.listSearchDesc {
font-size: 16px;
padding: 12px;
border-bottom: 1px solid #eee;
}
2015-04-21 06:39:14 +08:00
.listThreadUidDesc {
font-size: 16px;
2015-04-23 05:33:02 +08:00
padding: 7px 20px 6px 20px;
background-color: rgba(128,128,128,0.5);
2015-04-23 05:33:02 +08:00
border-bottom: 1px solid #888;
2015-04-22 05:01:29 +08:00
color: #fff;
2015-04-21 06:39:14 +08:00
cursor: pointer;
2015-04-23 05:33:02 +08:00
text-shadow: 0 1px 0 #000;
2015-04-21 06:39:14 +08:00
text-align: center;
}
.fullThreadsParent {
height: 25px;
padding: 3px 5px;
background-color: #f4f4f4;
text-align: center;
}
2021-03-07 06:13:46 +08:00
}
}
html:not(rl-mobile) {
.hideMessageListCheckbox {
.checkboxCheckAll {
visibility: hidden;
}
.checkboxMessage {
display: none;
}
}
}
.messageListItem {
display: flex;
flex-wrap: wrap;
position: relative;
font-size: 12px;
overflow: hidden;
cursor: pointer;
margin: 0;
padding: 5px 0;
border: 0;
border-bottom: 1px solid rgba(153, 153, 153, 0.2);
border-left: 6px solid #eee;
z-index: 100;
2021-11-24 00:18:42 +08:00
/*
> * {
display: flex;
flex: 0 0 auto;
order: 0;
}
2021-11-24 00:18:42 +08:00
*/
&.focused {
background-color: rgba(128, 128, 128, 0.1);
border-left-color: #ccc;
}
.importantMark {
color:red;
margin-right:5px
}
&.deleted-mark {
opacity: .7;
.subjectParent {
text-decoration: line-through;
2021-03-07 06:13:46 +08:00
}
}
&.deleted {
2021-08-12 20:44:38 +08:00
opacity: .3;
}
2015-04-21 06:39:14 +08:00
.checkboxMessage {
2021-11-24 00:18:42 +08:00
padding: 0 6px;
font-size: 16px;
}
time, .sizeParent {
margin: 0 5px;
opacity: 0.6;
font-size: 11px;
white-space: nowrap;
}
.attachmentParent {
position: relative;
margin: 2px 10px 0 5px;
color: #666;
text-shadow: 0 1px 0 #eee;
}
.senderParent, .subjectParent {
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.threadsCountParent {
display: inline;
overflow: hidden;
background-color: #eee;
padding: 1px 5px;
margin-right: 5px;
border: 1px solid #ccc;
border-radius: 5px;
}
.threadsCountParent.lastSelected {
background-color: #999;
border-color: #999;
color: #fff;
}
.threadsCountParent:hover {
border-color: #666;
}
2021-03-07 06:13:46 +08:00
2021-08-12 20:44:38 +08:00
&.emptySubject .subjectParent {
font-style: italic;
opacity: 0.5;
}
2015-03-16 05:58:50 +08:00
2021-09-09 17:33:28 +08:00
.threads-len span {
2021-08-10 23:10:09 +08:00
border-radius: 6px;
border: 1px solid #ccc;
2021-09-09 17:33:28 +08:00
font-size: 11px;
padding: 0 2px;
2021-08-10 23:10:09 +08:00
&:hover {
background-color: rgba(127,127,127,0.3);
border-color: #666;
2021-03-07 06:13:46 +08:00
}
}
.replyFlag, .forwardFlag {
margin-right: 0.25em;
}
&:not(.withAttachments) .attachmentParent {
display: none;
}
2015-03-16 05:58:50 +08:00
&.hasUnseenSubMessage {
background-color: rgba(255, 255, 64, 0.15);
border-left-color: lighten(orange, 30%);
&.focused {
border-left-color: darken(orange, 10%);
2021-03-07 06:13:46 +08:00
}
}
&.unseen {
background-color: rgba(255, 255, 64, 0.15);
border-left-color: orange;
2021-08-12 20:44:38 +08:00
.senderParent, .subjectParent {
font-weight: bold;
}
&.focused {
border-left-color: darken(orange, 10%);
2021-03-07 06:13:46 +08:00
}
}
&.checked {
border-left-color: lighten(#398CF2, 10%);
&.focused {
border-left-color: darken(#398CF2, 5%);
2021-03-07 06:13:46 +08:00
}
}
&.selected {
background-color: rgba(140, 200, 255, 0.3);
border-bottom-color: rgba(57, 140, 242, 0.2);
border-left-color: #398CF2;
z-index: 101;
+ .messageListItem {
border-bottom-color: rgba(57, 140, 242, 0.3);
}
}
2021-07-30 20:40:32 +08:00
.flagParent {
padding: 0 10px 0 5px;
}
&.flagged .flagParent::after,
&.hasFlaggedSubMessage .flagParent::after {
color: orange;
content: '★'; /*⚑*/
}
&:not(.flagged):not(.hasFlaggedSubMessage) .flagParent::after {
content: '☆'; /*⚐*/
}
&:not(.flagged):not(.hasFlaggedSubMessage) .flagParent:not(:hover) {
opacity: 0.5;
}
}
html.rl-ctrl-key-pressed .messageListItem {
cursor: copy;
}
@media screen and (min-width: 1000px) {
.messageList {
.listDragOver {
transition: all 400ms ease;
}
}
}
/* desktop-large */
@media screen and (min-width: 1401px) {
.messageListItem {
font-size: 13px;
time {
font-size: 13px;
}
}
}
#messagesDragImage {
color: #fff;
background-color: #000;
height: 20px;
min-width: 30px;
padding: 4px 10px;
position: fixed;
right: -100px;
top: 0;
}
2016-05-01 09:07:10 +08:00
.rl-side-preview-pane, .rl-mobile {
.messageListItem {
.checkboxMessage {
line-height: 12px;
margin: 10px 0 -5px;
}
.subjectParent {
flex: 1 0 auto;
2021-03-09 19:12:30 +08:00
line-height: 16px;
order: 1;
2021-03-25 23:26:26 +08:00
width: calc(100% - 120px);
}
.senderParent {
flex: 1 0 45%;
}
.flagParent {
order: 1;
}
2021-03-25 23:26:26 +08:00
.sizeParent {
order: 2;
}
2021-03-25 23:26:26 +08:00
.attachmentParent {
order: 3;
}
}
.messageList:not(.hideMessageListCheckbox) .subjectParent {
2021-11-24 00:18:42 +08:00
margin-left: 28px;
}
}
html:not(.rl-mobile):not(.rl-side-preview-pane) {
.messageListItem {
line-height: 25px;
flex-wrap: nowrap;
> * {
line-height: 25px;
}
.senderParent {
flex: 0 0 25%;
}
.subjectParent {
flex: 1 1 auto;
}
}
}