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