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