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