-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_print.scss
81 lines (72 loc) · 1.55 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
/**
* @file
* Print styling
*
* We provide some sane print styling for Drupal using Zen's layout method.
*/
/**
* By importing this CSS file as media "all", we allow this print file to be
* aggregated with other stylesheets, for improved front-end performance.
*/
@media print {
/* Underline all links. */
a:link,
a:visited {
text-decoration: underline !important;
/* Don't underline header. */
&.header__site-link {
text-decoration: none !important;
}
}
#content {
/* Add visible URL after links. */
a[href]:after {
content: " (" attr(href) ")";
font-weight: normal;
font-size: $base-font-size;
}
/* Only display useful links. */
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
/* Add visible title after abbreviations. */
abbr[title]:after {
content: " (" attr(title) ")";
}
}
/* Un-float the content. */
#content {
float: none !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}
/* Turn off any background colors or images. */
body,
#page,
#main,
#content {
color: #000;
background-color: transparent !important;
background-image: none !important;
}
/* Hide sidebars and nav elements. */
#skip-link,
#toolbar,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer,
.breadcrumb,
.tabs,
.action-links,
.links,
.book-navigation,
.forum-topic-navigation,
.pager,
.feed-icons {
visibility: hidden;
display: none;
}
}