]> git.openstreetmap.org Git - rails.git/blob - public/stylesheets/common.css
yay for case-insensitive systems
[rails.git] / public / stylesheets / common.css
1 /* Styles common to large and small screens */
2
3 /* Default rules for the body of every page */
4
5 body {
6   font-family: Arial,sans-serif;
7   color: #000;
8   background-color: #fff;
9   margin: 0px;
10   padding: 0px;
11 }
12
13 /* Rules for links */
14
15 a {
16   color: #00f;
17   text-decoration: none;
18 }
19
20 a:hover {
21   text-decoration: underline;
22 }
23
24 /* Rules for horizontal lines */
25
26 hr {
27   border: none;
28   background-color: #ccc;
29   color: #ccc;
30   height: 1px;
31 }
32
33 /* Rules for the whole left sidebar, including the logo */
34
35 #left {
36   position: absolute;
37   top: -8px;
38   min-width: 150px;
39 }
40
41 /* Rules for the OpenStreetMap logo in the top left corner */
42
43 #logo {
44   width: 150px;
45   min-width: 150px;
46   padding: 10px;
47   margin: 10px;
48   height: 150px;
49   background: #fff;
50   border: 1px solid #ccd;
51 }
52
53 #logo h1 {
54   font-size: 14px;
55   text-align: center;
56   margin: 0px;
57 }
58
59 #logo h2 {
60   font-size: 10px;
61   margin: 0px;
62 }
63
64 /* Rules for the introductory text displayed in the left sidebar to new users */
65
66 #intro {
67   width: 170px;
68   margin: 10px;
69   border: 1px solid #ccc;
70   font-size: 11px;
71 }
72
73 #intro p { margin: 10px; }
74
75 /*
76  * Rules for alert boxes shown in the left sidebar when important
77  * information needs to be conveyed such as when the site is
78  * undergoing maintenance.
79  */
80
81 #alert {
82   width: 150px;
83   margin: 10px;
84   padding: 10px;
85   border: 1px solid #ccc;
86   background: #d00;
87   line-height: 1.2em;
88   text-align: left;
89   font-size: 14px;
90 }
91
92 /*
93  * Rules for notice boxes shown in the left sidebar when important, but
94  * non-critical information needs to be conveyed such as notices about
95  * donation drives.
96  */
97
98 .notice {
99   width: 150px;
100   margin: 10px;
101   padding: 10px;
102   border: 1px solid #ccc;
103   background: #ea0;
104   line-height: 1.2em;
105   text-align: left;
106   font-size: 14px;
107 }
108
109 /* Rules for the menu displayed in the left sidebar */
110
111 .left_menu {
112   width: 150px;
113   min-width: 150px;
114   margin: 10px;
115   padding: 10px;
116   border: 1px solid #ccc;
117   left: 0px;
118   background: #ddd;
119   line-height: 1.2em;
120   text-align: Left;
121   font-size: 14px;
122   font-weight: bold;
123 }
124
125 .left_menu td {
126   font-size: 12px;
127   padding-right: 4px;
128 }
129
130 .left_menu h1 {
131   font-style: normal;
132   font-size: 15px;
133   padding: 0em 0em 0em 1em;
134   text-align: left;
135 }
136
137 .left_menu ul {
138   padding-left: 10px;
139   margin: 0px;
140 }
141
142 .left_menu li {
143   margin: 0px;
144   padding: 0px;
145 }
146
147 .left_menu img {
148   margin: 2px 8px 0px 0px;
149 }
150
151 .left_menu a {
152   color: #000;
153 }
154
155 /* Rules for SOTM advert */
156
157 #sotm {
158   width: 170px;
159   padding: 0px;
160 }
161
162 /*
163  * Rules for "optional boxes" which appear in the left sidebar on
164  * certain pages. Current users are the seach box on the main page
165  * and the tag cloud on the traces pages.
166  */
167
168 .optionalbox {
169   width: 150px;
170   min-width: 150px;
171   margin: 10px;
172   padding: 10px;
173   border: 1px solid #ccc;
174   left: 0px;
175   line-height: 1.2em;
176   text-align: left;
177   font-size: 12px;
178   background: #eee;
179 }
180
181 .optionalbox h1 {
182   font-size: 14px;
183   font-weight: bold;
184   line-height: 22px;
185   margin: 0px;
186   vertical-align: bottom;
187 }
188
189 /* Rules for the search box */
190
191 .whereami {
192   line-height: 22px;
193   vertical-align: bottom;
194   float: right;
195 }
196
197 .search_form {
198   height: 16px;
199   padding-bottom: 6px;
200 }
201
202 #search_field form {
203   width: 100%;
204   margin: 0px;
205   padding: 0px;
206 }
207
208 #search_field input[type="text"] {
209   width: 116px;
210 }
211
212 #search_field input[type="submit"] {
213   width: 26px;
214 }
215
216 .search_help {
217   font-size: 10px;
218   line-height: 1em;
219   margin-top: 3px;
220   margin-bottom: 0px;
221 }
222
223 /* Rules for donation request box */
224
225 .donate {
226   width: 150px;
227   margin: 10px;
228   padding: 10px;
229   border: 1px solid #ccc;
230   background: #cbeea7;
231   line-height: 1.2em;
232   text-align: center;
233   font-size: 14px;
234 }
235
236 /* Rules for Creative Commons logo button */
237
238 #cclogo {
239   margin-top: 10px;
240   margin-bottom: 10px;
241 }
242
243 /* Rules for tabbed navigation bar */
244
245 #tabnav
246 {
247   height: 20px;
248   margin: 0px;
249   padding-left: 215px;
250   padding-top: 5px;
251   background: url('../images/tab_bottom.gif') repeat-x bottom;
252 }
253
254 #tabnav li
255 {
256   margin: 0px; 
257   padding: 0px;
258   display: inline;
259   list-style-type: none;
260 }
261
262 #tabnav a, #tabnav a:link, #tabnav a:visited 
263 {
264   float: left;
265   background: #f3f3f3;
266   font-size: 13px;
267   line-height: 14px;
268   font-weight: bold;
269   padding: 2px 10px;
270   margin-right: 4px;
271   border: 1px solid #ccc;
272   text-decoration: none;
273   color: #333;
274 }
275
276 #tabnav a:link.active, #tabnav a:visited.active
277 {
278   border-bottom: 1px solid #fff;
279   background: #fff;
280   color: #000;
281 }
282
283 #tabnav a:link:hover
284 {
285   background: #fff;
286 }
287
288 /* Rules for greeting bar in the top right corner */
289
290 #greeting {
291   float: right;
292   height: 20px;
293   margin: 0px;
294   padding-right: 10px;
295   padding-top: 5px;
296   font-size: 13px;
297   line-height: 14px;
298   background: url('../images/tab_bottom.gif') repeat-x bottom;
299 }
300
301 .greeting-bar-unread {
302   font-weight: bold;
303 }
304
305 /* Rules for the message shown in place of the map when javascript is disabled */
306
307 #noscript {
308   z-index: 20000000;
309   position: absolute;
310   top: 15px;
311   left: 15px
312 }
313
314 /* Rules for OpenLayers maps */
315
316 #map {
317   position: absolute;
318   border: 1px solid black;
319   margin: 0px; 
320   padding: 0px;
321   left: 0px;
322   right: 2px;
323   top: 0px;
324   bottom: 0px;
325 }
326
327 .olControlAttribution {
328   display: none !important;
329 }
330
331 #map #permalink {
332   z-index:10000;
333   position:absolute;
334   bottom:15px;
335   right:15px;
336   font-size:smaller;
337   text-align: right;
338 }
339
340 /* Rules for attribution text under the main map shown on printouts */
341
342 #attribution {
343   display: none;
344 }
345
346 /* Rules for the popout map sidebar */
347
348 #sidebar {
349   display: none;
350   position: absolute;
351   border: 1px solid black;
352   margin: 0px;
353   padding: 0px;
354   width: 30%;
355   left: 0px;
356   top: 0px;
357   bottom: 0px;
358 }
359
360 #sidebar_content {
361   overflow: auto;
362   position: absolute;
363   font-size: 13px;
364   line-height: 14px;
365   top: 29px;
366   bottom: 0px;
367   left: 0px;
368   right: 0px;
369 }
370
371 .sidebar_title {
372   margin: 0px;
373   padding: 3px 6px;
374   height: 29px;
375   font-size: 14px;
376   line-height: 15px;
377   border-bottom: 1px solid black;
378   background: #bbb;
379 }
380
381 /* Rules for the map key which appears in the popout sidebar */
382
383 #mapkey h3 {
384     font-size: 110%;
385     font-weight: normal;
386     text-align: center;
387 }
388
389 #mapkey .mapkey-table {
390     padding-left: 5px;
391     padding-right: 5px;
392 }
393
394 #mapkey .mapkey-table-key {
395 }
396
397 #mapkey .mapkey-table-value {
398     font-size: 90%;
399 }
400
401 /* Rules for search results which appear in the popout sidebar */
402
403 .search_searching {
404   margin-top: 5px;
405   margin-bottom: 5px;
406 }
407
408 .search_results_heading {
409   margin: 0px;
410   padding: 3px 6px;
411   border: 1px solid #ccc;
412   background: #ddd;
413 }
414
415 .search_results_entry {
416   margin: 0px;
417   padding: 2px 6px;
418 }
419
420 .search_results_error {
421   margin: 0px;
422   padding: 2px 6px 0px;
423   color: #f00;
424 }
425
426 /* Rules for data browser information which appears in the popout sidebar */
427
428 .browse_heading {
429   margin: 0px;
430   padding: 3px 6px;
431   border: 1px solid #ccc;
432   background: #ddd;
433 }
434
435 .browse_details {
436   margin: 0px;
437   padding: 0px 6px;
438 }
439
440 /* Rules for export information which appears in the popout sidebar */
441
442 .export_heading {
443   margin: 0px;
444   padding: 3px 6px;
445   border: 1px solid #ccc;
446   background: #ddd;
447 }
448
449 .export_bounds {
450   width: 100%;
451   text-align: center;
452 }
453
454 .export_bound {
455   margin: 5px;
456 }
457
458 .export_details {
459   padding: 2px 6px;
460 }
461
462 #export_osm {
463   display: none;
464 }
465
466 #export_mapnik {
467   display: none;
468 }
469
470 #export_osmarender {
471   display: none;
472 }
473
474 .export_hint {
475   padding: 0px 12px;
476   font-style: italic;
477 }
478
479 .export_buttons {
480   width: 100%;
481   text-align: center;
482 }
483
484 /* Rules for the main content area */
485
486 #content {
487   padding: 0px;
488   margin: 0px;
489   position: absolute; 
490   right: 10px;
491   bottom: 10px;
492   line-height: 1.2em;
493   text-align: left;
494 }
495
496 /* Rules for the changeset list shown by the history tab etc */
497
498 #changeset_list, #keyvalue {
499   width: 100%;
500   font-size: small;
501   text-align: left;
502   border-collapse: collapse;
503   border-width: 0px;
504 }
505
506 #changeset_list .date {
507   white-space: nowrap;
508 }
509
510 #changeset_list .user {
511   white-space: nowrap;
512 }
513
514 #changeset_list .area {
515   white-space: nowrap;
516 }
517
518 #changeset_list.th {
519   font-weight: bold;
520 }
521
522 /* Rules for the trace list shown by the traces tab etc */
523
524 #trace_list {
525   font-size: small;
526   text-align: left;
527   border-collapse: collapse;
528   border-width: 0px;
529 }
530
531 #trace_list .trace_summary {
532   font-size: 12px;
533   color: gray;
534 }
535
536 /* Rules for the account settings page */
537
538 #accountForm td {
539   padding-bottom: 10px;
540 }
541
542 #accountImage td {
543   padding-bottom: 0px;
544 }
545
546 .nohome .location {
547   display: none;
548 }
549
550 #homerow .message {
551   display: none;
552 }
553
554 .nohome .message {
555   display: inline !important;
556 }
557
558 /* Rules for message in/out box page */
559
560 #messages {
561   border: 1px solid #ccc;
562 }
563
564 .inbox-row-unread .inbox-subject {
565   font-weight: bold;
566 }
567
568 /* Rules for "flash" notice boxes shown at the top of the content area */
569
570 #error {
571   border: 1px solid red;
572   padding: 7px;
573   background-color: #fff0f0;
574   margin-bottom: 20px;
575 }
576
577 #warning {
578   border: 1px solid orange;
579   padding: 7px;
580   background-color: #fff6f0;
581   margin-bottom: 20px;
582 }
583
584 #notice {
585   border: 1px solid green;
586   padding: 7px;
587   background-color: #f0fff0;
588   margin-bottom: 20px;
589 }
590
591 /* Rules for highlighting fields with rails validation errors */
592
593 .fieldWithErrors {
594   padding: 2px;
595   background-color: red;
596   display: table;
597 }
598
599 /* Rules for rails validation error boxes */
600
601 #errorExplanation {
602   width: 400px;
603   border: 2px solid red;
604   padding: 7px;
605   padding-bottom: 12px;
606   margin-bottom: 20px;
607   background-color: #f0f0f0;
608 }
609
610 #errorExplanation h2 {
611   text-align: left;
612   font-weight: bold;
613   padding: 5px 5px 5px 15px;
614   font-size: 12px;
615   margin: -7px;
616   background-color: #c00;
617   color: #fff;
618 }
619
620 #errorExplanation p {
621   color: #333;
622   margin-bottom: 0px;
623   padding: 5px;
624 }
625
626 #errorExplanation ul li {
627   font-size: 12px;
628   list-style: square;
629 }
630
631 /* Rules for forms */
632
633 .fieldName {
634   text-align: right;
635   font-weight: bold;
636 }
637
638 .minorNote {
639   font-size: 0.8em;
640 }
641
642 input[type="text"], input[type="password"], textarea {
643   border: 1px solid black;
644 }
645
646 input[type="submit"] {
647   border: 1px solid black;
648 }
649
650 /* Rules for user images */
651
652 img.user_image {
653   max-width: 100px;
654   max-height: 100px;
655   border: 1px solid black;
656 }
657
658 img.user_thumbnail {
659   max-width: 50px;
660   max-height: 100px;
661   border: 1px solid black;
662 }
663
664 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
665
666 .nowrap {
667   white-space: nowrap;
668 }
669
670 /* Rules for geo microformats */
671
672 abbr.geo {
673   border-bottom: none;
674 }
675
676 /* Rules for RSS buttons */
677
678 .rsssmall {
679   position: relative;
680   top: 4px;
681 }
682
683 /* Rules for doing distinct colour of alternate table rows */
684
685 .table0 { 
686   background: #f6f6f6;
687 }
688
689 .table1 { 
690   background: #fff;
691 }