1 | /** |
---|
2 | * Example Print Preview site |
---|
3 | * |
---|
4 | * screen.css |
---|
5 | * author: Tim Connell |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * Table of contents |
---|
10 | * |
---|
11 | * 1. General |
---|
12 | * 1.1 Reset |
---|
13 | * 1.2 General Typography |
---|
14 | * 1.3 Headings |
---|
15 | * 1.4 Links |
---|
16 | * 1.5 Lists |
---|
17 | * 1.6 Tables |
---|
18 | * 1.7 Froms |
---|
19 | * 1.8 Images |
---|
20 | * / |
---|
21 | |
---|
22 | |
---|
23 | /* |
---|
24 | -------------------- |
---|
25 | 1. General |
---|
26 | -------------------- |
---|
27 | */ |
---|
28 | |
---|
29 | /* -- 1.1 Reset -- */ |
---|
30 | html, body, blockquote, pre, abbr, acronym, address, code, |
---|
31 | em, img, dl, dt, dd, ol, ul, li, |
---|
32 | fieldset, form, label, legend, |
---|
33 | table, caption, tbody, tfoot, thead, tr, th, td { |
---|
34 | margin: 0; |
---|
35 | padding: 0; |
---|
36 | border: 0; |
---|
37 | vertical-align: baseline; |
---|
38 | } |
---|
39 | |
---|
40 | /* Unordered lists for good not evil */ |
---|
41 | ul { |
---|
42 | list-style: none; |
---|
43 | } |
---|
44 | |
---|
45 | /* Tables still need 'cellspacing="0"' in the markup. */ |
---|
46 | table { border-collapse: separate; border-spacing: 0; } |
---|
47 | caption, th, td { text-align: left; font-weight: normal; } |
---|
48 | table, td, th { vertical-align: middle; } |
---|
49 | |
---|
50 | /* Remove possible quote marks (") from <q>, <blockquote>. */ |
---|
51 | blockquote:before, blockquote:after, q:before, q:after { content: ""; } |
---|
52 | blockquote, q { quotes: "" ""; } |
---|
53 | |
---|
54 | /* Remove annoying border on linked images. */ |
---|
55 | a img { border: none; } |
---|
56 | |
---|
57 | |
---|
58 | /*-- 1.2 General Typography --*/ |
---|
59 | body { |
---|
60 | color: #FFF; |
---|
61 | font: 87.5%/1.5 Arial, sans-serif; |
---|
62 | } |
---|
63 | |
---|
64 | hr, |
---|
65 | div.hr { |
---|
66 | background: #d3d3d3; |
---|
67 | border: none; |
---|
68 | clear: both; |
---|
69 | height: 3px; |
---|
70 | margin: 1.5em 0; |
---|
71 | } |
---|
72 | |
---|
73 | .js-enabled hr { |
---|
74 | display: none; |
---|
75 | } |
---|
76 | |
---|
77 | #content p, #content table, #content-main ul, #content ol, #content dl { |
---|
78 | margin: 0 0 1em; |
---|
79 | } |
---|
80 | |
---|
81 | |
---|
82 | /*-- 1.3 Headings --*/ |
---|
83 | h1,h2,h3,h4,h5 { |
---|
84 | font-size: 1em; |
---|
85 | font-weight: normal; |
---|
86 | margin: 2em 0 1em; |
---|
87 | } |
---|
88 | |
---|
89 | h1 { |
---|
90 | color: #FFF; |
---|
91 | font-size: 2em; |
---|
92 | margin: 0 0 0.25em; |
---|
93 | } |
---|
94 | |
---|
95 | h2 { |
---|
96 | color: #FFF; |
---|
97 | font-size: 1.58em; |
---|
98 | } |
---|
99 | |
---|
100 | h3 { |
---|
101 | color: #FFF; |
---|
102 | font-size: 1.58em; |
---|
103 | } |
---|
104 | |
---|
105 | h4 { |
---|
106 | color: #FFF; |
---|
107 | font-size: 1.58em; |
---|
108 | } |
---|
109 | |
---|
110 | h5 { |
---|
111 | color: #FFF; |
---|
112 | font-size: 1.42em; |
---|
113 | } |
---|
114 | |
---|
115 | /* -- 1.4 Links -- */ |
---|
116 | a { |
---|
117 | color: #FCFEFF; |
---|
118 | text-decoration: underline; |
---|
119 | } |
---|
120 | |
---|
121 | a:hover, |
---|
122 | a:focus { |
---|
123 | color: #FCFEFF; |
---|
124 | } |
---|
125 | |
---|
126 | |
---|
127 | /*-- 1.8 Images --*/ |
---|
128 | img { |
---|
129 | border: 1px solid #cecccc; |
---|
130 | } |
---|
131 | .align-left { |
---|
132 | float: left; |
---|
133 | margin: 0 20px 10px 0; |
---|
134 | padding: 1px; |
---|
135 | } |
---|
136 | |
---|
137 | .align-right { |
---|
138 | float: right; |
---|
139 | margin: 0 0 10px 20px; |
---|
140 | padding: 1px; |
---|
141 | } |
---|
142 | |
---|
143 | div.image { |
---|
144 | border: 1px solid #ccc; |
---|
145 | margin: 1em 0; |
---|
146 | overflow: hidden; |
---|
147 | width: 389px; |
---|
148 | } |
---|
149 | |
---|
150 | #content-main div.image img { |
---|
151 | border: none; |
---|
152 | display: block; |
---|
153 | } |
---|
154 | |
---|
155 | div.image div.caption { |
---|
156 | margin: -1px 0 0; |
---|
157 | padding: 15px 20px; |
---|
158 | } |
---|
159 | |
---|
160 | |
---|
161 | /* |
---|
162 | -------------------- |
---|
163 | 2. Page Eelemnts |
---|
164 | -------------------- |
---|
165 | */ |
---|
166 | |
---|
167 | /*-- 2.1 Page structure --*/ |
---|
168 | body { |
---|
169 | background: #4A525A; |
---|
170 | } |
---|
171 | |
---|
172 | #footer { |
---|
173 | font-size: 0.85em; |
---|
174 | margin-top: 40px; |
---|
175 | } |
---|
176 | |
---|
177 | #footer .footer-links { |
---|
178 | margin-left:-10px; |
---|
179 | } |
---|
180 | |
---|
181 | #footer .footer-links a { |
---|
182 | margin: 0 10px; |
---|
183 | } |
---|
184 | |
---|
185 | /* -- 2.1 Header -- */ |
---|
186 | #header { |
---|
187 | padding: 60px 0 40px; |
---|
188 | } |
---|
189 | |
---|
190 | #header strong { |
---|
191 | color: #FCFEFF; |
---|
192 | display: block; |
---|
193 | font-weight: normal; |
---|
194 | font-size: 3em; |
---|
195 | margin: 0 10px; |
---|
196 | text-shadow: rgba(0, 0, 0, 0.44) 1px 1px 2px; |
---|
197 | } |
---|
198 | |
---|
199 | /*-- 2.3 Aside --*/ |
---|
200 | #aside { |
---|
201 | margin-top: 1em; |
---|
202 | } |
---|
203 | |
---|
204 | #aside h2 { |
---|
205 | font-size: 1.3em; |
---|
206 | margin: 0 0 0.25em; |
---|
207 | } |
---|
208 | |
---|
209 | #aside ul { |
---|
210 | margin: 0 0 2em; |
---|
211 | } |
---|
212 | |
---|
213 | /* |
---|
214 | -------------------- |
---|
215 | 3. Content Eelemnts |
---|
216 | -------------------- |
---|
217 | */ |
---|
218 | |
---|
219 | #feature { |
---|
220 | position: relative; |
---|
221 | margin: 20px 0; |
---|
222 | } |
---|
223 | |
---|
224 | #feature > div { |
---|
225 | border: 1px solid #cecccc; |
---|
226 | position:relative; |
---|
227 | margin: 0 -1px; |
---|
228 | overflow:hidden; |
---|
229 | height: 175px; |
---|
230 | width: 620px; |
---|
231 | } |
---|
232 | |
---|
233 | #feature div.items { |
---|
234 | position:absolute; |
---|
235 | width:20000em; |
---|
236 | } |
---|
237 | |
---|
238 | #feature div.items div { |
---|
239 | float: left; |
---|
240 | } |
---|
241 | |
---|
242 | #feature div.items img { |
---|
243 | border: none; |
---|
244 | } |
---|
245 | |
---|
246 | #feature .next, |
---|
247 | #feature .prev { |
---|
248 | cursor: pointer; |
---|
249 | display: block; |
---|
250 | font-size: 30px; |
---|
251 | line-height: 1; |
---|
252 | position: absolute; |
---|
253 | margin-top: -15px; |
---|
254 | right: -40px; |
---|
255 | top: 50%; |
---|
256 | text-decoration: none; |
---|
257 | text-shadow: rgba(0, 0, 0, 0.75) 1px 1px 2px; |
---|
258 | } |
---|
259 | |
---|
260 | #feature .prev { |
---|
261 | left: -35px; |
---|
262 | right: auto; |
---|
263 | } |
---|
264 | |
---|
265 | #feature a.disabled { |
---|
266 | color: #BBB; |
---|
267 | cursor: auto; |
---|
268 | } |
---|
269 | |
---|
270 | /*-- 3.1 Gallery --*/ |
---|
271 | .gallery { |
---|
272 | overflow: hidden; |
---|
273 | margin: 20px -10px; |
---|
274 | } |
---|
275 | |
---|
276 | .gallery div div { |
---|
277 | float: left; |
---|
278 | margin: 0 10px; |
---|
279 | } |
---|
280 | |
---|
281 | .gallery img { |
---|
282 | display: block; |
---|
283 | margin: 0 -1px; |
---|
284 | } |
---|
285 | |
---|
286 | /* -- 3.X Print preview -- */ |
---|
287 | a.print-preview { |
---|
288 | background: url(images/icon-print-preview.png) no-repeat 0 0; |
---|
289 | cursor: pointer; |
---|
290 | display: block; |
---|
291 | margin: -42px 0 20px; |
---|
292 | padding: 0 0 0 35px; |
---|
293 | line-height: 20px; |
---|
294 | } |
---|