Line | |
---|
1 | /** |
---|
2 | * Example Print Preview site |
---|
3 | * |
---|
4 | * print.css |
---|
5 | * author: Tim Connell |
---|
6 | */ |
---|
7 | |
---|
8 | /* -- Hide screen specific elements -- */ |
---|
9 | #nav, |
---|
10 | #footer .footer-links, |
---|
11 | #feature a.prev, |
---|
12 | #feature a.next, |
---|
13 | a.print-preview { |
---|
14 | /*display: none;*/ |
---|
15 | color: red; |
---|
16 | } |
---|
17 | |
---|
18 | |
---|
19 | /* -- Typography -- */ |
---|
20 | body { |
---|
21 | background: #FFF; |
---|
22 | color: #000; |
---|
23 | font-family: Georgia, serif; |
---|
24 | line-height: 1.2; |
---|
25 | } |
---|
26 | |
---|
27 | p, table, ul, ol, dl, blockquote, pre, code, form { |
---|
28 | margin: 0 0 1em; |
---|
29 | } |
---|
30 | |
---|
31 | h1,h2,h3,h4,h5 { |
---|
32 | font-weight: normal; |
---|
33 | margin: 2em 0 0.5em; |
---|
34 | text-shadow: rgba(0, 0, 0, 0.44) 1px 1px 2px; |
---|
35 | } |
---|
36 | |
---|
37 | h1 { font-size: 2em; margin: 2em 0 0.25em; } |
---|
38 | h2 { font-size:1.7em; } |
---|
39 | h3 { font-size:1.5em; } |
---|
40 | h4 { font-size:1.2em; } |
---|
41 | h5 { font-size:1em; } |
---|
42 | |
---|
43 | |
---|
44 | /* -- Style site heading -- */ |
---|
45 | #header strong { |
---|
46 | color: #000; |
---|
47 | display: block; |
---|
48 | font-weight: normal; |
---|
49 | font-size: 3em; |
---|
50 | margin: 0 0 1em; |
---|
51 | padding: 0; |
---|
52 | text-shadow: rgba(0, 0, 0, 0.44) 1px 1px 2px; |
---|
53 | } |
---|
54 | |
---|
55 | |
---|
56 | /* -- Add message re print -- */ |
---|
57 | #content:before { |
---|
58 | content: "Thank you for printing this page. Do come back to foo.tld, we are constantly adding new and interesting articles and tutorials. Note: To help the environment we have automatically removed navigaton and other unessessary elements from the page."; |
---|
59 | display: block; |
---|
60 | border: 1px solid #ccc; |
---|
61 | font-style: italic; |
---|
62 | margin: 0 0 1em; |
---|
63 | padding: 8px 10px; |
---|
64 | } |
---|
65 | |
---|
66 | a:link:after, |
---|
67 | a:visited:after { |
---|
68 | content: " (" attr(href) ") "; |
---|
69 | font-size: 80%; |
---|
70 | text-decoration: none; |
---|
71 | } |
---|
72 | |
---|
73 | |
---|
74 | /* -- Accommodate JS driven elements --*/ |
---|
75 | #feature > div { |
---|
76 | border: none; |
---|
77 | overflow: visible; |
---|
78 | height: auto; |
---|
79 | } |
---|
80 | |
---|
81 | #feature div.items { |
---|
82 | left: auto !important; |
---|
83 | position: relative; |
---|
84 | overflow: visible; |
---|
85 | width: auto; |
---|
86 | } |
---|
87 | |
---|
88 | #feature div.items div { |
---|
89 | float: none; |
---|
90 | margin: 20px 0; |
---|
91 | position: relative; |
---|
92 | } |
---|
93 | |
---|
94 | /* -- Photo galleries -- */ |
---|
95 | div.gallery { |
---|
96 | margin: 1em 0; |
---|
97 | overflow: hidden; |
---|
98 | } |
---|
99 | |
---|
100 | div.gallery div.items div { |
---|
101 | float: left; |
---|
102 | margin-right: 10px; |
---|
103 | } |
---|
104 | |
---|
105 | /* -- Footer -- */ |
---|
106 | #footer { |
---|
107 | border-top: 1px solid #cecece; |
---|
108 | font-size: 0.83em; |
---|
109 | margin: 2em 0 0; |
---|
110 | padding: 1em 0 0; |
---|
111 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.