2016-02-26 21:41:53 +01:00
|
|
|
/// print.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
|
|
|
|
|
|
|
|
// Common print media stylesheet
|
|
|
|
// See https://github.com/angular/material/issues/1747
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
|
2016-07-21 20:30:25 +02:00
|
|
|
html, body {
|
|
|
|
height: auto !important;
|
|
|
|
min-height: auto !important;
|
|
|
|
max-height: none !important;
|
|
|
|
overflow: visible !important;
|
2018-12-17 22:45:35 +01:00
|
|
|
|
|
|
|
&.letter {
|
|
|
|
width: 8.5in;
|
|
|
|
height: 11in !important;
|
|
|
|
&.landscape {
|
|
|
|
width: 11in;
|
|
|
|
height: 8.5in !important;
|
|
|
|
}
|
|
|
|
[ui-view=listView] {
|
|
|
|
max-width: 3in;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.legal {
|
|
|
|
width: 8.5in;
|
|
|
|
height: 14in !important;
|
|
|
|
&.landscape {
|
|
|
|
width: 14in;
|
|
|
|
height: 8.5in !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.a4 {
|
|
|
|
width: 210mm;
|
|
|
|
height: 297mm;
|
|
|
|
&.landscape {
|
|
|
|
width: 297mm;
|
|
|
|
height: 210mm;
|
|
|
|
}
|
|
|
|
[ui-view=listView] {
|
|
|
|
max-width: 80mm;
|
|
|
|
}
|
|
|
|
}
|
2016-07-21 20:30:25 +02:00
|
|
|
}
|
|
|
|
|
2016-02-26 21:41:53 +01:00
|
|
|
// Don't print some components
|
2016-07-21 20:30:25 +02:00
|
|
|
md-autocomplete,
|
2016-02-26 21:41:53 +01:00
|
|
|
md-sidenav,
|
|
|
|
md-card-actions,
|
2018-12-17 22:45:35 +01:00
|
|
|
md-backdrop,
|
2019-02-26 22:02:19 +01:00
|
|
|
.md-fab,
|
2018-12-17 22:45:35 +01:00
|
|
|
.md-scroll-mask,
|
|
|
|
.md-dialog-container,
|
2016-07-12 17:29:24 +02:00
|
|
|
.md-open-menu-container,
|
2016-07-21 20:30:25 +02:00
|
|
|
.md-chip-remove-container,
|
2016-02-26 21:41:53 +01:00
|
|
|
.toolbar-main,
|
2018-12-17 22:45:35 +01:00
|
|
|
.view-list--close,
|
2016-07-21 20:30:25 +02:00
|
|
|
.view-detail .sg-reversible.sg-flip .sg-face,
|
2019-01-08 21:25:25 +01:00
|
|
|
.view-detail .sg-reversible:not(.sg-flip) .sg-back {
|
2016-02-26 21:41:53 +01:00
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2016-07-21 20:30:25 +02:00
|
|
|
// Horizontal flex layout must be ignored for element that could spawn multiple pages
|
2016-08-01 20:19:16 +02:00
|
|
|
.msg-body > [layout="row"],
|
|
|
|
.mailer_mailcontent[layout="row"] {
|
2016-07-21 20:30:25 +02:00
|
|
|
display: block !important;
|
|
|
|
max-height: none !important;
|
|
|
|
position: relative !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ignore layout-fill style
|
|
|
|
[layout-fill] {
|
|
|
|
height: auto !important;
|
|
|
|
}
|
|
|
|
|
2016-02-26 21:41:53 +01:00
|
|
|
// Content must be visible to be printed on multiple pages
|
2016-07-21 20:30:25 +02:00
|
|
|
main,
|
2019-02-26 22:02:19 +01:00
|
|
|
body.popup .view-detail,
|
2016-07-21 20:30:25 +02:00
|
|
|
section,
|
2016-02-26 21:41:53 +01:00
|
|
|
md-content,
|
2016-07-21 20:30:25 +02:00
|
|
|
md-card,
|
2016-02-26 21:41:53 +01:00
|
|
|
md-card-content,
|
|
|
|
md-card-content pre,
|
2016-07-21 20:30:25 +02:00
|
|
|
.view-detail .sg-reversible,
|
|
|
|
.view-detail .sg-reversible:not(.sg-flip) .sg-face,
|
2019-01-08 21:25:25 +01:00
|
|
|
.view-detail .sg-reversible.sg-flip .sg-back,
|
|
|
|
.sg-block-print {
|
2016-07-21 20:30:25 +02:00
|
|
|
display: block !important;
|
|
|
|
height: auto !important;
|
|
|
|
min-height: auto !important;
|
2016-02-26 21:41:53 +01:00
|
|
|
overflow: visible !important;
|
2016-07-21 20:30:25 +02:00
|
|
|
position: relative !important;
|
2019-01-08 21:25:25 +01:00
|
|
|
flex: none;
|
2016-02-26 21:41:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Remove shadow from Cards
|
|
|
|
md-card {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
2017-02-20 03:57:27 +01:00
|
|
|
}
|