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;
385 pointer-events: none;
405 .overlay-sidebar #sidebar {
442 width: $sidebarWidth;
458 .leaflet-marker-draggable {
473 border-bottom: 1px solid $grey;
483 border:1px solid $grey;
488 border: 1px solid $grey;
490 border-top-color: $grey;
514 border: 2px solid #fff;
517 transition: border-color 0.08s ease-in;
524 border-bottom-right-radius: 3px;
528 text-stroke: 2px #fff;
529 background: rgba(255,255,255,.9);
531 input[type="radio"] {
536 &.active { border-color: darken($green, 10%); }
539 &.active { border-color: darken($green, 20%); }
549 li.disabled { color: $darkgrey; }
559 text-decoration: none;
560 background-color: $lightblue;
562 border-right: 1px solid #fff;
566 border-right: 1px solid #fff;
567 border-radius: 4px 0 0 4px;
571 border-radius: 0 4px 4px 0;
575 background-color: $blue;
587 font-family: monospace;
609 top: $lineheight/2 !important;
611 margin-right: 0px !important;
612 margin-top: 0px !important;
616 .leaflet-popup-scrolled {
617 padding-right: $lineheight;
618 border-bottom: 0px !important;
619 border-top: 0px !important;
622 .leaflet-popup-content-wrapper {
623 border-radius: 4px !important;
626 /* Rules for attribution text under the main map shown on printouts */
636 .attribution_license,
637 .attribution_project {
641 .attribution_notice {
645 .donate-attr { color: darken($green, 10%) !important; }
647 /* Rules for the sidebar */
651 padding: $lineheight/2 $lineheight;
652 // background: $offwhite;
653 // border-bottom: 1px solid $grey;
677 margin: $lineheight auto;
688 /* Temporary label size override until we remove site-wide font customisation */
696 /* Rules for the search and direction forms */
698 header .search_forms,
703 /* Rules for the map key which appears in the popout sidebar */
706 .mapkey-table-key img {
713 /* Rules for search sidebar */
715 #sidebar .search_results_entry {
718 &.selected { background: $list-highlight; }
721 .search_more .loader {
727 .search_results_error {
732 /* Rules for routing */
735 background-image: image-url('routing-sprite.png');
738 background-repeat: no-repeat;
740 @for $i from 0 through 25 {
741 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
744 td.instruction, td.distance {
745 padding-top: $lineheight/5;
746 padding-bottom: $lineheight/5;
747 border-bottom: 1px solid $grey;
758 background: $list-highlight;
761 .routing_marker { width: 15px; cursor: move; }
763 /* Rules for entity history */
768 border-bottom: $keyline;
776 /* Rules for the history sidebar */
778 #sidebar .changesets {
782 &.selected { background: $list-highlight; }
783 /* color is derived from changeset bbox fillColor in history.js */
794 .changeset_more .loader {
800 /* Rules for the browse sidebar */
804 padding-bottom: $spacer;
805 margin-bottom: $spacer;
806 border-bottom: 1px solid $grey;
809 word-wrap: break-word;
813 .browse-section:last-of-type {
820 border: 1px solid $lightgrey;
828 padding: 5px 0 5px 10px;
830 border: 1px solid $grey;
831 border-radius: 4px 4px 0 0;
832 background-color: $offwhite;
838 background-color: #FFF;
839 border: 1px solid $grey;
841 border-radius: 0 0 4px 4px;
846 background-color: $offwhite;
847 border: 1px solid $grey;
850 border-collapse: separate;
853 margin-bottom: $spacer;
856 border-bottom: 1px solid $grey;
859 tr:last-child th, tr:last-child td {
867 word-wrap: break-word;
868 white-space: pre-wrap;
873 background-color: $offwhite;
877 border-left: 1px solid $grey;
878 background-color: #fff;
881 .colour-preview-box {
886 border: 1px solid rgba(0, 0, 0, .1);
887 // add color via inline css on element: background-color: <tag value>;
891 .note-comments li, .changeset-comments li {
892 margin: $lineheight/2 0;
895 margin: 10px 6px 0 6px;
910 .subscribe-buttons input {
916 span.action-button:hover {
918 text-decoration: underline;
923 margin: 0 0 10px 10px;
936 background: $list-highlight;
943 /* Bootstrap buttons don't have any vertical margin, so
944 they touch when adjacent buttons wrap onto a new line
945 e.g. wide form buttons on a narrow sidebar */
949 margin-bottom: $spacer * 0.25;
953 /* Rules for export sidebar */
961 .export_area_inputs {
962 margin-bottom: $spacer;
970 background: $lightgrey;
971 border: 1px solid $grey;
974 #maxlat { margin-top: -1px; }
977 /* no-r2 */ margin-left: -1px;
981 /* no-r2 */ margin-right: -1px;
983 #minlat { margin-bottom: -1px; }
987 margin: $lineheight/4;
991 padding-left: $lineheight/2;
999 /* Rules for edit pages */
1015 /* Rules for non-map content pages */
1018 background: $lightgrey;
1025 padding: $lineheight;
1028 /* Overrides for pages that use new layout conventions */
1030 .header-illustration {
1031 background-position: 0 0;
1032 background-repeat: no-repeat;
1040 background-image: image-url("sign-up-illustration.png");
1044 background-image: image-url("confirm-illustration.png");
1048 background-image: image-url("terms-illustration.png");
1056 background-image: image-url("sign-up-illustration-arm.png");
1059 pointer-events: none;
1063 [dir=rtl] .header-illustration {
1064 transform: scaleX(-1);
1067 #content.maximised {
1076 /* Rules for small maps in content areas */
1080 border: 1px solid $grey;
1081 margin-bottom: $lineheight;
1084 @include media-breakpoint-up(md) {
1090 /* Rules for the user map */
1092 .content_map .leaflet-popup-content {
1093 margin: $lineheight/2;
1097 /* Rules for user popups on maps */
1103 margin-top: 0 0 0 60px;
1108 /* Rules for the user list */
1114 /* Rules for the diary list page */
1118 padding-top: $lineheight;
1119 padding-bottom: $lineheight/2;
1120 border-top: 1px solid $grey;
1123 margin-top: $lineheight/2;
1127 background-color: #fee;
1131 margin-bottom: $lineheight;
1135 margin-bottom: $lineheight/2;
1139 img.user_thumbnail {
1144 /* Rules for the diary entry page */
1149 border: 1px solid $grey;
1151 margin-bottom: $lineheight;
1157 border-top: 1px dashed $grey;
1158 padding-top: $lineheight/2;
1159 padding-bottom: $lineheight/2;
1161 margin-top: $lineheight/2;
1162 padding-top: $lineheight;
1163 border-top: 1px solid $grey;
1166 background-color: #fee;
1169 margin-bottom: $lineheight/2;
1178 .diary_entries-show img.user_thumbnail {
1182 /* Rules for the log in page */
1184 #login_auth_buttons {
1189 padding: $lineheight/4 $lineheight/2;
1193 /* Rules for the account confirmation page */
1197 border: 1px solid $grey;
1198 padding: $lineheight;
1199 margin-bottom: $lineheight;
1204 list-style: inherit;
1208 list-style-type: lower-alpha;
1213 /* Rules for the account settings page */
1215 #accountForm .user_image {
1219 #accountForm #user_image {
1223 #accountForm ul.accountImage-options {
1236 display: inline !important;
1239 /* Rules for the oauth settings page */
1241 .oauth_clients .buttons .oauth-edit {
1242 border-radius: 2px 0 0 2px;
1245 .oauth_clients .buttons .oauth-delete {
1246 border-radius: 0 2px 2px 0;
1249 /* Rules for the oauth authorization page */
1251 .oauth-authorize ul {
1255 /* Rules for messages pages */
1258 input[type="submit"] {
1263 background: $offwhite;
1267 background: #CBEEA7;
1275 .inbox-row .inbox-mark-read {
1280 margin-bottom: $lineheight;
1281 padding: $lineheight/4 0px 4px 0px;
1282 border-bottom: 1px solid $grey;
1289 .info-line .user_thumbnail_tiny {
1290 vertical-align: middle;
1294 white-space: nowrap;
1303 .inbox-row-unread .inbox-mark-unread {
1307 /* Rules for "flash" notice boxes shown at the top of the content area */
1310 padding: $lineheight;
1313 background-color: #ff7070;
1317 background-color: #ffe0cc;
1321 background-color: #CBEEA7;
1325 /* Rules for highlighting fields with rails validation errors */
1328 display: inline-block;
1334 background-color: #ff7070;
1337 /* Rules for rails validation error boxes */
1341 border: 2px solid #ff7070;
1342 padding: 0 $lineheight/2;
1343 margin-bottom: $lineheight;
1344 background-color: #f0f0f0;
1347 margin: 0 -10px 10px -10px;
1348 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1351 background-color: #c00;
1359 padding: $lineheight/4;
1364 background-color: $lightgrey;
1366 .describe_location {
1375 background-color: $lightgrey;
1381 vertical-align: middle;
1385 a.reverse_directions {
1390 /* Rules for user images */
1395 border: 1px solid $grey;
1398 img.user_thumbnail {
1401 border: 1px solid $grey;
1404 img.user_thumbnail_tiny {
1409 border: 1px solid $grey;
1412 /* Rules for geo microformats */
1415 border-bottom: none;
1418 /* General styles for action lists / subnavs / pager navs */
1421 nav.secondary-actions {
1426 flex-direction: row;
1432 display: inline-block;
1438 border-left: 1px solid $grey;
1439 padding-left: $lineheight/2;
1440 margin-right: $lineheight/2;
1441 margin-bottom: $lineheight/8;
1446 div.secondary-actions {
1453 input[type="submit"],
1454 input[type="button"],
1455 input[type="reset"],
1458 box-sizing: border-box;
1464 border-right:1px solid white;
1465 text-overflow: ellipsis;
1466 white-space: nowrap;
1470 .button:first-child,
1471 .button_to:first-child {
1472 border-radius:2px 0 0 2px;
1476 .button_to:last-child {
1477 border-radius:0 2px 2px 0;
1478 border-right-width: 0;
1482 .button_to:only-child,
1483 *[value="Hide"] + input:last-child,
1484 *[value="Hide"] + .button:last-child,
1485 *[value="Hide"] + .button_to:last-child {
1487 border-right-width: 0;
1489 /* if a 3-button set has a hidden middle button */
1490 *[value="Hide"] + input:nth-child(3),
1491 *[value="Hide"] + .button:nth-child(3),
1492 *[value="Hide"] + .button_to:nth-child(3) {
1493 border-radius:0 2px 2px 0;
1494 border-right-width: 0;
1496 /* if a 3-button set starts with a hidden button */
1497 *[value="Hide"] + input:nth-child(2):not(:last-child),
1498 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1499 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1500 border-radius:2px 0 0 2px;
1501 border-right-width: 1px;
1505 /* Create a single-line dl */
1509 display: inline-block;
1516 /* Customise the background colour of striped tables */
1518 .table-striped > tbody > tr:nth-child(2n+1) > td,
1519 .table-striped > tbody > tr:nth-child(2n+1) > th {
1520 background-color: $offwhite;
1523 /* Rules for OpenID logo */
1526 vertical-align: text-bottom;
1530 /* Rules for rich text */
1536 background: $lightgrey;
1542 background: $lightgrey;
1544 white-space: pre-wrap;
1552 padding: $lineheight;
1553 background-color: $offwhite;
1560 border-left: $lineheight solid $offwhite;
1561 padding-left: $lineheight;
1567 /* Rules for the user notes list */
1571 background-color: $offwhite;
1575 /* Rules for the iD editor */
1582 /* Rules for the "Welcome" page */
1583 .site-welcome, .site-fixthemap {
1593 background-image: image-url("welcome-sprite.png");
1594 background-size: 500px 250px;
1600 padding-bottom: 20px;
1602 margin-bottom: 10px;
1614 /* no-r2 */ background-position: -50px 0;
1619 vertical-align: middle;
1623 /* no-r2 */ background-position: -100px 0;
1627 /* no-r2 */ background-position: -150px 0;
1631 /* no-r2 */ background-position: -200px 0;
1635 /* no-r2 */ background-position: -250px 0;
1639 /* no-r2 */ background-position: -300px 0;
1643 /* no-r2 */ background-position: -350px 0;
1652 text-decoration: none;
1656 background-color: #333;
1661 .site-about #content {
1662 background-color: $lightgrey;
1663 background-position: 50% 50%;
1664 background-repeat: no-repeat;
1665 background-size: cover;
1666 background-attachment: fixed;
1677 color: $vibrant-green;
1683 background-position: 0 50%;
1684 background-repeat: no-repeat;
1685 background-image: image-url('about/osm.png');
1686 background-size: cover;
1687 background-color: $vibrant-green;
1691 background: $vibrant-green;
1695 display: inline-block;
1705 vertical-align: middle;
1706 background: 40px 40px image-url('about/sprite.png') no-repeat;
1710 background-position: 0px 0px;
1714 background-position: 0px -40px;
1718 background-position: 0px -80px;
1722 background-position: 0px -120px;
1726 background-position: 0px -160px;
1730 background-position: -45px -160px;
1737 @media only screen and (max-width:960px) {
1738 .header-illustration.new-user-arm {