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