]> git.openstreetmap.org Git - rails.git/blob - public/stylesheets/common.css
Only set pending users to active on a password reset
[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, #tabnav a:visited:hover
284 {
285   background: #fff;
286 }
287
288 #tabnav a:link.disabled, #tabnav a:visited.disabled,
289 #tabnav a:link:hover.disabled, #tabnav a:visited:hover.disabled
290 {
291   background: #bbbbbb;
292   color: white
293 }
294
295 /* Rules for greeting bar in the top right corner */
296
297 #greeting {
298   float: right;
299   height: 20px;
300   margin: 0px;
301   padding-right: 10px;
302   padding-top: 5px;
303   font-size: 13px;
304   line-height: 14px;
305   background: url('../images/tab_bottom.gif') repeat-x bottom;
306 }
307
308 .greeting-bar-unread {
309   font-weight: bold;
310 }
311
312 /* Rules for the message shown in place of the map when javascript is disabled */
313
314 #noscript {
315   z-index: 20000000;
316   position: absolute;
317   top: 15px;
318   left: 15px
319 }
320
321 /* Rules for OpenLayers maps */
322
323 #map {
324   position: absolute;
325   border: 1px solid black;
326   margin: 0px; 
327   padding: 0px;
328   left: 0px;
329   right: 2px;
330   top: 0px;
331   bottom: 0px;
332 }
333
334 .olControlAttribution {
335   display: none !important;
336 }
337
338 #map #permalink {
339   z-index:10000;
340   position:absolute;
341   bottom:15px;
342   right:15px;
343   font-size:smaller;
344   text-align: right;
345 }
346
347 /* Rules for attribution text under the main map shown on printouts */
348
349 #attribution {
350   display: none;
351 }
352
353 /* Rules for the popout map sidebar */
354
355 #sidebar {
356   display: none;
357   position: absolute;
358   border: 1px solid black;
359   margin: 0px;
360   padding: 0px;
361   width: 30%;
362   left: 0px;
363   top: 0px;
364   bottom: 0px;
365 }
366
367 #sidebar_content {
368   overflow: auto;
369   position: absolute;
370   font-size: 13px;
371   line-height: 14px;
372   top: 29px;
373   bottom: 0px;
374   left: 0px;
375   right: 0px;
376 }
377
378 .sidebar_title {
379   margin: 0px;
380   padding: 3px 6px;
381   height: 29px;
382   font-size: 14px;
383   line-height: 15px;
384   border-bottom: 1px solid black;
385   background: #bbb;
386 }
387
388 /* Rules for the map key which appears in the popout sidebar */
389
390 #mapkey h3 {
391     font-size: 110%;
392     font-weight: normal;
393     text-align: center;
394 }
395
396 #mapkey .mapkey-table {
397     padding-left: 5px;
398     padding-right: 5px;
399 }
400
401 #mapkey .mapkey-table-key {
402 }
403
404 #mapkey .mapkey-table-value {
405     font-size: 90%;
406 }
407
408 /* Rules for search results which appear in the popout sidebar */
409
410 .search_searching {
411   margin-top: 5px;
412   margin-bottom: 5px;
413 }
414
415 .search_results_heading {
416   margin: 0px;
417   padding: 3px 6px;
418   border: 1px solid #ccc;
419   background: #ddd;
420 }
421
422 .search_results_entry {
423   margin: 0px;
424   padding: 2px 6px;
425 }
426
427 .search_results_error {
428   margin: 0px;
429   padding: 2px 6px 0px;
430   color: #f00;
431 }
432
433 /* Rules for data browser information which appears in the popout sidebar */
434
435 .browse_heading {
436   margin: 0px;
437   padding: 3px 6px;
438   border: 1px solid #ccc;
439   background: #ddd;
440 }
441
442 .browse_details {
443   margin: 0px;
444   padding: 0px 6px;
445 }
446
447 /* Rules for export information which appears in the popout sidebar */
448
449 .export_heading {
450   margin: 0px;
451   padding: 3px 6px;
452   border: 1px solid #ccc;
453   background: #ddd;
454 }
455
456 .export_bounds {
457   width: 100%;
458   text-align: center;
459 }
460
461 .export_bound {
462   margin: 5px;
463 }
464
465 .export_details {
466   padding: 2px 6px;
467 }
468
469 #export_osm {
470   display: none;
471 }
472
473 #export_mapnik {
474   display: none;
475 }
476
477 #export_osmarender {
478   display: none;
479 }
480
481 .export_hint {
482   padding: 0px 12px;
483   font-style: italic;
484 }
485
486 .export_buttons {
487   width: 100%;
488   text-align: center;
489 }
490
491 /* Rules for the main content area */
492
493 #content {
494   padding: 0px;
495   margin: 0px;
496   position: absolute; 
497   right: 10px;
498   bottom: 10px;
499   line-height: 1.2em;
500   text-align: left;
501 }
502
503 /* Rules for the changeset list shown by the history tab etc */
504
505 #changeset_list, #keyvalue {
506   width: 100%;
507   font-size: small;
508   text-align: left;
509   border-collapse: collapse;
510   border-width: 0px;
511 }
512
513 #changeset_list .date {
514   white-space: nowrap;
515 }
516
517 #changeset_list .user {
518   white-space: nowrap;
519 }
520
521 #changeset_list .area {
522   white-space: nowrap;
523 }
524
525 #changeset_list.th {
526   font-weight: bold;
527 }
528
529 /* Rules for the data browser */
530
531 #browse_navigation {
532   float: right;
533   width: 250px;
534   text-align: center;
535   margin-left: 10px;
536 }
537
538 #browse_map {
539   float: right;
540   width: 250px;
541   text-align: right;
542   margin-left: 10px;
543 }
544
545 #browse_map #small_map {
546   width: 250px;
547   height: 300px;
548   border: solid 1px black;
549 }
550
551 /* Rules for the trace list shown by the traces tab etc */
552
553 #trace_list {
554   font-size: small;
555   text-align: left;
556   border-collapse: collapse;
557   border-width: 0px;
558 }
559
560 #trace_list .trace_summary {
561   font-size: 12px;
562   color: gray;
563 }
564
565 /* Rules for the user list */
566
567 #user_list {
568   width: 100%;
569   font-size: small;
570 }
571
572 #user_list tr {
573   vertical-align: center;
574 }
575
576 #user_list p {
577   margin-top: 0px;
578   margin-bottom: 0px;
579 }
580
581 #user_list_actions {
582   float: right;
583   margin-top: 10px;
584 }
585
586 /* Rules for the account settings page */
587
588 #accountForm td {
589   padding-bottom: 10px;
590 }
591
592 #accountImage td {
593   padding-bottom: 0px;
594 }
595
596 .nohome .location {
597   display: none;
598 }
599
600 #homerow .message {
601   display: none;
602 }
603
604 .nohome .message {
605   display: inline !important;
606 }
607
608 /* Rules for the user map */
609
610 .user_map .olControlPanZoomBar {
611   display: none;
612 }
613
614 .user_map .olControlPanZoom {
615   display: block;
616 }
617
618 /* Rules for user popups on maps */
619
620 .user_popup p {
621   padding-top: 3px;
622   padding-bottom: 3px;
623   margin-top: 0px;
624   margin-bottom: 0px;
625   margin-left: 55px;
626   margin-right: 2px;
627 }
628
629 /* Rules for message in/out box page */
630
631 #messages {
632   border: 1px solid #ccc;
633 }
634
635 .inbox-row-unread .inbox-subject {
636   font-weight: bold;
637 }
638
639 /* Rules for "flash" notice boxes shown at the top of the content area */
640
641 #error {
642   border: 1px solid red;
643   padding: 7px;
644   background-color: #fff0f0;
645   margin-bottom: 20px;
646 }
647
648 #warning {
649   border: 1px solid orange;
650   padding: 7px;
651   background-color: #fff6f0;
652   margin-bottom: 20px;
653 }
654
655 #notice {
656   border: 1px solid green;
657   padding: 7px;
658   background-color: #f0fff0;
659   margin-bottom: 20px;
660 }
661
662 /* Rules for highlighting fields with rails validation errors */
663
664 .fieldWithErrors {
665   padding: 2px;
666   background-color: red;
667   display: table;
668 }
669
670 /* Rules for rails validation error boxes */
671
672 #errorExplanation {
673   width: 400px;
674   border: 2px solid red;
675   padding: 7px;
676   padding-bottom: 12px;
677   margin-bottom: 20px;
678   background-color: #f0f0f0;
679 }
680
681 #errorExplanation h2 {
682   text-align: left;
683   font-weight: bold;
684   padding: 5px 5px 5px 15px;
685   font-size: 12px;
686   margin: -7px;
687   background-color: #c00;
688   color: #fff;
689 }
690
691 #errorExplanation p {
692   color: #333;
693   margin-bottom: 0px;
694   padding: 5px;
695 }
696
697 #errorExplanation ul li {
698   font-size: 12px;
699   list-style: square;
700 }
701
702 /* Rules for forms */
703
704 .fieldName {
705   text-align: right;
706   font-weight: bold;
707 }
708
709 .minorNote {
710   font-size: 0.8em;
711 }
712
713 input[type="text"], input[type="password"], textarea {
714   border: 1px solid black;
715 }
716
717 input[type="submit"] {
718   border: 1px solid black;
719 }
720
721 /* Rules for user images */
722
723 img.user_image {
724   max-width: 100px;
725   max-height: 100px;
726   border: 1px solid black;
727 }
728
729 img.user_thumbnail {
730   max-width: 50px;
731   max-height: 100px;
732   border: 1px solid black;
733 }
734
735 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
736
737 .nowrap {
738   white-space: nowrap;
739 }
740
741 /* Rules for geo microformats */
742
743 abbr.geo {
744   border-bottom: none;
745 }
746
747 /* Rules for RSS buttons */
748
749 .rsssmall {
750   position: relative;
751   top: 4px;
752 }
753
754 /* Rules for doing distinct colour of alternate table rows */
755
756 .table0 { 
757   background: #f6f6f6;
758 }
759
760 .table1 { 
761   background: #fff;
762 }