]> git.openstreetmap.org Git - rails.git/blob - app/assets/stylesheets/common.css.scss
Add cascade font-weights
[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, 10%); }
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 }
712
713 .layers-ui,
714 .share-ui {
715   li:last-child {
716     margin-bottom: 0;
717   }
718 }
719
720 .layers-ui {
721   .base-layers {
722     .leaflet-container {
723       width: 100%;
724       height: 50px;
725       cursor: pointer;
726     }
727
728     li  {
729       overflow: hidden;
730       border-radius: 3px;
731       border: 2px solid #fff;
732       margin-bottom: 8px;
733       position: relative;
734       transition: border-color 0.08s ease-in;
735       
736       label {
737         position: absolute;
738         top: 0;
739         left: 0;
740         padding: 2px 6px;
741         border-bottom-right-radius: 3px;
742         cursor: pointer;
743         font-weight: bold;
744         font-weight: 500;
745         font-size: 16px;
746         text-stroke: 2px #fff;
747         background: rgba(255,255,255,.9);
748         input[type="radio"] {
749           display: none;
750         }
751       }
752
753       &.active { border-color: darken($green, 10%); }
754       &:hover {
755         border-color: $grey;
756         &.active { border-color: darken($green, 20%); }
757       }
758     }
759   }
760
761   .overlay-layers {
762     p {
763       font-size: 13px;
764       margin-bottom: 8px;
765     }
766   }
767 }
768
769 .share-ui {
770   .share-tabs {
771     margin-bottom: 10px;
772
773     a {
774       color: #fff;
775       text-decoration: none;
776       background-color: $lightblue;
777       padding: 5px 10px;
778     }
779
780     a:first-child {
781       border-right: 1px solid #fff;
782       border-radius: 4px 0 0 4px;
783     }
784
785     a:last-child {
786       border-left: 1px solid #fff;
787       border-radius: 0 4px 4px 0;
788     }
789
790     a.active {
791       background-color: $blue;
792     }
793   }
794
795   .share-tab {
796     display: none;
797   }
798
799   .share-link {
800     input[type=text],
801     textarea {
802       width: 100%;
803       font-family: monospace;
804       font-size: small;
805       line-height: 1.3;
806     }
807   }
808
809   .share-image {
810     label {
811       margin-right: 10px;
812     }
813   }
814
815   #embed_html {
816     resize: vertical;
817   }
818
819   #mapnik_scale {
820     width: 100px;
821   }
822 }
823
824 .leaflet-top {
825   top: $lineheight/2 !important;
826   .leaflet-control {
827     margin-right: 0px !important;
828     margin-top: 0px !important;
829   }
830 }
831
832 .leaflet-popup-scrolled {
833   padding-right: $lineheight;
834   border-bottom: 0px !important;
835   border-top: 0px !important;
836 }
837
838 .leaflet-popup-content-wrapper {
839   border-radius: 4px !important;
840   -webkit-border-radius: 4px !important;
841 }
842
843 /* Rules for attribution text under the main map shown on printouts */
844
845 #attribution {
846   display: none;
847 }
848
849 .attribution_license,
850 .attribution_project {
851   text-align: left;
852 }
853
854 .attribution_notice {
855   text-align: center;
856 }
857
858 .donate-attr { color: darken($green, 10%) !important; }
859
860 /* Rules for the sidebar */
861
862 .sidebar_heading {
863   position: relative;
864   padding: $lineheight/2 $lineheight;
865   // background: $offwhite;
866   // border-bottom: 1px solid #ccc;
867   > .close { 
868     float: right;
869     margin-top: 2px;
870     cursor: pointer; 
871   }
872 }
873
874 #browse_status {
875   p {
876     padding: $lineheight;
877   }
878 }
879
880 #sidebar {
881   #sidebar_loader,
882   .loader,
883   .load_more {
884     text-align: center;
885     margin: $lineheight auto;
886     width: $lineheight;
887     display: block;
888   }
889 }
890
891 /* Rules for the search box */
892
893 header .search_form {
894   display: none;
895 }
896
897 .search_form {
898   position: relative;
899   padding: $lineheight/2;
900   background-color: $lightgrey;
901
902   .query_wrapper {
903     position: relative;
904     overflow: hidden;
905     border-radius: 2px 0 0 2px;
906   }
907
908   input[type=text] {
909     width: 100%;
910     height: 30px;
911     border-right: none;
912
913     transition: 300ms linear;
914     -webkit-transition: 300ms linear;
915     -moz-transition: 300ms linear;
916   }
917
918   input:focus {
919     outline: none;
920     box-shadow: 0px 0px 7px #9ED485;
921   }
922
923   input[type=submit] {
924     float: right;
925     width: auto;
926     min-width: 0;
927     border-radius: 0 2px 2px 0;
928   }
929
930   .describe_location {
931     position: absolute;
932     top: 6px;
933     right: 6px;
934     font-size: 10px;
935     color: $blue;
936   }
937 }
938
939 /* Rules for the map key which appears in the popout sidebar */
940
941 #mapkey {
942  .mapkey-table-key img {
943     display: block;
944     margin-left: auto;
945     margin-right: auto;
946   }
947   td {
948     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
949   }
950 }
951
952 /* Rules for search sidebar */
953
954 .search_results_entry {
955   ul li {
956     border-bottom: $keyline;
957     &:first-child { border-top: $keyline; }
958   }
959
960   .search_details {
961     display: block;
962     float: right;
963     text-align: right;
964     margin-top: 0.2em;
965     margin-left: 0.5em;
966   }
967 }
968
969 .search_results_error {
970   color: #f00;
971 }
972
973 /* Rules for entity history */
974
975 #sidebar_content {
976   .browse_details {
977     position: relative;
978     border-bottom: $keyline;
979   }
980 }
981
982 .browse_status {
983   display: none;
984 }
985
986 /* Rules for the history sidebar */
987
988 #sidebar .changesets {
989   li {
990     padding: $lineheight;
991     border-bottom: $keyline;
992     cursor: pointer;
993
994     &.selected { background: #FFFFE6; }
995     /* color is derived from changeset bbox fillColor in history.js */
996   }
997
998   h4 {
999     margin-top: 0;
1000     a {
1001       color: #000;
1002     }
1003   }
1004 }
1005
1006 /* Rules for the browse sidebar */
1007
1008 #sidebar_content {
1009   .browse-section {
1010     padding: $lineheight/2 $lineheight;
1011
1012     h4:first-child {
1013       margin-top: 0;
1014     }
1015   }
1016
1017   .paginate {
1018     float: right;
1019     padding: 1px 6px;
1020     border: 1px solid #eee;
1021     border-radius: 3px;
1022   }
1023
1024   .paginate ul {
1025     padding-left: 20px;
1026   }
1027
1028   .browse-field {
1029     margin-bottom: 10px;
1030
1031     h4 {
1032       padding: 5px 0 5px 10px;
1033       font-size: 12px;
1034       border: 1px solid #CCC;
1035       border-radius: 4px 4px 0 0;
1036       background-color: #F6F6F6;
1037     }
1038
1039     p {
1040       padding: 7px 10px;
1041       font-size: 12px;
1042       background-color: #FFF;
1043       border: 1px solid #CCC;
1044       border-top: 0;
1045       border-radius: 0 0 4px 4px;
1046     }
1047   }
1048
1049   .browse-tag-list {
1050     background-color: #F6F6F6;
1051     border: 1px solid #ddd;
1052     border-radius: 3px;
1053     font-size: 12px;
1054
1055     li {
1056       border-bottom: 1px solid #ddd;
1057     }
1058
1059     li:last-child {
1060       border-bottom: 0;
1061     }
1062
1063     .browse-tag-k,
1064     .browse-tag-v {
1065       display: inline-block;
1066       width: 50%;
1067       float: left;
1068       padding: 6px 10px;
1069     }
1070
1071     .browse-tag-k {
1072       font-weight: bold;
1073       font-weight: 500;
1074       background-color: #F6F6F6;
1075     }
1076
1077     .browse-tag-v {
1078       border-left: 1px solid #ddd;
1079       background-color: #fff;
1080     }
1081   }
1082
1083   .warning {
1084     margin: $lineheight/2 0;
1085     padding: $lineheight/2;
1086     font-size: 90%;
1087   }
1088
1089   .note-comments li {
1090     margin: $lineheight/2 0;
1091   }
1092 }
1093
1094 /* Rules for export sidebar */
1095
1096 .export_form {
1097   padding: $lineheight;
1098
1099   .export_area_inputs,
1100   .export_button {
1101     text-align: center;
1102   }
1103
1104   .export_area_inputs {
1105     margin-bottom: $lineheight/2;
1106     input[type="text"] {
1107       width: 80px;
1108       margin-bottom: 5px;
1109     }
1110   }
1111
1112   .export_bound {
1113     margin: $lineheight/4;
1114   }
1115
1116   .export_button {
1117     margin-top: $lineheight;
1118   }
1119
1120   dl {
1121     padding-left: $lineheight/2;
1122     dd {
1123       margin-left: 0;
1124       margin-bottom: 10px;
1125     }
1126   }
1127 }
1128
1129 /* Rules for edit pages */
1130
1131 .site-edit {
1132   #content {
1133     position: absolute;
1134     top: $headerHeight;
1135     bottom: 0;
1136     width: 100%;
1137   }
1138
1139   #map {
1140     height: 100%;
1141   }
1142 }
1143
1144 /* Rules for non-map content pages */
1145
1146 .content-heading {
1147   background: $lightgrey;
1148   
1149   h1 { font-size: 22px; }
1150 }
1151
1152 .content-body {
1153   h1, h2, h3, p {
1154     margin-bottom: $lineheight;
1155   }
1156
1157   h1, h2, h3 {
1158     margin-top: $lineheight/2;
1159   }
1160 }
1161
1162 .content-inner {
1163   position: relative;
1164   max-width: 900px;
1165   margin: auto;
1166   padding: $lineheight;
1167 }
1168
1169 /* Overrides for pages that use new layout conventions */
1170
1171 .user-new,
1172 .user-create,
1173 .user-terms {
1174   .content-body .content-inner {
1175     padding: 0;
1176   }
1177 }
1178
1179 .user-new,
1180 .user-create,
1181 .user-terms,
1182 .user-confirm {
1183   .content-heading .content-inner {
1184     height: 200px;
1185   }
1186 }
1187
1188 .header-illustration {
1189   background-position: 0 0;
1190   background-repeat: no-repeat;
1191   position: absolute;
1192   height: 200px;
1193   width: 100%;
1194   left: 0;
1195   bottom: 0;
1196
1197   &.new-user-main {
1198     background-image: image-url("sign-up-illustration.png");
1199   }
1200
1201   &.confirm-main {
1202     background-image: image-url("confirm-illustration.png");
1203   }
1204
1205   &.new-user-terms {
1206     background-image: image-url("terms-illustration.png");
1207   }
1208
1209   &.new-user-arm {
1210     height: 110px;
1211     width: 130px;
1212     left: 260px;
1213     top: 160px;
1214     background-image: image-url("sign-up-illustration-arm.png");
1215     z-index: 100;
1216   }
1217 }
1218
1219 #content.maximised {
1220   top: 0;
1221   left: 0;
1222   right: 0;
1223   bottom: 0;
1224   border: 0;
1225   z-index: 1000;
1226 }
1227
1228 #slim_container {
1229   width: 100%;
1230 }
1231
1232 #slim_container_content {
1233   max-width: 50em;
1234   background-color: #FFFFFF;
1235   margin: $lineheight/2 auto;
1236   padding: 3px;
1237   border-radius: 25px;
1238   -moz-border-radius: 25px;
1239   border: 1px solid #e6e6e6;
1240 }
1241
1242 #slim_content {
1243   margin: $lineheight/2;
1244   margin-top: 95px;
1245   max-width: 50em;
1246
1247   .content-heading {
1248     margin-bottom: 15px;
1249   }
1250 }
1251
1252 #slim_header {
1253   margin: 30px $lineheight/2;
1254   position: absolute;
1255   top: 0px;
1256   margin-right: $lineheight/4;
1257   img {
1258     vertical-align: middle;
1259     margin-bottom: $lineheight/4;
1260     margin-right: $lineheight/4;
1261   }
1262 }
1263
1264 /* Rules for small maps in content areas */
1265
1266 .content_map {
1267   position: relative;
1268   width: 45%;
1269   height: 400px;
1270   border: 1px solid #ccc;
1271   margin-bottom: $lineheight;
1272   float: right;
1273 }
1274
1275 /* Rules for the trace list shown by the traces tab etc */
1276
1277 #trace_list {
1278   font-size: $lineheight/2;
1279   border-width: 0px;
1280   text-align: right;
1281
1282   .trace_summary {
1283     font-size: 12px;
1284     color: gray;
1285   }
1286
1287   .trace_pending {
1288     color: red;
1289   }
1290
1291   .trace_public {
1292     color: green;
1293   }
1294
1295   .trace_identifiable {
1296     color: green;
1297   }
1298
1299   .trace_trackable {
1300     color: red;
1301   }
1302
1303   .trace_private {
1304     color: red;
1305   }
1306 }
1307
1308 /* Rules for the user profile page */
1309
1310 #userinformation {
1311
1312   min-height: 100px;
1313   .userinformation-inner {
1314     float: left;
1315   }
1316   h2 {
1317     margin-top: 0;
1318   }
1319   .user-description {
1320     width: 100%;
1321     clear: both;
1322   }
1323   .deemphasize {
1324     margin: 0;
1325   }
1326 }
1327
1328 .admin-user-info small {
1329   margin-bottom: $lineheight/2;
1330   display: inline;
1331   margin-right: $lineheight;
1332 }
1333
1334 .activity-block {
1335   clear: left;
1336   border-bottom: 1px solid #ccc;
1337   padding-bottom: $lineheight;
1338   float: left;
1339   h3 {
1340     margin-bottom: $lineheight/2;
1341   }
1342 }
1343
1344 .contact-activity {
1345   margin-top: $lineheight;
1346   width: 100%;
1347 }
1348
1349 .activity-details p {
1350   margin-left: 70px;
1351   margin-bottom: 0;
1352 }
1353
1354 #friends-container .contact-activity ul {
1355   margin-left: 70px;
1356 }
1357
1358 .user-view {
1359   p#no_home_location {
1360     margin: $lineheight;
1361   }
1362   .user_thumbnail {
1363     margin-top: $lineheight/4;
1364     float: left;
1365   }
1366 }
1367
1368 /* Rules for the user map */
1369
1370 .content_map .leaflet-popup-content {
1371   margin: $lineheight/2;
1372   min-height: 50px;
1373 }
1374
1375 /* Rules for user popups on maps */
1376
1377 .user_popup {
1378   min-width: 200px;
1379   p {
1380     padding: 0 0 5px 0;
1381     margin-top: 0 0 0 60px;
1382     font-size: 12px;
1383   }
1384   img.user_thumbnail {
1385     float: left;
1386     margin: 0 $lineheight/2 0 0;
1387   }
1388 }
1389
1390 /* Rules for the user list */
1391
1392 #user_list {
1393   font-size: $lineheight/2;
1394   width: 100%;
1395
1396   tr {
1397     vertical-align: middle;
1398   }
1399
1400   p {
1401     margin-top: 0px;
1402     margin-bottom: 0px;
1403   }
1404 }
1405
1406 #user_list_actions {
1407   float: right;
1408   margin-top: $lineheight/2;
1409 }
1410
1411 /* Rules for the diary list page */
1412
1413 .diary_post {
1414   position: relative;
1415   margin-top: $lineheight/2;
1416   padding-top: $lineheight;
1417   border-top: 1px solid #ccc;
1418
1419   .post_heading {
1420     margin-bottom: $lineheight;
1421
1422     h2 {
1423       margin-top: 0;
1424       margin-bottom: $lineheight/2;
1425       font-size: 24px;
1426     }
1427   }
1428
1429   img.user_thumbnail {
1430     float: left;
1431   }
1432
1433   small.deemphasize {
1434     float: left;
1435     display: block;
1436   }
1437
1438   ul.secondary-actions {
1439     display: inline-block;
1440   }
1441 }
1442
1443 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1444   display: inline;
1445 }
1446
1447 /* Rules for the diary entry page */
1448
1449 .diary_entry {
1450   #map {
1451     position: relative;
1452     width: 90%;
1453     height: 400px;
1454     border: 1px solid #ccc;
1455     display: none;
1456     margin-bottom: $lineheight;
1457   }
1458   #newcomment {
1459     border-top: 1px solid #ccc;
1460     padding-top: $lineheight;
1461     margin-top: $lineheight/2;
1462   }
1463   .comments {
1464     max-width: 740px;
1465   }
1466   .diary-comment {
1467     margin-top: $lineheight/2;
1468     border-top: 1px dashed #ccc;
1469     padding-top: $lineheight/2;
1470     &:first-child {
1471       margin-top: $lineheight;
1472       padding-top: $lineheight;
1473       border-top: 1px solid #ccc;
1474     }
1475     p {
1476       margin-bottom: $lineheight/2;
1477     }
1478     .comment-heading {
1479       margin-bottom: 0;
1480       margin-top: 0;
1481     }
1482   }
1483 }
1484
1485 .diary_entry-view img.user_thumbnail {
1486   float: left;
1487 }
1488
1489 /* Rules for the log in page */
1490
1491 #login_openid_buttons {
1492   margin-bottom: 0;
1493 }
1494
1495 #login_openid_buttons li {
1496   float: left;
1497   padding: $lineheight/4 $lineheight/2;
1498 }
1499
1500 /* Rules for the account confirmation page */
1501
1502 .user-terms {
1503   .legale {
1504     border: 1px solid #ccc;
1505     padding: $lineheight;
1506     margin-bottom: $lineheight;
1507     overflow: auto;
1508     height: 10em;
1509   }
1510
1511   #decline {
1512     background: $lightblue;
1513     &:hover {
1514       background: darken($lightblue, $hovercolor);
1515     }
1516   }
1517
1518   .form-row {
1519     margin: auto;
1520     max-width: 370px;
1521   }
1522 }
1523
1524 /* Rules for the account settings page */
1525
1526 #accountForm .user_map {
1527   position: relative;
1528   width: 500px;
1529   height: 400px;
1530   border: 1px solid #ccc;
1531 }
1532
1533 #accountForm .user_image {
1534   margin-bottom: 0;
1535 }
1536
1537 #accountForm #user_image {
1538   margin-left: 20px;
1539 }
1540
1541 #accountForm ul.accountImage-options {
1542   margin-left: 120px;
1543 }
1544
1545 .nohome .location {
1546   display: none;
1547 }
1548
1549 #homerow .message {
1550   display: none;
1551 }
1552
1553 .nohome .message {
1554   display: inline !important;
1555 }
1556
1557 .content_map.settings_map {
1558   width: 50%;
1559   float: none;
1560 }
1561
1562 /* Rules for the oauth settings page */
1563
1564 .oauth_clients .buttons .oauth-edit {
1565   border-radius: 2px 0 0 2px;
1566 }
1567
1568 .oauth_clients .buttons .oauth-delete {
1569   border-radius: 0 2px 2px 0;
1570 }
1571
1572 /* Rules for messages pages */
1573
1574 .messages {
1575   width: 100%;
1576   border: 1px solid #ddd;
1577
1578   input[type="submit"] {
1579     margin: auto;
1580   }
1581   tbody tr {
1582     border-top: 1px solid #ccc;
1583   }
1584
1585   .inbox-row {
1586     background: #f8f8ff;
1587   }
1588
1589   .inbox-row-unread {
1590     background:#CBEEA7;
1591   }
1592
1593   .right {
1594     float: right;
1595   }
1596
1597   tr td,
1598   tr th {
1599     padding: $lineheight/4;
1600   }
1601   p:last-child,
1602   h2:last-child,
1603   h3:last-child,
1604   ol:last-child,
1605   ul:last-child {
1606     margin-bottom:0;
1607   }
1608   tr td {
1609     height: 30px;
1610     border-right: 1px solid $lightgrey;
1611   }
1612 }
1613
1614 .inbox-row .inbox-mark-read {
1615   display: none;
1616 }
1617
1618 .info-line {
1619   margin-bottom: $lineheight;
1620   padding: $lineheight/4 0px 4px 0px;
1621   border-bottom: 1px solid #ccc;
1622
1623   form, form div {
1624     display: inline;
1625   }
1626 }
1627
1628 .info-line .user_thumbnail_tiny {
1629   vertical-align: middle;
1630 }
1631
1632 .inbox-mark-unread,
1633 .inbox-mark-read,
1634 .inbox-delete {
1635   width: 1%;
1636 }
1637
1638 .inbox-row-unread .inbox-mark-unread {
1639   display: none;
1640 }
1641
1642 .message-read .message-buttons {
1643   margin-top: $lineheight;
1644   padding-top: $lineheight;
1645   border-top: 1px solid $lightgrey;
1646 }
1647
1648 .message-read .buttons .mark-unread-button {
1649   border-radius: 0;
1650 }
1651
1652 /* Rules for "flash" notice boxes shown at the top of the content area */
1653
1654 .error {
1655   padding: $lineheight;
1656   background-color: #ff7070;
1657 }
1658
1659 .warning {
1660   padding: $lineheight;
1661   background-color: #ffe0cc;
1662 }
1663
1664 .notice {
1665   padding: $lineheight;
1666   background-color: #CBEEA7;
1667 }
1668
1669 /* Rules for highlighting fields with rails validation errors */
1670
1671 .field_with_errors {
1672   padding: 2px;
1673   background-color: #ff7070;
1674   display: inline-block;
1675 }
1676
1677 .formError {
1678   display: inline-block;
1679   padding: 5px 10px;
1680   margin-top: 5px;
1681   border-radius: 4px;
1682   font-size: 12px;
1683   color: #fff;
1684   background-color: #ff7070;
1685 }
1686
1687 /* Rules for rails validation error boxes */
1688
1689 #errorExplanation {
1690   width: 400px;
1691   border: 2px solid #ff7070;
1692   padding: 0 $lineheight/2;
1693   margin-bottom: $lineheight;
1694   background-color: #f0f0f0;
1695
1696   h2 {
1697     margin: 0 -10px 10px -10px;
1698     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1699     font-weight: bold;
1700     font-weight: 500;
1701     font-size: 12px;
1702     background-color: #c00;
1703     color: #fff;
1704     text-align: left;
1705   }
1706
1707   p {
1708     color: #333;
1709     margin-bottom: 0px;
1710     padding: $lineheight/4;
1711   }
1712
1713   ul {
1714     padding-left: $lineheight;
1715
1716     li {
1717       font-size: 12px;
1718       list-style: disc;
1719     }
1720   }
1721 }
1722
1723 /* Rules for forms */
1724
1725 .standard-form {
1726   fieldset {
1727     margin-bottom: $lineheight;
1728   }
1729   label.standard-label {
1730     display: block;
1731     margin-bottom: $lineheight/4;
1732     font-size: $typeheight;
1733     font-weight: bold;
1734     font-weight: 500;
1735     line-height: 1.5;
1736   }
1737   label.standard-label.secondary {
1738     display: inline-block;
1739     font-weight: normal;
1740   }
1741   .form-help {
1742     font-weight: normal;
1743   }
1744   .form-column {
1745     float: left;
1746     margin-right: 20px;
1747   }
1748   .form-divider {
1749     margin-top: $lineheight;
1750     padding-top: $lineheight;
1751     border-top: 1px solid $lightgrey;
1752   }
1753   .horizontal-list .form-row { 
1754     float: left;
1755     padding-right: 10px;
1756   }
1757   .form-row {
1758     margin-bottom: $lineheight/2;
1759   }
1760   .form-list {
1761     margin-bottom: 0;
1762   }
1763   .form-list li {
1764     margin-bottom: 5px;
1765    }
1766   input[type="checkbox"],
1767   input[type="radio"] {
1768     float: left;
1769     margin-top: 5px;
1770   }
1771 }
1772
1773 #remember_me_openid {
1774   display: block;
1775 }
1776
1777 input[type="checkbox"],
1778 input[type="radio"] {
1779     margin-right: 5px;
1780 }
1781
1782 input[type="text"],
1783 input[type="email"],
1784 input[type="url"],
1785 input[type="password"],
1786 textarea {
1787   border: 1px solid #ccc;
1788   padding: 2px 5px;
1789   margin: 0;
1790   width: 200px;
1791 }
1792
1793 textarea {
1794   padding: 5px;
1795   width: 100%;
1796 }
1797
1798 /* Rules for user images */
1799
1800 img.user_image {
1801   max-width: 100px;
1802   max-height: 100px;
1803   border: 1px solid #ccc;
1804   margin-bottom: $lineheight;
1805   float: left;
1806   margin-right: $lineheight;
1807 }
1808
1809 img.user_thumbnail {
1810   max-width: 50px;
1811   max-height: 50px;
1812   border: 1px solid #ccc;
1813   margin-right: $lineheight;
1814 }
1815
1816 img.user_thumbnail_tiny {
1817   max-width: 25px;
1818   max-height: 25px;
1819   border: 1px solid #ccc;
1820 }
1821
1822 /* Rules for geo microformats */
1823
1824 abbr.geo {
1825   border-bottom: none;
1826 }
1827
1828 /* Rules for RSS buttons */
1829
1830 .rsssmall {
1831   position: relative;
1832   top: 3px;
1833 }
1834
1835 /* General styles for action lists / subnavs / pager navs */
1836
1837 ul.secondary-actions {
1838   font-style: normal;
1839   margin-bottom: 0;
1840   margin-left: 0;
1841   &.pager {
1842     display: inline-block;
1843     margin-right: 60px;
1844   }
1845   > li {
1846     display: block;
1847     float: left;
1848     list-style: none;
1849     border-left: 1px solid #ccc;
1850     padding-left: $lineheight/2;
1851     margin-right: $lineheight/2;
1852     &:first-child {
1853       border-left: 0;
1854       padding-left: 0;
1855     }
1856     &:last-child {
1857       margin-right: 0px;
1858     }
1859   }
1860 }
1861
1862 div.secondary-actions {
1863   padding: 10px;
1864   border-top: 1px solid #ccc;
1865   text-align: center;
1866 }
1867
1868 /* Utility for managing inner content areas */
1869
1870 .inner22 { padding: $lineheight;}
1871
1872 .inner12 { padding: $lineheight/2 $lineheight;}
1873
1874 .inner11 { padding: $lineheight/2;}
1875
1876 .inner20 { padding: $lineheight 0;}
1877
1878 .inner02 { padding: 0 $lineheight;}
1879
1880 /* Utility for general button styles */
1881
1882 input[type="button"],
1883 input[type="submit"],
1884 input[type="reset"],
1885 a.button {
1886   cursor: pointer;
1887   border: 0;
1888   display: inline-block;
1889   line-height: 20px;
1890   padding: $lineheight/4 $lineheight/2;
1891   min-height: 20px + $lineheight/2;
1892   min-width: 120px;
1893   margin: 0 0 $lineheight/2 0;
1894   color: white;
1895   background: $blue;
1896   text-align: center;
1897   border-radius: 2px;
1898   -moz-border-radius: 2px;
1899   &:hover {
1900     background: darken($blue, $hovercolor);
1901     text-decoration: none;
1902   }
1903   &.deemphasize {
1904     background: $lightblue;
1905     &:hover {
1906       background: darken($lightblue, $hovercolor);
1907     }
1908   }
1909   &:disabled {
1910     background: $lightgrey;
1911     &:hover {
1912       background: $lightgrey;
1913     }
1914   }
1915   &:last-child {
1916     margin-bottom: 0;
1917   }
1918 }
1919
1920 .buttons {
1921   min-width: 200px;
1922   input[type="submit"],
1923   input[type="button"],
1924   input[type="reset"],
1925   .button {
1926     box-sizing: border-box;
1927     float: left;
1928     border-radius: 0;
1929     margin:0;
1930     min-width: 75px;
1931     max-width: 180px;
1932     border-right:1px solid white;
1933     text-overflow: ellipsis;
1934     white-space: nowrap;
1935     overflow: hidden;
1936   }
1937   input:first-child,
1938   .button:first-child {
1939     border-radius:2px 0 0 2px;
1940   }
1941   input:last-child,
1942   .button:last-child {
1943     border-radius:0 2px 2px 0;
1944     border-right-width: 0;
1945   }
1946   input:only-child,
1947   .button:only-child,
1948   *[value="Hide"] + input:last-child,
1949   *[value="Hide"] + .button:last-child {
1950     border-radius:2px;
1951     border-right-width: 0;
1952   }
1953     /* if a 3-button set has a hidden middle button */
1954   *[value="Hide"] + input:nth-child(3),
1955   *[value="Hide"] + .button:nth-child(3) {
1956     border-radius:0 2px 2px 0;
1957     border-right-width: 0;
1958   }
1959   /* if a 3-button set starts with a hidden button */
1960   *[value="Hide"] + input:nth-child(2):not(:last-child),
1961   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1962     border-radius:2px 0 0 2px;
1963     border-right-width: 1px;
1964   }
1965 }
1966
1967 /* Rules for doing distinct colour of alternate table rows */
1968
1969 .table0,
1970 .item0 {
1971   background: $offwhite;
1972 }
1973
1974 .table1,
1975 .item1 {
1976   background: #fff;
1977 }
1978
1979 /* Rules for OpenID logo */
1980
1981 .openid_logo {
1982   vertical-align: text-bottom;
1983   border: 0;
1984 }
1985
1986 /* Rules for rich text */
1987
1988 .richtext,
1989 .prose {
1990   h1, h2 {
1991     padding-bottom: $lineheight/2;
1992     border-bottom: 1px dashed #cccccc;
1993     margin-bottom: $lineheight/2;
1994   }
1995
1996   h1 {
1997     font-size: 24px;
1998   }
1999
2000   h2 {
2001     font-size: 18px;
2002   }
2003
2004   h3 {
2005     font-size: $typeheight;
2006   }
2007
2008   code {
2009     font-size: 13px;
2010     background: #e8e8e8;
2011     padding: 2px 3px;
2012   }
2013
2014   pre {
2015     font-size: 13px;
2016     background: #e8e8e8;
2017     padding: 2px 3px;
2018
2019     code {
2020       padding: 0;
2021     }
2022   }
2023
2024   img {
2025     padding: $lineheight;
2026     background-color: $offwhite;
2027     display: block;
2028     max-width: 100%;
2029     margin: auto;
2030   }
2031
2032   blockquote {
2033     border-left: $lineheight solid $offwhite;
2034     padding-left: $lineheight;
2035     margin: 0;
2036     color: #7E7E7E;
2037   }
2038
2039   ul, ol {
2040     padding-left: $lineheight;
2041     margin-bottom: $lineheight;
2042     margin-left: $lineheight;
2043   }
2044
2045   ul li {
2046     list-style: disc;
2047   }
2048
2049   ol li {
2050     list-style: decimal;
2051   }
2052 }
2053
2054 .diary_post .richtext {
2055     margin-top: $lineheight;
2056   }
2057
2058 .comments .richtext {
2059   margin-left: 70px;
2060   margin-top: 0;
2061 }
2062
2063 /* Rules for rich text editors */
2064
2065 .richtext_container {
2066   margin-bottom: $lineheight;
2067
2068   .richtext_content {
2069     width: 50%;
2070     display: inline-block;
2071     vertical-align: top;
2072
2073     .richtext_preview {
2074       display: inline-block;
2075       padding: $lineheight;
2076       background-color: $offwhite;
2077       overflow-x: auto;
2078
2079       &.loading {
2080         background-image: image-url("loading.gif");
2081         background-repeat: no-repeat;
2082         background-position: center;
2083       }
2084
2085       > :first-child {
2086         margin-top: 0px;
2087       }
2088     }
2089   }
2090
2091   .richtext_help {
2092     display: inline-block;
2093     vertical-align: top;
2094     margin-left: 15px;
2095     background-color: #f8f8ff;
2096     padding: $lineheight/2;
2097     width: 220px;
2098
2099     ul {
2100       margin-bottom: 0;
2101     }
2102
2103     h4.heading, li {
2104       border-bottom: 1px solid #ccc;
2105       margin-bottom: $lineheight/4;
2106       padding-bottom: $lineheight/4;
2107     }
2108
2109     li h4, li span, li p {
2110       display: inline-block;
2111       vertical-align: top;
2112       font-size: 11px;
2113     }
2114
2115     li h4 {
2116       width: 40%;
2117       margin: 0;
2118     }
2119
2120     li span, li p {
2121       width: 50%;
2122       margin-left: $lineheight/2;
2123       margin-bottom: $lineheight/4;
2124       white-space: nowrap;
2125     }
2126   }
2127 }
2128
2129 /* Rules for the user notes list */
2130
2131 .note_list {
2132   tr.creator {
2133     background-color: #eeeeee;
2134   }
2135
2136   td {
2137     padding: 3px;
2138   }
2139
2140   p {
2141     margin-bottom: 0px;
2142   }
2143 }
2144
2145 /* Rules for the iD editor */
2146
2147 .id-embed {
2148   width: 100%;
2149   height: 100%;
2150 }
2151
2152 /* Rules for dropdown menus */
2153
2154 .dropdown {
2155   position: relative;
2156 }
2157
2158 .dropdown-toggle {
2159   *margin-bottom: -3px;
2160 }
2161
2162 .dropdown-toggle:active,
2163 .open .dropdown-toggle {
2164   outline: 0;
2165 }
2166
2167 .caret {
2168   display: inline-block;
2169   width: 0;
2170   height: 0;
2171   vertical-align: top;
2172   border-top: 4px solid #000000;
2173   border-right: 4px solid transparent;
2174   border-left: 4px solid transparent;
2175   content: "";
2176 }
2177
2178 .dropdown .caret {
2179   margin-top: 8px;
2180   margin-left: 2px;
2181 }
2182
2183 .dropdown-menu {
2184   position: absolute;
2185   top: 100%;
2186   left: -1px;
2187   z-index: 1000;
2188   display: none;
2189   float: left;
2190   min-width: 160px;
2191   padding: 5px 0;
2192   margin: 0;
2193   list-style: none;
2194   background-color: #ffffff;
2195   border: 1px solid #ccc;
2196   border-radius: 0 3px 3px;
2197   *border-right-width: 2px;
2198   *border-bottom-width: 2px;
2199   -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2200      -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2201           box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2202   -webkit-background-clip: padding-box;
2203      -moz-background-clip: padding;
2204           background-clip: padding-box;
2205 }
2206
2207 .dropdown-menu.pull-right {
2208   right: 0;
2209   left: auto;
2210 }
2211
2212 .dropdown-menu .divider {
2213   *width: 100%;
2214   height: 1px;
2215   margin: 9px 1px;
2216   *margin: -5px 0 5px;
2217   overflow: hidden;
2218   background-color: #e5e5e5;
2219   border-bottom: 1px solid #ffffff;
2220 }
2221
2222 .dropdown-menu > li > a {
2223   display: block;
2224   padding: 3px 10px;
2225   clear: both;
2226   font-weight: normal;
2227   line-height: 20px;
2228   color: #333333;
2229   white-space: nowrap;
2230 }
2231
2232 .dropdown-menu > li > a:hover,
2233 .dropdown-menu > li > a:focus,
2234 .dropdown-submenu:hover > a,
2235 .dropdown-submenu:focus > a {
2236   color: #ffffff;
2237   text-decoration: none;
2238   background-color: $green;
2239 }
2240
2241 .dropdown-menu > .active > a,
2242 .dropdown-menu > .active > a:hover,
2243 .dropdown-menu > .active > a:focus {
2244   color: #ffffff;
2245   text-decoration: none;
2246   background-color: $green;
2247   outline: 0;
2248 }
2249
2250 .dropdown-menu > .disabled > a,
2251 .dropdown-menu > .disabled > a:hover,
2252 .dropdown-menu > .disabled > a:focus {
2253   color: #999999;
2254 }
2255
2256 .dropdown-menu > .disabled > a:hover,
2257 .dropdown-menu > .disabled > a:focus {
2258   text-decoration: none;
2259   cursor: default;
2260   background-color: transparent;
2261   background-image: none;
2262 }
2263
2264 .open {
2265   *z-index: 1000;
2266 }
2267
2268 .open > .dropdown-menu {
2269   display: block;
2270 }
2271
2272 .dropdown-backdrop {
2273   position: fixed;
2274   top: 0;
2275   right: 0;
2276   bottom: 0;
2277   left: 0;
2278   z-index: 990;
2279 }
2280
2281 /* Rules for the "Welcome" page */
2282 .site-welcome {
2283   .center {
2284     text-align: center;
2285     .sprite { 
2286       float: none;
2287       margin: auto;
2288     }
2289   }
2290
2291   .sprite {
2292     background-image: image-url("welcome-sprite.png");
2293     background-size: 500px 250px;
2294     display: block;
2295     float: left;
2296   }
2297
2298   .icon-list { 
2299     padding-bottom: 20px;
2300     div {
2301       margin-bottom: 10px;
2302       p {
2303         padding-top: 10px;
2304       }
2305     }
2306   }
2307   .sprite.small {
2308     width: 50px;
2309     height: 50px;
2310   }
2311
2312   .sprite.x {
2313     background-position: -50px 0;
2314   }
2315
2316   .sprite.term {
2317     margin-right: 10px;
2318     vertical-align: middle;
2319   }
2320
2321   .sprite.node {
2322     background-position: -100px 0;
2323   }
2324
2325   .sprite.way {
2326     background-position: -150px 0;
2327   }
2328
2329   .sprite.tag {
2330     background-position: -200px 0;
2331   }
2332
2333   .sprite.editor {
2334     background-position: -250px 0;
2335   }
2336
2337   .sprite.question {
2338     background-position: -300px 0;
2339   }
2340
2341   .start-mapping {
2342     margin: auto;
2343     cursor: pointer;
2344     border: none;
2345     padding: 20px 40px;
2346     font-size: 30px;
2347     text-decoration: none;
2348   }
2349
2350   .note-box {
2351     margin-top: 20px;
2352     background-color: $offwhite;
2353   }
2354
2355   .icon.note {
2356     background-color: #333;
2357     border-radius: 4px;
2358   }
2359 }
2360
2361 .site-about #content {
2362   //background-color: #000;
2363   background-color: #eee;
2364   background-position: 50% 50%;
2365   background-repeat: no-repeat;
2366   background-size: cover;
2367   background-attachment: fixed;
2368
2369   &.photo-0 { background-image: image-url('about/0.jpg'); .photo-0 { display: block; } }
2370   &.photo-1 { background-image: image-url('about/1.jpg'); .photo-1 { display: block; } }
2371   &.photo-2 { background-image: image-url('about/2.jpg'); .photo-2 { display: block; } }
2372   &.photo-3 { background-image: image-url('about/4.jpg'); .photo-3 { display: block; } }
2373   &.photo-4 { background-image: image-url('about/4.jpg'); .photo-4 { display: block; } }
2374   &.photo-5 { background-image: image-url('about/5.jpg'); .photo-5 { display: block; } }
2375
2376   .caption {
2377     max-width: 200px;
2378     font: 13px/20px Helvetica, Arial, sans-serif;
2379     position: fixed;
2380     text-align: right;
2381     right: 20px;
2382     bottom: 60px;
2383     text-shadow: #000 0px 1px 5px;
2384     color: #eee;
2385     opacity: 0.8;
2386     display: none;
2387   }
2388
2389   .caption a {
2390     color: white;
2391     white-space: nowrap;
2392     text-decoration: none;
2393   }
2394
2395   a.next {
2396     display: block;
2397     position: fixed;
2398     right: 10px;
2399     bottom: 10px;
2400     width: 40px;
2401     height: 40px;
2402     border-radius: 5px;
2403     text-indent: -9999px;
2404     overflow: hidden;
2405     background: image-url('about/sprite.png') -120px 0px no-repeat;
2406     background-color: #000;
2407     background-color: rgba(0, 0, 0, 0.5);
2408   }
2409
2410   .content-inner {
2411     position: relative;
2412     color: #333;
2413     min-width: 320px;
2414     max-width: 640px;
2415
2416     .section {
2417       margin-bottom: 30px;
2418     }
2419
2420     .section:last-child {
2421       margin-bottom: 0;
2422     }
2423   }
2424
2425   .text {
2426     background: white;
2427     padding: 40px;
2428   }
2429
2430   .attr {
2431     position: relative;
2432     padding: 170px 40px 20px;
2433     background: #333;
2434     background: rgba(0, 0, 0, .8);
2435     margin-bottom: 0;
2436     margin-top: -20px;
2437
2438     h1 {
2439       display: block;
2440       color: white;
2441       font-weight: normal;
2442       font-weight: 300;
2443       font-size: 34px;
2444       span {
2445         color: #76c551;
2446       }
2447     }
2448
2449     .user-image {
2450       position: absolute;
2451       top: 0px;
2452       right: 240px;
2453       left: 0px;
2454       height: 150px;
2455       background-position: 0 50%;
2456       background-repeat: no-repeat;
2457       background-image: image-url('about/osm.png');
2458       background-size: cover;
2459       background-color: #76c551;
2460     }
2461
2462     .byosm {
2463       position: absolute;
2464       top: 0px;
2465       right: 0px;
2466       z-index: 1;
2467       width: 240px;
2468       height: 150px;
2469       padding: 20px 20px 20px 40px;
2470       font: 500 20px/24px Helvetica, Arial, sans-serif;
2471       white-space: nowrap;
2472       color: #fff;
2473       background: #76c551;
2474     }
2475
2476     .byosm span {
2477       display: inline-block;
2478       width: 20px;
2479       margin-left: -20px;
2480     }
2481   }
2482
2483   h2 {
2484     margin-bottom: 10px;
2485   }
2486
2487   .icon {
2488     width: 30px;
2489     height: 30px;
2490     margin-right: 10px;
2491     vertical-align: middle;
2492     background: 40px 40px image-url('about/sprite.png') no-repeat;
2493
2494     &.local        { background-position: 0px    0px; }
2495     &.community    { background-position: 0px  -40px; }
2496     &.open         { background-position: 0px  -80px; }
2497     &.partners     { background-position: 0px -120px; }
2498     &.infringement { background-position: 0px -160px; }
2499   }
2500 }
2501
2502 @import 'browse';
2503
2504 @media only screen and (max-width:960px) {
2505   .header-illustration.new-user-arm {
2506     display: none;
2507   }
2508 }
2509