1 |
4cce112d
|
Andreas Kohlbecker
|
/**
|
2 |
|
|
* @file
|
3 |
|
|
* Print styling
|
4 |
|
|
*
|
5 |
|
|
* We provide some sane print styling for Drupal using Zen's layout method.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
@import "base";
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
@media print {
|
12 |
|
|
|
13 |
|
|
a:link,
|
14 |
|
|
a:visited { /* underline all links */
|
15 |
|
|
text-decoration: underline !important;
|
16 |
|
|
|
17 |
|
|
#site-name & { /* Don't underline header */
|
18 |
|
|
text-decoration: none !important;
|
19 |
|
|
}
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
#content {
|
23 |
|
|
a[href]:after { /* Add visible URL after links. */
|
24 |
|
|
content: " (" attr(href) ")";
|
25 |
|
|
font-weight: normal;
|
26 |
|
|
font-size: $base-font-size;
|
27 |
|
|
}
|
28 |
|
|
|
29 |
|
|
a[href^="javascript:"]:after,
|
30 |
|
|
a[href^="#"]:after { /* Only display useful links. */
|
31 |
|
|
content: "";
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
abbr[title]:after { /* Add visible title after abbreviations. */
|
35 |
|
|
content: " (" attr(title) ")";
|
36 |
|
|
}
|
37 |
|
|
}
|
38 |
|
|
|
39 |
|
|
#content { /* Un-float the content */
|
40 |
|
|
float: none !important;
|
41 |
|
|
width: 100% !important;
|
42 |
|
|
margin: 0 !important;
|
43 |
|
|
padding: 0 !important;
|
44 |
|
|
}
|
45 |
|
|
|
46 |
|
|
body,
|
47 |
|
|
#page,
|
48 |
|
|
#main,
|
49 |
|
|
#content { /* Turn off any background colors or images */
|
50 |
|
|
color: #000;
|
51 |
|
|
background-color: transparent !important;
|
52 |
|
|
background-image: none !important;
|
53 |
|
|
}
|
54 |
|
|
|
55 |
|
|
#skip-link,
|
56 |
|
|
#toolbar,
|
57 |
|
|
#navigation,
|
58 |
|
|
.region-sidebar-first,
|
59 |
|
|
.region-sidebar-second,
|
60 |
|
|
#footer,
|
61 |
|
|
.breadcrumb,
|
62 |
|
|
.tabs,
|
63 |
|
|
.action-links,
|
64 |
|
|
.links,
|
65 |
|
|
.book-navigation,
|
66 |
|
|
.forum-topic-navigation,
|
67 |
|
|
.pager,
|
68 |
|
|
.feed-icons { /* Hide sidebars and nav elements */
|
69 |
|
|
visibility: hidden;
|
70 |
|
|
display: none;
|
71 |
|
|
}
|
72 |
|
|
|
73 |
|
|
} /* End @media print */
|