]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
217bb0c669c341463fea61a90296d7e466bad1b6
[rails.git] / app / assets / stylesheets / common.css.scss
1 /* Styles common to large and small screens */
2
3 /* Default rules for the body of every page */
4
5 body {
6   font-family: 'Helvetica Neue',Arial,sans-serif;
7   font-size: 14px;
8   line-height: 20px;
9   color: #222;
10   background-color: #fff;
11   margin: 0px;
12   padding: 0px;
13   text-align: left;
14 }
15
16 body.slim {
17   background-color: #f0f0f0;
18 }
19
20 /* Rules for links */
21
22 a {
23   color: #00f;
24   text-decoration: none;
25 }
26
27 a:hover {
28   text-decoration: underline;
29 }
30
31 /* Rules for horizontal lines */
32
33 hr {
34   border: none;
35   background-color: #ccc;
36   color: #ccc;
37   height: 1px;
38 }
39
40 /* Default rules for headings */
41
42 h2 {
43   margin: 5px 0;
44   font-size: 25px;
45   line-height: 30px;
46 }
47
48 /* Rules for the whole left sidebar, including the logo */
49
50 #left {
51   position: absolute;
52   top: 30px;
53   bottom: 0;
54   width: 185px;
55   font-size: 11px;
56   line-height: 12px;
57   border-right: 1px solid #ccc;
58 }
59
60 /* Rules for the OpenStreetMap logo in the top left corner */
61
62 #logo {
63   display: block;
64   width: 170px;
65   min-width: 170px;
66   padding: 5px;
67   text-align: center;
68   margin: auto;
69 }
70
71 #logo img {
72   border: 0px;
73 }
74
75 #logo h1 {
76   font-size: 18px;
77   line-height: 20px;
78   text-align: center;
79   margin: 0px;
80 }
81
82 #logo h2 {
83   font-size: 10px;
84   line-height: 15px;
85   margin: 0px;
86 }
87
88 /* Rules for the site name */
89
90 #small-title {
91   display: none;
92 }
93
94 #small-title img {
95   border: 0px;
96 }
97
98 /* Rules for the introductory text displayed in the left sidebar to new users */
99
100 .sidebar-copy {
101   padding: 5px 10px;
102 }
103
104 .sidebar-copy p {
105   margin: 5px 0;
106 }
107
108 .sidebar-copy.intro {
109   margin-top: -1px;
110   border-top: 1px solid #ccc;
111 }
112
113 /*
114  * Rules for alert boxes shown in the left sidebar when important
115  * information needs to be conveyed such as when the site is
116  * undergoing maintenance.
117  */
118
119 .sidebar-alert {
120   padding: 4px 5px 4px 5px;
121   border-top: 1px solid #ccc;
122   margin-top: 4px;
123   margin-bottom: -4px;
124   background: #e00;
125   font-size: 13px;
126   font-weight: bold;
127   line-height: 17px;
128
129   p {
130     margin: 5px;
131   }
132 }
133
134 /*
135  * Rules for notice boxes shown in the left sidebar when important, but
136  * non-critical information needs to be conveyed such as notices about
137  * donation drives.
138  */
139
140 .sidebar-notice {
141   padding: 4px 5px 4px 5px;
142   border-top: 1px solid #ccc;
143   margin-top: 4px;
144   margin-bottom: -4px;
145   background: #ea0;
146   font-size: 13px;
147   line-height: 17px;
148
149   p {
150     margin: 5px;
151   }
152 }
153
154 /* Rules for the menu displayed in the left sidebar */
155
156 .left_menu {
157   left: 0px;
158   margin: 0;
159   padding: 5px 10px;
160   line-height: 15px;
161   font-size: 12px;
162   list-style-type: none;
163   border-bottom: 1px solid #ccc;
164   border-top: 1px solid #ccc;
165 }
166
167 .left_menu ul {
168   padding: 0;
169   margin: 0;
170 }
171
172 .left_menu li {
173   list-style-type: none;
174   padding: 0;
175   margin: 0;
176 }
177
178 .left_menu h4 {
179   padding: 5px 0 5px 0;
180   font-size: 12px;
181   margin: 0;
182 }
183
184 .left_menu li:last-child h4 {
185   padding-top: 0;
186 }
187
188 /* Rules for SOTM advert */
189
190 #sotm {
191   width: 165px;
192   margin: 10px;
193   padding: 0px;
194   border: 0px;
195   background: #fff;
196 }
197
198 #sotm img {
199   width: 165px;
200 }
201
202 /*
203  * Rules for "optional boxes" which appear in the left sidebar on
204  * certain pages. Current users are the seach box on the main page
205  * and the tag cloud on the traces pages.
206  */
207
208 .optionalbox {
209   left: 0px;
210   padding: 5px 10px;
211   margin: 5px 0;
212   text-align: left;
213 }
214
215 .optionalbox h1 {
216   font-size: 14px;
217   font-weight: bold;
218   line-height: 20px;
219   margin: 0px;
220   vertical-align: bottom;
221 }
222
223 /* Rules for the search box */
224
225 .whereami {
226 }
227
228 #search_field form {
229   width: 165px;
230   margin: 0px;
231   padding: 0px;
232 }
233
234 #search_field {
235   position: relative;
236 }
237
238 #search_field input[type="text"] {
239   width: 165px;
240   font-size: 14px;
241   line-height: 15px;
242   height: 25px;
243   padding: 2px 0px 2px 5px;
244   box-shadow: inset #DDD 0px 1px 3px;
245   box-sizing: border-box;
246   -webkit-box-sizing: border-box;
247   -moz-box-sizing: border-box;
248   -ms-box-sizing: border-box;
249 }
250
251 #search_field input[type="text"]:focus {
252   outline: none;
253   border: 1px solid #000;
254 }
255
256 #search_field input[type="submit"] {
257   width: 15px;
258   height: 15px;
259   border: 0px;
260   text-indent: -1000px;
261   overflow: hidden;
262   text-transform: capitalize;
263   padding-left: 0px;
264   padding-right: 0px;
265   background: image-url("sprite.png");
266   position: absolute;
267   top: 5px;
268   right: 4px;
269   cursor: pointer;
270 }
271
272 .search_help {
273   margin: 5px 0 0 0;
274 }
275
276 .deemphasize {
277   color: #999;
278 }
279
280 .deemphasize a {
281   color: #7092FF;
282 }
283
284 /* Rules for donation request box */
285
286 .donate {
287   display: block;
288   position: relative;
289   width: 153px;
290   margin: 10px 10px 0px 10px;
291   padding: 5px;
292   border: 1px solid #AED1A0;
293   background: #cbeea7;
294   line-height: 20px;
295   text-align: center;
296   font-size: 14px;
297   border-radius: 2px;
298   -moz-border-radius: 2px;
299   color: #222;
300 }
301
302 .donate:hover {
303   background: #9ed485;
304   text-decoration: none;
305 }
306
307 .donate p {
308   text-indent: 20px;
309   margin: 0;
310 }
311
312 .donate .donate-icon {
313   width: 15px;
314   height: 15px;
315   border: 0px;
316   padding-left: 0px;
317   padding-right: 0px;
318   background: image-url("sprite.png") 0 -30px no-repeat;
319   position: absolute;
320   top: 8px;
321   left: 17px;
322 }
323
324 /* Rules for Creative Commons logo button */
325
326 #cclogo {
327   margin-top: 10px;
328   margin-bottom: 10px;
329 }
330
331 /* Rules for tabbed navigation bar */
332
333 #top-bar {
334   position: absolute;
335   top: 0;
336   left: 185px;
337   right: 0;
338   height: 29px;
339   border-bottom: 1px solid #ccc;
340   background: white;
341 }
342
343 #tabnav {
344   padding: 0;
345   margin: 0;
346   overflow:hidden;
347 }
348
349 #tabnav li {
350   margin: 0px;
351   padding: 0px;
352   display: inline;
353   list-style-type: none;
354 }
355
356 #tabnav a, #tabnav a:link, #tabnav a:visited {
357   float: left;
358   background: #fff;
359   font-size: 14px;
360   line-height: 19px;
361   font-weight: bold;
362   padding: 5px 10px;
363   margin-right: 1px;
364   text-decoration: none;
365   color: #333;
366   -webkit-transition: color 200ms ease-in;
367   -moz-transition: color 200ms ease-in;
368   -o-transition: color 200ms ease-in;
369   transition: color 200ms ease-in;
370 }
371
372 body.site-index #tabnav a#viewanchor,
373 body.site-edit #tabnav a#editanchor,
374 body.changeset-list #tabnav a#historyanchor,
375 body.site-export #tabnav a#exportanchor {
376   border-bottom: 1px solid #aaa;
377   background: #9ed485;
378   color: #000;
379 }
380
381 #tabnav a:link:hover, #tabnav a:visited:hover {
382   text-decoration:underline;
383 }
384
385 #tabnav a:link.disabled,
386 #tabnav a:visited.disabled,
387 #tabnav a:link:hover.disabled,
388 #tabnav a:visited:hover.disabled {
389   color: #ccc;
390   cursor: default;
391 }
392
393 #tabnav a:link.disabled:hover,
394 #tabnav a:visited.disabled:hover,
395 #tabnav a:link:hover.disabled:hover,
396 #tabnav a:visited:hover.disabled:hover {
397   text-decoration: none;
398 }
399
400 .count-number {
401   padding: 2px 5px;
402   border-radius: 3px;
403   background: #eee;
404   margin: 0 2px;
405   font-size: 11px;
406   color: #333;
407 }
408
409 /* Rules for greeting bar in the top right corner */
410
411 #greeting {
412   float: right;
413   height: 28px;
414   margin: 0px;
415   padding-right: 10px;
416   font-size: 13px;
417   line-height: 28px;
418 }
419
420 .greeting-bar-unread {
421   font-weight: bold;
422 }
423
424 /* Rules for the message shown in place of the map when javascript is disabled */
425
426 #noscript {
427   z-index: 20000000;
428   position: absolute;
429   top: 15px;
430   left: 15px;
431 }
432
433 /* Rules for Leaflet maps */
434
435 #map {
436   margin: 0px;
437   border: 0px;
438   padding: 0px;
439 }
440
441 #permalink {
442   z-index: 10000;
443   position: absolute;
444   bottom: 0px;
445   right: 0px;
446   padding: 5px;
447   background:#fff;
448   text-align: right;
449   font-size: 12px;
450 }
451
452 #permalink a {
453   padding: 5px;
454 }
455
456 .site-index .leaflet-top,
457 .site-export .leaflet-top {
458   top: 40px !important;
459
460   .leaflet-control {
461     margin-top: 0px !important;
462   }
463 }
464
465 .site-index #map .olControlScaleLine,
466 .site-export #map .olControlScaleLine {
467   left: 10px !important;
468 }
469
470 /* Rules for edit menu */
471
472 .menuicon {
473   padding: 5px;
474
475   &:hover {
476     background: #eee;
477     text-decoration: none !important;
478   }
479 }
480
481 .menu {
482   display: none;
483   z-index: 10000;
484   position: absolute;
485   background-color: #ffffff;
486   border: 1px solid #cccccc;
487   border-top: 0px;
488 }
489
490 .menu ul {
491   margin: 0px;
492   padding: 0px;
493 }
494
495 .menu li {
496   padding: 2px 5px;
497   margin: 0px;
498   list-style-type: none;
499   border-top: 1px solid #eee;
500   white-space: nowrap;
501 }
502
503 /* Rules for attribution text under the main map shown on printouts */
504
505 #attribution {
506   display: none;
507 }
508
509 .attribution_license {
510   text-align: left;
511 }
512
513 .attribution_notice {
514   text-align: center;
515 }
516
517 .attribution_project {
518   text-align: right;
519 }
520
521 /* Rules for the popout map sidebar */
522
523 #sidebar {
524   display: none;
525   position: absolute;
526   margin: 30px 0px 0px 0px;
527   padding: 0px;
528   border-right: 1px solid #ccc;
529   width: 30%;
530   top: 0px;
531   bottom: 0px;
532   left: 0px;
533 }
534
535 #sidebar #sidebar_content {
536   overflow: auto;
537   position: absolute;
538   font-size: 13px;
539   line-height: 15px;
540   top: 29px;
541   bottom: 0px;
542   left: 0px;
543   right: 0px;
544 }
545
546 #sidebar .sidebar_title {
547   margin: 0px;
548   padding: 3px 6px 4px 6px;
549   height: 29px;
550   font-size: 14px;
551   line-height: 15px;
552   background: #ccc;
553 }
554
555 #sidebar #sidebar_title {
556   text-align: left;
557 }
558
559 #sidebar #sidebar_close {
560   text-align: right;
561 }
562
563 /* Rules for the map key which appears in the popout sidebar */
564
565 #mapkey h3 {
566   font-size: 110%;
567   font-weight: normal;
568   text-align: center;
569 }
570
571 #mapkey .mapkey-table {
572   padding-left: 5px;
573   padding-right: 5px;
574 }
575
576 #mapkey .mapkey-table-key img {
577   display: block;
578   margin-left: auto;
579   margin-right: auto;
580 }
581
582 #mapkey .mapkey-table-value {
583   font-size: 90%;
584 }
585
586 /* Rules for search results which appear in the popout sidebar */
587
588 .search_searching {
589   margin-top: 5px;
590   margin-bottom: 5px;
591 }
592
593 .search_results_heading {
594   margin: 0px;
595   padding: 2px 5px;
596   border-bottom: 1px solid #ccc;
597   font-weight: bold;
598 }
599
600 .search_results_entry {
601   margin: 0px;
602   padding: 2px 5px;
603 }
604
605 .search_results_error {
606   margin: 0px;
607   padding: 2px 6px 0px;
608   color: #f00;
609 }
610
611 /* Rules for data browser information which appears in the popout sidebar */
612
613 .browse_heading {
614   margin: 0px;
615   padding: 3px 6px;
616   border: 1px solid #ccc;
617   background: #ddd;
618 }
619
620 .browse_details {
621   margin: 0px;
622   padding: 0px 6px;
623 }
624
625 /* Rules for export information which appears in the popout sidebar */
626
627 .export_heading {
628   margin: 0px;
629   padding: 2px 5px;
630   border-bottom: 1px solid #ccc;
631   font-weight: bold;
632 }
633
634 .export_bounds {
635   width: 100%;
636   text-align: center;
637 }
638
639 .export_bound {
640   margin: 5px;
641 }
642
643 .export_details {
644   padding: 2px 6px;
645 }
646
647 #export_osm {
648   display: none;
649 }
650
651 #export_mapnik {
652   display: none;
653 }
654
655 #export_osmarender {
656   display: none;
657 }
658
659 .export_hint {
660   padding: 0px 12px;
661   font-style: italic;
662 }
663
664 .export_buttons {
665   width: 100%;
666   text-align: center;
667 }
668
669 /* Rules for the main content area */
670
671 #content {
672   padding: 20px;
673   margin: 30px 0px 0px 185px;
674   border-left: 1px solid #ccc;
675   text-align: left;
676 }
677
678 .site-edit #content,
679 .site-index #content,
680 .site-export #content {
681   position: fixed;
682   margin-top: 0px;
683   left: 0px;
684   right: 0px;
685   top: 0px;
686   bottom: 0px;
687   padding: 0px;
688 }
689
690 .site-edit #content {
691   top: 30px;
692 }
693
694 #slim_container {
695   width: 100%;
696 }
697
698 #slim_container_content {
699   max-width: 50em;
700   background-color: #FFFFFF;
701   margin: 10px auto;
702   padding: 3px;
703   border-radius: 25px;
704   -moz-border-radius: 25px;
705   border: 1px solid #e6e6e6;
706 }
707
708 #slim_content {
709   margin: 10px;
710   margin-top: 90px;
711   max-width: 50em;
712 }
713
714 #slim_header {
715   margin: 10px;
716   position: absolute;
717   top: 0px;
718 }
719
720 #slim_header img {
721   vertical-align: middle;
722   margin-bottom: 5px;
723   margin-right: 5px;
724 }
725
726 /* Rules for text content pages */
727
728 .wide-table {
729   width: 100%;
730 }
731
732 /* Rules for the home page */
733
734 .site-index #map {
735   position: absolute;
736   top: 0px;
737   bottom: 0px;
738   left: 0px;
739   right: 0px;
740 }
741
742 .site-export #map {
743   position: absolute;
744   top: 0px;
745   bottom: 0px;
746   left: 0px;
747   right: 0px;
748 }
749
750 /* Rules for the edit page */
751
752 .site-edit #map {
753   position: absolute;
754   top: 0px;
755   bottom: 0px;
756   left: 0px;
757   right: 0px;
758   overflow: hidden;
759 }
760
761 /* Rules for the changeset list shown by the history tab etc */
762
763 #changeset_list_container {
764   position: relative;
765 }
766
767 #changeset_list {
768   width: 50%;
769   font-size: small;
770   border-collapse: collapse;
771   border-width: 0px;
772   margin-top: 1px;
773   margin-bottom: 1px;
774   text-align: left;
775 }
776
777 #changeset_list td {
778   vertical-align: top;
779   padding: 3px;
780 }
781
782 #changeset_list .date {
783   white-space: nowrap;
784 }
785
786 #changeset_list .user {
787   white-space: nowrap;
788 }
789
790 #changeset_list .area {
791   white-space: nowrap;
792 }
793
794 #changeset_list .selected {
795   background-color: rgb(255, 255, 160);
796   background-color: rgba(255, 255, 85, 0.5);
797 }
798
799 #changeset_list_map {
800   position: absolute;
801   float: right;
802   top: 0px;
803   bottom: 0px;
804   right: 0px;
805   width: 49%;
806   min-height: 400px;
807   border: solid 1px black;
808 }
809
810 /* Rules for the data browser */
811
812 #browse_navigation {
813   float: right;
814   width: 250px;
815   margin-left: 10px;
816   text-align: center;
817 }
818
819 table.browse_details th {
820   white-space: nowrap;
821 }
822
823 #browse_map {
824   float: right;
825   width: 250px;
826   text-align: right;
827   margin-left: 10px;
828 }
829
830 #browse_map #small_map {
831   width: 250px;
832   height: 300px;
833   border: solid 1px black;
834 }
835
836 #browse_map .geolink {
837   display: none;
838 }
839
840 /* Rules for the trace list shown by the traces tab etc */
841
842 #trace_list {
843   font-size: small;
844   border-collapse: collapse;
845   border-width: 0px;
846   text-align: right;
847 }
848
849 #trace_list .trace_summary {
850   font-size: 12px;
851   color: gray;
852 }
853
854 #trace_list .trace_pending {
855   color: red;
856 }
857
858 #trace_list .trace_public {
859   color: green;
860 }
861
862 #trace_list .trace_identifiable {
863   color: green;
864 }
865
866 #trace_list .trace_trackable {
867   color: red;
868 }
869
870 #trace_list .trace_private {
871   color: red;
872 }
873
874 /* Rules for the user list */
875
876 #user_list {
877   width: 100%;
878   font-size: small;
879 }
880
881 #user_list tr {
882   vertical-align: middle;
883 }
884
885 #user_list p {
886   margin-top: 0px;
887   margin-bottom: 0px;
888 }
889
890 #user_list_actions {
891   float: right;
892   margin-top: 10px;
893 }
894
895 /* Rules for the diary list */
896
897 .diary_entry-list img.user_image {
898   float: right;
899 }
900
901 .diary_entry-list img.user_thumbnail {
902   float: right;
903 }
904
905 /* Rules for the diary entry view */
906
907 .diary_entry-view img.user_image {
908   float: right;
909 }
910
911 .diary_entry-view img.user_thumbnail {
912   float: right;
913 }
914
915 /* Rules for the new diary entry page */
916
917 .diary_entry div#map {
918   position: relative;
919   width: 90%;
920   height: 400px;
921   border: 1px solid #ccc;
922   display: none;
923 }
924
925 /* Rules for the login page */
926
927 #login_wrapper div {
928   margin: 5px;
929   padding: 15px;
930   border-radius: 15px;
931   -moz-border-radius: 15px;
932 }
933
934 #login_login {
935   background-color: #f5f5ff;
936   border: 1px solid #f3f3ff;
937   border-radius: 15px;
938   -moz-border-radius: 15px;
939 }
940
941 #login_login h1 {
942   margin-top: 5px;
943 }
944
945 table#login_openid_buttons {
946   padding-bottom: 10px;
947 }
948
949 #login_openid_buttons td {
950   padding-left: 10px;
951   padding-right: 10px;
952   padding-top: 5px;
953   padding-bottom: 5px;
954 }
955
956 #login_openid_buttons img {
957   border: 0;
958 }
959
960 #login_signup form.button-to div {
961   margin: 0px;
962   padding: 0px;
963 }
964
965 /* Rules for the account confirmation page */
966
967 div#contributorTerms {
968   border: 1px solid black;
969   padding: 4px;
970   overflow: auto;
971   width: 95%;
972   height: 400px;
973 }
974
975 div#slim_content div#contributorTerms {
976   width: auto;
977 }
978
979 div#contributorTerms p#first {
980   margin-top: 0px;
981 }
982
983 div#contributorTerms p#last {
984   margin-bottom: 0px;
985 }
986
987 div#contributorTerms ol {
988   margin-bottom: 0px;
989 }
990
991 div#contributorTerms img {
992   display: block;
993   margin-left: auto;
994   margin-right: auto;
995   margin-top: 10%;
996 }
997
998 form#termsForm {
999   width: 95%;
1000   margin-bottom: 3em;
1001 }
1002
1003 form#termsForm div#buttons {
1004   float: right;
1005 }
1006
1007 form#termsForm input#agree {
1008   margin-left: 50px;
1009 }
1010
1011 div#slim_content form#termsForm {
1012   width: auto;
1013 }
1014
1015 p#contributorGuidance {
1016   background-color: #f5f5ff;
1017   border: 1px solid #f3f3ff;
1018   border-radius: 15px;
1019   -moz-border-radius: 15px;
1020   padding: 10px;
1021 }
1022
1023 /* Rules for the account settings page */
1024
1025 #accountForm {
1026   margin-top: 20px;
1027 }
1028
1029 #accountForm td {
1030   padding-bottom: 10px;
1031 }
1032
1033 #accountForm .user_map {
1034   position: relative;
1035   width: 500px;
1036   height: 400px;
1037   border: 1px solid #ccc;
1038 }
1039
1040 #accountForm td.accountImage {
1041   img {
1042     vertical-align: top;
1043     margin-top: 3px;
1044   }
1045
1046   table {
1047     display: inline-block;
1048
1049     td {
1050       padding-bottom: 0px;
1051     }
1052   }
1053 }
1054
1055 .nohome .location {
1056   display: none;
1057 }
1058
1059 #homerow .message {
1060   display: none;
1061 }
1062
1063 .nohome .message {
1064   display: inline !important;
1065 }
1066
1067 #accountForm input[type=submit] {
1068   margin-top: 15px;
1069 }
1070
1071 /* Rules for the user view */
1072
1073 .user-view img.user_image {
1074   float: right;
1075 }
1076
1077 .user-view .user_map {
1078   float: right;
1079   position: relative;
1080   width: 400px;
1081   height: 400px;
1082   border: 1px solid #ccc;
1083 }
1084
1085 .user-view .user_map p#no_home_location {
1086   position: absolute;
1087   top: 0px;
1088   bottom: 0px;
1089   width: 90%;
1090   height: 30%;
1091   margin: auto 5%
1092 }
1093
1094 /* Rules for the user map */
1095
1096 .user_map .leaflet-control-pan,
1097 .user_map .leaflet-control-zoomslider {
1098   display: none;
1099 }
1100
1101 .user_map .leaflet-control-zoom {
1102   display: block;
1103 }
1104
1105 /* Rules for user popups on maps */
1106
1107 .user_popup {
1108   min-width: 200px;
1109 }
1110
1111 .user_popup p {
1112   padding-top: 3px;
1113   padding-bottom: 3px;
1114   margin-top: 0px;
1115   margin-bottom: 0px;
1116   margin-left: 55px;
1117   margin-right: 2px;
1118 }
1119
1120 .user_popup img.user_thumbnail {
1121   float: left;
1122 }
1123
1124 /* Rules for message in/out box page */
1125
1126 .messages {
1127   width: 100%;
1128   border-collapse: collapse;
1129   border-spacing: 0px;
1130   border-width: 0px;
1131 }
1132
1133 .messages tbody tr {
1134   border-top: 1px solid #ccc;
1135 }
1136
1137 .messages .inbox-row {
1138   background: #eee;
1139 }
1140
1141 .messages tr td,
1142 .messages tr th {
1143   padding: 0px 5px;
1144 }
1145
1146 .inbox-row .inbox-mark-read {
1147   display: none;
1148 }
1149
1150 .info-line {
1151   border-bottom: 1px solid #ccc;
1152   padding: 5px 0px 4px 0px;
1153 }
1154
1155 .info-line form,
1156 .info-line form div {
1157   display: inline;
1158 }
1159
1160 .info-line .user_thumbnail_tiny {
1161   vertical-align: middle;
1162 }
1163
1164 .right {
1165   float: right;
1166 }
1167
1168 .inbox-row-unread .inbox-mark-unread {
1169   display: none;
1170 }
1171
1172 /* Rules for "flash" notice boxes shown at the top of the content area */
1173
1174 #error {
1175   border: 1px solid red;
1176   padding: 7px;
1177   background-color: #fff0f0;
1178   margin-bottom: 20px;
1179   border-radius: 5px;
1180   -moz-border-radius: 5px;
1181 }
1182
1183 #warning {
1184   border: 1px solid orange;
1185   padding: 7px;
1186   background-color: #fff6f0;
1187   margin-bottom: 20px;
1188   border-radius: 5px;
1189   -moz-border-radius: 5px;
1190 }
1191
1192 #notice {
1193   border: 1px solid green;
1194   padding: 7px;
1195   background-color: #f0fff0;
1196   margin-bottom: 20px;
1197   border-radius: 5px;
1198   -moz-border-radius: 5px;
1199 }
1200
1201 /* Rules for highlighting fields with rails validation errors */
1202
1203 .field_with_errors {
1204   padding: 2px;
1205   background-color: red;
1206   display: table;
1207 }
1208
1209 /* Rules for rails validation error boxes */
1210
1211 #errorExplanation {
1212   width: 400px;
1213   border: 2px solid red;
1214   padding: 7px;
1215   padding-bottom: 12px;
1216   margin-bottom: 20px;
1217   background-color: #f0f0f0;
1218 }
1219
1220 #errorExplanation h2 {
1221   font-weight: bold;
1222   font-size: 12px;
1223   padding: 5px 5px 5px 15px;
1224   margin: -7px;
1225   background-color: #c00;
1226   color: #fff;
1227   text-align: left;
1228 }
1229
1230 #errorExplanation p {
1231   color: #333;
1232   margin-bottom: 0px;
1233   padding: 5px;
1234 }
1235
1236 #errorExplanation ul li {
1237   font-size: 12px;
1238   list-style: square;
1239 }
1240
1241 /* Rules for forms */
1242
1243 .fieldName {
1244   vertical-align: top;
1245   font-weight: bold;
1246   font-size: 12px;
1247   line-height: 20px;
1248   text-align: right;
1249 }
1250
1251 .submitButton {
1252   text-align: right;
1253 }
1254
1255 .minorNote {
1256   font-size: 0.8em;
1257 }
1258
1259 input[type="text"],
1260 input[type="email"],
1261 input[type="url"],
1262 input[type="password"],
1263 textarea {
1264   border: 1px solid #ccc;
1265 }
1266
1267 input.openid_url {
1268   background: image-url('openid_input.png') repeat-y left white;
1269   padding-left: 16px;
1270 }
1271
1272 /* Rules for user images */
1273
1274 img.user_image {
1275   max-width: 100px;
1276   max-height: 100px;
1277   border: 1px solid #ccc;
1278 }
1279
1280 img.user_thumbnail {
1281   max-width: 50px;
1282   max-height: 100px;
1283   border: 1px solid #ccc;
1284 }
1285
1286 img.user_thumbnail_tiny {
1287   max-width: 25px;
1288   max-height: 25px;
1289   border: 1px solid #ccc;
1290 }
1291
1292 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1293
1294 .nowrap {
1295   white-space: nowrap;
1296 }
1297
1298 /* Rules for geo microformats */
1299
1300 abbr.geo {
1301   border-bottom: none;
1302 }
1303
1304 /* Rules for RSS buttons */
1305
1306 .rsssmall {
1307   position: relative;
1308   top: 4px;
1309 }
1310
1311 /* Rules for doing distinct colour of alternate table rows */
1312
1313 .table0 {
1314   background: #f6f6f6;
1315 }
1316
1317 .table1 {
1318   background: #fff;
1319 }
1320
1321 /* Rules for OpenID logo */
1322
1323 .openid_logo {
1324   vertical-align: text-bottom;
1325   border: 0;
1326 }
1327
1328 /* Rules for rich text editors */
1329
1330 .richtext_container {
1331   white-space: nowrap;
1332
1333   .richtext_content {
1334     display: inline-block;
1335     vertical-align: top;
1336
1337     .richtext_preview {
1338       display: inline-block;
1339       margin-top: 1px;
1340       margin-bottom: 1px;
1341       border: 4px solid #eee;
1342       background-color: #eee;
1343       white-space: normal;
1344
1345       &.loading {
1346         background-image: image-url("loading.gif");
1347         background-repeat: no-repeat;
1348         background-position: center;
1349       }
1350
1351       > :first-child {
1352         margin-top: 0px;
1353       }
1354     }
1355   }
1356
1357   .richtext_help {
1358     display: inline-block;
1359     vertical-align: top;
1360     background-color: #ddd;
1361     margin-left: 15px;
1362     padding: 5px 10px 10px 10px;
1363     font-size: 12px;
1364
1365     p {
1366       margin: 0px;
1367     }
1368
1369     th {
1370       vertical-align: top;
1371       text-align: left;
1372       padding: 0px 15px 0px 0px !important;
1373     }
1374
1375     td {
1376       text-align: left;
1377       font-family: fixed;
1378       line-height: 16px;
1379       padding: 0px !important;
1380     }
1381
1382     input.richtext_doedit {
1383       margin-top: 5px !important;
1384       margin-right: 10px !important;
1385     }
1386
1387     input.richtext_dopreview {
1388       margin-top: 5px !important;
1389       margin-left: 10px !important;
1390     }
1391   }
1392 }