mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
bdfd96fed2
Summary: - Adds button inside the message list to print the thread - Adds cmdctrl-p binding to print thread - Adds new action and new internal_package to listen to this action. - Creates a standalone browser window with current thread html, and removes all collapsed messsages from the print view Test Plan: - Manual Reviewers: evan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2310
74 lines
1.6 KiB
CSS
74 lines
1.6 KiB
CSS
body {
|
|
overflow: auto !important;
|
|
}
|
|
#print-header {
|
|
padding: 15px 20px 0 20px;
|
|
}
|
|
#print-header img {
|
|
zoom: 0.5;
|
|
}
|
|
#print-header .logo-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
font-family: "Nylas-Pro", "Helvetica", "Lucidia Grande", sans-serif !important;
|
|
}
|
|
#print-header h1 {
|
|
font-size: 1.5em !important;
|
|
font-family: "Nylas-Pro", "Helvetica", "Lucidia Grande", sans-serif !important;
|
|
}
|
|
#print-header .account {
|
|
margin-left: auto;
|
|
font-size: 0.8em !important;
|
|
}
|
|
#print-header .participant {
|
|
font-size: 0.7em;
|
|
font-family: "Nylas-Pro", "Helvetica", "Lucidia Grande", sans-serif !important;
|
|
}
|
|
|
|
/* Elements to hide */
|
|
.message-subject-wrap {
|
|
display: none !important;
|
|
}
|
|
.minified-bundle,.headers,.scrollbar-track,.message-icons-wrap,.header-toggle-control {
|
|
display: none !important;
|
|
}
|
|
.message-actions-wrap {
|
|
display: none;
|
|
}
|
|
.collapsed.message-item-wrap,.draft.message-item-wrap {
|
|
display: none !important;
|
|
}
|
|
.message-item-area>div {
|
|
display: none !important;
|
|
}
|
|
.quoted-text-control, .footer-reply-area-wrap {
|
|
display: none;
|
|
}
|
|
|
|
@media only print {
|
|
body,#message-list,.message-item-wrap,.message-item-white-wrap,
|
|
.message-item-area,.inbox-html-wrapper {
|
|
display: block !important;
|
|
width: auto !important;
|
|
height: auto !important;
|
|
overflow: visible !important;
|
|
}
|
|
#message-list {
|
|
min-height: initial;
|
|
}
|
|
#print-header {
|
|
padding: 0;
|
|
}
|
|
#print-header .account {
|
|
font-size: 0.7em;
|
|
}
|
|
.message-item-wrap {
|
|
display: block;
|
|
}
|
|
.message-item-area>span {
|
|
page-break-before: avoid;
|
|
}
|
|
.message-item-area>header {
|
|
page-break-after: avoid;
|
|
}
|
|
}
|