]> Pileus Git - ~andy/aweather-web/blob - data/global.css
Fixes for IE7
[~andy/aweather-web] / data / global.css
1 /* Clearn defaults */
2 * {
3         margin: 0;
4         padding: 0;
5         outline: 0;
6         position: relative; 
7 }
8
9 h1, h2, h3, h4, h5, h6 {
10         font-weight: normal;
11 }
12
13 a {
14         color: black;
15         text-decoration: none;
16 }
17
18 a img {
19         border: none;
20 }
21
22 ul {
23         display: block;
24 }
25
26 /* Global styles */
27 .content h1, h2 {
28         margin-top: 1em;
29 }
30 h3, h4, h5, h6 {
31         margin-top: 0.5em;
32 }
33 blockquote {
34         font-style: italic;
35         font-family: serif;
36 }
37 blockquote:before {
38         font-weight: bold;
39         content: '“';
40 }
41 blockquote:after {
42         font-weight: bold;
43         content: '”';
44 }
45 ul {
46         left: 30px;
47 }
48 span.code {
49         font-family: monospace;
50 }
51 div.code {
52         font-family: monospace;
53         background-color: #666;
54         border: solid 1px #222;
55         padding: 2px 6px 2px 6px;
56         margin-bottom: 5px;
57         color: white;
58         font-weight: bold;
59 }
60
61 /* Layout */
62 body {
63         background: fixed;
64         background-image: url('../images/main-bg.png');
65         background-repeat: repeat-x;
66         background-color: white;
67         margin-left: auto;
68         margin-right: auto;
69         font-family: 'DejaVu Sans', Arial, sans-serif;
70         width: 850px;
71         /* width: 80%; */
72
73 }
74
75 /* Header stuff */
76 .top {
77         height: 80px;
78         margin-top: 15px;
79         border-collapse: collapse;
80 }
81
82 .top * {
83         float: left;
84 }
85
86 .logo {
87         width: 130px;
88         z-index: 1;
89 }
90
91 .title {
92         font-size: 22pt;
93         font-weight: bold;
94         font-style: italic;
95         color: #222;
96 }
97
98 .nav {
99         position: absolute;
100         top: 45px;
101         left: 135px;
102         right: 0px;
103         z-index: 1;
104         height: 36px;
105         margin: 0 0px 0 30px;
106         padding: 0 15px 0 15px;
107         border-radius: 8px;
108         -moz-border-radius: 8px;
109         background-image: url("../images/nav-bg.png");
110         box-shadow: 0px 2px 2px #a0a0ff;
111 }
112
113 .nav .sep {
114         width: 0px;
115         height: 36px;
116         border-left:  solid 1px #222;
117         border-right: solid 1px #777;
118         margin: 0 10px 0 10px;
119 }
120
121 .nav a {
122         display: block;
123         margin: 5px 7px 5px 7px;
124         padding: 2px;
125         font-size: 12pt;
126         font-weight: normal;
127         color: #f4f4f4;
128         border: solid 1px transparent;
129         border-radius: 4px;
130         -moz-border-radius: 4px;
131 }
132
133 .nav a:hover {
134         text-decoration: underline;
135 }
136
137 .nav a.cur {
138         background-color: #666;
139         border: solid 1px #888;
140         text-decoration: none;
141 }
142
143 /* Content */
144 .content {
145         background-color: white;
146         color: black;
147         margin-top: 20px;
148         padding: 24px;
149         border:     solid 1px #bce;
150         border-top: solid 1px #abd;
151         border-radius: 8px;
152         -moz-border-radius: 8px;
153 }
154
155 .content hr {
156         margin: 25px 0 25px 0;
157 }
158
159 .content a {
160         text-decoration: underline;
161 }
162
163 /* Footer */
164 .footer, .footer * {
165         text-align: center;
166         font-size: 8pt;
167         margin-top: 5px;
168         color: #444;
169 }
170 .footer a {
171         text-decoration: underline;
172 }
173
174 /***********************
175  * Page specific stuff *
176  ***********************/
177 /* Index page */
178 .buttons {
179         float: right;
180         width: 200px;
181         margin-left: 25px;
182 }
183
184 .buttons > * {
185         margin-bottom: 10px;
186 }
187
188 .download {
189         display: block;
190         height: 62px;
191         color: white;
192         padding: 8px 10px 8px 10px;
193         background-image: url("../images/dl-bg.png");
194         border-radius: 10px;
195         -moz-border-radius: 10px;
196         box-shadow: 0px 2px 2px rgba(0,0,0,0.30);
197 }
198
199 .download:first-line {
200         font-weight: bold;
201         font-style: italic;
202         line-height: 2em;
203 }
204
205 .download img {
206         position: absolute;
207         top: 10px;
208         right: 10px;
209 }
210
211 .screen {
212         float: right;
213         margin-left: 25px;
214 }
215
216 /* Screnshots */
217 .gallery {
218         left: 0px; /* override ul */
219         margin: 20px;
220         font-size: larger;
221 }
222 .gallery > * {
223         list-style: none;
224         text-align: center;
225         left:   0;
226         float:  left;
227         width:  320px;
228         height: 350px;
229         margin: 15px;
230         padding-left:  15px;
231         padding-right: 15px;
232 }
233 .gallery a {
234         display: block;
235 }
236 .gallery img {
237         box-shadow: 0px 2px 6px #888;
238         margin-bottom: 4px;
239         float: none;
240         margin-left:   0px;
241 }
242
243 /* News */
244 .news {
245         margin-top: 20px;
246 }
247 .news dt {
248         clear: both;
249         font-weight: bold;
250 }
251 .news dd {
252         margin-left:   10px;
253         margin-bottom: 15px;
254 }
255 .note { 
256         font-style: italic;
257         text-align: center;
258 }
259
260 /* Downloads */
261 li.linux, li.windows, li.macos {
262         list-style-type: none;
263         background-repeat: no-repeat;
264         padding-left: 50px;
265         margin: 10px 10px 20px 0;
266         clear: both;
267 }
268 li.linux {
269         background-image: url("../images/os-linux.png");
270 }
271 li.windows {
272         background-image: url("../images/os-windows.png");
273 }
274 li.macos {
275         background-image: url("../images/os-macos.png");
276 }
277 dl.inline dt {
278         display: block;
279         float: left;
280         clear: both;
281         font-weight: bold;
282         width: 8em;
283 }
284 dl.inline dt:after {
285         content: ":";
286 }
287 h1 + .note,
288 h2 + .note {
289         text-align: left;
290         margin-bottom: 10px;
291 }
292
293 dl.inline dt {
294         display: block;
295         float: left;
296         clear: both;
297         font-weight: bold;
298         width: 8em;
299 }
300 dl.inline dt:after {
301         content: ":";
302 }
303 dl.small dt {
304         width: 4em;
305 }