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