forked from opensearch-project/project-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_print.scss
93 lines (75 loc) · 1.57 KB
/
_print.scss
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@media print {
// H5BP Print styles (https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css)
* {
background: transparent !important;
color: #000 !important; /* Black prints faster: h5bp.com/s */
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
/*
* Don't show links for images, or javascript/internal links
*/
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group; /* h5bp.com/t */
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
@page {
margin: 0.5cm;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
// Custom Print Styles
html { // adjust page font size
font-size: 40%;
}
.menu-button, //display none list
.news-search,
.backtotop,
.nav-pagination,
[role="contentinfo"] > .container,
[role="contentinfo"] .logo,
.thanks,
[role="complementary"],
[role="navigation"],
.form-input {
display: none !important;
}
.logo {
text-indent: 0 !important;
}
[role="contentinfo"],
[role="contentinfo"] .copyright {
margin: 0 !important;
padding: 0 !important;
}
.internal-container {
float: none;
width: auto;
}
.list-news li {
margin-top: 0;
}
}