]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
Fix common details
[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 $green: #7ebc6f;
9 $grey: #CCC;
10 $lightgrey: #EEE;
11 $darkgrey: #AAA;
12 $hovercolor: 20%;
13 $headerHeight: 54px;
14 $sidebarWidth: 300px;
15 $keyline: 1px solid $lightgrey;
16 $border-radius: 3px;
17
18 /* Styles common to large and small screens */
19
20 /* Minimal CSS reset */
21
22 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input {
23   margin: 0;
24   padding: 0;
25   border: 0;
26   font-size:100%;
27 }
28
29 fieldset,img { border: 0; }
30
31 legend { color: #000; }
32
33 sup { vertical-align: text-top; }
34
35 sub { vertical-align: text-bottom; }
36
37 table {
38   border-collapse: collapse;
39   border-spacing: 0;
40 }
41
42 li { list-style: none; }
43
44 input,
45 select,
46 textarea,
47 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
48
49 abbr, acronym {
50   border-bottom: .1em dotted;
51   cursor: help;
52 }
53
54 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
55
56 .clearfix:before,
57 .clearfix:after {
58     content: " ";
59     display: table;
60 }
61
62 .clearfix:after {
63     clear: both;
64 }
65
66 /* Basic grid */
67
68 .col0    { float:left; width:04.1666%; }
69 .col1    { float:left; width:08.3333%; }
70 .col2    { float:left; width:16.6666%; }
71 .col3    { float:left; width:25.0000%; }
72 .col4    { float:left; width:33.3333%; }
73 .col5    { float:left; width:41.6666%; }
74 .col6    { float:left; width:50.0000%; }
75 .col7    { float:left; width:58.3333%; }
76 .col8    { float:left; width:66.6666%; }
77 .col9    { float:left; width:75.0000%; }
78 .col10   { float:left; width:83.3333%; }
79 .col11   { float:left; width:91.6666%; }
80 .col12   { width:100%; }
81
82 .margin0  { margin-left:04.1666%; }
83 .margin1  { margin-left:08.3333%; }
84 .margin2  { margin-left:16.6666%; }
85 .margin3  { margin-left:25.0000%; }
86 .margin4  { margin-left:33.3333%; }
87 .margin5  { margin-left:41.6666%; }
88 .margin6  { margin-left:50.0000%; }
89 .margin7  { margin-left:58.3333%; }
90 .margin8  { margin-left:66.6666%; }
91 .margin9  { margin-left:75.0000%; }
92 .margin10 { margin-left:83.3333%; }
93 .margin11 { margin-left:91.6666%; }
94 .margin12 { margin-left:100.0000%; }
95
96 .fillL { background-color: white; }
97
98 /* Default rules for the body of every page */
99
100 * {
101   -webkit-box-sizing: border-box;
102      -moz-box-sizing: border-box;
103           box-sizing: border-box;
104 }
105
106 body {
107   font-family: 'Helvetica Neue',Arial,sans-serif;
108   font-size: $typeheight;
109   line-height: 1.6666;
110   color: #222;
111   background-color: #fff;
112   margin: 0px;
113   padding: 0px;
114   text-align: left;
115 }
116
117 body.slim {
118   background-color: #f0f0f0;
119 }
120
121 h1, h2, h3 {
122   font-weight: 500;
123   line-height: 1.2;
124 }
125
126 h1 {
127   font-size: 18px;
128 }
129
130 h2, h3 {
131   font-size: 16px;
132 }
133
134 p > img {
135   width: auto;
136   max-width: 100%;
137 }
138
139 small, aside {
140   font-size: 12px;
141 }
142
143 .column-1 {
144   width: 50%;
145   margin: 0 0 $lineheight/2 0;
146 }
147
148 .small_icon {
149   vertical-align: middle;
150   margin-right: $lineheight/4;
151 }
152
153 /* Rules for icons */
154
155 .icon {
156   display:inline-block;
157   vertical-align:top;
158   width:20px;
159   height:20px;
160   background:transparent image-url("sprite.png") no-repeat 0 0;
161   text-indent:-9999px;
162   overflow:hidden;
163 }
164
165 .icon.search      { background-position: 0 0; }
166 .icon.donate      { background-position: -20px 0; }
167 .icon.zoomin      { background-position: -40px 0; }
168 .icon.zoomout     { background-position: -60px 0; }
169 .icon.geolocate   { background-position: -80px 0; }
170 .active .icon.geolocate   { background-position: -80px -20px; }
171 .icon.layers      { background-position: -100px 0; }
172 .icon.key         { background-position: -120px 0; }
173 .icon.share       { background-position: -140px 0; }
174 .icon.clipboard   { background-position: -160px 0; }
175 .icon.link        { background-position: -180px 0; }
176 .icon.close       { background-position: -200px 0; }
177 .icon.check       { background-position: -220px 0; }
178 .icon.note        { background-position: -240px 0; }
179 .icon.gear        { background-position: -260px 0; }
180
181 /* Rules for links */
182
183 a {
184   color: #00f;
185   text-decoration: none;
186   -webkit-appearance: none;
187   outline: 0;
188   &:hover {
189     text-decoration: underline;
190   }
191 }
192
193 /* Rules for horizontal lines */
194
195 hr {
196   border: none;
197   background-color: #ccc;
198   color: #ccc;
199   height: 1px;
200 }
201
202 /* General styles for tables */
203
204 table {
205   width: 100%;
206   margin-bottom: $lineheight;
207   th, td {
208     text-align: left;
209     padding: $lineheight/4;
210     line-height: $lineheight;
211   }
212   th {
213     font-weight: 500;
214     vertical-align: top;
215   }
216   td {
217     vertical-align: middle;
218   }
219 }
220
221 /* Utility for de-emphasizing content */
222
223 .deemphasize {
224   color: #999;
225   a {
226     color: $blue;
227   }
228 }
229
230 /* Rules for the header */
231
232 header {
233   height: $headerHeight;
234   position: relative;
235   // border-bottom: $keyline;
236   z-index: 1001;
237   font-size: 13px;
238
239   h1, nav, nav > ul, nav > ul > li, .dropdown {
240     display: inline-block;
241   }
242
243   > * {
244     height: 100%;
245     padding: $lineheight/2 $lineheight;
246   }
247
248   h1, nav.primary {
249     float: left;
250   }
251
252   a, a:hover {
253     text-decoration: none;
254   }
255
256   img.logo {
257     width: 30px;
258     height: 30px;
259     margin-top: -4px;
260     vertical-align: middle;
261   }
262
263   h1 {
264     margin: 0;
265     padding: ($lineheight - 3) $lineheight ($lineheight + 3);
266
267     a {
268       color: #000;
269     }
270   }
271 }
272
273 nav.primary {
274   > ul {
275     $border: 1px solid $green;
276
277     border: $border;
278     border-radius: $border-radius;
279
280     > li {
281       border-right: $border;
282       &:last-child { 
283         border-right: 0;
284         > a { border-radius: 0 $border-radius $border-radius 0; } 
285       }
286       &:first-child > a { border-radius: $border-radius 0 0 $border-radius; }
287       > a:hover { background: lighten($green, 30%); }
288       &.current > a:hover { background: $green; }
289       &.disabled > a:hover { background: lighten($green, 38%); }
290       &.dropdown {
291         > a.tab { border-right: 1px solid lighten($green, 30%); }
292         &.current > a.tab { border-right: 1px solid lighten($green, 10%); }
293       }
294     }
295   }
296
297   a.tab,
298   .dropdown-toggle {
299     display: inline-block;
300     font-weight: 500;
301     color: $green;
302     padding: 5px 15px;
303   }
304
305   .dropdown-toggle {
306     padding: 5px 6px;
307   }
308
309   .caret {
310     border-top-color: $green;
311     margin-top: 10px;
312   }
313
314   .disabled a {
315     color: #ccc;
316     cursor: default;
317
318     .caret {
319       border-top-color: #ccc;
320     }
321   }
322
323   > ul li.current {
324     background-color: $green;
325
326     .tab {
327       color: #fff;
328     }
329
330     .caret {
331       border-top-color: #fff;
332     }
333   }
334 }
335
336 nav.secondary {
337   position: absolute;
338   right: 0;
339
340   > ul a,
341   .dropdown-toggle {
342     display: inline-block;
343     text-decoration: none;
344     color: $darkgrey;
345     padding: 5px;
346
347     &:hover { color: darken($darkgrey, 10%); }
348   }
349
350   > ul li.current a {
351     color: darken($darkgrey, 25%);
352   }
353
354   .user-menu {
355     $border: 1px solid $grey;
356
357     font-weight: 500;
358     border: $border;
359     border-radius: $border-radius;
360     margin-left: 10px;
361
362     > li {
363       border-right: $border;
364       &:last-child { 
365         border-right: 0;
366
367         > a {
368           border-radius: 0 $border-radius $border-radius 0;
369         } 
370       }
371       &:first-child > a { border-radius: $border-radius 0 0 $border-radius; }
372       &:hover a { background: lighten($darkgrey, 30%); }
373     }
374
375     a {
376       padding: 5px 15px;
377     }
378
379     &.logged-in > a {
380       padding: 0;
381       > .user-button {
382         padding: 5px 10px 5px 6px;
383         display: inline-block;
384       }
385     }
386   }
387
388   .caret {
389     border-top-color: $grey;
390     margin-top: 9px;
391   }
392
393   img.user_thumbnail_tiny {
394     border: 0;
395     vertical-align: top;
396     margin-top: 0px;
397     margin: 3px 0 0 3px;
398     border-radius: 2px;
399   }
400
401   #inboxanchor {
402     display: inline-block;
403     vertical-align: top;
404     height: 25px;
405     margin: 3px 0 3px 3px;
406     background-color: lighten($grey, 10%);
407     line-height: 20px;
408     border-radius: 2;
409   }
410
411   .dropdown-menu {
412     left: auto;
413     right: 0;
414
415     .count-number {
416       float: right;
417       padding: 0 5px;
418       margin: 0;
419     }
420   }
421 }
422
423 /* Utility for styling notification numbers */
424
425 .count-number {
426   padding: 2px $lineheight/4;
427   border-radius: 2px;
428   background: #d7d7ff;
429   margin: 0 2px;
430   font-size: 11px;
431   color: #333;
432 }
433
434 /* Rules for the message shown in place of the map when javascript is disabled */
435
436 #noscript {
437   z-index: 20000000;
438   position: absolute;
439   top: 15px;
440   left: 15px;
441 }
442
443 /* Rules for bootstrap tooltips */
444
445 .tooltip {
446   position: absolute;
447   display: none;
448   color: #333;
449   text-align: left;
450   font-size: 12px;
451   max-width: 250px;
452 }
453
454 .tooltip.in {
455   opacity: 0.8;
456   z-index: 1030;
457   height: auto;
458   display: block;
459 }
460
461 .tooltip.top {
462   margin-top: -10px;
463   text-align: center;
464 }
465
466 .tooltip.right {
467   margin-left: 10px;
468 }
469
470 .tooltip.bottom {
471   margin-top: 10px;
472   text-align: center;
473 }
474
475 .tooltip.left {
476   margin-left: -10px;
477   text-align: right;
478 }
479
480 .tooltip-inner {
481   display: inline-block;
482   padding: 10px;
483   font-weight: normal;
484   background-color: white;
485 }
486
487 .tooltip-arrow {
488   position: absolute;
489   width: 0;
490   height: 0;
491   border-color: transparent;
492   border-style: solid;
493 }
494
495 .tooltip.top .tooltip-arrow {
496   bottom: -5px;
497   left: 50%;
498   margin-left: -5px;
499   border-top-color: white;
500   border-width: 5px 5px 0;
501 }
502
503 .tooltip.right .tooltip-arrow {
504   top: 50%;
505   left: -5px;
506   margin-top: -5px;
507   border-right-color: white;
508   border-width: 5px 5px 5px 0;
509 }
510
511 .tooltip.left .tooltip-arrow {
512   top: 50%;
513   right: -5px;
514   margin-top: -5px;
515   border-left-color: white;
516   border-width: 5px 0 5px 5px;
517 }
518
519 .tooltip.bottom .tooltip-arrow {
520   top: -5px;
521   left: 50%;
522   margin-left: -5px;
523   border-bottom-color: white;
524   border-width: 0 5px 5px;
525 }
526
527 /* Rules for Leaflet maps */
528
529 .leaflet-control .control-button {
530   display: block;
531   height: 40px;
532   width: 40px;
533   background-color: #333;
534   background-color: rgba(0,0,0,.6);
535   border-radius: 4px 0 0 4px;
536   margin-bottom: 10px;
537   outline: none;
538
539   &:hover {
540     background-color: black;
541   }
542
543   &.active {
544     background-color: #9ed485;
545   }
546
547   &.disabled {
548     background-color: #333;
549     background-color: rgba(0,0,0,.5);
550     cursor: default;
551   }
552
553   .icon {
554     margin: 10px;
555   }
556 }
557
558 .leaflet-control .zoomin,
559 .control-layers .control-button {
560   margin-bottom: 0px;
561   border-radius: 4px 0 0 0;
562 }
563
564 .leaflet-control .zoomout,
565 .control-key .control-button {
566   margin-bottom: 0;
567   border-radius: 0;
568 }
569
570 .control-locate .control-button,
571 .control-share .control-button {
572   border-radius: 0 0 0 4px;
573 }
574
575 /* Rules for the sidebar and main map area */
576
577 .map-layout {
578   #content {
579     position: absolute;
580     top: $headerHeight;
581     bottom: 0;
582     width: 100%;
583   }
584
585   #sidebar, #map {
586     position: relative;
587     height: 100%;
588     overflow-x: hidden;
589     overflow-y: auto;
590   }
591
592   #sidebar {
593     float: left;
594     width: $sidebarWidth;
595     border-right: $keyline;
596
597     h2, h3, h4 {
598       padding: $lineheight $lineheight $lineheight/2;
599     }
600
601     h4 {
602       font-weight: normal;
603       color: #666;
604       font-size: 12px;
605     }
606
607     .icon.close {
608       position: absolute;
609       right: $lineheight;
610     }
611
612     .footer {
613       position: absolute;
614       bottom: 0;
615     }
616
617     p.credits {
618       font-size: 11px;
619       color: #999;
620
621       a {
622         color: #666;
623       }
624     }
625
626     p.large-text {
627       font-size: 1.7em;
628       line-height: 1.4em;
629       font-weight: 300;
630     }
631   }
632
633   #sidebar.minimized {
634     position: absolute;
635     z-index: 1000;
636     height: auto;
637     border-right: none;
638
639     #sidebar_content {
640       display: none;
641     }
642
643     #search_form {
644       background: none;
645       width: 78%;
646     }
647   }
648
649   #map {
650     height: 100%;
651     overflow: hidden;
652   }
653
654   #map-ui {
655     display: none;
656     position: relative;
657     float: right;
658     width: 250px;
659     height: 100%;
660     background: white;
661     overflow: auto;
662
663     .section {
664       border-bottom: 1px solid #DDD;
665       padding: 15px;
666     }
667
668     a.close-button {
669       float: right;
670       padding:5px;
671       font-size:20px;
672       line-height:10px;
673       color:#222;
674       border:1px solid #ddd;
675     }
676   }
677 }
678
679 .layers-ui,
680 .share-ui {
681   li:last-child {
682     margin-bottom: 0;
683   }
684 }
685
686 .layers-ui {
687   li {
688     border-radius: 4px;
689     overflow: hidden;
690     margin-bottom: 10px;
691   }
692
693   label {
694     display: block;
695     padding: 5px 5px 5px 7px;
696     background-color: #eee;
697     cursor: pointer;
698   }
699
700   li.active label {
701     background-color: #ccc;
702   }
703
704   .base-layers {
705     .leaflet-container {
706       width: 100%;
707       height: 50px;
708       cursor: pointer;
709     }
710   }
711 }
712
713 .share-ui {
714   .share-tabs {
715     margin-bottom: 10px;
716
717     a {
718       color: #fff;
719       text-decoration: none;
720       background-color: $lightblue;
721       padding: 5px 10px;
722     }
723
724     a:first-child {
725       border-right: 1px solid #fff;
726       border-radius: 4px 0 0 4px;
727     }
728
729     a:last-child {
730       border-left: 1px solid #fff;
731       border-radius: 0 4px 4px 0;
732     }
733
734     a.active {
735       background-color: $blue;
736     }
737   }
738
739   .share-tab {
740     display: none;
741   }
742
743   .share-link {
744     input[type=text],
745     textarea {
746       width: 100%;
747       font-family: monospace;
748       font-size: small;
749       line-height: 1.3;
750     }
751   }
752
753   .share-image {
754     label {
755       margin-right: 10px;
756     }
757   }
758
759   #embed_html {
760     resize: vertical;
761   }
762
763   #mapnik_scale {
764     width: 100px;
765   }
766 }
767
768 .leaflet-top.leaflet-right {
769   top: $lineheight !important;
770   .leaflet-control {
771     margin-right: 0px !important;
772     margin-top: 0px !important;
773   }
774 }
775
776 .leaflet-popup-scrolled {
777   padding-right: $lineheight;
778   border-bottom: 0px !important;
779   border-top: 0px !important;
780 }
781
782 .leaflet-popup-content-wrapper {
783   border-radius: 4px !important;
784   -webkit-border-radius: 4px !important;
785 }
786
787 /* Rules for attribution text under the main map shown on printouts */
788
789 #attribution {
790   display: none;
791 }
792
793 .attribution_license,
794 .attribution_project {
795   text-align: left;
796 }
797
798 .attribution_notice {
799   text-align: center;
800 }
801
802 /* Rules for the sidebar */
803
804 .sidebar_heading {
805   position: relative;
806   padding: $lineheight/2 $lineheight;
807   background: $offwhite;
808   border-bottom: 1px solid #ccc;
809 }
810
811 .sidebar_close {
812   position: absolute;
813   height: $lineheight;
814   top: 0px;
815   bottom: 0;
816   right: $lineheight;
817   margin: auto;
818 }
819
820 #sidebar_content {
821   position: absolute;
822   top: 50px;
823   bottom: 0;
824   width: 100%;
825   overflow-y: auto;
826
827   .loader,
828   .load_more {
829     text-align: center;
830     margin: $lineheight auto;
831     width: $lineheight;
832     display: block;
833   }
834 }
835
836 /* Rules for the search box */
837
838 #search_form {
839   position: relative;
840   padding: $lineheight/2 $lineheight;
841   background-color: $lightgrey;
842
843   #query_wrapper {
844     position: relative;
845     overflow: hidden;
846   }
847
848   input {
849     width: 100%;
850     height: 30px;
851     border-right: none;
852     border-radius: 2px 0 0 2px;
853
854     transition: 300ms linear;
855     -webkit-transition: 300ms linear;
856     -moz-transition: 300ms linear;
857   }
858
859   input:focus {
860     outline: none;
861     box-shadow: 0px 0px 7px #9ED485;
862   }
863
864   input[type=submit] {
865     float: right;
866     width: auto;
867     min-width: 0;
868     border-radius: 0 2px 2px 0;
869   }
870
871   #describe_location {
872     position: absolute;
873     top: 6px;
874     right: 6px;
875     font-size: 10px;
876     color: $blue;
877   }
878 }
879
880 /* Rules for donation request box */
881
882 a.donate {
883   display: block;
884   width: 163px;
885   padding: $lineheight/4;
886   border: 1px solid #AED1A0;
887   background: #cbeea7;
888   font-size: $typeheight;
889   line-height: 1.4;
890   text-align: center;
891   border-radius: 2px;
892   color: #222;
893   margin: $lineheight/2 auto;
894
895   &:hover {
896     background: #9ed485;
897     text-decoration: none;
898   }
899 }
900
901 /* Rules for rotating sidebar ads */
902
903 .ad-container {
904   display: block;
905   height: 120px;
906   margin: auto;
907   overflow: hidden;
908   position: relative;
909   border-bottom: 1px solid #ccc;
910
911   a {
912     display: block;
913     width: 165px;
914     margin: auto;
915   }
916
917   .ad {
918     height: 100px;
919     border: 0;
920     background: #fff;
921   }
922 }
923
924 /* Rules for the map key which appears in the popout sidebar */
925
926 #mapkey {
927  .mapkey-table-key img {
928     display: block;
929     margin-left: auto;
930     margin-right: auto;
931   }
932   td {
933     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
934   }
935 }
936
937 /* Rules for search results which appear in the popout sidebar */
938
939 .search_results_entry {
940   ul li {
941     border-bottom: $keyline;
942     &:first-child { border-top: $keyline; }
943   }
944
945   .search_details {
946     display: block;
947     float: right;
948     text-align: right;
949     margin-top: 0.2em;
950     margin-left: 0.5em;
951   }
952 }
953
954 .search_results_error {
955   color: #f00;
956 }
957
958 /* Rules for data browser information which appears in the popout sidebar */
959
960 #browse_content {
961   position: relative;
962   .browse_show_list.button {
963     position: absolute;
964     left: $lineheight;
965     right: $lineheight;
966     bottom: -40px;
967     margin-bottom: 0;
968   }
969   a.more-details {
970     position: absolute;
971     top: 0;
972     right: $lineheight;
973   }
974   ul li {
975     margin-bottom: 0;
976   }
977 }
978
979 /* Rules for entity history */
980 #sidebar_content {
981   .browse_details {
982     position: relative;
983     border-bottom: $keyline;
984   }
985 }
986
987 .browse_status {
988   display: none;
989 }
990
991 /* Rules for the changeset list shown by the history tab */
992
993 #sidebar .changesets {
994   li {
995     padding: $lineheight;
996     border-bottom: $keyline;
997     cursor: pointer;
998   }
999
1000   li.selected {
1001     background: #FCFEA4;
1002   }
1003 }
1004
1005 /* Rules for the data browser */
1006
1007 #sidebar_content {
1008   .browse-section {
1009     padding: 10px 20px;
1010
1011     h4 {
1012       padding: 0;
1013     }
1014   }
1015
1016   .browse-field {
1017     margin-bottom: 10px;
1018
1019     h4 {
1020       padding: 5px 0 5px 10px;
1021       font-size: 12px;
1022       border: 1px solid #CCC;
1023       border-radius: 4px 4px 0 0;
1024       background-color: #F6F6F6;
1025     }
1026
1027     p {
1028       padding: 7px 10px;
1029       font-size: 12px;
1030       background-color: #FFF;
1031       border: 1px solid #CCC;
1032       border-top: 0;
1033       border-radius: 0 0 4px 4px;
1034     }
1035   }
1036
1037   .browse-tag-list {
1038     border: 1px solid #CCC;
1039     border-radius: 4px;
1040     font-size: 12px;
1041
1042     li {
1043       border-bottom: 1px solid #CCC;
1044     }
1045
1046     li:last-child {
1047       border-bottom: 0;
1048     }
1049
1050     .browse-tag-k,
1051     .browse-tag-v {
1052       display: inline-block;
1053       width: 50%;
1054       height: 30px;
1055       float: left;
1056       padding: 6px 10px;
1057     }
1058
1059     .browse-tag-k {
1060       font-weight: 500;
1061       background-color: #F6F6F6;
1062       border-radius: 4px 0 0 4px;
1063     }
1064
1065     .browse-tag-v {
1066       border-left: 1px solid #CCC;
1067     }
1068   }
1069 }
1070
1071 /* Rules for the changeset details */
1072
1073 #sidebar_content {
1074   .browse-section.header {
1075     padding: 20px;
1076     border-bottom: $keyline;
1077
1078     h2 {
1079       padding: 0 0 5px 0;
1080       border-bottom: none;
1081     }
1082   }
1083 }
1084
1085 /* Rules for export information which appears in the popout sidebar */
1086
1087 .export_bounds {
1088   text-align: center;
1089 }
1090
1091 .export_area_inputs {
1092   margin-bottom: $lineheight/2;
1093   input[type="text"] {
1094     width: 80px;
1095     margin-bottom: 5px;
1096   }
1097 }
1098
1099 .export_bound {
1100   margin: $lineheight/4;
1101 }
1102
1103 /* Rules for edit pages */
1104
1105 .site-edit {
1106   #content {
1107     position: absolute;
1108     top: $headerHeight;
1109     bottom: 0;
1110     width: 100%;
1111   }
1112
1113   #map {
1114     height: 100%;
1115   }
1116 }
1117
1118 /* Rules for non-map content pages */
1119
1120 .content-heading {
1121   background: $lightgrey;
1122   // border-bottom: $keyline;
1123 }
1124
1125 .content-body {
1126   h1, h2, h3, p {
1127     margin-bottom: $lineheight;
1128   }
1129
1130   h1, h2, h3 {
1131     margin-top: $lineheight/2;
1132   }
1133 }
1134
1135 .content-inner {
1136   position: relative;
1137   max-width: 900px;
1138   margin: auto;
1139   padding: $lineheight;
1140 }
1141
1142 /* Overrides for pages that use new layout conventions */
1143
1144 .user-new,
1145 .user-create,
1146 .user-terms {
1147   .content-body .content-inner {
1148     padding: 0;
1149   }
1150 }
1151
1152 .user-new,
1153 .user-create,
1154 .user-terms,
1155 .user-confirm {
1156   .content-heading .content-inner {
1157     height: 200px;
1158   }
1159 }
1160
1161 .header-illustration {
1162   background-position: 0 0;
1163   background-repeat: no-repeat;
1164   position: absolute;
1165   height: 200px;
1166   width: 100%;
1167   left: 0;
1168   bottom: 0;
1169
1170   &.new-user-main {
1171     background-image: image-url("sign-up-illustration.png");
1172   }
1173
1174   &.confirm-main {
1175     background-image: image-url("confirm-illustration.png");
1176   }
1177
1178   &.new-user-terms {
1179     background-image: image-url("terms-illustration.png");
1180   }
1181
1182   &.new-user-arm {
1183     height: 110px;
1184     width: 130px;
1185     left: 260px;
1186     top: 160px;
1187     background-image: image-url("sign-up-illustration-arm.png");
1188     z-index: 100;
1189   }
1190 }
1191
1192 @media only screen and (max-width:900px) {
1193   .header-illustration.new-user-arm {
1194     display: none;
1195   }
1196 }
1197
1198 #content.maximised {
1199   top: 0;
1200   left: 0;
1201   right: 0;
1202   bottom: 0;
1203   border: 0;
1204   z-index: 1000;
1205 }
1206
1207 #slim_container {
1208   width: 100%;
1209 }
1210
1211 #slim_container_content {
1212   max-width: 50em;
1213   background-color: #FFFFFF;
1214   margin: $lineheight/2 auto;
1215   padding: 3px;
1216   border-radius: 25px;
1217   -moz-border-radius: 25px;
1218   border: 1px solid #e6e6e6;
1219 }
1220
1221 #slim_content {
1222   margin: $lineheight/2;
1223   margin-top: 95px;
1224   max-width: 50em;
1225
1226   .content-heading {
1227     margin-bottom: 15px;
1228   }
1229 }
1230
1231 #slim_header {
1232   margin: 30px $lineheight/2;
1233   position: absolute;
1234   top: 0px;
1235   margin-right: $lineheight/4;
1236   img {
1237     vertical-align: middle;
1238     margin-bottom: $lineheight/4;
1239     margin-right: $lineheight/4;
1240   }
1241 }
1242
1243 /* Rules for small maps in content areas */
1244
1245 .content_map {
1246   position: relative;
1247   width: 45%;
1248   height: 400px;
1249   border: 1px solid #ccc;
1250   margin-bottom: $lineheight;
1251   float: right;
1252 }
1253
1254 /* Rules for the trace list shown by the traces tab etc */
1255
1256 #trace_list {
1257   font-size: $lineheight/2;
1258   border-width: 0px;
1259   text-align: right;
1260
1261   .trace_summary {
1262     font-size: 12px;
1263     color: gray;
1264   }
1265
1266   .trace_pending {
1267     color: red;
1268   }
1269
1270   .trace_public {
1271     color: green;
1272   }
1273
1274   .trace_identifiable {
1275     color: green;
1276   }
1277
1278   .trace_trackable {
1279     color: red;
1280   }
1281
1282   .trace_private {
1283     color: red;
1284   }
1285 }
1286
1287 /* Rules for the user profile page */
1288
1289 #userinformation {
1290
1291   min-height: 100px;
1292   .userinformation-inner {
1293     float: left;
1294   }
1295   h2 {
1296     margin-top: 0;
1297   }
1298   .user-description {
1299     width: 100%;
1300     clear: both;
1301   }
1302   .deemphasize {
1303     margin: 0;
1304   }
1305 }
1306
1307 .admin-user-info small {
1308   margin-bottom: $lineheight/2;
1309   display: inline;
1310   margin-right: $lineheight;
1311 }
1312
1313 .activity-block {
1314   clear: left;
1315   border-bottom: 1px solid #ccc;
1316   padding-bottom: $lineheight;
1317   float: left;
1318   h3 {
1319     margin-bottom: $lineheight/2;
1320   }
1321 }
1322
1323 .contact-activity {
1324   margin-top: $lineheight;
1325   width: 100%;
1326 }
1327
1328 .activity-details p {
1329   margin-left: 70px;
1330   margin-bottom: 0;
1331 }
1332
1333 #friends-container .contact-activity ul {
1334   margin-left: 70px;
1335 }
1336
1337 .user-view {
1338   p#no_home_location {
1339     margin: $lineheight;
1340   }
1341   .user_thumbnail {
1342     margin-top: $lineheight/4;
1343     float: left;
1344   }
1345 }
1346
1347 /* Rules for the user map */
1348
1349 .content_map .leaflet-popup-content {
1350   margin: $lineheight/2;
1351   min-height: 50px;
1352 }
1353
1354 /* Rules for user popups on maps */
1355
1356 .user_popup {
1357   min-width: 200px;
1358   p {
1359     padding: 0 0 5px 0;
1360     margin-top: 0 0 0 60px;
1361     font-size: 12px;
1362   }
1363   img.user_thumbnail {
1364     float: left;
1365     margin: 0 $lineheight/2 0 0;
1366   }
1367 }
1368
1369 /* Rules for the user list */
1370
1371 #user_list {
1372   font-size: $lineheight/2;
1373   width: 100%;
1374
1375   tr {
1376     vertical-align: middle;
1377   }
1378
1379   p {
1380     margin-top: 0px;
1381     margin-bottom: 0px;
1382   }
1383 }
1384
1385 #user_list_actions {
1386   float: right;
1387   margin-top: $lineheight/2;
1388 }
1389
1390 /* Rules for the diary list page */
1391
1392 .diary_post {
1393   position: relative;
1394   margin-top: $lineheight/2;
1395   padding-top: $lineheight;
1396   border-top: 1px solid #ccc;
1397
1398   .post_heading {
1399     margin-bottom: $lineheight;
1400
1401     h2 {
1402       margin-top: 0;
1403       margin-bottom: $lineheight/2;
1404       font-size: 24px;
1405     }
1406   }
1407
1408   img.user_thumbnail {
1409     float: left;
1410   }
1411
1412   small.deemphasize {
1413     float: left;
1414     display: block;
1415   }
1416
1417   ul.secondary-actions {
1418     display: inline-block;
1419   }
1420 }
1421
1422 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1423   display: inline;
1424 }
1425
1426 /* Rules for the diary entry page */
1427
1428 .diary_entry {
1429   #map {
1430     position: relative;
1431     width: 90%;
1432     height: 400px;
1433     border: 1px solid #ccc;
1434     display: none;
1435     margin-bottom: $lineheight;
1436   }
1437   #newcomment {
1438     border-top: 1px solid #ccc;
1439     padding-top: $lineheight;
1440     margin-top: $lineheight/2;
1441   }
1442   .comments {
1443     max-width: 740px;
1444   }
1445   .diary-comment {
1446     margin-top: $lineheight/2;
1447     border-top: 1px dashed #ccc;
1448     padding-top: $lineheight/2;
1449     &:first-child {
1450       margin-top: $lineheight;
1451       padding-top: $lineheight;
1452       border-top: 1px solid #ccc;
1453     }
1454     p {
1455       margin-bottom: $lineheight/2;
1456     }
1457     .comment-heading {
1458       margin-bottom: 0;
1459       margin-top: 0;
1460     }
1461   }
1462 }
1463
1464 .diary_entry-view img.user_thumbnail {
1465   float: left;
1466 }
1467
1468 /* Rules for the log in page */
1469
1470 #login_openid_buttons {
1471   margin-bottom: 0;
1472 }
1473
1474 #login_openid_buttons li {
1475   float: left;
1476   padding: $lineheight/4 $lineheight/2;
1477 }
1478
1479 /* Rules for the account confirmation page */
1480
1481 .user-terms {
1482   .legale {
1483     border: 1px solid #ccc;
1484     padding: $lineheight;
1485     margin-bottom: $lineheight;
1486     overflow: auto;
1487     height: 10em;
1488   }
1489
1490   #decline {
1491     background: $lightblue;
1492     &:hover {
1493       background: darken($lightblue, $hovercolor);
1494     }
1495   }
1496
1497   .form-row {
1498     margin: auto;
1499     max-width: 370px;
1500   }
1501 }
1502
1503 /* Rules for the account settings page */
1504
1505 #accountForm .user_map {
1506   position: relative;
1507   width: 500px;
1508   height: 400px;
1509   border: 1px solid #ccc;
1510 }
1511
1512 #accountForm .user_image {
1513   margin-bottom: 0;
1514 }
1515
1516 #accountForm #user_image {
1517   margin-left: 20px;
1518 }
1519
1520 #accountForm ul.accountImage-options {
1521   margin-left: 120px;
1522 }
1523
1524 .nohome .location {
1525   display: none;
1526 }
1527
1528 #homerow .message {
1529   display: none;
1530 }
1531
1532 .nohome .message {
1533   display: inline !important;
1534 }
1535
1536 .content_map.settings_map {
1537   width: 50%;
1538   float: none;
1539 }
1540
1541 /* Rules for the oauth settings page */
1542
1543 .oauth_clients .buttons .oauth-edit {
1544   border-radius: 2px 0 0 2px;
1545 }
1546
1547 .oauth_clients .buttons .oauth-delete {
1548   border-radius: 0 2px 2px 0;
1549 }
1550
1551 /* Rules for messages pages */
1552
1553 .messages {
1554   width: 100%;
1555   border: 1px solid #ddd;
1556
1557   input[type="submit"] {
1558     margin: auto;
1559   }
1560   tbody tr {
1561     border-top: 1px solid #ccc;
1562   }
1563
1564   .inbox-row {
1565     background: #f8f8ff;
1566   }
1567
1568   .inbox-row-unread {
1569     background:#CBEEA7;
1570   }
1571
1572   .right {
1573     float: right;
1574   }
1575
1576   tr td,
1577   tr th {
1578     padding: $lineheight/4;
1579   }
1580   p:last-child,
1581   h2:last-child,
1582   h3:last-child,
1583   ol:last-child,
1584   ul:last-child {
1585     margin-bottom:0;
1586   }
1587   tr td {
1588     height: 30px;
1589     border-right: 1px solid $lightgrey;
1590   }
1591 }
1592
1593 .inbox-row .inbox-mark-read {
1594   display: none;
1595 }
1596
1597 .info-line {
1598   margin-bottom: $lineheight;
1599   padding: $lineheight/4 0px 4px 0px;
1600   border-bottom: 1px solid #ccc;
1601
1602   form, form div {
1603     display: inline;
1604   }
1605 }
1606
1607 .info-line .user_thumbnail_tiny {
1608   vertical-align: middle;
1609 }
1610
1611 .inbox-mark-unread,
1612 .inbox-mark-read,
1613 .inbox-delete {
1614   width: 1%;
1615 }
1616
1617 .inbox-row-unread .inbox-mark-unread {
1618   display: none;
1619 }
1620
1621 .message-read .message-buttons {
1622   margin-top: $lineheight;
1623   padding-top: $lineheight;
1624   border-top: 1px solid $lightgrey;
1625 }
1626
1627 .message-read .buttons .mark-unread-button {
1628   border-radius: 0;
1629 }
1630
1631 /* Rules for "flash" notice boxes shown at the top of the content area */
1632
1633 .error {
1634   padding: $lineheight;
1635   background-color: #ff7070;
1636 }
1637
1638 .warning {
1639   padding: $lineheight;
1640   background-color: #ffe0cc;
1641 }
1642
1643 .notice {
1644   padding: $lineheight;
1645   background-color: #CBEEA7;
1646 }
1647
1648 /* Rules for highlighting fields with rails validation errors */
1649
1650 .field_with_errors {
1651   padding: 2px;
1652   background-color: #ff7070;
1653   display: inline-block;
1654 }
1655
1656 .formError {
1657   display: inline-block;
1658   padding: 5px 10px;
1659   margin-top: 5px;
1660   border-radius: 4px;
1661   font-size: 12px;
1662   color: #fff;
1663   background-color: #ff7070;
1664 }
1665
1666 /* Rules for rails validation error boxes */
1667
1668 #errorExplanation {
1669   width: 400px;
1670   border: 2px solid #ff7070;
1671   padding: 0 $lineheight/2;
1672   margin-bottom: $lineheight;
1673   background-color: #f0f0f0;
1674
1675   h2 {
1676     margin: 0 -10px 10px -10px;
1677     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1678     font-weight: 500;
1679     font-size: 12px;
1680     background-color: #c00;
1681     color: #fff;
1682     text-align: left;
1683   }
1684
1685   p {
1686     color: #333;
1687     margin-bottom: 0px;
1688     padding: $lineheight/4;
1689   }
1690
1691   ul {
1692     padding-left: $lineheight;
1693
1694     li {
1695       font-size: 12px;
1696       list-style: disc;
1697     }
1698   }
1699 }
1700
1701 /* Rules for forms */
1702
1703 .standard-form {
1704   fieldset {
1705     margin-bottom: $lineheight;
1706   }
1707   label.standard-label {
1708     display: block;
1709     margin-bottom: $lineheight/4;
1710     font-size: $typeheight;
1711     font-weight: 500;
1712     line-height: 1.5;
1713   }
1714   label.standard-label.secondary {
1715     display: inline-block;
1716     font-weight: normal;
1717   }
1718   .form-help {
1719     font-weight: normal;
1720   }
1721   .form-column {
1722     float: left;
1723     margin-right: 20px;
1724   }
1725   .form-divider {
1726     margin-top: $lineheight;
1727     padding-top: $lineheight;
1728     border-top: 1px solid $lightgrey;
1729   }
1730   .horizontal-list .form-row { 
1731     float: left;
1732     padding-right: 10px;
1733   }
1734   .form-row {
1735     margin-bottom: $lineheight/2;
1736   }
1737   .form-list {
1738     margin-bottom: 0;
1739   }
1740   .form-list li {
1741     margin-bottom: 5px;
1742    }
1743   input[type="checkbox"],
1744   input[type="radio"] {
1745     float: left;
1746     margin-top: 5px;
1747   }
1748 }
1749
1750 #remember_me_openid {
1751   display: block;
1752 }
1753
1754 input[type="checkbox"],
1755 input[type="radio"] {
1756     margin-right: 5px;
1757 }
1758
1759 input[type="text"],
1760 input[type="email"],
1761 input[type="url"],
1762 input[type="password"],
1763 textarea {
1764   border: 1px solid #ccc;
1765   padding: 2px 5px;
1766   margin: 0;
1767   width: 200px;
1768 }
1769
1770 textarea {
1771   padding: 5px;
1772   width: 100%;
1773 }
1774
1775 /* Rules for user images */
1776
1777 img.user_image {
1778   max-width: 100px;
1779   max-height: 100px;
1780   border: 1px solid #ccc;
1781   margin-bottom: $lineheight;
1782   float: left;
1783   margin-right: $lineheight;
1784 }
1785
1786 img.user_thumbnail {
1787   max-width: 50px;
1788   max-height: 50px;
1789   border: 1px solid #ccc;
1790   margin-right: $lineheight;
1791 }
1792
1793 img.user_thumbnail_tiny {
1794   max-width: 25px;
1795   max-height: 25px;
1796   border: 1px solid #ccc;
1797 }
1798
1799 /* Rules for geo microformats */
1800
1801 abbr.geo {
1802   border-bottom: none;
1803 }
1804
1805 /* Rules for RSS buttons */
1806
1807 .rsssmall {
1808   position: relative;
1809   top: 5px;
1810 }
1811
1812 /* General styles for action lists / subnavs / pager navs */
1813
1814 ul.secondary-actions {
1815   font-style: normal;
1816   margin-bottom: 0;
1817   margin-left: 0;
1818   &.pager {
1819     display: inline-block;
1820     margin-right: 60px;
1821   }
1822   > li {
1823     display: block;
1824     float: left;
1825     list-style: none;
1826     border-left: 1px solid #ccc;
1827     padding-left: $lineheight/4;
1828     margin-right: $lineheight/4;
1829     &:first-child {
1830       border-left: 0;
1831       padding-left: 0;
1832     }
1833     &:last-child {
1834       margin-right: 0px;
1835     }
1836   }
1837 }
1838
1839 div.secondary-actions {
1840   padding: 10px;
1841   border-top: 1px solid #ccc;
1842   text-align: center;
1843 }
1844
1845 /* Utility for managing inner content areas */
1846
1847 .inner22 { padding: $lineheight;}
1848
1849 .inner12 { padding: $lineheight/2 $lineheight;}
1850
1851 .inner11 { padding: $lineheight/2;}
1852
1853 .inner20 { padding: $lineheight 0;}
1854
1855 .inner02 { padding: 0 $lineheight;}
1856
1857 /* Utility for general button styles */
1858
1859 input[type="button"],
1860 input[type="submit"],
1861 input[type="reset"],
1862 a.button {
1863   cursor: pointer;
1864   border: 0;
1865   display: inline-block;
1866   line-height: 20px;
1867   padding: $lineheight/4 $lineheight/2;
1868   min-height: 20px + $lineheight/2;
1869   min-width: 120px;
1870   margin: 0 0 $lineheight/2 0;
1871   color: white;
1872   background: $blue;
1873   text-align: center;
1874   border-radius: 2px;
1875   -moz-border-radius: 2px;
1876   &:hover {
1877     background: darken($blue, $hovercolor);
1878     text-decoration: none;
1879   }
1880   &.deemphasize {
1881     background: $lightblue;
1882     &:hover {
1883       background: darken($lightblue, $hovercolor);
1884     }
1885   }
1886   &:disabled {
1887     background: $lightgrey;
1888     &:hover {
1889       background: $lightgrey;
1890     }
1891   }
1892   &:last-child {
1893     margin-bottom: 0;
1894   }
1895 }
1896
1897 .buttons {
1898   min-width: 200px;
1899   input[type="submit"],
1900   input[type="button"],
1901   input[type="reset"],
1902   .button {
1903     box-sizing: border-box;
1904     float: left;
1905     border-radius: 0;
1906     margin:0;
1907     min-width: 100px;
1908     max-width: 180px;
1909     border-right:1px solid white;
1910     text-overflow: ellipsis;
1911     white-space: nowrap;
1912     overflow: hidden;
1913   }
1914   input:first-child,
1915   .button:first-child {
1916     border-radius:2px 0 0 2px;
1917   }
1918   input:last-child,
1919   .button:last-child {
1920     border-radius:0 2px 2px 0;
1921     border-right-width: 0;
1922   }
1923   input:only-child,
1924   .button:only-child,
1925   *[value="Hide"] + input:last-child,
1926   *[value="Hide"] + .button:last-child {
1927     border-radius:2px;
1928     border-right-width: 0;
1929   }
1930     /* if a 3-button set has a hidden middle button */
1931   *[value="Hide"] + input:nth-child(3),
1932   *[value="Hide"] + .button:nth-child(3) {
1933     border-radius:0 2px 2px 0;
1934     border-right-width: 0;
1935   }
1936   /* if a 3-button set starts with a hidden button */
1937   *[value="Hide"] + input:nth-child(2):not(:last-child),
1938   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1939     border-radius:2px 0 0 2px;
1940     border-right-width: 1px;
1941   }
1942 }
1943
1944 /* Rules for doing distinct colour of alternate table rows */
1945
1946 .table0,
1947 .item0 {
1948   background: $offwhite;
1949 }
1950
1951 .table1,
1952 .item1 {
1953   background: #fff;
1954 }
1955
1956 /* Rules for OpenID logo */
1957
1958 .openid_logo {
1959   vertical-align: text-bottom;
1960   border: 0;
1961 }
1962
1963 /* Rules for rich text */
1964
1965 .richtext,
1966 .prose {
1967   h1, h2 {
1968     padding-bottom: $lineheight/2;
1969     border-bottom: 1px dashed #cccccc;
1970     margin-bottom: $lineheight/2;
1971   }
1972
1973   h1 {
1974     font-size: 24px;
1975   }
1976
1977   h2 {
1978     font-size: 18px;
1979   }
1980
1981   h3 {
1982     font-size: $typeheight;
1983   }
1984
1985   code {
1986     font-size: 13px;
1987     background: #e8e8e8;
1988     padding: 2px 3px;
1989   }
1990
1991   pre {
1992     font-size: 13px;
1993     background: #e8e8e8;
1994     padding: 2px 3px;
1995
1996     code {
1997       padding: 0;
1998     }
1999   }
2000
2001   img {
2002     padding: $lineheight;
2003     background-color: $offwhite;
2004     display: block;
2005     max-width: 100%;
2006     margin: auto;
2007   }
2008
2009   blockquote {
2010     border-left: $lineheight solid $offwhite;
2011     padding-left: $lineheight;
2012     margin: 0;
2013     color: #7E7E7E;
2014   }
2015
2016   ul, ol {
2017     padding-left: $lineheight;
2018     margin-bottom: $lineheight;
2019     margin-left: $lineheight;
2020   }
2021
2022   ul li {
2023     list-style: disc;
2024   }
2025
2026   ol li {
2027     list-style: decimal;
2028   }
2029 }
2030
2031 .diary_post .richtext {
2032     margin-top: $lineheight;
2033   }
2034
2035 .comments .richtext {
2036   margin-left: 70px;
2037   margin-top: 0;
2038 }
2039
2040 /* Rules for rich text editors */
2041
2042 .richtext_container {
2043   margin-bottom: $lineheight;
2044
2045   .richtext_content {
2046     width: 50%;
2047     display: inline-block;
2048     vertical-align: top;
2049
2050     .richtext_preview {
2051       display: inline-block;
2052       padding: $lineheight;
2053       background-color: $offwhite;
2054       overflow-x: auto;
2055
2056       &.loading {
2057         background-image: image-url("loading.gif");
2058         background-repeat: no-repeat;
2059         background-position: center;
2060       }
2061
2062       > :first-child {
2063         margin-top: 0px;
2064       }
2065     }
2066   }
2067
2068   .richtext_help {
2069     display: inline-block;
2070     vertical-align: top;
2071     margin-left: 15px;
2072     background-color: #f8f8ff;
2073     padding: $lineheight/2;
2074     width: 220px;
2075
2076     ul {
2077       margin-bottom: 0;
2078     }
2079
2080     h4.heading, li {
2081       border-bottom: 1px solid #ccc;
2082       margin-bottom: $lineheight/4;
2083       padding-bottom: $lineheight/4;
2084     }
2085
2086     li h4, li span, li p {
2087       display: inline-block;
2088       vertical-align: top;
2089       font-size: 11px;
2090     }
2091
2092     li h4 {
2093       width: 40%;
2094       margin: 0;
2095     }
2096
2097     li span, li p {
2098       width: 50%;
2099       margin-left: $lineheight/2;
2100       margin-bottom: $lineheight/4;
2101       white-space: nowrap;
2102     }
2103   }
2104 }
2105
2106 /* Rules for the user notes list */
2107
2108 .note_list {
2109   tr.creator {
2110     background-color: #eeeeee;
2111   }
2112
2113   td {
2114     padding: 3px;
2115   }
2116
2117   p {
2118     margin-bottom: 0px;
2119   }
2120 }
2121
2122 /* Rules for the notes interface */
2123
2124 .leaflet-popup-content .note {
2125   padding-top: $lineheight/2;
2126 }
2127
2128 .leaflet-popup-content .note {
2129   h2 {
2130     margin-bottom: $lineheight/2;
2131   }
2132
2133   div {
2134     margin-top: $lineheight/2;
2135   }
2136
2137   .permalink {
2138     position: absolute;
2139     top: $lineheight/4;
2140     left: $lineheight/4;
2141     min-width: 15px;
2142     min-height: 15px;
2143   }
2144
2145   .permalink span {
2146     display: none;
2147     padding-left: $lineheight;
2148   }
2149
2150   .permalink:hover span {
2151     display: block;
2152   }
2153
2154   .warning {
2155     display: block;
2156     background-color: #ffe0cc;
2157     padding: 4px 6px;
2158     margin-bottom: $lineheight/2;
2159   }
2160
2161   .comment_body {
2162     margin-top: 2px;
2163     margin-bottom: 2px;
2164
2165     p {
2166       margin-top: 0px;
2167       margin-bottom: 0px;
2168     }
2169   }
2170
2171   .comment {
2172     width: 100%;
2173     height: 100px;
2174   }
2175
2176   .buttons {
2177     margin-top: $lineheight/4;
2178     text-align: right;
2179   }
2180 }
2181
2182 /* Rules for the iD editor */
2183
2184 .id-embed {
2185   width: 100%;
2186   height: 100%;
2187 }
2188
2189 /* Rules for dropdown menus */
2190
2191 .dropdown {
2192   position: relative;
2193 }
2194
2195 .dropdown-toggle {
2196   *margin-bottom: -3px;
2197 }
2198
2199 .dropdown-toggle:active,
2200 .open .dropdown-toggle {
2201   outline: 0;
2202 }
2203
2204 .caret {
2205   display: inline-block;
2206   width: 0;
2207   height: 0;
2208   vertical-align: top;
2209   border-top: 4px solid #000000;
2210   border-right: 4px solid transparent;
2211   border-left: 4px solid transparent;
2212   content: "";
2213 }
2214
2215 .dropdown .caret {
2216   margin-top: 8px;
2217   margin-left: 2px;
2218 }
2219
2220 .dropdown-menu {
2221   position: absolute;
2222   top: 100%;
2223   left: -1px;
2224   z-index: 1000;
2225   display: none;
2226   float: left;
2227   min-width: 160px;
2228   padding: 5px 0;
2229   margin: 0;
2230   list-style: none;
2231   background-color: #ffffff;
2232   border: 1px solid #ccc;
2233   *border-right-width: 2px;
2234   *border-bottom-width: 2px;
2235   -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2236      -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2237           box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2238   -webkit-background-clip: padding-box;
2239      -moz-background-clip: padding;
2240           background-clip: padding-box;
2241 }
2242
2243 .dropdown-menu.pull-right {
2244   right: 0;
2245   left: auto;
2246 }
2247
2248 .dropdown-menu .divider {
2249   *width: 100%;
2250   height: 1px;
2251   margin: 9px 1px;
2252   *margin: -5px 0 5px;
2253   overflow: hidden;
2254   background-color: #e5e5e5;
2255   border-bottom: 1px solid #ffffff;
2256 }
2257
2258 .dropdown-menu > li > a {
2259   display: block;
2260   padding: 3px 10px;
2261   clear: both;
2262   font-weight: normal;
2263   line-height: 20px;
2264   color: #333333;
2265   white-space: nowrap;
2266 }
2267
2268 .dropdown-menu > li > a:hover,
2269 .dropdown-menu > li > a:focus,
2270 .dropdown-submenu:hover > a,
2271 .dropdown-submenu:focus > a {
2272   color: #ffffff;
2273   text-decoration: none;
2274   background-color: $green;
2275 }
2276
2277 .dropdown-menu > .active > a,
2278 .dropdown-menu > .active > a:hover,
2279 .dropdown-menu > .active > a:focus {
2280   color: #ffffff;
2281   text-decoration: none;
2282   background-color: $green;
2283   outline: 0;
2284 }
2285
2286 .dropdown-menu > .disabled > a,
2287 .dropdown-menu > .disabled > a:hover,
2288 .dropdown-menu > .disabled > a:focus {
2289   color: #999999;
2290 }
2291
2292 .dropdown-menu > .disabled > a:hover,
2293 .dropdown-menu > .disabled > a:focus {
2294   text-decoration: none;
2295   cursor: default;
2296   background-color: transparent;
2297   background-image: none;
2298 }
2299
2300 .open {
2301   *z-index: 1000;
2302 }
2303
2304 .open > .dropdown-menu {
2305   display: block;
2306 }
2307
2308 .dropdown-backdrop {
2309   position: fixed;
2310   top: 0;
2311   right: 0;
2312   bottom: 0;
2313   left: 0;
2314   z-index: 990;
2315 }
2316
2317 /* Rules for the "Welcome" page */
2318 .site-welcome {
2319   .center {
2320     text-align: center;
2321     .sprite { 
2322       float: none;
2323       margin: auto;
2324     }
2325   }
2326
2327   .sprite {
2328     background-image: image-url("welcome-sprite.png");
2329     background-size: 500px 250px;
2330     display: block;
2331     float: left;
2332   }
2333
2334   .icon-list { 
2335     padding-bottom: 20px;
2336     div {
2337       margin-bottom: 10px;
2338       p {
2339         padding-top: 10px;
2340       }
2341     }
2342   }
2343   .sprite.small {
2344     width: 50px;
2345     height: 50px;
2346   }
2347
2348   .sprite.x {
2349     background-position: -50px 0;
2350   }
2351
2352   .sprite.term {
2353     margin-right: 10px;
2354     vertical-align: middle;
2355   }
2356
2357   .sprite.node {
2358     background-position: -100px 0;
2359   }
2360
2361   .sprite.way {
2362     background-position: -150px 0;
2363   }
2364
2365   .sprite.tag {
2366     background-position: -200px 0;
2367   }
2368
2369   .sprite.editor {
2370     background-position: -250px 0;
2371   }
2372
2373   .sprite.question {
2374     background-position: -300px 0;
2375   }
2376
2377   .start-mapping {
2378     margin: auto;
2379     cursor: pointer;
2380     border: none;
2381     padding: 20px 40px;
2382     font-size: 30px;
2383     text-decoration: none;
2384   }
2385
2386   .note-box {
2387     margin-top: 20px;
2388     background-color: $offwhite;
2389   }
2390
2391   .icon.note {
2392     background-color: #333;
2393     border-radius: 4px;
2394   }
2395 }
2396
2397 .site-about #content {
2398   background-color: #000;
2399   background-position: 50% 50%;
2400   background-repeat: no-repeat;
2401   background-size: cover;
2402   background-attachment: fixed;
2403
2404   &.photo-0 { background-image: image-url('about/0.jpg'); .photo-0 { display: block; } }
2405   &.photo-1 { background-image: image-url('about/1.jpg'); .photo-1 { display: block; } }
2406   &.photo-2 { background-image: image-url('about/2.jpg'); .photo-2 { display: block; } }
2407   &.photo-3 { background-image: image-url('about/4.jpg'); .photo-3 { display: block; } }
2408   &.photo-4 { background-image: image-url('about/4.jpg'); .photo-4 { display: block; } }
2409   &.photo-5 { background-image: image-url('about/5.jpg'); .photo-5 { display: block; } }
2410
2411   .caption {
2412     max-width: 200px;
2413     font: italic 14px/20px 'Times New Roman', serif;
2414     position: fixed;
2415     text-align: right;
2416     right: 20px;
2417     bottom: 60px;
2418     text-shadow: #000 0px 1px 5px;
2419     color: #fff;
2420     display: none;
2421   }
2422
2423   .caption a {
2424     color: white;
2425     white-space: nowrap;
2426     text-decoration: none;
2427   }
2428
2429   a.next {
2430     display: block;
2431     position: fixed;
2432     right: 10px;
2433     bottom: 10px;
2434     width: 40px;
2435     height: 40px;
2436     border-radius: 5px;
2437     text-indent: -9999px;
2438     overflow: hidden;
2439     background: image-url('about/sprite.png') -120px 0px no-repeat;
2440     background-color: #000;
2441     background-color: rgba(0, 0, 0, 0.5);
2442   }
2443
2444   .content-inner {
2445     position: relative;
2446     color: #333;
2447     min-width: 320px;
2448     max-width: 640px;
2449
2450     .section {
2451       margin-bottom: 30px;
2452     }
2453
2454     .section:last-child {
2455       margin-bottom: 0;
2456     }
2457   }
2458
2459   .text {
2460     background: white;
2461     padding: 40px;
2462   }
2463
2464   .attr {
2465     position: relative;
2466     padding: 170px 20px 20px 20px;
2467     background: #333;
2468     background: rgba(0, 0, 0, .8);
2469     margin-bottom: 0;
2470
2471     strong {
2472       display: block;
2473       color: white;
2474       font-size: 25px;
2475       span {
2476         color: #76c551;
2477       }
2478     }
2479
2480     .user-image {
2481       position: absolute;
2482       top: 0px;
2483       right: 240px;
2484       left: 0px;
2485       height: 150px;
2486       background-position: 0 50%;
2487       background-repeat: no-repeat;
2488       background-image: image-url('about/osm.png');
2489       background-size: cover;
2490       background-color: #76c551;
2491     }
2492
2493     .byosm {
2494       position: absolute;
2495       top: 0px;
2496       right: 0px;
2497       z-index: 1;
2498       width: 240px;
2499       height: 150px;
2500       padding: 20px 20px 20px 40px;
2501       font: 500 24px/25px Helvetica, Arial, sans-serif;
2502       white-space: nowrap;
2503       color: #fff;
2504       background: #76c551
2505     }
2506
2507     .byosm span {
2508       display: inline-block;
2509       width: 25px;
2510       margin-left: -25px;
2511     }
2512   }
2513
2514   h2 {
2515     margin-bottom: 10px;
2516   }
2517
2518   .icon {
2519     width: 30px;
2520     height: 30px;
2521     margin-right: 10px;
2522     vertical-align: middle;
2523     background: 40px 40px image-url('about/sprite.png') no-repeat;
2524
2525     &.local        { background-position: 0px    0px; }
2526     &.community    { background-position: 0px  -40px; }
2527     &.open         { background-position: 0px  -80px; }
2528     &.contributors { background-position: 0px -120px; }
2529     &.infringement { background-position: 0px -160px; }
2530   }
2531 }
2532
2533 @import 'browse';