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; }
65 /* Utility for de-emphasizing content */
71 /* Rules for borders */
72 /* These add additional colours to those provided by bootstrap */
74 border-color: $grey !important;
78 border-color: $lightgrey !important;
81 /* Rules for the header */
84 display: none !important;
86 background: image-url("menu-icon.png") no-repeat;
87 background-size: 30px 30px;
91 margin: 14px 10px 0 0;
96 height: $headerHeight;
101 h1, nav, nav > ul, nav > ul > li {
102 display: inline-block;
107 padding: $lineheight/2;
115 text-decoration: none;
122 vertical-align: middle;
148 .btn-outline-primary {
149 @include button-outline-variant($green, $white);
153 .btn-outline-primary {
158 border-top-color: $grey;
162 background-color: lighten($green, 30%);
167 // Small tweaks to the toggle to stop the primary colour showing through
168 // when the menu is shown
169 .show > .btn-outline-primary.dropdown-toggle {
170 background-color: $green;
171 border-color: $green;
174 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
189 color: darken($darkgrey, 25%);
193 .btn-outline-secondary {
194 @include button-outline-variant($darkgrey, $white, null, null, $white);
199 .btn-outline-secondary {
200 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
206 background-color: white;
210 &.show .btn-outline-secondary {
211 background-color: white;
219 display: inline-block;
221 margin: 3px 0 3px 3px;
222 background-color: lighten($grey, 10%);
234 nav.primary, nav.secondary {
237 background-color: $green;
243 #compact-secondary-nav {
248 #compact-secondary-nav {
249 display: inline-block;
256 /* Utility for styling notification numbers */
259 padding: 2px $lineheight/4;
261 background: lighten($green, 30%);
267 /* Rules for the message shown in place of the map when javascript is disabled */
275 /* Rules for Leaflet maps */
277 .leaflet-control .control-button {
281 background-color: #333;
282 background-color: rgba(0,0,0,.6);
283 border-radius: 4px 0 0 4px;
288 background-color: black;
293 background-color: #333;
294 background-color: rgba(0,0,0,.5);
299 background-color: $vibrant-green;
307 .leaflet-control .zoomin,
308 .control-layers .control-button {
310 border-radius: 4px 0 0 0;
313 .leaflet-control .zoomout,
314 .control-key .control-button {
319 .control-locate .control-button,
320 .control-share .control-button {
321 border-radius: 0 0 0 4px;
324 /* Rules for the sidebar and main map area */
344 width: $sidebarWidth;
371 pointer-events: none;
379 .overlay-sidebar #sidebar {
416 width: $sidebarWidth;
432 .leaflet-marker-draggable {
447 border-bottom: 1px solid $grey;
457 border:1px solid $grey;
462 border: 1px solid $grey;
464 border-top-color: $grey;
488 border: 2px solid #fff;
491 transition: border-color 0.08s ease-in;
498 border-bottom-right-radius: 3px;
502 text-stroke: 2px #fff;
503 background: rgba(255,255,255,.9);
505 input[type="radio"] {
510 &.active { border-color: darken($green, 10%); }
513 &.active { border-color: darken($green, 20%); }
523 li.disabled { color: $darkgrey; }
533 text-decoration: none;
534 background-color: $lightblue;
536 border-right: 1px solid #fff;
540 border-right: 1px solid #fff;
541 border-radius: 4px 0 0 4px;
545 border-radius: 0 4px 4px 0;
549 background-color: $blue;
561 font-family: monospace;
583 top: $lineheight/2 !important;
585 margin-right: 0px !important;
586 margin-top: 0px !important;
590 .leaflet-popup-scrolled {
591 padding-right: $lineheight;
592 border-bottom: 0px !important;
593 border-top: 0px !important;
596 .leaflet-popup-content-wrapper {
597 border-radius: 4px !important;
600 /* Rules for attribution text under the main map shown on printouts */
610 .attribution_license,
611 .attribution_project {
615 .attribution_notice {
619 .donate-attr { color: darken($green, 10%) !important; }
621 /* Rules for the sidebar */
625 padding: $lineheight/2 $lineheight;
626 // background: $offwhite;
627 // border-bottom: 1px solid $grey;
651 margin: $lineheight auto;
662 /* Temporary label size override until we remove site-wide font customisation */
670 /* Stop bootstrap 5 from floating legends when they don't need to be */
675 /* Override the text colour for primary and secondary buttons, to match our
676 bootstrap 4 colours. Note this has accessibility issues, which is why
677 bootstrap 5 calculates black as the appropriate colour, and we should
678 reconsider our colours at some point with that in mind. */
681 @include button-variant($primary, $primary, $white, null, null, $white, null, null, $white, null, null, $white);
685 @include button-variant($secondary, $secondary, $white, null, null, $white, null, null, $white, null, null, $white);
688 .btn-outline-secondary {
689 @include button-outline-variant($secondary, $white, null, null, $white);
692 /* Rules for the search and direction forms */
694 header .search_forms,
699 /* Rules for the map key which appears in the popout sidebar */
702 .mapkey-table-key img {
709 /* Rules for search sidebar */
711 #sidebar .search_results_entry {
714 &.selected { background: $list-highlight; }
717 .search_more .loader {
723 .search_results_error {
728 /* Rules for routing */
731 background-image: image-url('routing-sprite.png');
734 background-repeat: no-repeat;
736 @for $i from 0 through 25 {
737 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
740 td.instruction, td.distance {
741 padding-top: $lineheight/5;
742 padding-bottom: $lineheight/5;
743 border-bottom: 1px solid $grey;
754 background: $list-highlight;
757 .routing_marker { width: 15px; cursor: move; }
759 /* Rules for entity history */
764 border-bottom: $keyline;
772 /* Rules for the history sidebar */
774 #sidebar .changesets {
778 &.selected { background: $list-highlight; }
779 /* color is derived from changeset bbox fillColor in history.js */
790 .changeset_more .loader {
796 /* Rules for the browse sidebar */
800 padding-bottom: $spacer;
801 margin-bottom: $spacer;
802 border-bottom: 1px solid $grey;
805 word-wrap: break-word;
809 .browse-section:last-of-type {
814 background-color: $offwhite;
816 border-collapse: separate;
819 margin-bottom: $spacer;
822 border-bottom: 1px solid $grey;
825 tr:last-child th, tr:last-child td {
833 word-wrap: break-word;
834 white-space: pre-wrap;
839 background-color: $offwhite;
843 border-left: 1px solid $grey;
844 background-color: #fff;
847 .colour-preview-box {
852 border: 1px solid rgba(0, 0, 0, .1);
853 // add color via inline css on element: background-color: <tag value>;
857 .note-comments li, .changeset-comments li {
858 margin: $lineheight/2 0;
861 margin: 10px 6px 0 6px;
866 .subscribe-buttons input {
872 span.action-button:hover {
874 text-decoration: underline;
879 margin: 0 0 10px 10px;
892 background: $list-highlight;
899 /* Bootstrap buttons don't have any vertical margin, so
900 they touch when adjacent buttons wrap onto a new line
901 e.g. wide form buttons on a narrow sidebar */
905 margin-bottom: $spacer * 0.25;
909 /* Rules for export sidebar */
917 .export_area_inputs {
918 margin-bottom: $spacer;
926 background: $lightgrey;
928 #maxlat { margin-top: -1px; }
931 /* no-r2 */ margin-left: -1px;
935 /* no-r2 */ margin-right: -1px;
937 #minlat { margin-bottom: -1px; }
941 margin: $lineheight/4;
945 padding-left: $lineheight/2;
953 /* Rules for edit pages */
969 /* Rules for non-map content pages */
972 background: $lightgrey;
979 padding: $lineheight;
982 /* Overrides for pages that use new layout conventions */
984 .header-illustration {
985 background-position: 0 0;
986 background-repeat: no-repeat;
994 background-image: image-url("sign-up-illustration.png");
998 background-image: image-url("confirm-illustration.png");
1002 background-image: image-url("terms-illustration.png");
1010 background-image: image-url("sign-up-illustration-arm.png");
1013 pointer-events: none;
1017 [dir=rtl] .header-illustration {
1018 transform: scaleX(-1);
1021 #content.maximised {
1030 /* Rules for small maps in content areas */
1034 margin-bottom: $lineheight;
1037 @include media-breakpoint-up(md) {
1043 /* Rules for the user map */
1045 .content_map .leaflet-popup-content {
1046 margin: $lineheight/2;
1050 /* Rules for user popups on maps */
1056 margin-top: 0 0 0 60px;
1061 /* Rules for the user list */
1067 /* Rules for the diary list page */
1071 padding-top: $lineheight;
1072 padding-bottom: $lineheight/2;
1073 border-top: 1px solid $grey;
1076 background-color: #fee;
1080 /* Rules for the diary entry page */
1086 margin-bottom: $lineheight;
1092 border-top: 1px dashed $grey;
1093 padding-top: $lineheight/2;
1094 padding-bottom: $lineheight/2;
1096 margin-top: $lineheight/2;
1097 padding-top: $lineheight;
1098 border-top: 1px solid $grey;
1101 background-color: #fee;
1104 margin-bottom: $lineheight/2;
1113 /* Rules for the log in page */
1115 #login_auth_buttons {
1120 padding: $lineheight/4 $lineheight/2;
1124 /* Rules for the account confirmation page */
1128 padding: $lineheight;
1129 margin-bottom: $lineheight;
1134 list-style: inherit;
1138 list-style-type: lower-alpha;
1143 /* Rules for the account settings page */
1145 #accountForm .user_image {
1149 #accountForm #user_image {
1153 #accountForm ul.accountImage-options {
1166 display: inline !important;
1169 /* Rules for the oauth settings page */
1171 .oauth_clients .buttons .oauth-edit {
1172 border-radius: 2px 0 0 2px;
1175 .oauth_clients .buttons .oauth-delete {
1176 border-radius: 0 2px 2px 0;
1179 /* Rules for the oauth authorization page */
1181 .oauth-authorize ul {
1185 /* Rules for messages pages */
1188 button[type="submit"] {
1190 white-space: nowrap;
1194 background: $offwhite;
1198 background: #CBEEA7;
1206 .inbox-row .inbox-mark-read {
1211 margin-bottom: $lineheight;
1212 padding: $lineheight/4 0px 4px 0px;
1213 border-bottom: 1px solid $grey;
1220 .info-line .user_thumbnail_tiny {
1221 vertical-align: middle;
1225 white-space: nowrap;
1234 .inbox-row-unread .inbox-mark-unread {
1238 /* Rules for "flash" notice boxes shown at the top of the content area */
1242 background-color: #ff7070;
1246 background-color: #ffe0cc;
1250 background-color: #CBEEA7;
1254 /* Rules for highlighting fields with rails validation errors */
1257 display: inline-block;
1263 background-color: #ff7070;
1266 /* Rules for rails validation error boxes */
1270 border: 2px solid #ff7070;
1271 padding: 0 $lineheight/2;
1272 margin-bottom: $lineheight;
1273 background-color: #f0f0f0;
1276 margin: 0 -10px 10px -10px;
1277 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1280 background-color: #c00;
1288 padding: $lineheight/4;
1293 background-color: $lightgrey;
1295 .describe_location {
1304 background-color: $lightgrey;
1310 vertical-align: middle;
1314 a.reverse_directions {
1319 /* Rules for user images */
1326 img.user_thumbnail {
1331 img.user_thumbnail_tiny {
1338 /* Rules for geo microformats */
1341 border-bottom: none;
1344 /* General styles for action lists / subnavs / pager navs */
1347 nav.secondary-actions {
1352 flex-direction: row;
1358 display: inline-block;
1364 border-left: 1px solid $grey;
1365 padding-left: $lineheight/2;
1366 margin-right: $lineheight/2;
1367 margin-bottom: $lineheight/8;
1372 div.secondary-actions {
1379 input[type="submit"],
1380 input[type="button"],
1381 input[type="reset"],
1384 box-sizing: border-box;
1390 border-right:1px solid white;
1391 text-overflow: ellipsis;
1392 white-space: nowrap;
1396 .button:first-child,
1397 .button_to:first-child {
1398 border-radius:2px 0 0 2px;
1402 .button_to:last-child {
1403 border-radius:0 2px 2px 0;
1404 border-right-width: 0;
1408 .button_to:only-child,
1409 *[value="Hide"] + input:last-child,
1410 *[value="Hide"] + .button:last-child,
1411 *[value="Hide"] + .button_to:last-child {
1413 border-right-width: 0;
1415 /* if a 3-button set has a hidden middle button */
1416 *[value="Hide"] + input:nth-child(3),
1417 *[value="Hide"] + .button:nth-child(3),
1418 *[value="Hide"] + .button_to:nth-child(3) {
1419 border-radius:0 2px 2px 0;
1420 border-right-width: 0;
1422 /* if a 3-button set starts with a hidden button */
1423 *[value="Hide"] + input:nth-child(2):not(:last-child),
1424 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1425 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1426 border-radius:2px 0 0 2px;
1427 border-right-width: 1px;
1431 /* Create a single-line dl */
1435 display: inline-block;
1442 /* Rules for OpenID logo */
1445 vertical-align: text-bottom;
1449 /* Rules for rich text */
1454 background: $lightgrey;
1459 background: $lightgrey;
1461 white-space: pre-wrap;
1469 padding: $lineheight;
1470 background-color: $offwhite;
1477 border-left: $lineheight solid $offwhite;
1478 padding-left: $lineheight;
1484 /* Rules for the user notes list */
1488 background-color: $offwhite;
1492 /* Rules for the iD editor */
1499 /* Rules for the "Welcome" page */
1500 .site-welcome, .site-fixthemap {
1502 background-image: image-url("welcome-sprite.png");
1503 background-size: 500px 250px;
1508 padding-bottom: 20px;
1510 margin-bottom: 10px;
1522 /* no-r2 */ background-position: -50px 0;
1527 vertical-align: middle;
1531 /* no-r2 */ background-position: -100px 0;
1535 /* no-r2 */ background-position: -150px 0;
1539 /* no-r2 */ background-position: -200px 0;
1543 /* no-r2 */ background-position: -250px 0;
1547 /* no-r2 */ background-position: -300px 0;
1551 /* no-r2 */ background-position: -350px 0;
1555 background-color: #333;
1560 .site-about #content {
1561 background-color: $lightgrey;
1562 background-position: 50% 50%;
1563 background-repeat: no-repeat;
1564 background-size: cover;
1565 background-attachment: fixed;
1576 color: $vibrant-green;
1582 background-position: 0 50%;
1583 background-repeat: no-repeat;
1584 background-image: image-url('about/osm.png');
1585 background-size: cover;
1586 background-color: $vibrant-green;
1590 background: $vibrant-green;
1594 display: inline-block;
1604 vertical-align: middle;
1605 background: 40px 40px image-url('about/sprite.png') no-repeat;
1609 background-position: 0px 0px;
1613 background-position: 0px -40px;
1617 background-position: 0px -80px;
1621 background-position: 0px -120px;
1625 background-position: 0px -160px;
1629 background-position: -45px -160px;
1636 @media only screen and (max-width:960px) {
1637 .header-illustration.new-user-arm {