]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
Replace `:nothing => true` with `:text => ""`
[rails.git] / app / assets / stylesheets / common.css.scss
1 /* Parameters */
2 $lineheight: 20px;
3 $typeheight: 14px;
4
5 $offwhite: #f4f4ff;
6 $blue: #7092FF;
7 $lightblue: #B8C5F0;
8 $grey: #AAA;
9 $keyline: #CCC;
10 $hovercolor: 20%;
11
12 /* Styles common to large and small screens */
13
14 /* Minimal CSS reset */
15
16 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input {
17   margin: 0;
18   padding: 0;
19   border: 0;
20   font-size:100%;
21 }
22
23 fieldset,img { border: 0; }
24
25 legend { color: #000; }
26
27 sup { vertical-align: text-top; }
28
29 sub { vertical-align: text-bottom; }
30
31 table {
32   border-collapse: collapse;
33   border-spacing: 0;
34 }
35
36 li { list-style: none; }
37
38 input,
39 select,
40 textarea,
41 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
42
43 abbr, acronym {
44   border-bottom: .1em dotted;
45   cursor: help;
46 }
47
48 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
49
50 .clearfix:before,
51 .clearfix:after {
52     content: " ";
53     display: table;
54 }
55
56 .clearfix:after {
57     clear: both;
58 }
59
60 /* Default rules for the body of every page */
61
62 * {
63   -moz-box-sizing: border-box;
64   -webkit-box-sizing: border-box;
65   box-sizing: border-box;
66 }
67
68 body {
69   font-family: 'Helvetica Neue',Arial,sans-serif;
70   font-size: $typeheight;
71   line-height: 1.6666;
72   color: #222;
73   background-color: #fff;
74   margin: 0px;
75   padding: 0px;
76   text-align: left;
77 }
78
79 body.slim {
80   background-color: #f0f0f0;
81 }
82
83 h1, h2, h3 {
84   margin-top: $lineheight/2;
85   margin-bottom: $lineheight;
86   font-weight: bold;
87   line-height: 1.2;
88 }
89
90 h1, h2 {
91   font-size: 32px;
92 }
93
94 #content h2 {
95   font-size: 21px;
96 }
97
98 h3 {
99   font-size: 21px;
100   margin-top: $lineheight/2;
101   margin-bottom: $lineheight;
102 }
103
104 h4,h5,h6 {
105   font-size: $typeheight;
106   margin-top: $lineheight/2;
107   margin-bottom: $lineheight/2;
108   font-weight: bold;
109   line-height: 1.5;
110 }
111
112 p, ul {
113   margin-bottom: $lineheight;
114 }
115
116 p > img {
117   width: auto;
118   max-width: 100%;
119 }
120
121 small, aside {
122   font-size: 12px;
123 }
124
125 h1:first-child,
126 h2:first-child,
127 h3:first-child,
128 h4:first-child,
129 h5:first-child,
130 h6:first-child {
131   margin-top: 0;
132 }
133
134 .column-1 {
135   width: 50%;
136   margin: 0 0 $lineheight/2 0;
137 }
138
139 .small_icon {
140   vertical-align: middle;
141   margin-right: $lineheight/4;
142 }
143
144 /* Rules for links */
145
146 a {
147   color: #00f;
148   text-decoration: none;
149   &:hover {
150     text-decoration: underline;
151   }
152 }
153
154 /* Rules for horizontal lines */
155
156 hr {
157   border: none;
158   background-color: #ccc;
159   color: #ccc;
160   height: 1px;
161 }
162
163 /* General styles for tables */
164
165 table {
166   width: 100%;
167   margin-bottom: $lineheight;
168   th, td {
169     text-align: left;
170     padding: $lineheight/4;
171     line-height: $lineheight;
172   }
173   th {
174     font-weight: bold;
175     vertical-align: top;
176   }
177   td {
178     vertical-align: middle;
179   }
180 }
181
182 /* Rules for the whole left sidebar, including the logo */
183
184 #left {
185   position: absolute;
186   height: 100%;
187   width: 185px;
188   font-size: 11px;
189   line-height: 1.1;
190   z-index: 100;
191   border-right: 1px solid #ccc;
192 }
193
194 /* Rules for the OpenStreetMap logo in the top left corner */
195
196 #logo {
197   display: block;
198   width: 170px;
199   min-width: 170px;
200   padding: $lineheight $lineheight/4;
201   text-align: center;
202   margin: auto;
203 }
204
205 #logo h1 {
206   font-size: 18px;
207   line-height: 1;
208   text-align: center;
209   margin: 0;
210 }
211
212 #logo h2 {
213   font-size: $lineheight/2;
214   line-height: 15px;
215   margin: 0;
216 }
217
218 /* Rules for the site name */
219
220 #small-title {
221   display: none;
222 }
223
224 /* Rules for the introductory text displayed in the left sidebar to new users */
225
226 .sidebar-copy {
227   padding: $lineheight/4 $lineheight/2;
228   p {
229     margin: $lineheight/4 0;
230   }
231 }
232 .sidebar-copy.intro {
233   border-top: 1px solid #ccc;
234 }
235
236 /*
237  * Rules for alert boxes shown in the left sidebar when important
238  * information needs to be conveyed such as when the site is
239  * undergoing maintenance.
240  */
241
242 .sidebar-alert {
243   padding: $lineheight/4;
244   border-top: 1px solid #ccc;
245   margin-top: 4px;
246   margin-bottom: -5px;
247   background: #e00;
248   font-size: 12px;
249   font-weight: bold;
250   p {
251     margin: $lineheight/4;
252   }
253 }
254
255 /*
256  * Rules for notice boxes shown in the left sidebar when important, but
257  * non-critical information needs to be conveyed such as notices about
258  * donation drives.
259  */
260
261 .sidebar-notice {
262   padding: $lineheight/4;
263   border-top: 1px solid #ccc;
264   margin-top: 4px;
265   margin-bottom: -5px;
266   background: #ea0;
267   font-size: 12px;
268   p {
269     margin: $lineheight/4;
270   }
271 }
272
273 /* Rules for the menu displayed in the left sidebar */
274
275 .left_menu {
276   left: 0px;
277   margin: 0;
278   padding: $lineheight/4 $lineheight/2;
279   font-size: 12px;
280   line-height: 1.25;
281   list-style-type: none;
282   border-bottom: 1px solid #ccc;
283   border-top: 1px solid #ccc;
284   img {
285     margin: $lineheight/2 0px;
286   }
287
288   ul {
289     padding: 0;
290     margin: 0;
291   }
292
293   li {
294     list-style-type: none;
295     padding: 0;
296     margin: 0;
297   }
298
299   h4 {
300     padding: $lineheight/4 0 $lineheight/4 0;
301     font-size: 12px;
302     margin: 0;
303   }
304
305   li:last-child h4 {
306     padding-top: 0;
307   }
308 }
309
310 /* Rules for SOTM advert */
311
312 #sotm {
313   width: 165px;
314   margin: $lineheight/2;
315   padding: 0px;
316   border: 0px;
317   background: #fff;
318   img {
319     width: 165px;
320   }
321 }
322
323 /*
324  * Rules for "optional boxes" which appear in the left sidebar on
325  * certain pages. Current users are the seach box on the main page
326  * and the tag cloud on the traces pages.
327  */
328
329 .optionalbox {
330   left: 0px;
331   padding: $lineheight/4 $lineheight/2;
332   margin: $lineheight/4 0;
333   text-align: left;
334 }
335
336 /* Rules for the search box */
337
338 #search_field {
339   position: relative;
340
341   form {
342     width: 165px;
343   }
344
345   input[type="text"] {
346     width: 165px;
347     padding: 3px;
348     font-size: $typeheight;
349     line-height: 1.1;
350     height: 25px;
351     padding: 2px 0px 2px $lineheight/4;
352     box-shadow: inset #DDD 0px 1px 3px;
353   }
354
355   input[type="text"]:focus {
356     outline: none;
357     border: 1px solid #000;
358   }
359
360   input[type="submit"] {
361     border: 0;
362     margin: 0;
363     padding: 0;
364     width: 15px;
365     height: 15px;
366     min-width: 0;
367     text-indent: -1000px;
368     overflow: hidden;
369     background: image-url("sprite.png") 0 0 no-repeat;
370     position: absolute;
371     top: $lineheight/4;
372     right: $lineheight/4;
373     cursor: pointer;
374   }
375 }
376
377 .search_help {
378   margin: $lineheight/4 0 0 0;
379 }
380
381 /* Utility for de-emphasizing content */
382
383 .deemphasize {
384   color: #999;
385   a {
386     color: $blue;
387   }
388 }
389
390 /* Rules for donation request box */
391
392 .donate {
393   display: block;
394   width: 163px;
395   padding: $lineheight/4;
396   border: 1px solid #AED1A0;
397   background: #cbeea7;
398   font-size: $typeheight;
399   line-height: 1.4;
400   text-align: center;
401   border-radius: 2px;
402   color: #222;
403   margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
404
405   &:hover {
406     background: #9ed485;
407     text-decoration: none;
408   }
409   span {
410     margin: 0;
411     padding-left: 18px;
412     background: image-url("sprite.png") 0 -29px no-repeat;
413   }
414 }
415
416 /* Rules for Creative Commons logo button */
417
418 #cclogo {
419   margin: $lineheight/2 0;
420   float: right;
421 }
422
423 /* Rules for tabbed navigation bar */
424
425 #top-bar {
426   position: relative;
427   margin-left: 185px;
428   height: 30px;
429   border-bottom: 1px solid #ccc;
430   background: white;
431   z-index: 100;
432 }
433
434 .site-edit #top-bar,
435 .site-index #top-bar,
436 .site-export #top-bar {
437   position: fixed;
438   left: 0;
439   right: 0;
440 }
441
442 #tabnav {
443   height: 29px;
444   margin-bottom:0;
445   overflow: hidden;
446   li {
447     display: inline;
448   }
449   a, a:link, a:visited {
450     float: left;
451     font-weight: bold;
452     padding: 3px $lineheight/2;
453     text-decoration: none;
454     color: #333;
455     float: left;
456     margin-right: 1px;
457     -webkit-transition: color 200ms ease-in;
458        -moz-transition: color 200ms ease-in;
459          -o-transition: color 200ms ease-in;
460             transition: color 200ms ease-in;
461   }
462 }
463
464 .site-index #tabnav a#viewanchor,
465 .site-edit #tabnav a#editanchor,
466 .changeset-list #tabnav a#historyanchor,
467 .site-export #tabnav a#exportanchor {
468   border-bottom: 1px solid #aaa;
469   background: #9ed485;
470   color: #000;
471 }
472
473 #tabnav a:link:hover, #tabnav a:visited:hover {
474   text-decoration: underline;
475 }
476
477 #tabnav a:link.disabled,
478 #tabnav a:visited.disabled,
479 #tabnav a:link:hover.disabled,
480 #tabnav a:visited:hover.disabled {
481   color: #ccc;
482   cursor: default;
483   &:hover {
484     text-decoration: none;
485   }
486 }
487
488 /* Utility for styling notification numbers */
489
490 .count-number {
491   padding: 2px $lineheight/4;
492   border-radius: 2px;
493   background: #d7d7ff;
494   margin: 0 2px;
495   font-size: 11px;
496   color: #333;
497 }
498
499 /* Rules for greeting bar in the top right corner */
500
501 #greeting {
502   float: right;
503   padding-top: 3px;
504   margin-right: $lineheight/4;
505 }
506
507 .greeting-bar-unread {
508   font-weight: bold;
509 }
510
511 /* Rules for the message shown in place of the map when javascript is disabled */
512
513 #noscript {
514   z-index: 20000000;
515   position: absolute;
516   top: 15px;
517   left: 15px;
518 }
519
520 /* Rules for Leaflet maps */
521 .leaflet-control-layers-expanded {
522   padding: 10px !important;
523 }
524
525 .leaflet-control-layers-separator {
526   margin: 5px -10px !important;
527 }
528
529 .leaflet-control-attribution {
530   a.disabled {
531     color: #99c9dc;
532     cursor: default;
533     text-decoration: none;
534   }
535
536   ul.secondary-actions {
537     float: left;
538     margin-right: $lineheight/4;
539
540     &:only-child {
541       margin-right: 0px;
542     }
543   }
544 }
545
546 .site-index .leaflet-top,
547 .site-export .leaflet-top {
548   top: $lineheight/2 !important;
549   .leaflet-control {
550     margin-top: 0px !important;
551   }
552 }
553
554 .site-index #map .olControlScaleLine,
555 .site-export #map .olControlScaleLine {
556   left: $lineheight/2 !important;
557 }
558
559 .leaflet-popup-scrolled {
560   padding-right: $lineheight;
561   border-bottom: 0px !important;
562   border-top: 0px !important;
563 }
564
565 .leaflet-popup-content-wrapper {
566   border-radius: 4px !important;
567   -webkit-border-radius: 4px !important;
568 }
569
570 /* Rules for edit menu */
571
572 .menuicon {
573   padding: 0 $lineheight/4;
574   font-weight: normal;
575   display: inline-block;
576   &:hover {
577     text-decoration: none !important;
578   }
579 }
580
581 .menu {
582   display: none;
583   z-index: 10000;
584   position: absolute;
585   background-color: #ffffff;
586   border: 1px solid $keyline;
587   border-top: 0px;
588   ul {
589     margin: 0px;
590   }
591   li {
592     padding: 2px $lineheight/4;
593     border-top: 1px solid #eee;
594     white-space: nowrap;
595   }
596 }
597
598 /* Rules for attribution text under the main map shown on printouts */
599
600 #attribution {
601   display: none;
602 }
603
604 .attribution_license,
605 .attribution_project {
606   text-align: left;
607 }
608
609 .attribution_notice {
610   text-align: center;
611 }
612
613 /* Rules for the popout map sidebar */
614
615 #sidebar {
616   display: none;
617   position: absolute;
618   overflow: auto;
619   top: 0px;
620   bottom: 0px;
621   left: 0px;
622   border-right: 1px solid $keyline;
623   width: 33.3333%;
624   .sidebar_heading {
625     position: relative;
626     padding: $lineheight/2 $lineheight;
627     z-index: 9999;
628     background: $offwhite;
629     border-bottom: 1px solid #ccc;
630   }
631   h4 {
632     margin: 0;
633   }
634   ul {
635     margin-bottom: 0;
636     &:last-child {
637         border-bottom: 1px solid #ccc;
638     }
639     li {
640       margin-bottom: $lineheight/4;
641       &:last-child {
642         margin-bottom: 0;
643       }
644     }
645   }
646 }
647
648 #sidebar_close {
649   position: absolute;
650   height: $lineheight;
651   top: 0px;
652   bottom: 0;
653   right: $lineheight;
654   margin: auto;
655 }
656
657 #sidebar_content {
658   position: relative;
659   margin-bottom: 20px;
660   width: 100%;
661   h4 {
662     padding: 0 $lineheight $lineheight/2 $lineheight;
663     margin-top: $lineheight/2;
664     margin-bottom: 0;
665     border-bottom: 1px solid #ddd;
666   }
667 }
668
669 /* Rules for the map key which appears in the popout sidebar */
670
671 #mapkey {
672   padding: $lineheight $lineheight 0 $lineheight;
673  .mapkey-table-key img {
674     display: block;
675     margin-left: auto;
676     margin-right: auto;
677   }
678   td {
679     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
680   }
681 }
682
683 /* Rules for search results which appear in the popout sidebar */
684
685 .search_searching {
686   margin-top: $lineheight/4;
687   margin-bottom: $lineheight/4;
688 }
689
690 .search_results_entry {
691   margin-bottom: 0;
692
693   .search_details {
694     display: block;
695     text-align: right;
696   }
697 }
698
699 .search_results_entry .search_searching {
700   text-align: center;
701   margin: $lineheight auto;
702   width: $lineheight;
703   display: block;
704 }
705
706 ul.results-list li { border-bottom: 1px solid #ccc; }
707
708 .search_results_error {
709   color: #f00;
710 }
711
712 /* Rules for data browser information which appears in the popout sidebar */
713
714 #browse_content {
715   position: relative;
716   .browse_show_list.button {
717     position: absolute;
718     left: $lineheight;
719     right: $lineheight;
720     bottom: -40px;
721     margin-bottom: 0;
722   }
723   a.more-details {
724     position: absolute;
725     top: 0;
726     right: $lineheight;
727   }
728   ul li {
729     margin-bottom: 0;
730   }
731 }
732
733 .browse_details {
734   position: relative;
735 }
736
737 .browse_status {
738   display: none;
739 }
740
741 /* Rules for export information which appears in the popout sidebar */
742
743 .export_bounds {
744   text-align: center;
745 }
746
747 .export_area_inputs {
748   margin-bottom: $lineheight/2;
749   input[type="text"] {
750     width: 60px;
751     margin-bottom: 5px;
752   }
753 }
754
755 .export_bound {
756   margin: $lineheight/4;
757 }
758
759 .export_details input[type="text"]#export_html_text {
760   width: 100%;
761 }
762
763 #sidebar #marker_inputs li:last-child {
764   margin-bottom: $lineheight/2;
765 }
766
767 #export_osm,
768 #export_mapnik,
769 #export_osmarender {
770   display: none;
771 }
772
773 /* Rules for the main content area */
774
775 #content {
776   padding: $lineheight;
777   position: relative;
778 }
779
780 .site-edit #content,
781 .site-index #content,
782 .site-export #content {
783   position: fixed;
784   padding: 0;
785   top: 30px; bottom: 0;
786   left: 184px; right: 0;
787   border-left: 1px solid #ccc;
788 }
789
790 .wrapper {
791   margin-left: 184px;
792   border-left: 1px solid #ccc;
793   text-align: left;
794 }
795
796 .site-edit #content {
797   top: 30px;
798 }
799
800 #content.maximised {
801   top: 0;
802   left: 0;
803   right: 0;
804   bottom: 0;
805   border: 0;
806   z-index: 1000;
807 }
808
809 #slim_container {
810   width: 100%;
811 }
812
813 #slim_container_content {
814   max-width: 50em;
815   background-color: #FFFFFF;
816   margin: $lineheight/2 auto;
817   padding: 3px;
818   border-radius: 25px;
819   -moz-border-radius: 25px;
820   border: 1px solid #e6e6e6;
821 }
822
823 #slim_content {
824   margin: $lineheight/2;
825   margin-top: 95px;
826   max-width: 50em;
827
828   .content-heading {
829     margin-bottom: 15px;
830   }
831 }
832
833 #slim_header {
834   margin: 30px $lineheight/2;
835   position: absolute;
836   top: 0px;
837   margin-right: $lineheight/4;
838   img {
839     vertical-align: middle;
840     margin-bottom: $lineheight/4;
841     margin-right: $lineheight/4;
842   }
843 }
844
845 .content-heading {
846   position: relative;
847   padding: $lineheight;
848   background: $offwhite;
849   h1, h2 {
850     margin-bottom: $lineheight/2;
851     line-height: 100%;
852     &:last-child {
853       margin-bottom: 0;
854     }
855   }
856   p {
857     margin-top: $lineheight/2;
858     margin-bottom: 0px;
859   }
860 }
861
862 /* Rules for small maps in content areas */
863
864 .content_map {
865   position: relative;
866   width: 45%;
867   height: 400px;
868   border: 1px solid #ccc;
869   margin-bottom: $lineheight;
870   float: right;
871 }
872
873 .content_map #small_map {
874   height: 100%;
875   width: 100%;
876   margin-bottom: $lineheight;
877 }
878
879 /* Rules for the home page */
880
881 .site-export #map,
882 .site-index #map {
883   position: absolute;
884   top: 0px;
885   bottom: 0px;
886   left: 0px;
887   right: 0px;
888 }
889
890 /* Rules for the edit page */
891
892 .site-edit #map {
893   position: absolute;
894   top: 0px;
895   bottom: 0px;
896   left: 0px;
897   right: 0px;
898   overflow: hidden;
899 }
900
901 /* Rules for the changeset list shown by the history tab etc */
902
903 #changeset_list {
904   width: 100%;
905   ul {
906     padding: $lineheight/2 0;
907     margin-bottom: 0px;
908     border-top: 1px solid #ccc;
909     &:last-child {
910       border-bottom: 1px solid #ccc;
911     }
912   }
913   .selected {
914     background: #FFFFC0;
915   }
916   .date,
917   .user {
918     border-left: 1px solid #ccc;
919     padding-left: $lineheight/4;
920     margin-right: $lineheight/4;
921   }
922 }
923
924 #changeset_list_map_wrapper {
925   position: absolute;
926   width: 50%;
927   height: 490px;
928   top: 0;
929   right: 0;
930 }
931
932 #changeset_list_map_wrapper.scrolled {
933   position: fixed;
934 }
935
936 #changeset_list_map {
937   position: absolute;
938   bottom: $lineheight;
939   top: $lineheight;
940   right: $lineheight;
941   left: $lineheight;
942   border: 1px solid #ccc;
943 }
944
945 #changeset_list_map_wrapper.scrolled #changeset_list_map {
946   margin-left: 93px;
947 }
948
949 /* Rules for the data browser */
950
951 .browse-section {
952   border-top: 1px solid #ccc;
953   margin-top: $lineheight/2;
954   padding-top: $lineheight/2;
955   &:first-child {
956     margin-top: 0;
957   }
958   .warning {
959     background-color: #ffe0cc;
960     margin: 0px;
961     padding: 4px 6px;
962     max-width: 100%;
963   }
964   h4, p {
965     margin-bottom: $lineheight/4;
966   }
967   ul, .bbox, .geo {
968     display: inline-block;
969     vertical-align: top;
970     max-width: 65%;
971   }
972   ul p {
973     margin-left: 0;
974     margin-bottom: 0;
975   }
976   h4 {
977     float: left;
978     width: 33.3333%;
979     display: inline-block;
980     vertical-align: top;
981   }
982 }
983
984 .bbox {
985   div {
986     width: 33.3333%;
987     text-align: center;
988     padding: $lineheight/4 0;
989     overflow: hidden;
990     text-overflow: ellipsis;
991     float: left;
992   }
993   .max_lat,
994   .min_lat {
995     margin-left: auto;
996     margin-right: auto;
997     width: 100%;
998   }
999 }
1000
1001 #browse_map .geolink {
1002   display: none;
1003 }
1004
1005 #browse_map .secondary-actions {
1006   margin-bottom: $lineheight/2;
1007 }
1008
1009 /* Rules for the trace list shown by the traces tab etc */
1010
1011 #trace_list {
1012   font-size: $lineheight/2;
1013   border-width: 0px;
1014   text-align: right;
1015
1016   .trace_summary {
1017     font-size: 12px;
1018     color: gray;
1019   }
1020
1021   .trace_pending {
1022     color: red;
1023   }
1024
1025   .trace_public {
1026     color: green;
1027   }
1028
1029   .trace_identifiable {
1030     color: green;
1031   }
1032
1033   .trace_trackable {
1034     color: red;
1035   }
1036
1037   .trace_private {
1038     color: red;
1039   }
1040 }
1041
1042 /* Rules for the user profile page */
1043
1044 #userinformation {
1045
1046   min-height: 100px;
1047   .userinformation-inner {
1048     float: left;
1049   }
1050   h2 {
1051     margin-top: 0;
1052   }
1053   .user-description {
1054     width: 100%;
1055     clear: both;
1056   }
1057   .deemphasize {
1058     margin: 0;
1059   }
1060 }
1061
1062 .admin-user-info small {
1063   margin-bottom: $lineheight/2;
1064   display: inline;
1065   margin-right: $lineheight;
1066 }
1067
1068 .activity-block {
1069   clear: left;
1070   border-bottom: 1px solid #ccc;
1071   padding-bottom: $lineheight;
1072   float: left;
1073   h3 {
1074     margin-bottom: $lineheight/2;
1075   }
1076 }
1077
1078 .contact-activity {
1079   margin-top: $lineheight;
1080   width: 100%;
1081 }
1082
1083 .activity-details p {
1084   margin-left: 70px;
1085   margin-bottom: 0;
1086 }
1087
1088 #friends-container .contact-activity ul {
1089   margin-left: 70px;
1090 }
1091
1092 .user-view {
1093   p#no_home_location {
1094     margin: $lineheight;
1095   }
1096   .user_thumbnail {
1097     margin-top: $lineheight/4;
1098     float: left;
1099   }
1100 }
1101
1102 /* Rules for the user map */
1103
1104 .content_map .leaflet-popup-content {
1105   margin: $lineheight/2;
1106   min-height: 50px;
1107 }
1108
1109 /* Rules for user popups on maps */
1110
1111 .user_popup {
1112   min-width: 200px;
1113   p {
1114     padding: 0 0 5px 0;
1115     margin-top: 0 0 0 60px;
1116     font-size: 12px;
1117   }
1118   img.user_thumbnail {
1119     float: left;
1120     margin: 0 $lineheight/2 0 0;
1121   }
1122 }
1123
1124 /* Rules for the user list */
1125
1126 #user_list {
1127   font-size: $lineheight/2;
1128   width: 100%;
1129
1130   tr {
1131     vertical-align: middle;
1132   }
1133
1134   p {
1135     margin-top: 0px;
1136     margin-bottom: 0px;
1137   }
1138 }
1139
1140 #user_list_actions {
1141   float: right;
1142   margin-top: $lineheight/2;
1143 }
1144
1145 /* Rules for the diary list page */
1146
1147 .diary_entry-list img.user_thumbnail {
1148   float: left;
1149 }
1150
1151 .diary_post {
1152   max-width: 740px;
1153   position: relative;
1154   margin-top: $lineheight/2;
1155   padding-top: $lineheight;
1156   border-top: 1px solid #ccc;
1157
1158   &:first-child {
1159     margin-top: 0;
1160     border-top: 0;
1161     padding-top: 0;
1162   }
1163   h1, h2 {
1164     font-size: 21px;
1165     line-height: 1;
1166   }
1167   small.deemphasize {
1168     float: left;
1169     display: block;
1170   }
1171   ul.secondary-actions { display: inline-block;}
1172 }
1173
1174 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1175   display: inline;
1176 }
1177
1178 #content  .post_heading {
1179   margin-bottom: $lineheight;
1180   h2 {
1181     margin-top: 0;
1182     margin-bottom: $lineheight/2;
1183     font-size: 24px;
1184   }
1185 }
1186
1187 /* Rules for the diary entry page */
1188
1189 .diary_entry {
1190   #map {
1191     position: relative;
1192     width: 90%;
1193     height: 400px;
1194     border: 1px solid #ccc;
1195     display: none;
1196     margin-bottom: $lineheight;
1197   }
1198   #newcomment {
1199     border-top: 1px solid #ccc;
1200     padding-top: $lineheight;
1201     margin-top: $lineheight/2;
1202   }
1203   .comments {
1204     max-width: 740px;
1205   }
1206   .diary-comment {
1207     margin-top: $lineheight/2;
1208     border-top: 1px dashed #ccc;
1209     padding-top: $lineheight/2;
1210     &:first-child {
1211       margin-top: $lineheight;
1212       padding-top: $lineheight;
1213       border-top: 1px solid #ccc;
1214     }
1215     p {
1216       margin-bottom: $lineheight/2;
1217     }
1218     .comment-heading {
1219       margin-bottom: 0;
1220       margin-top: 0;
1221     }
1222   }
1223 }
1224
1225 .diary_entry-view img.user_thumbnail {
1226   float: left;
1227 }
1228
1229 /* Rules for the login page */
1230
1231 #login_openid_buttons {
1232   margin-bottom: 0;
1233 }
1234
1235 #login_openid_buttons li {
1236   float: left;
1237   padding: $lineheight/4 $lineheight/2;
1238 }
1239
1240 /* Rules for the account confirmation page */
1241
1242 #terms {
1243   .legale {
1244     border: 1px solid #ccc;
1245     padding: $lineheight;
1246     margin-bottom: $lineheight;
1247     overflow: auto;
1248     height: 10em;
1249
1250     &:p#last {
1251       margin-bottom: 0px;
1252     }
1253
1254     &:ol {
1255       margin-bottom: 0px;
1256     }
1257
1258     &:img {
1259       display: block;
1260       margin: $lineheight auto inherit auto;
1261     }
1262   }
1263
1264   form.sign {
1265     input[type=submit] {
1266       float: left;
1267     }
1268     #decline {
1269       background: $grey;
1270       &:hover {
1271         background: darken($grey, $hovercolor);
1272       }
1273     }
1274   }
1275   fieldset {
1276     margin-bottom: $lineheight;
1277   }
1278   #contributorGuidance {
1279     background-color: $offwhite;
1280     border-radius: 4px;
1281     -moz-border-radius: 4px;
1282   }
1283   .signing-buttons {
1284     height: 50px;
1285   }
1286 }
1287
1288 /* Rules for the account settings page */
1289
1290 #accountForm .user_map {
1291   position: relative;
1292   width: 500px;
1293   height: 400px;
1294   border: 1px solid #ccc;
1295 }
1296
1297 #accountForm .user_image {
1298   margin-bottom: 0;
1299 }
1300
1301 #accountForm #user_image {
1302   margin-left: 20px;
1303 }
1304
1305 #accountForm ul.accountImage-options {
1306   margin-left: 120px;
1307 }
1308
1309 .nohome .location {
1310   display: none;
1311 }
1312
1313 #homerow .message {
1314   display: none;
1315 }
1316
1317 .nohome .message {
1318   display: inline !important;
1319 }
1320
1321 .content_map.settings_map {
1322   width: 50%;
1323   float: none;
1324 }
1325
1326 /* Rules for the oauth settings page */
1327
1328 .oauth_clients .buttons .oauth-edit {
1329   border-radius: 2px 0 0 2px;
1330 }
1331
1332 .oauth_clients .buttons .oauth-delete {
1333   border-radius: 0 2px 2px 0;
1334 }
1335
1336 /* Rules for messages pages */
1337
1338 .messages {
1339   width: 100%;
1340   border: 1px solid #ddd;
1341
1342   input[type="submit"] {
1343     margin: auto;
1344   }
1345   tbody tr {
1346     border-top: 1px solid #ccc;
1347   }
1348
1349   .inbox-row {
1350     background: #f8f8ff;
1351   }
1352
1353   .inbox-row-unread {
1354     background:#CBEEA7;
1355   }
1356
1357   .right {
1358     float: right;
1359   }
1360
1361   tr td,
1362   tr th {
1363     padding: $lineheight/4;
1364   }
1365   p:last-child,
1366   h2:last-child,
1367   h3:last-child,
1368   ol:last-child,
1369   ul:last-child {
1370     margin-bottom:0;
1371   }
1372   tr td {
1373     height: 30px;
1374     border-right: 1px solid $keyline;
1375   }
1376 }
1377
1378 .inbox-row .inbox-mark-read {
1379   display: none;
1380 }
1381
1382 .info-line {
1383   margin-bottom: $lineheight;
1384   padding: $lineheight/4 0px 4px 0px;
1385   border-bottom: 1px solid #ccc;
1386
1387   form, form div {
1388     display: inline;
1389   }
1390 }
1391
1392 .info-line .user_thumbnail_tiny {
1393   vertical-align: middle;
1394 }
1395
1396 .inbox-mark-unread,
1397 .inbox-mark-read,
1398 .inbox-delete {
1399   width: 1%;
1400 }
1401
1402 .inbox-row-unread .inbox-mark-unread {
1403   display: none;
1404 }
1405
1406 .message-read .message-buttons {
1407   margin-top: $lineheight;
1408   padding-top: $lineheight;
1409   border-top: 1px solid $keyline;
1410 }
1411
1412 .message-read .buttons .mark-unread-button {
1413   border-radius: 0;
1414 }
1415
1416 /* Rules for "flash" notice boxes shown at the top of the content area */
1417
1418 .flash {
1419     padding: $lineheight;
1420   &#error {
1421     background-color: #ff7070;
1422   }
1423   &#warning {
1424     background-color: #ffe0cc;
1425   }
1426   &#notice {
1427     background-color: #CBEEA7;
1428   }
1429 }
1430
1431 /* Rules for highlighting fields with rails validation errors */
1432
1433 .field_with_errors {
1434   padding: 2px;
1435   background-color: #ff7070;
1436   display: table;
1437 }
1438
1439 /* Rules for rails validation error boxes */
1440
1441 #errorExplanation {
1442   width: 400px;
1443   border: 2px solid #ff7070;
1444   padding: 0 $lineheight/2;
1445   margin-bottom: $lineheight;
1446   background-color: #f0f0f0;
1447
1448   h2 {
1449     margin: 0 -10px 10px -10px;
1450     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1451     font-weight: bold;
1452     font-size: 12px;
1453     background-color: #c00;
1454     color: #fff;
1455     text-align: left;
1456   }
1457
1458   p {
1459     color: #333;
1460     margin-bottom: 0px;
1461     padding: $lineheight/4;
1462   }
1463
1464   ul {
1465     padding-left: $lineheight;
1466
1467     li {
1468       font-size: 12px;
1469       list-style: disc;
1470     }
1471   }
1472 }
1473
1474 /* Rules for forms */
1475
1476 .standard-form {
1477   fieldset {
1478     margin-bottom: $lineheight;
1479   }
1480   label.standard-label {
1481     display: block;
1482     margin-bottom: $lineheight/4;
1483     font-size: $typeheight;
1484     font-weight: bold;
1485     line-height: 1.5;
1486   }
1487   label.standard-label.secondary {
1488     display: inline-block;
1489     font-weight: normal;
1490   }
1491   .form-help {
1492     font-weight: normal;
1493   }
1494   .form-column {
1495     float: left;
1496     margin-right: 20px;
1497   }
1498   .form-divider {
1499     margin-top: $lineheight;
1500     padding-top: $lineheight;
1501     border-top: 1px solid $keyline;
1502   }
1503   .form-row {
1504     margin-bottom: $lineheight/2;
1505   }
1506   .form-list {
1507     margin-bottom: 0;
1508   }
1509   .form-list li {
1510     margin-bottom: 5px;
1511    }
1512   input[type="checkbox"],
1513   input[type="radio"] {
1514     float: left;
1515     margin-top: 5px;
1516   }
1517 }
1518
1519 #remember_me_openid {
1520   display: block;
1521 }
1522
1523 input[type="checkbox"],
1524 input[type="radio"] {
1525     margin-right: 5px;
1526 }
1527
1528 input[type="text"],
1529 input[type="email"],
1530 input[type="url"],
1531 input[type="password"],
1532 textarea {
1533   border: 1px solid #ccc;
1534   padding: 2px 5px;
1535   margin: 0;
1536   width: 200px;
1537 }
1538
1539 textarea {
1540   padding: 5px;
1541   width: 100%;
1542   height: 100% !important;
1543 }
1544
1545 /* Rules for user images */
1546
1547 img.user_image {
1548   max-width: 100px;
1549   max-height: 100px;
1550   border: 1px solid #ccc;
1551   margin-bottom: $lineheight;
1552   float: left;
1553   margin-right: $lineheight;
1554 }
1555
1556 img.user_thumbnail {
1557   max-width: 50px;
1558   max-height: 50px;
1559   border: 1px solid #ccc;
1560   margin-right: $lineheight;
1561 }
1562
1563 img.user_thumbnail_tiny {
1564   max-width: 25px;
1565   max-height: 25px;
1566   border: 1px solid #ccc;
1567 }
1568
1569 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1570
1571 .nowrap {
1572   white-space: nowrap;
1573 }
1574
1575 /* Rules for geo microformats */
1576
1577 abbr.geo {
1578   border-bottom: none;
1579 }
1580
1581 /* Rules for RSS buttons */
1582
1583 .rsssmall {
1584   position: relative;
1585   top: 5px;
1586 }
1587
1588 /* General styles for action lists / subnavs / pager navs */
1589
1590 ul.secondary-actions {
1591   font-style: normal;
1592   margin-bottom: 0;
1593   margin-left: 0;
1594   &.pager {
1595     display: inline-block;
1596     margin-right: 60px;
1597   }
1598   li {
1599     display: block;
1600     float: left;
1601     list-style: none;
1602     border-left: 1px solid #ccc;
1603     padding-left: $lineheight/4;
1604     margin-right: $lineheight/4;
1605     &:first-child {
1606       border-left: 0;
1607       padding-left: 0;
1608     }
1609     &:last-child {
1610       margin-right: 0px;
1611     }
1612   }
1613 }
1614
1615 /* Utility for managing inner content areas */
1616
1617 .inner22 { padding: $lineheight;}
1618
1619 .inner12 { padding: $lineheight/2 $lineheight;}
1620
1621 .inner11 { padding: $lineheight/2;}
1622
1623 .inner02 { padding: 0 $lineheight;}
1624
1625 /* Utility for general button styles */
1626
1627 input[type="button"],
1628 input[type="submit"],
1629 input[type="reset"],
1630 a.button {
1631   cursor: pointer;
1632   border: 0;
1633   display: inline-block;
1634   line-height: 20px;
1635   padding: $lineheight/4 $lineheight/2;
1636   min-width: 120px;
1637   margin: 0 0 $lineheight/2 0;
1638   color: white;
1639   background: $blue;
1640   text-align: center;
1641   border-radius: 2px;
1642   -moz-border-radius: 2px;
1643   &:hover {
1644     background: darken($blue, $hovercolor);
1645     text-decoration: none;
1646   }
1647   &.deemphasize {
1648     background: $lightblue;
1649     &:hover {
1650       background: darken($lightblue, $hovercolor);
1651     }
1652   }
1653   &:disabled {
1654     background: $lightblue;
1655   }
1656   &:last-child {
1657     margin-bottom: 0;
1658   }
1659 }
1660
1661 .buttons {
1662   min-width: 200px;
1663   input[type="submit"],
1664   input[type="button"],
1665   input[type="reset"],
1666   .button {
1667     box-sizing: border-box;
1668     float: left;
1669     border-radius: 0;
1670     margin:0;
1671     min-width: 100px;
1672     max-width: 150px;
1673     border-right:1px solid white;
1674   }
1675   input:first-child,
1676   .button:first-child {
1677     border-radius:2px 0 0 2px;
1678   }
1679   input:last-child,
1680   .button:last-child {
1681     border-radius:0 2px 2px 0;
1682     border-right-width: 0;
1683   }
1684   input:only-child,
1685   .button:only-child,
1686   *[value="Hide"] + input:last-child,
1687   *[value="Hide"] + .button:last-child {
1688     border-radius:2px;
1689     border-right-width: 0;
1690   }
1691     /* if a 3-button set has a hidden middle button */
1692   *[value="Hide"] + input:nth-child(3),
1693   *[value="Hide"] + .button:nth-child(3) {
1694     border-radius:0 2px 2px 0;
1695     border-right-width: 0;
1696   }
1697   /* if a 3-button set starts with a hidden button */
1698   *[value="Hide"] + input:nth-child(2):not(:last-child),
1699   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1700     border-radius:2px 0 0 2px;
1701     border-right-width: 1px solid white;
1702   }
1703 }
1704
1705 /* Rules for doing distinct colour of alternate table rows */
1706
1707 .table0,
1708 .item0 {
1709   background: $offwhite;
1710 }
1711
1712 .table1,
1713 .item1 {
1714   background: #fff;
1715 }
1716
1717 /* Rules for OpenID logo */
1718
1719 .openid_logo {
1720   vertical-align: text-bottom;
1721   border: 0;
1722 }
1723
1724 /* Rules for rich text */
1725
1726 .richtext,
1727 .prose {
1728   h1, h2 {
1729     padding-bottom: $lineheight/2;
1730     border-bottom: 1px dashed #cccccc;
1731     margin-bottom: $lineheight/2;
1732   }
1733
1734   h1 {
1735     font-size: 24px;
1736   }
1737
1738   h2 {
1739     font-size: 18px;
1740   }
1741
1742   h3 {
1743     font-size: $typeheight;
1744   }
1745
1746   code {
1747     font-size: 13px;
1748     background: #e8e8e8;
1749     padding: 2px 3px;
1750   }
1751
1752   pre {
1753     font-size: 13px;
1754     background: #e8e8e8;
1755     padding: 2px 3px;
1756
1757     code {
1758       padding: 0;
1759     }
1760   }
1761
1762   img {
1763     padding: $lineheight;
1764     background-color: $offwhite;
1765     display: block;
1766     max-width: 100%;
1767     margin: auto;
1768   }
1769
1770   blockquote {
1771     border-left: $lineheight solid $offwhite;
1772     padding-left: $lineheight;
1773     margin: 0;
1774     color: #7E7E7E;
1775   }
1776
1777   ul, ol {
1778     font-style: italic;
1779     padding-left: $lineheight;
1780     margin-bottom: $lineheight;
1781     margin-left: $lineheight;
1782   }
1783
1784   ul li {
1785     list-style: disc;
1786   }
1787
1788   ol li {
1789     list-style: decimal;
1790   }
1791 }
1792
1793 .diary_post .richtext {
1794     margin-top: $lineheight;
1795   }
1796
1797 .comments .richtext {
1798   margin-left: 70px;
1799   margin-top: 0;
1800 }
1801
1802 /* Rules for rich text editors */
1803
1804 .richtext_container {
1805   margin-bottom: $lineheight;
1806
1807   .richtext_content {
1808     width: 50%;
1809     display: inline-block;
1810     vertical-align: top;
1811
1812     .richtext_preview {
1813       display: inline-block;
1814       padding: $lineheight;
1815       background-color: $offwhite;
1816       overflow-x: auto;
1817
1818       &.loading {
1819         background-image: image-url("loading.gif");
1820         background-repeat: no-repeat;
1821         background-position: center;
1822       }
1823
1824       > :first-child {
1825         margin-top: 0px;
1826       }
1827     }
1828   }
1829
1830   .richtext_help {
1831     display: inline-block;
1832     vertical-align: top;
1833     margin-left: 15px;
1834     background-color: #f8f8ff;
1835     padding: $lineheight/2;
1836     width: 220px;
1837
1838     ul {
1839       margin-bottom: 0;
1840     }
1841
1842     h4.heading, li {
1843       border-bottom: 1px solid #ccc;
1844       margin-bottom: $lineheight/4;
1845       padding-bottom: $lineheight/4;
1846     }
1847
1848     li h4, li span, li p {
1849       display: inline-block;
1850       vertical-align: top;
1851       font-size: 11px;
1852     }
1853
1854     li h4 {
1855       width: 40%;
1856       margin: 0;
1857     }
1858
1859     li span, li p {
1860       width: 50%;
1861       margin-left: $lineheight/2;
1862       margin-bottom: $lineheight/4;
1863       white-space: nowrap;
1864     }
1865   }
1866 }
1867
1868 /* Rules for the user notes list */
1869
1870 .note_list {
1871   tr.creator {
1872     background-color: #eeeeee;
1873   }
1874
1875   td {
1876     padding: 3px;
1877   }
1878
1879   p {
1880     margin-bottom: 0px;
1881   }
1882 }
1883
1884 /* Rules for the notes interface */
1885
1886 .note {
1887   padding-top: $lineheight/2;
1888 }
1889
1890 .note {
1891   h2 {
1892     margin-bottom: $lineheight/2;
1893   }
1894
1895   div {
1896     margin-top: $lineheight/2;
1897   }
1898
1899   .permalink {
1900     position: absolute;
1901     top: $lineheight/4;
1902     left: $lineheight/4;
1903     min-width: 15px;
1904     min-height: 15px;
1905     background: image-url("sprite.png") 0 -45px no-repeat;
1906   }
1907
1908   .permalink span {
1909     display: none;
1910     padding-left: $lineheight;
1911   }
1912
1913   .permalink:hover span {
1914     display: block;
1915   }
1916
1917   .warning {
1918     display: block;
1919     background-color: #ffe0cc;
1920     padding: 4px 6px;
1921     margin-bottom: $lineheight/2;
1922   }
1923
1924   .comment_body {
1925     margin-top: 2px;
1926     margin-bottom: 2px;
1927
1928     p {
1929       margin-top: 0px;
1930       margin-bottom: 0px;
1931     }
1932   }
1933
1934   .comment {
1935     width: 100%;
1936     height: 100px;
1937   }
1938
1939   .buttons {
1940     margin-top: $lineheight/4;
1941     text-align: right;
1942   }
1943 }
1944
1945 /*
1946  * Rules for the iD editor
1947  */
1948 .id-embed {
1949   width: 100%;
1950   height: 100%;
1951 }
1952
1953 /* Rules for rotating sidebar ads */
1954 .ad-container {
1955   display: block;
1956   height: 120px;
1957   overflow: hidden;
1958   position: relative;
1959   border-bottom: 1px solid #ccc;
1960 }
1961
1962 .ad {
1963   height: 100px;
1964   border: 0;
1965   background: #fff;
1966 }