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