-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
print.less
33 lines (25 loc) · 1.49 KB
/
print.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*!
* Copyright (c) 2008-2022 Mark C. Prins <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* print styling overrides and enhancements. */
.olMapHelp, .olMapHelpButton { display: none; }
.olPOItable { margin: 1px; padding: 1px; border: 1px solid __border__; width: 100%; }
.olPOItable thead { display: table-header-group; }
.olPrintOnly { display: inline; }
.olWebOnly { display: none; }
.olPOItable .icon { text-align: center; }
.olPOItblBody tr { page-break-inside: avoid; }
h ~ div ~ .olStaticMap { /*?? page-break-inside: auto | avoid | inherit */ /* http://david.latapie.name/blog/page-break-in-css-print-how-to-get-rid-of-accidental-blank-pages/ */ /* http://www.w3.org/TR/CSS21/page.html */ page-break-before: always; /* page-break-after: always;*/ }
.olStaticMap p img { max-width: 100%; height: auto; }