3 @import "rails_bootstrap_forms";
 
   5 /* Styles common to large and small screens */
 
   7 /* Default rules for the body of every page */
 
  10   font-size: $typeheight;
 
  22 #container { position: relative; }
 
  25   vertical-align: middle;
 
  26   margin-right: $lineheight/4;
 
  29 [dir=rtl] { /* no-r2 */ text-align: right; }
 
  31 [dir=ltr] { /* no-r2 */ text-align: left; }
 
  36   display: inline-block;
 
  40   background: transparent image-url("sprite.png") no-repeat 0 0;
 
  41   background-image: image-url("sprite.svg");
 
  46 .icon.search      { /* no-r2 */ background-position: 0 0; }
 
  47 .icon.donate      { /* no-r2 */ background-position: -20px 0; }
 
  48 .icon.zoomin      { /* no-r2 */ background-position: -40px 0; }
 
  49 .icon.zoomout     { /* no-r2 */ background-position: -60px 0; }
 
  50 .icon.geolocate   { /* no-r2 */ background-position: -80px 0; }
 
  51 .active .icon.geolocate   { /* no-r2 */ background-position: -80px -20px; }
 
  52 .icon.layers      { /* no-r2 */ background-position: -100px 0; }
 
  53 .icon.key         { /* no-r2 */ background-position: -120px 0; }
 
  54 .icon.share       { /* no-r2 */ background-position: -140px 0; }
 
  55 .icon.clipboard   { /* no-r2 */ background-position: -160px 0; }
 
  56 .icon.link        { /* no-r2 */ background-position: -180px 0; }
 
  57 .icon.close       { /* no-r2 */ background-position: -200px 0; }
 
  58 .close-wrap:hover .icon.close,
 
  59 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
 
  60 .icon.check       { /* no-r2 */ background-position: -220px 0; }
 
  61 .icon.note        { /* no-r2 */ background-position: -240px 0; }
 
  62 .icon.note.grey   { /* no-r2 */ background-position: -240px -20px; }
 
  63 .icon.query       { /* no-r2 */ background-position: -260px 0; }
 
  69   text-decoration: none;
 
  72     text-decoration: underline;
 
  76 /* Utility for de-emphasizing content */
 
  82 /* Rules for the header */
 
  85   display: none !important;
 
  87   background: image-url("menu-icon.png") no-repeat;
 
  88   background-size: 30px 30px;
 
  92   margin: 14px 10px 0 0;
 
  97   height: $headerHeight;
 
 102   h1, nav, nav > ul, nav > ul > li {
 
 103     display: inline-block;
 
 108     padding: $lineheight/2;
 
 116     text-decoration: none;
 
 123     vertical-align: middle;
 
 149   .btn-outline-primary {
 
 150     @include button-outline-variant($green, $white);
 
 154     .btn-outline-primary {
 
 159         border-top-color: $grey;
 
 163         background-color: lighten($green, 30%);
 
 168   // Small tweaks to the toggle to stop the primary colour showing through
 
 169   // when the menu is shown
 
 170   .show > .btn-outline-primary.dropdown-toggle {
 
 171     background-color: $green;
 
 172     border-color: $green;
 
 175       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
 
 190     color: darken($darkgrey, 25%);
 
 194     .btn-outline-secondary {
 
 195       @include button-outline-variant($darkgrey);
 
 200     .btn-outline-secondary {
 
 201       @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
 
 207         background-color: white;
 
 211     &.show .btn-outline-secondary {
 
 212       background-color: white;
 
 219   img.user_thumbnail_tiny {
 
 225     display: inline-block;
 
 227     margin: 3px 0 3px 3px;
 
 228     background-color: lighten($grey, 10%);
 
 240 nav.primary, nav.secondary {
 
 243       background-color: $green;
 
 249 #compact-secondary-nav {
 
 254   #compact-secondary-nav {
 
 255     display: inline-block;
 
 262 /* Utility for styling notification numbers */
 
 265   padding: 2px $lineheight/4;
 
 267   background: lighten($green, 30%);
 
 273 /* Rules for the message shown in place of the map when javascript is disabled */
 
 281 /* Rules for Leaflet maps */
 
 283 .leaflet-control .control-button {
 
 287   background-color: #333;
 
 288   background-color: rgba(0,0,0,.6);
 
 289   border-radius: 4px 0 0 4px;
 
 294     background-color: black;
 
 299     background-color: #333;
 
 300     background-color: rgba(0,0,0,.5);
 
 305     background-color: $vibrant-green;
 
 313 .leaflet-control .zoomin,
 
 314 .control-layers .control-button {
 
 316   border-radius: 4px 0 0 0;
 
 319 .leaflet-control .zoomout,
 
 320 .control-key .control-button {
 
 325 .control-locate .control-button,
 
 326 .control-share .control-button {
 
 327   border-radius: 0 0 0 4px;
 
 330 /* Rules for the sidebar and main map area */
 
 350     width: $sidebarWidth;
 
 373       margin-top: $lineheight;
 
 374       margin-bottom: $lineheight/2;
 
 387         pointer-events: none;
 
 412   .overlay-sidebar #sidebar {
 
 449       width: $sidebarWidth;
 
 465     .leaflet-marker-draggable {
 
 480       border-bottom: 1px solid $grey;
 
 490       border:1px solid $grey;
 
 495       border: 1px solid $grey;
 
 497         border-top-color: $grey;
 
 521       border: 2px solid #fff;
 
 524       transition: border-color 0.08s ease-in;
 
 531         border-bottom-right-radius: 3px;
 
 535         text-stroke: 2px #fff;
 
 536         background: rgba(255,255,255,.9);
 
 538         input[type="radio"] {
 
 543       &.active { border-color: darken($green, 10%); }
 
 546         &.active { border-color: darken($green, 20%); }
 
 556     li.disabled { color: $darkgrey; }
 
 566       text-decoration: none;
 
 567       background-color: $lightblue;
 
 569       border-right: 1px solid #fff;
 
 573       border-right: 1px solid #fff;
 
 574       border-radius: 4px 0 0 4px;
 
 578       border-radius: 0 4px 4px 0;
 
 582       background-color: $blue;
 
 594       font-family: monospace;
 
 616   top: $lineheight/2 !important;
 
 618     margin-right: 0px !important;
 
 619     margin-top: 0px !important;
 
 623 .leaflet-popup-scrolled {
 
 624   padding-right: $lineheight;
 
 625   border-bottom: 0px !important;
 
 626   border-top: 0px !important;
 
 629 .leaflet-popup-content-wrapper {
 
 630   border-radius: 4px !important;
 
 633 /* Rules for attribution text under the main map shown on printouts */
 
 643 .attribution_license,
 
 644 .attribution_project {
 
 648 .attribution_notice {
 
 652 .donate-attr { color: darken($green, 10%) !important; }
 
 654 /* Rules for the sidebar */
 
 658   padding: $lineheight/2 $lineheight;
 
 659   // background: $offwhite;
 
 660   // border-bottom: 1px solid $grey;
 
 684     margin: $lineheight auto;
 
 695 /* Temporary label size override until we remove site-wide font customisation */
 
 703 /* Rules for the search and direction forms */
 
 705 header .search_forms,
 
 710 /* Rules for the map key which appears in the popout sidebar */
 
 713  .mapkey-table-key img {
 
 720 /* Rules for search sidebar */
 
 722 #sidebar .search_results_entry {
 
 725     &.selected { background: $list-highlight; }
 
 728   .search_more .loader {
 
 734 .search_results_error {
 
 739 /* Rules for routing */
 
 742   background-image: image-url('routing-sprite.png');
 
 745   background-repeat: no-repeat;
 
 747 @for $i from 0 through 25 {
 
 748 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
 
 751 td.instruction, td.distance {
 
 752     padding-top: $lineheight/5;
 
 753     padding-bottom: $lineheight/5;
 
 754     border-bottom: 1px solid $grey;
 
 765     background: $list-highlight;
 
 768 .routing_marker { width: 15px; cursor: move; }
 
 770 /* Rules for entity history */
 
 775     border-bottom: $keyline;
 
 783 /* Rules for the history sidebar */
 
 785 #sidebar .changesets {
 
 789     &.selected { background: $list-highlight; }
 
 790     /* color is derived from changeset bbox fillColor in history.js */
 
 802   .changeset_more .loader {
 
 808 /* Rules for the browse sidebar */
 
 812     padding-bottom: $spacer;
 
 813     margin-bottom: $spacer;
 
 814     border-bottom: 1px solid $grey;
 
 818       word-wrap: break-word;
 
 822   .browse-section:last-of-type {
 
 829     border: 1px solid $lightgrey;
 
 837       padding: 5px 0 5px 10px;
 
 839       border: 1px solid $grey;
 
 840       border-radius: 4px 4px 0 0;
 
 841       background-color: $offwhite;
 
 847       background-color: #FFF;
 
 848       border: 1px solid $grey;
 
 850       border-radius: 0 0 4px 4px;
 
 855     background-color: $offwhite;
 
 856     border: 1px solid $grey;
 
 859     border-collapse: separate;
 
 864       border-bottom: 1px solid $grey;
 
 867     tr:last-child th, tr:last-child td {
 
 875       word-wrap: break-word;
 
 876       white-space: pre-wrap;
 
 881       background-color: $offwhite;
 
 885       border-left: 1px solid $grey;
 
 886       background-color: #fff;
 
 889     .colour-preview-box {
 
 894       border: 1px solid rgba(0, 0, 0, .1);
 
 895       // add color via inline css on element: background-color: <tag value>;
 
 899   .note-comments li, .changeset-comments li {
 
 900     margin: $lineheight/2 0;
 
 903       margin: 10px 6px 0 6px;
 
 914     margin: 18px 10px 10px;
 
 918   .subscribe-buttons input {
 
 924   span.action-button:hover {
 
 926     text-decoration: underline;
 
 931     margin: 0 0 10px 10px;
 
 944           background: $list-highlight;
 
 951 /* Bootstrap buttons don't have any vertical margin, so
 
 952    they touch when adjacent buttons wrap onto a new line
 
 953    e.g. wide form buttons on a narrow sidebar */
 
 957     margin-bottom: $spacer * 0.25;
 
 961 /* Rules for export sidebar */
 
 969   .export_area_inputs {
 
 970     margin-bottom: $lineheight/2;
 
 978     background: $lightgrey;
 
 979     border: 1px solid $grey;
 
 982     #maxlat { margin-top: -1px; }
 
 985       /* no-r2 */ margin-left: -1px;
 
 989       /* no-r2 */ margin-right: -1px;
 
 991     #minlat { margin-bottom: -1px; }
 
 995     margin: $lineheight/4;
 
 999     padding-left: $lineheight/2;
 
1002       margin-bottom: 10px;
 
1007 /* Rules for edit pages */
 
1023 /* Rules for non-map content pages */
 
1026   background: $lightgrey;
 
1033   padding: $lineheight;
 
1036 /* Overrides for pages that use new layout conventions */
 
1042   .content-heading .content-inner {
 
1047 .header-illustration {
 
1048   background-position: 0 0;
 
1049   background-repeat: no-repeat;
 
1057     background-image: image-url("sign-up-illustration.png");
 
1061     background-image: image-url("confirm-illustration.png");
 
1065     background-image: image-url("terms-illustration.png");
 
1073     background-image: image-url("sign-up-illustration-arm.png");
 
1078 [dir=rtl] .header-illustration {
 
1079   transform: scaleX(-1);
 
1082 #content.maximised {
 
1091 /* Rules for small maps in content areas */
 
1095   border: 1px solid $grey;
 
1096   margin-bottom: $lineheight;
 
1099 @include media-breakpoint-up(md) {
 
1105 /* Rules for the user profile page */
 
1109   .userinformation-inner {
 
1118 .admin-user-info small {
 
1119   margin-bottom: $lineheight/2;
 
1121   margin-right: $lineheight;
 
1125   margin-top: $lineheight;
 
1129 .activity-details p {
 
1135   // Silly exception; remove when user page is redesigned.
 
1139   p#no_home_location {
 
1140     margin: $lineheight;
 
1143     margin-top: $lineheight/4;
 
1148 /* Rules for the user map */
 
1150 .content_map .leaflet-popup-content {
 
1151   margin: $lineheight/2;
 
1155 /* Rules for user popups on maps */
 
1161     margin-top: 0 0 0 60px;
 
1164   img.user_thumbnail {
 
1166     margin: 0 $lineheight/2 0 0;
 
1170 /* Rules for the user list */
 
1176     vertical-align: middle;
 
1185 #user_list_actions {
 
1187   margin-top: $lineheight/2;
 
1190 /* Rules for the diary list page */
 
1194   padding-top: $lineheight;
 
1195   padding-bottom: $lineheight/2;
 
1196   border-top: 1px solid $grey;
 
1199     margin-top: $lineheight/2;
 
1203     background-color: #fee;
 
1207     margin-bottom: $lineheight;
 
1211       margin-bottom: $lineheight/2;
 
1215   img.user_thumbnail {
 
1220 /* Rules for the diary entry page */
 
1225     border: 1px solid $grey;
 
1227     margin-bottom: $lineheight;
 
1233     border-top: 1px dashed $grey;
 
1234     padding-top: $lineheight/2;
 
1235     padding-bottom: $lineheight/2;
 
1237       margin-top: $lineheight/2;
 
1238       padding-top: $lineheight;
 
1239       border-top: 1px solid $grey;
 
1242       background-color: #fee;
 
1245       margin-bottom: $lineheight/2;
 
1254 .diary_entries-show img.user_thumbnail {
 
1258 /* Rules for the log in page */
 
1260 #login_auth_buttons {
 
1265     padding: $lineheight/4 $lineheight/2;
 
1269 /* Rules for the account confirmation page */
 
1273     border: 1px solid $grey;
 
1274     padding: $lineheight;
 
1275     margin-bottom: $lineheight;
 
1280       list-style: inherit;
 
1284       list-style-type: lower-alpha;
 
1289 /* Rules for the account settings page */
 
1291 #accountForm .user_image {
 
1295 #accountForm #user_image {
 
1299 #accountForm ul.accountImage-options {
 
1312   display: inline !important;
 
1315 /* Rules for the oauth settings page */
 
1317 .oauth_clients .buttons .oauth-edit {
 
1318   border-radius: 2px 0 0 2px;
 
1321 .oauth_clients .buttons .oauth-delete {
 
1322   border-radius: 0 2px 2px 0;
 
1325 /* Rules for the oauth authorization page */
 
1327 .oauth-authorize ul {
 
1331 /* Rules for messages pages */
 
1334   input[type="submit"] {
 
1339     background: $offwhite;
 
1343     background: #CBEEA7;
 
1351 .inbox-row .inbox-mark-read {
 
1356   margin-bottom: $lineheight;
 
1357   padding: $lineheight/4 0px 4px 0px;
 
1358   border-bottom: 1px solid $grey;
 
1365 .info-line .user_thumbnail_tiny {
 
1366   vertical-align: middle;
 
1370   white-space: nowrap;
 
1379 .inbox-row-unread .inbox-mark-unread {
 
1383 /* Rules for "flash" notice boxes shown at the top of the content area */
 
1386   padding: $lineheight;
 
1389     background-color: #ff7070;
 
1393     background-color: #ffe0cc;
 
1397     background-color: #CBEEA7;
 
1401 /* Rules for highlighting fields with rails validation errors */
 
1404   display: inline-block;
 
1410   background-color: #ff7070;
 
1413 /* Rules for rails validation error boxes */
 
1417   border: 2px solid #ff7070;
 
1418   padding: 0 $lineheight/2;
 
1419   margin-bottom: $lineheight;
 
1420   background-color: #f0f0f0;
 
1423     margin: 0 -10px 10px -10px;
 
1424     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
 
1427     background-color: #c00;
 
1435     padding: $lineheight/4;
 
1440   background-color: $lightgrey;
 
1442   .describe_location {
 
1451   background-color: $lightgrey;
 
1457       vertical-align: middle;
 
1461   a.reverse_directions {
 
1466 /* Rules for user images */
 
1471   border: 1px solid $grey;
 
1472   margin-bottom: $lineheight;
 
1474   margin-right: $lineheight;
 
1477 img.user_thumbnail {
 
1480   border: 1px solid $grey;
 
1481   margin-right: $lineheight;
 
1484 img.user_thumbnail_tiny {
 
1489   border: 1px solid $grey;
 
1492 /* Rules for geo microformats */
 
1495   border-bottom: none;
 
1498 /* General styles for action lists / subnavs / pager navs */
 
1500 ul.secondary-actions {
 
1506     display: inline-block;
 
1513     border-left: 1px solid $grey;
 
1514     padding-left: $lineheight/2;
 
1515     margin-right: $lineheight/2;
 
1526 div.secondary-actions {
 
1533   input[type="submit"],
 
1534   input[type="button"],
 
1535   input[type="reset"],
 
1538     box-sizing: border-box;
 
1544     border-right:1px solid white;
 
1545     text-overflow: ellipsis;
 
1546     white-space: nowrap;
 
1550   .button:first-child,
 
1551   .button_to:first-child {
 
1552     border-radius:2px 0 0 2px;
 
1556   .button_to:last-child {
 
1557     border-radius:0 2px 2px 0;
 
1558     border-right-width: 0;
 
1562   .button_to:only-child,
 
1563   *[value="Hide"] + input:last-child,
 
1564   *[value="Hide"] + .button:last-child,
 
1565   *[value="Hide"] + .button_to:last-child {
 
1567     border-right-width: 0;
 
1569     /* if a 3-button set has a hidden middle button */
 
1570   *[value="Hide"] + input:nth-child(3),
 
1571   *[value="Hide"] + .button:nth-child(3),
 
1572   *[value="Hide"] + .button_to:nth-child(3) {
 
1573     border-radius:0 2px 2px 0;
 
1574     border-right-width: 0;
 
1576   /* if a 3-button set starts with a hidden button */
 
1577   *[value="Hide"] + input:nth-child(2):not(:last-child),
 
1578   *[value="Hide"] + .button:nth-child(2):not(:last-child),
 
1579   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
 
1580     border-radius:2px 0 0 2px;
 
1581     border-right-width: 1px;
 
1585 /* Customise the background colour of striped tables */
 
1587 .table-striped > tbody > tr:nth-child(2n+1) > td,
 
1588 .table-striped > tbody > tr:nth-child(2n+1) > th {
 
1589    background-color: $offwhite;
 
1592 /* Rules for OpenID logo */
 
1595   vertical-align: text-bottom;
 
1599 /* Rules for rich text */
 
1605     background: $lightgrey;
 
1611     background: $lightgrey;
 
1613     white-space: pre-wrap;
 
1621     padding: $lineheight;
 
1622     background-color: $offwhite;
 
1629     border-left: $lineheight solid $offwhite;
 
1630     padding-left: $lineheight;
 
1636 .comments .richtext {
 
1640 /* Rules for the user notes list */
 
1644     background-color: $offwhite;
 
1648 /* Rules for the iD editor */
 
1655 /* Rules for the "Welcome" page */
 
1656 .site-welcome, .site-fixthemap {
 
1666     background-image: image-url("welcome-sprite.png");
 
1667     background-size: 500px 250px;
 
1673     padding-bottom: 20px;
 
1675       margin-bottom: 10px;
 
1687     /* no-r2 */ background-position: -50px 0;
 
1692     vertical-align: middle;
 
1696     /* no-r2 */ background-position: -100px 0;
 
1700     /* no-r2 */ background-position: -150px 0;
 
1704     /* no-r2 */ background-position: -200px 0;
 
1708     /* no-r2 */ background-position: -250px 0;
 
1712     /* no-r2 */ background-position: -300px 0;
 
1716     /* no-r2 */ background-position: -350px 0;
 
1725     text-decoration: none;
 
1729     background-color: #333;
 
1734 .site-about #content {
 
1735   background-color: $lightgrey;
 
1736   background-position: 50% 50%;
 
1737   background-repeat: no-repeat;
 
1738   background-size: cover;
 
1739   background-attachment: fixed;
 
1750         color: $vibrant-green;
 
1756       background-position: 0 50%;
 
1757       background-repeat: no-repeat;
 
1758       background-image: image-url('about/osm.png');
 
1759       background-size: cover;
 
1760       background-color: $vibrant-green;
 
1764       background: $vibrant-green;
 
1768       display: inline-block;
 
1778     vertical-align: middle;
 
1779     background: 40px 40px image-url('about/sprite.png') no-repeat;
 
1783       background-position: 0px 0px;
 
1787       background-position: 0px -40px;
 
1791       background-position: 0px -80px;
 
1795       background-position: 0px -120px;
 
1799       background-position: 0px -160px;
 
1803       background-position: -45px -160px;
 
1810 @media only screen and (max-width:960px) {
 
1811   .header-illustration.new-user-arm {