3 @import "rails_bootstrap_forms";
 
   5 /* Styles common to large and small screens */
 
   7 /* Default rules for the body of every page */
 
  10   font-family: 'Helvetica Neue',Arial,sans-serif;
 
  11   font-size: $typeheight;
 
  14   background-color: #fff;
 
  30 #container { position: relative; }
 
  33   vertical-align: middle;
 
  34   margin-right: $lineheight/4;
 
  37 [dir=rtl] { /* no-r2 */ text-align: right; }
 
  39 [dir=ltr] { /* no-r2 */ text-align: left; }
 
  44   display: inline-block;
 
  48   background: transparent image-url("sprite.png") no-repeat 0 0;
 
  49   background-image: image-url("sprite.svg");
 
  54 .icon.search      { /* no-r2 */ background-position: 0 0; }
 
  55 .icon.donate      { /* no-r2 */ background-position: -20px 0; }
 
  56 .icon.zoomin      { /* no-r2 */ background-position: -40px 0; }
 
  57 .icon.zoomout     { /* no-r2 */ background-position: -60px 0; }
 
  58 .icon.geolocate   { /* no-r2 */ background-position: -80px 0; }
 
  59 .active .icon.geolocate   { /* no-r2 */ background-position: -80px -20px; }
 
  60 .icon.layers      { /* no-r2 */ background-position: -100px 0; }
 
  61 .icon.key         { /* no-r2 */ background-position: -120px 0; }
 
  62 .icon.share       { /* no-r2 */ background-position: -140px 0; }
 
  63 .icon.clipboard   { /* no-r2 */ background-position: -160px 0; }
 
  64 .icon.link        { /* no-r2 */ background-position: -180px 0; }
 
  65 .icon.close       { /* no-r2 */ background-position: -200px 0; }
 
  66 .close-wrap:hover .icon.close,
 
  67 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
 
  68 .icon.check       { /* no-r2 */ background-position: -220px 0; }
 
  69 .icon.note        { /* no-r2 */ background-position: -240px 0; }
 
  70 .icon.note.grey   { /* no-r2 */ background-position: -240px -20px; }
 
  71 .icon.query       { /* no-r2 */ background-position: -260px 0; }
 
  77   text-decoration: none;
 
  80     text-decoration: underline;
 
  84 /* Utility for de-emphasizing content */
 
  90 /* Rules for the header */
 
  93   display: none !important;
 
  95   background: image-url("menu-icon.png") no-repeat;
 
  96   background-size: 30px 30px;
 
 100   margin: 14px 10px 0 0;
 
 105   height: $headerHeight;
 
 110   h1, nav, nav > ul, nav > ul > li {
 
 111     display: inline-block;
 
 116     padding: $lineheight/2;
 
 124     text-decoration: none;
 
 131     vertical-align: middle;
 
 157   .btn-outline-primary {
 
 158     @include button-outline-variant($green, $white);
 
 162     .btn-outline-primary {
 
 167         border-top-color: $grey;
 
 171         background-color: lighten($green, 30%);
 
 176   // Small tweaks to the toggle to stop the primary colour showing through
 
 177   // when the menu is shown
 
 178   .show > .btn-outline-primary.dropdown-toggle {
 
 179     background-color: $green;
 
 180     border-color: $green;
 
 183       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
 
 198     color: darken($darkgrey, 25%);
 
 202     .btn-outline-secondary {
 
 203       @include button-outline-variant($darkgrey);
 
 208     .btn-outline-secondary {
 
 209       @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
 
 215         background-color: white;
 
 219     &.show .btn-outline-secondary {
 
 220       background-color: white;
 
 227   img.user_thumbnail_tiny {
 
 233     display: inline-block;
 
 235     margin: 3px 0 3px 3px;
 
 236     background-color: lighten($grey, 10%);
 
 248 nav.primary, nav.secondary {
 
 251       background-color: $green;
 
 257 #compact-secondary-nav {
 
 262   #compact-secondary-nav {
 
 263     display: inline-block;
 
 270 /* Utility for styling notification numbers */
 
 273   padding: 2px $lineheight/4;
 
 275   background: lighten($green, 30%);
 
 281 /* Rules for the message shown in place of the map when javascript is disabled */
 
 289 /* Rules for Leaflet maps */
 
 291 .leaflet-control .control-button {
 
 295   background-color: #333;
 
 296   background-color: rgba(0,0,0,.6);
 
 297   border-radius: 4px 0 0 4px;
 
 302     background-color: black;
 
 307     background-color: #333;
 
 308     background-color: rgba(0,0,0,.5);
 
 313     background-color: $vibrant-green;
 
 321 .leaflet-control .zoomin,
 
 322 .control-layers .control-button {
 
 324   border-radius: 4px 0 0 0;
 
 327 .leaflet-control .zoomout,
 
 328 .control-key .control-button {
 
 333 .control-locate .control-button,
 
 334 .control-share .control-button {
 
 335   border-radius: 0 0 0 4px;
 
 338 /* Rules for the sidebar and main map area */
 
 358     width: $sidebarWidth;
 
 373       padding: $lineheight $lineheight $lineheight/2;
 
 378       margin-top: $lineheight;
 
 379       margin-bottom: $lineheight/2;
 
 392         pointer-events: none;
 
 417   .overlay-sidebar #sidebar {
 
 454       width: $sidebarWidth;
 
 470     .leaflet-marker-draggable {
 
 485       border-bottom: 1px solid $grey;
 
 495       border:1px solid $grey;
 
 500       border: 1px solid $grey;
 
 502         border-top-color: $grey;
 
 526       border: 2px solid #fff;
 
 529       transition: border-color 0.08s ease-in;
 
 536         border-bottom-right-radius: 3px;
 
 540         text-stroke: 2px #fff;
 
 541         background: rgba(255,255,255,.9);
 
 543         input[type="radio"] {
 
 548       &.active { border-color: darken($green, 10%); }
 
 551         &.active { border-color: darken($green, 20%); }
 
 561     li.disabled { color: $darkgrey; }
 
 571       text-decoration: none;
 
 572       background-color: $lightblue;
 
 574       border-right: 1px solid #fff;
 
 578       border-right: 1px solid #fff;
 
 579       border-radius: 4px 0 0 4px;
 
 583       border-radius: 0 4px 4px 0;
 
 587       background-color: $blue;
 
 599       font-family: monospace;
 
 621   top: $lineheight/2 !important;
 
 623     margin-right: 0px !important;
 
 624     margin-top: 0px !important;
 
 628 .leaflet-popup-scrolled {
 
 629   padding-right: $lineheight;
 
 630   border-bottom: 0px !important;
 
 631   border-top: 0px !important;
 
 634 .leaflet-popup-content-wrapper {
 
 635   border-radius: 4px !important;
 
 638 /* Rules for attribution text under the main map shown on printouts */
 
 648 .attribution_license,
 
 649 .attribution_project {
 
 653 .attribution_notice {
 
 657 .donate-attr { color: darken($green, 10%) !important; }
 
 659 /* Rules for the sidebar */
 
 663   padding: $lineheight/2 $lineheight;
 
 664   // background: $offwhite;
 
 665   // border-bottom: 1px solid $grey;
 
 685     margin: $lineheight auto;
 
 696 /* Temporary label size override until we remove site-wide font customisation */
 
 704 /* Rules for the search and direction forms */
 
 706 header .search_forms,
 
 711 /* Rules for the map key which appears in the popout sidebar */
 
 714  .mapkey-table-key img {
 
 721 /* Rules for search sidebar */
 
 723 #sidebar .search_results_entry {
 
 726     &.selected { background: $list-highlight; }
 
 729   .search_more .loader {
 
 735 .search_results_error {
 
 740 /* Rules for routing */
 
 742 #sidebar_content>table {
 
 743     padding: 5px 20px 10px 15px;
 
 745     border-collapse: separate;
 
 750   background-image: image-url('routing-sprite.png');
 
 753   background-repeat: no-repeat;
 
 755 @for $i from 0 through 25 {
 
 756 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
 
 760     padding: 0 $lineheight $lineheight/4;
 
 763 td.instruction, td.distance {
 
 764     padding-top: $lineheight/5;
 
 765     padding-bottom: $lineheight/5;
 
 766     border-bottom: 1px solid $grey;
 
 777     background: $list-highlight;
 
 780 .routing_marker { width: 15px; cursor: move; }
 
 782 /* Rules for entity history */
 
 787     border-bottom: $keyline;
 
 795 /* Rules for the history sidebar */
 
 797 #sidebar .changesets {
 
 801     &.selected { background: $list-highlight; }
 
 802     /* color is derived from changeset bbox fillColor in history.js */
 
 814   .changeset_more .loader {
 
 820 /* Rules for the browse sidebar */
 
 824     padding: $lineheight/2 $lineheight;
 
 825     border-bottom: 1px solid $grey;
 
 829       word-wrap: break-word;
 
 833   .browse-section:last-of-type {
 
 840     border: 1px solid $lightgrey;
 
 848       padding: 5px 0 5px 10px;
 
 850       border: 1px solid $grey;
 
 851       border-radius: 4px 4px 0 0;
 
 852       background-color: $offwhite;
 
 858       background-color: #FFF;
 
 859       border: 1px solid $grey;
 
 861       border-radius: 0 0 4px 4px;
 
 866     background-color: $offwhite;
 
 867     border: 1px solid $grey;
 
 870     border-collapse: separate;
 
 875       border-bottom: 1px solid $grey;
 
 878     tr:last-child th, tr:last-child td {
 
 886       word-wrap: break-word;
 
 887       white-space: pre-wrap;
 
 892       background-color: $offwhite;
 
 896       border-left: 1px solid $grey;
 
 897       background-color: #fff;
 
 900     .colour-preview-box {
 
 905       border: 1px solid rgba(0, 0, 0, .1);
 
 906       // add color via inline css on element: background-color: <tag value>;
 
 910   .note-comments li, .changeset-comments li {
 
 911     margin: $lineheight/2 0;
 
 914       margin: 10px 6px 0 6px;
 
 925     margin: 18px 10px 10px;
 
 929   .subscribe-buttons input {
 
 935   span.action-button:hover {
 
 937     text-decoration: underline;
 
 942     margin: 0 0 10px 10px;
 
 946     padding: $lineheight $lineheight $lineheight/2;
 
 951     padding-bottom: $lineheight/2;
 
 954       padding: 0 $lineheight;
 
 964           background: $list-highlight;
 
 971 /* Bootstrap buttons don't have any vertical margin, so
 
 972    they touch when adjacent buttons wrap onto a new line
 
 973    e.g. wide form buttons on a narrow sidebar */
 
 977     margin-bottom: $spacer * 0.25;
 
 981 /* Rules for export sidebar */
 
 984   padding: $lineheight;
 
 991   .export_area_inputs {
 
 992     margin-bottom: $lineheight/2;
 
1000     background: $lightgrey;
 
1001     border: 1px solid $grey;
 
1004     #maxlat { margin-top: -1px; }
 
1007       /* no-r2 */ margin-left: -1px;
 
1011       /* no-r2 */ margin-right: -1px;
 
1013     #minlat { margin-bottom: -1px; }
 
1017     margin: $lineheight/4;
 
1021     padding-left: $lineheight/2;
 
1024       margin-bottom: 10px;
 
1029 /* Rules for the routing sidebar */
 
1038 /* Rules for edit pages */
 
1054 /* Rules for non-map content pages */
 
1057   background: $lightgrey;
 
1064   padding: $lineheight;
 
1067 /* Overrides for pages that use new layout conventions */
 
1073   .content-heading .content-inner {
 
1078 .header-illustration {
 
1079   background-position: 0 0;
 
1080   background-repeat: no-repeat;
 
1088     background-image: image-url("sign-up-illustration.png");
 
1092     background-image: image-url("confirm-illustration.png");
 
1096     background-image: image-url("terms-illustration.png");
 
1104     background-image: image-url("sign-up-illustration-arm.png");
 
1109 [dir=rtl] .header-illustration {
 
1110   transform: scaleX(-1);
 
1113 #content.maximised {
 
1122 /* Rules for small maps in content areas */
 
1126   border: 1px solid $grey;
 
1127   margin-bottom: $lineheight;
 
1130 @include media-breakpoint-up(md) {
 
1136 /* Rules for the user profile page */
 
1140   .userinformation-inner {
 
1149 .admin-user-info small {
 
1150   margin-bottom: $lineheight/2;
 
1152   margin-right: $lineheight;
 
1156   margin-top: $lineheight;
 
1160 .activity-details p {
 
1166   // Silly exception; remove when user page is redesigned.
 
1170   p#no_home_location {
 
1171     margin: $lineheight;
 
1174     margin-top: $lineheight/4;
 
1179 /* Rules for the user map */
 
1181 .content_map .leaflet-popup-content {
 
1182   margin: $lineheight/2;
 
1186 /* Rules for user popups on maps */
 
1192     margin-top: 0 0 0 60px;
 
1195   img.user_thumbnail {
 
1197     margin: 0 $lineheight/2 0 0;
 
1201 /* Rules for the user list */
 
1207     vertical-align: middle;
 
1216 #user_list_actions {
 
1218   margin-top: $lineheight/2;
 
1221 /* Rules for the diary list page */
 
1225   padding-top: $lineheight;
 
1226   padding-bottom: $lineheight/2;
 
1227   border-top: 1px solid $grey;
 
1230     margin-top: $lineheight/2;
 
1234     background-color: #fee;
 
1238     margin-bottom: $lineheight;
 
1242       margin-bottom: $lineheight/2;
 
1246   img.user_thumbnail {
 
1251 /* Rules for the diary entry page */
 
1256     border: 1px solid $grey;
 
1258     margin-bottom: $lineheight;
 
1264     border-top: 1px dashed $grey;
 
1265     padding-top: $lineheight/2;
 
1266     padding-bottom: $lineheight/2;
 
1268       margin-top: $lineheight/2;
 
1269       padding-top: $lineheight;
 
1270       border-top: 1px solid $grey;
 
1273       background-color: #fee;
 
1276       margin-bottom: $lineheight/2;
 
1285 .diary_entries-show img.user_thumbnail {
 
1289 /* Rules for the log in page */
 
1291 #login_auth_buttons {
 
1296     padding: $lineheight/4 $lineheight/2;
 
1300 /* Rules for the account confirmation page */
 
1304     border: 1px solid $grey;
 
1305     padding: $lineheight;
 
1306     margin-bottom: $lineheight;
 
1311       list-style: inherit;
 
1315       list-style-type: lower-alpha;
 
1320 /* Rules for the account settings page */
 
1322 #accountForm .user_image {
 
1326 #accountForm #user_image {
 
1330 #accountForm ul.accountImage-options {
 
1343   display: inline !important;
 
1346 /* Rules for the oauth settings page */
 
1348 .oauth_clients .buttons .oauth-edit {
 
1349   border-radius: 2px 0 0 2px;
 
1352 .oauth_clients .buttons .oauth-delete {
 
1353   border-radius: 0 2px 2px 0;
 
1356 /* Rules for the oauth authorization page */
 
1358 .oauth-authorize ul {
 
1362 /* Rules for messages pages */
 
1365   input[type="submit"] {
 
1370     background: $offwhite;
 
1374     background: #CBEEA7;
 
1382 .inbox-row .inbox-mark-read {
 
1387   margin-bottom: $lineheight;
 
1388   padding: $lineheight/4 0px 4px 0px;
 
1389   border-bottom: 1px solid $grey;
 
1396 .info-line .user_thumbnail_tiny {
 
1397   vertical-align: middle;
 
1401   white-space: nowrap;
 
1410 .inbox-row-unread .inbox-mark-unread {
 
1414 /* Rules for "flash" notice boxes shown at the top of the content area */
 
1417   padding: $lineheight;
 
1420     background-color: #ff7070;
 
1424     background-color: #ffe0cc;
 
1428     background-color: #CBEEA7;
 
1432     display: inline-block;
 
1433     margin-left: $lineheight / 2;
 
1434     vertical-align: middle;
 
1437       margin-top: $lineheight * 0.5;
 
1438       margin-bottom: $lineheight * 0.5;
 
1451 /* Rules for highlighting fields with rails validation errors */
 
1454   display: inline-block;
 
1460   background-color: #ff7070;
 
1463 /* Rules for rails validation error boxes */
 
1467   border: 2px solid #ff7070;
 
1468   padding: 0 $lineheight/2;
 
1469   margin-bottom: $lineheight;
 
1470   background-color: #f0f0f0;
 
1473     margin: 0 -10px 10px -10px;
 
1474     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
 
1477     background-color: #c00;
 
1485     padding: $lineheight/4;
 
1490   background-color: $lightgrey;
 
1492   .describe_location {
 
1501   background-color: $lightgrey;
 
1507       vertical-align: middle;
 
1511   a.reverse_directions {
 
1516 /* Rules for user images */
 
1521   border: 1px solid $grey;
 
1522   margin-bottom: $lineheight;
 
1524   margin-right: $lineheight;
 
1527 img.user_thumbnail {
 
1530   border: 1px solid $grey;
 
1531   margin-right: $lineheight;
 
1534 img.user_thumbnail_tiny {
 
1539   border: 1px solid $grey;
 
1542 /* Rules for geo microformats */
 
1545   border-bottom: none;
 
1548 /* General styles for action lists / subnavs / pager navs */
 
1550 ul.secondary-actions {
 
1556     display: inline-block;
 
1563     border-left: 1px solid $grey;
 
1564     padding-left: $lineheight/2;
 
1565     margin-right: $lineheight/2;
 
1576 div.secondary-actions {
 
1581 /* Utility for managing inner content areas */
 
1583 .inner22 { padding: $lineheight;}
 
1585 .inner12 { padding: $lineheight/2 $lineheight;}
 
1587 .inner11 { padding: $lineheight/2;}
 
1589 .inner20 { padding: $lineheight 0;}
 
1591 .inner02 { padding: 0 $lineheight;}
 
1595   input[type="submit"],
 
1596   input[type="button"],
 
1597   input[type="reset"],
 
1600     box-sizing: border-box;
 
1606     border-right:1px solid white;
 
1607     text-overflow: ellipsis;
 
1608     white-space: nowrap;
 
1612   .button:first-child,
 
1613   .button_to:first-child {
 
1614     border-radius:2px 0 0 2px;
 
1618   .button_to:last-child {
 
1619     border-radius:0 2px 2px 0;
 
1620     border-right-width: 0;
 
1624   .button_to:only-child,
 
1625   *[value="Hide"] + input:last-child,
 
1626   *[value="Hide"] + .button:last-child,
 
1627   *[value="Hide"] + .button_to:last-child {
 
1629     border-right-width: 0;
 
1631     /* if a 3-button set has a hidden middle button */
 
1632   *[value="Hide"] + input:nth-child(3),
 
1633   *[value="Hide"] + .button:nth-child(3),
 
1634   *[value="Hide"] + .button_to:nth-child(3) {
 
1635     border-radius:0 2px 2px 0;
 
1636     border-right-width: 0;
 
1638   /* if a 3-button set starts with a hidden button */
 
1639   *[value="Hide"] + input:nth-child(2):not(:last-child),
 
1640   *[value="Hide"] + .button:nth-child(2):not(:last-child),
 
1641   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
 
1642     border-radius:2px 0 0 2px;
 
1643     border-right-width: 1px;
 
1647 /* Customise the background colour of striped tables */
 
1649 .table-striped > tbody > tr:nth-child(2n+1) > td,
 
1650 .table-striped > tbody > tr:nth-child(2n+1) > th {
 
1651    background-color: $offwhite;
 
1654 /* Rules for OpenID logo */
 
1657   vertical-align: text-bottom;
 
1661 /* Rules for rich text */
 
1667     background: $lightgrey;
 
1673     background: $lightgrey;
 
1675     white-space: pre-wrap;
 
1683     padding: $lineheight;
 
1684     background-color: $offwhite;
 
1691     border-left: $lineheight solid $offwhite;
 
1692     padding-left: $lineheight;
 
1698 .comments .richtext {
 
1702 /* Rules for the user notes list */
 
1706     background-color: $offwhite;
 
1710 /* Rules for the iD editor */
 
1717 /* Rules for the "Welcome" page */
 
1718 .site-welcome, .site-fixthemap {
 
1728     background-image: image-url("welcome-sprite.png");
 
1729     background-size: 500px 250px;
 
1735     padding-bottom: 20px;
 
1737       margin-bottom: 10px;
 
1749     /* no-r2 */ background-position: -50px 0;
 
1754     vertical-align: middle;
 
1758     /* no-r2 */ background-position: -100px 0;
 
1762     /* no-r2 */ background-position: -150px 0;
 
1766     /* no-r2 */ background-position: -200px 0;
 
1770     /* no-r2 */ background-position: -250px 0;
 
1774     /* no-r2 */ background-position: -300px 0;
 
1778     /* no-r2 */ background-position: -350px 0;
 
1787     text-decoration: none;
 
1791     background-color: #333;
 
1796 .site-about #content {
 
1797   background-color: $lightgrey;
 
1798   background-position: 50% 50%;
 
1799   background-repeat: no-repeat;
 
1800   background-size: cover;
 
1801   background-attachment: fixed;
 
1818     padding: 170px 40px 20px;
 
1820     background: rgba(0, 0, 0, .8);
 
1830         color: $vibrant-green;
 
1834     @include media-breakpoint-up(sm) {
 
1846       background-position: 0 50%;
 
1847       background-repeat: no-repeat;
 
1848       background-image: image-url('about/osm.png');
 
1849       background-size: cover;
 
1850       background-color: $vibrant-green;
 
1860       padding: 20px 20px 20px 40px;
 
1861       font: 500 20px/24px Helvetica, Arial, sans-serif;
 
1862       white-space: nowrap;
 
1864       background: $vibrant-green;
 
1868       display: inline-block;
 
1878     vertical-align: middle;
 
1879     background: 40px 40px image-url('about/sprite.png') no-repeat;
 
1883       background-position: 0px 0px;
 
1887       background-position: 0px -40px;
 
1891       background-position: 0px -80px;
 
1895       background-position: 0px -120px;
 
1899       background-position: 0px -160px;
 
1903       background-position: -45px -160px;
 
1910 @media only screen and (max-width:960px) {
 
1911   .header-illustration.new-user-arm {