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 borders */
 
  83 /* These add additional colours to those provided by bootstrap */
 
  85   border-color: $grey !important;
 
  89   border-color: $lightgrey !important;
 
  92 /* Rules for the header */
 
  95   display: none !important;
 
  97   background: image-url("menu-icon.png") no-repeat;
 
  98   background-size: 30px 30px;
 
 102   margin: 14px 10px 0 0;
 
 107   height: $headerHeight;
 
 112   h1, nav, nav > ul, nav > ul > li {
 
 113     display: inline-block;
 
 118     padding: $lineheight/2;
 
 126     text-decoration: none;
 
 133     vertical-align: middle;
 
 159   .btn-outline-primary {
 
 160     @include button-outline-variant($green, $white);
 
 164     .btn-outline-primary {
 
 169         border-top-color: $grey;
 
 173         background-color: lighten($green, 30%);
 
 178   // Small tweaks to the toggle to stop the primary colour showing through
 
 179   // when the menu is shown
 
 180   .show > .btn-outline-primary.dropdown-toggle {
 
 181     background-color: $green;
 
 182     border-color: $green;
 
 185       box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
 
 200     color: darken($darkgrey, 25%);
 
 204     .btn-outline-secondary {
 
 205       @include button-outline-variant($darkgrey);
 
 210     .btn-outline-secondary {
 
 211       @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
 
 217         background-color: white;
 
 221     &.show .btn-outline-secondary {
 
 222       background-color: white;
 
 230     display: inline-block;
 
 232     margin: 3px 0 3px 3px;
 
 233     background-color: lighten($grey, 10%);
 
 245 nav.primary, nav.secondary {
 
 248       background-color: $green;
 
 254 #compact-secondary-nav {
 
 259   #compact-secondary-nav {
 
 260     display: inline-block;
 
 267 /* Utility for styling notification numbers */
 
 270   padding: 2px $lineheight/4;
 
 272   background: lighten($green, 30%);
 
 278 /* Rules for the message shown in place of the map when javascript is disabled */
 
 286 /* Rules for Leaflet maps */
 
 288 .leaflet-control .control-button {
 
 292   background-color: #333;
 
 293   background-color: rgba(0,0,0,.6);
 
 294   border-radius: 4px 0 0 4px;
 
 299     background-color: black;
 
 304     background-color: #333;
 
 305     background-color: rgba(0,0,0,.5);
 
 310     background-color: $vibrant-green;
 
 318 .leaflet-control .zoomin,
 
 319 .control-layers .control-button {
 
 321   border-radius: 4px 0 0 0;
 
 324 .leaflet-control .zoomout,
 
 325 .control-key .control-button {
 
 330 .control-locate .control-button,
 
 331 .control-share .control-button {
 
 332   border-radius: 0 0 0 4px;
 
 335 /* Rules for the sidebar and main map area */
 
 355     width: $sidebarWidth;
 
 390         pointer-events: none;
 
 398   .overlay-sidebar #sidebar {
 
 435       width: $sidebarWidth;
 
 451     .leaflet-marker-draggable {
 
 466       border-bottom: 1px solid $grey;
 
 476       border:1px solid $grey;
 
 481       border: 1px solid $grey;
 
 483         border-top-color: $grey;
 
 507       border: 2px solid #fff;
 
 510       transition: border-color 0.08s ease-in;
 
 517         border-bottom-right-radius: 3px;
 
 521         text-stroke: 2px #fff;
 
 522         background: rgba(255,255,255,.9);
 
 524         input[type="radio"] {
 
 529       &.active { border-color: darken($green, 10%); }
 
 532         &.active { border-color: darken($green, 20%); }
 
 542     li.disabled { color: $darkgrey; }
 
 552       text-decoration: none;
 
 553       background-color: $lightblue;
 
 555       border-right: 1px solid #fff;
 
 559       border-right: 1px solid #fff;
 
 560       border-radius: 4px 0 0 4px;
 
 564       border-radius: 0 4px 4px 0;
 
 568       background-color: $blue;
 
 580       font-family: monospace;
 
 602   top: $lineheight/2 !important;
 
 604     margin-right: 0px !important;
 
 605     margin-top: 0px !important;
 
 609 .leaflet-popup-scrolled {
 
 610   padding-right: $lineheight;
 
 611   border-bottom: 0px !important;
 
 612   border-top: 0px !important;
 
 615 .leaflet-popup-content-wrapper {
 
 616   border-radius: 4px !important;
 
 619 /* Rules for attribution text under the main map shown on printouts */
 
 629 .attribution_license,
 
 630 .attribution_project {
 
 634 .attribution_notice {
 
 638 .donate-attr { color: darken($green, 10%) !important; }
 
 640 /* Rules for the sidebar */
 
 644   padding: $lineheight/2 $lineheight;
 
 645   // background: $offwhite;
 
 646   // border-bottom: 1px solid $grey;
 
 670     margin: $lineheight auto;
 
 681 /* Temporary label size override until we remove site-wide font customisation */
 
 689 /* Stop bootstrap 5 from floating legends when they don't need to be */
 
 694 /* Rules for the search and direction forms */
 
 696 header .search_forms,
 
 701 /* Rules for the map key which appears in the popout sidebar */
 
 704  .mapkey-table-key img {
 
 711 /* Rules for search sidebar */
 
 713 #sidebar .search_results_entry {
 
 716     &.selected { background: $list-highlight; }
 
 719   .search_more .loader {
 
 725 .search_results_error {
 
 730 /* Rules for routing */
 
 733   background-image: image-url('routing-sprite.png');
 
 736   background-repeat: no-repeat;
 
 738 @for $i from 0 through 25 {
 
 739 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
 
 742 td.instruction, td.distance {
 
 743     padding-top: $lineheight/5;
 
 744     padding-bottom: $lineheight/5;
 
 745     border-bottom: 1px solid $grey;
 
 756     background: $list-highlight;
 
 759 .routing_marker { width: 15px; cursor: move; }
 
 761 /* Rules for entity history */
 
 766     border-bottom: $keyline;
 
 774 /* Rules for the history sidebar */
 
 776 #sidebar .changesets {
 
 780     &.selected { background: $list-highlight; }
 
 781     /* color is derived from changeset bbox fillColor in history.js */
 
 792   .changeset_more .loader {
 
 798 /* Rules for the browse sidebar */
 
 802     padding-bottom: $spacer;
 
 803     margin-bottom: $spacer;
 
 804     border-bottom: 1px solid $grey;
 
 807       word-wrap: break-word;
 
 811   .browse-section:last-of-type {
 
 816     background-color: $offwhite;
 
 818     border-collapse: separate;
 
 821     margin-bottom: $spacer;
 
 824       border-bottom: 1px solid $grey;
 
 827     tr:last-child th, tr:last-child td {
 
 835       word-wrap: break-word;
 
 836       white-space: pre-wrap;
 
 841       background-color: $offwhite;
 
 845       border-left: 1px solid $grey;
 
 846       background-color: #fff;
 
 849     .colour-preview-box {
 
 854       border: 1px solid rgba(0, 0, 0, .1);
 
 855       // add color via inline css on element: background-color: <tag value>;
 
 859   .note-comments li, .changeset-comments li {
 
 860     margin: $lineheight/2 0;
 
 863       margin: 10px 6px 0 6px;
 
 868   .subscribe-buttons input {
 
 874   span.action-button:hover {
 
 876     text-decoration: underline;
 
 881     margin: 0 0 10px 10px;
 
 894           background: $list-highlight;
 
 901 /* Bootstrap buttons don't have any vertical margin, so
 
 902    they touch when adjacent buttons wrap onto a new line
 
 903    e.g. wide form buttons on a narrow sidebar */
 
 907     margin-bottom: $spacer * 0.25;
 
 911 /* Rules for export sidebar */
 
 919   .export_area_inputs {
 
 920     margin-bottom: $spacer;
 
 928     background: $lightgrey;
 
 930     #maxlat { margin-top: -1px; }
 
 933       /* no-r2 */ margin-left: -1px;
 
 937       /* no-r2 */ margin-right: -1px;
 
 939     #minlat { margin-bottom: -1px; }
 
 943     margin: $lineheight/4;
 
 947     padding-left: $lineheight/2;
 
 955 /* Rules for edit pages */
 
 971 /* Rules for non-map content pages */
 
 974   background: $lightgrey;
 
 981   padding: $lineheight;
 
 984 /* Overrides for pages that use new layout conventions */
 
 986 .header-illustration {
 
 987   background-position: 0 0;
 
 988   background-repeat: no-repeat;
 
 996     background-image: image-url("sign-up-illustration.png");
 
1000     background-image: image-url("confirm-illustration.png");
 
1004     background-image: image-url("terms-illustration.png");
 
1012     background-image: image-url("sign-up-illustration-arm.png");
 
1015     pointer-events: none;
 
1019 [dir=rtl] .header-illustration {
 
1020   transform: scaleX(-1);
 
1023 #content.maximised {
 
1032 /* Rules for small maps in content areas */
 
1036   margin-bottom: $lineheight;
 
1039 @include media-breakpoint-up(md) {
 
1045 /* Rules for the user map */
 
1047 .content_map .leaflet-popup-content {
 
1048   margin: $lineheight/2;
 
1052 /* Rules for user popups on maps */
 
1058     margin-top: 0 0 0 60px;
 
1063 /* Rules for the user list */
 
1069 /* Rules for the diary list page */
 
1073   padding-top: $lineheight;
 
1074   padding-bottom: $lineheight/2;
 
1075   border-top: 1px solid $grey;
 
1078     background-color: #fee;
 
1082 /* Rules for the diary entry page */
 
1088     margin-bottom: $lineheight;
 
1094     border-top: 1px dashed $grey;
 
1095     padding-top: $lineheight/2;
 
1096     padding-bottom: $lineheight/2;
 
1098       margin-top: $lineheight/2;
 
1099       padding-top: $lineheight;
 
1100       border-top: 1px solid $grey;
 
1103       background-color: #fee;
 
1106       margin-bottom: $lineheight/2;
 
1115 /* Rules for the log in page */
 
1117 #login_auth_buttons {
 
1122     padding: $lineheight/4 $lineheight/2;
 
1126 /* Rules for the account confirmation page */
 
1130     padding: $lineheight;
 
1131     margin-bottom: $lineheight;
 
1136       list-style: inherit;
 
1140       list-style-type: lower-alpha;
 
1145 /* Rules for the account settings page */
 
1147 #accountForm .user_image {
 
1151 #accountForm #user_image {
 
1155 #accountForm ul.accountImage-options {
 
1168   display: inline !important;
 
1171 /* Rules for the oauth settings page */
 
1173 .oauth_clients .buttons .oauth-edit {
 
1174   border-radius: 2px 0 0 2px;
 
1177 .oauth_clients .buttons .oauth-delete {
 
1178   border-radius: 0 2px 2px 0;
 
1181 /* Rules for the oauth authorization page */
 
1183 .oauth-authorize ul {
 
1187 /* Rules for messages pages */
 
1190   button[type="submit"] {
 
1192     white-space: nowrap;
 
1196     background: $offwhite;
 
1200     background: #CBEEA7;
 
1208 .inbox-row .inbox-mark-read {
 
1213   margin-bottom: $lineheight;
 
1214   padding: $lineheight/4 0px 4px 0px;
 
1215   border-bottom: 1px solid $grey;
 
1222 .info-line .user_thumbnail_tiny {
 
1223   vertical-align: middle;
 
1227   white-space: nowrap;
 
1236 .inbox-row-unread .inbox-mark-unread {
 
1240 /* Rules for "flash" notice boxes shown at the top of the content area */
 
1244     background-color: #ff7070;
 
1248     background-color: #ffe0cc;
 
1252     background-color: #CBEEA7;
 
1256 /* Rules for highlighting fields with rails validation errors */
 
1259   display: inline-block;
 
1265   background-color: #ff7070;
 
1268 /* Rules for rails validation error boxes */
 
1272   border: 2px solid #ff7070;
 
1273   padding: 0 $lineheight/2;
 
1274   margin-bottom: $lineheight;
 
1275   background-color: #f0f0f0;
 
1278     margin: 0 -10px 10px -10px;
 
1279     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
 
1282     background-color: #c00;
 
1290     padding: $lineheight/4;
 
1295   background-color: $lightgrey;
 
1297   .describe_location {
 
1306   background-color: $lightgrey;
 
1312       vertical-align: middle;
 
1316   a.reverse_directions {
 
1321 /* Rules for user images */
 
1328 img.user_thumbnail {
 
1333 img.user_thumbnail_tiny {
 
1340 /* Rules for geo microformats */
 
1343   border-bottom: none;
 
1346 /* General styles for action lists / subnavs / pager navs */
 
1349 nav.secondary-actions {
 
1354     flex-direction: row;
 
1360       display: inline-block;
 
1366       border-left: 1px solid $grey;
 
1367       padding-left: $lineheight/2;
 
1368       margin-right: $lineheight/2;
 
1369       margin-bottom: $lineheight/8;
 
1374 div.secondary-actions {
 
1381   input[type="submit"],
 
1382   input[type="button"],
 
1383   input[type="reset"],
 
1386     box-sizing: border-box;
 
1392     border-right:1px solid white;
 
1393     text-overflow: ellipsis;
 
1394     white-space: nowrap;
 
1398   .button:first-child,
 
1399   .button_to:first-child {
 
1400     border-radius:2px 0 0 2px;
 
1404   .button_to:last-child {
 
1405     border-radius:0 2px 2px 0;
 
1406     border-right-width: 0;
 
1410   .button_to:only-child,
 
1411   *[value="Hide"] + input:last-child,
 
1412   *[value="Hide"] + .button:last-child,
 
1413   *[value="Hide"] + .button_to:last-child {
 
1415     border-right-width: 0;
 
1417     /* if a 3-button set has a hidden middle button */
 
1418   *[value="Hide"] + input:nth-child(3),
 
1419   *[value="Hide"] + .button:nth-child(3),
 
1420   *[value="Hide"] + .button_to:nth-child(3) {
 
1421     border-radius:0 2px 2px 0;
 
1422     border-right-width: 0;
 
1424   /* if a 3-button set starts with a hidden button */
 
1425   *[value="Hide"] + input:nth-child(2):not(:last-child),
 
1426   *[value="Hide"] + .button:nth-child(2):not(:last-child),
 
1427   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
 
1428     border-radius:2px 0 0 2px;
 
1429     border-right-width: 1px;
 
1433 /* Create a single-line dl */
 
1437     display: inline-block;
 
1444 /* Customise the background colour of striped tables */
 
1446 .table-striped > tbody > tr:nth-child(2n+1) > td,
 
1447 .table-striped > tbody > tr:nth-child(2n+1) > th {
 
1448    background-color: $offwhite;
 
1451 /* Rules for OpenID logo */
 
1454   vertical-align: text-bottom;
 
1458 /* Rules for rich text */
 
1464     background: $lightgrey;
 
1470     background: $lightgrey;
 
1472     white-space: pre-wrap;
 
1480     padding: $lineheight;
 
1481     background-color: $offwhite;
 
1488     border-left: $lineheight solid $offwhite;
 
1489     padding-left: $lineheight;
 
1495 /* Rules for the user notes list */
 
1499     background-color: $offwhite;
 
1503 /* Rules for the iD editor */
 
1510 /* Rules for the "Welcome" page */
 
1511 .site-welcome, .site-fixthemap {
 
1521     background-image: image-url("welcome-sprite.png");
 
1522     background-size: 500px 250px;
 
1528     padding-bottom: 20px;
 
1530       margin-bottom: 10px;
 
1542     /* no-r2 */ background-position: -50px 0;
 
1547     vertical-align: middle;
 
1551     /* no-r2 */ background-position: -100px 0;
 
1555     /* no-r2 */ background-position: -150px 0;
 
1559     /* no-r2 */ background-position: -200px 0;
 
1563     /* no-r2 */ background-position: -250px 0;
 
1567     /* no-r2 */ background-position: -300px 0;
 
1571     /* no-r2 */ background-position: -350px 0;
 
1580     text-decoration: none;
 
1584     background-color: #333;
 
1589 .site-about #content {
 
1590   background-color: $lightgrey;
 
1591   background-position: 50% 50%;
 
1592   background-repeat: no-repeat;
 
1593   background-size: cover;
 
1594   background-attachment: fixed;
 
1605         color: $vibrant-green;
 
1611       background-position: 0 50%;
 
1612       background-repeat: no-repeat;
 
1613       background-image: image-url('about/osm.png');
 
1614       background-size: cover;
 
1615       background-color: $vibrant-green;
 
1619       background: $vibrant-green;
 
1623       display: inline-block;
 
1633     vertical-align: middle;
 
1634     background: 40px 40px image-url('about/sprite.png') no-repeat;
 
1638       background-position: 0px 0px;
 
1642       background-position: 0px -40px;
 
1646       background-position: 0px -80px;
 
1650       background-position: 0px -120px;
 
1654       background-position: 0px -160px;
 
1658       background-position: -45px -160px;
 
1665 @media only screen and (max-width:960px) {
 
1666   .header-illustration.new-user-arm {