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 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
59 .icon.check { /* no-r2 */ background-position: -220px 0; }
60 .icon.note { /* no-r2 */ background-position: -240px 0; }
61 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
62 .icon.query { /* no-r2 */ background-position: -260px 0; }
64 /* Utility for de-emphasizing content */
70 /* Rules for borders */
71 /* These add additional colours to those provided by bootstrap */
73 border-color: $grey !important;
77 border-color: $lightgrey !important;
80 /* Rules for the header */
83 display: none !important;
85 background: image-url("menu-icon.png") no-repeat;
86 background-size: 30px 30px;
90 margin: 14px 10px 0 0;
95 height: $headerHeight;
100 h1, nav, nav > ul, nav > ul > li {
101 display: inline-block;
106 padding: $lineheight/2;
114 text-decoration: none;
121 vertical-align: middle;
147 .btn-outline-primary {
148 @include button-outline-variant($green, $white);
152 .btn-outline-primary {
157 border-top-color: $grey;
161 background-color: lighten($green, 30%);
166 // Small tweaks to the toggle to stop the primary colour showing through
167 // when the menu is shown
168 .show > .btn-outline-primary.dropdown-toggle {
169 background-color: $green;
170 border-color: $green;
173 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
188 color: darken($darkgrey, 25%);
192 .btn-outline-secondary {
193 @include button-outline-variant($darkgrey, $white, null, null, $white);
198 .btn-outline-secondary {
199 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
205 background-color: white;
209 &.show .btn-outline-secondary {
210 background-color: white;
218 display: inline-block;
220 margin: 3px 0 3px 3px;
221 background-color: lighten($grey, 10%);
233 nav.primary, nav.secondary {
236 background-color: $green;
242 #compact-secondary-nav {
247 #compact-secondary-nav {
248 display: inline-block;
255 /* Utility for styling notification numbers */
258 padding: 2px $lineheight/4;
260 background: lighten($green, 30%);
266 /* Rules for the message shown in place of the map when javascript is disabled */
274 /* Rules for Leaflet maps */
276 .leaflet-control .control-button {
280 background-color: #333;
281 background-color: rgba(0,0,0,.6);
282 border-radius: 4px 0 0 4px;
287 background-color: black;
292 background-color: #333;
293 background-color: rgba(0,0,0,.5);
298 background-color: $vibrant-green;
306 .leaflet-control .zoomin,
307 .control-layers .control-button {
309 border-radius: 4px 0 0 0;
312 .leaflet-control .zoomout,
313 .control-key .control-button {
318 .control-locate .control-button,
319 .control-share .control-button {
320 border-radius: 0 0 0 4px;
323 /* Rules for the sidebar and main map area */
343 width: $sidebarWidth;
370 .overlay-sidebar #sidebar {
407 width: $sidebarWidth;
423 .leaflet-marker-draggable {
438 border-bottom: 1px solid $grey;
448 border:1px solid $grey;
453 border: 1px solid $grey;
455 border-top-color: $grey;
479 border: 2px solid #fff;
482 transition: border-color 0.08s ease-in;
489 border-bottom-right-radius: 3px;
493 text-stroke: 2px #fff;
494 background: rgba(255,255,255,.9);
496 input[type="radio"] {
501 &.active { border-color: darken($green, 10%); }
504 &.active { border-color: darken($green, 20%); }
514 li.disabled { color: $darkgrey; }
524 text-decoration: none;
525 background-color: $lightblue;
527 border-right: 1px solid #fff;
531 border-right: 1px solid #fff;
532 border-radius: 4px 0 0 4px;
536 border-radius: 0 4px 4px 0;
540 background-color: $blue;
552 font-family: monospace;
574 top: $lineheight/2 !important;
576 margin-right: 0px !important;
577 margin-top: 0px !important;
581 .leaflet-popup-scrolled {
582 padding-right: $lineheight;
583 border-bottom: 0px !important;
584 border-top: 0px !important;
587 .leaflet-popup-content-wrapper {
588 border-radius: 4px !important;
591 /* Rules for attribution text under the main map shown on printouts */
601 .attribution_license,
602 .attribution_project {
606 .attribution_notice {
610 .donate-attr { color: darken($green, 10%) !important; }
612 /* Rules for the sidebar */
616 padding: $lineheight/2 $lineheight;
617 // background: $offwhite;
618 // border-bottom: 1px solid $grey;
637 margin: $lineheight auto;
648 /* Temporary label size override until we remove site-wide font customisation */
656 /* Stop bootstrap 5 from floating legends when they don't need to be */
661 /* Override the text colour for primary and secondary buttons, to match our
662 bootstrap 4 colours. Note this has accessibility issues, which is why
663 bootstrap 5 calculates black as the appropriate colour, and we should
664 reconsider our colours at some point with that in mind. */
667 @include button-variant($primary, $primary, $white, null, null, $white, null, null, $white, null, null, $white);
671 @include button-variant($secondary, $secondary, $white, null, null, $white, null, null, $white, null, null, $white);
674 .btn-outline-secondary {
675 @include button-outline-variant($secondary, $white, null, null, $white);
678 /* Rules for the search and direction forms */
680 header .search_forms,
685 /* Rules for the map key which appears in the popout sidebar */
688 .mapkey-table-key img {
695 /* Rules for search sidebar */
697 #sidebar .search_results_entry {
700 &.selected { background: $list-highlight; }
703 .search_more .loader {
709 .search_results_error {
714 /* Rules for routing */
717 background-image: image-url('routing-sprite.png');
720 background-repeat: no-repeat;
722 @for $i from 0 through 25 {
723 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
726 td.instruction, td.distance {
727 padding-top: $lineheight/5;
728 padding-bottom: $lineheight/5;
729 border-bottom: 1px solid $grey;
740 background: $list-highlight;
743 .routing_marker { width: 15px; cursor: move; }
745 /* Rules for entity history */
750 border-bottom: $keyline;
758 /* Rules for the history sidebar */
760 #sidebar .changesets {
764 &.selected { background: $list-highlight; }
765 /* color is derived from changeset bbox fillColor in history.js */
776 .changeset_more .loader {
782 /* Rules for the browse sidebar */
786 padding-bottom: $spacer;
787 margin-bottom: $spacer;
788 border-bottom: 1px solid $grey;
791 word-wrap: break-word;
795 .browse-section:last-of-type {
800 background-color: $offwhite;
802 border-collapse: separate;
805 margin-bottom: $spacer;
808 border-bottom: 1px solid $grey;
811 tr:last-child th, tr:last-child td {
819 word-wrap: break-word;
820 white-space: pre-wrap;
825 background-color: $offwhite;
829 border-left: 1px solid $grey;
830 background-color: #fff;
833 .colour-preview-box {
838 border: 1px solid rgba(0, 0, 0, .1);
839 // add color via inline css on element: background-color: <tag value>;
843 .note-comments li, .changeset-comments li {
844 margin: $lineheight/2 0;
847 margin: 10px 6px 0 6px;
852 .subscribe-buttons input {
858 span.action-button:hover {
860 text-decoration: underline;
865 margin: 0 0 10px 10px;
878 background: $list-highlight;
885 /* Bootstrap buttons don't have any vertical margin, so
886 they touch when adjacent buttons wrap onto a new line
887 e.g. wide form buttons on a narrow sidebar */
891 margin-bottom: $spacer * 0.25;
895 /* Rules for export sidebar */
903 .export_area_inputs {
904 margin-bottom: $spacer;
912 background: $lightgrey;
914 #maxlat { margin-top: -1px; }
917 /* no-r2 */ margin-left: -1px;
921 /* no-r2 */ margin-right: -1px;
923 #minlat { margin-bottom: -1px; }
927 margin: $lineheight/4;
931 padding-left: $lineheight/2;
939 /* Rules for edit pages */
955 /* Rules for non-map content pages */
958 background: $lightgrey;
965 padding: $lineheight;
968 /* Overrides for pages that use new layout conventions */
970 .header-illustration {
971 background-position: 0 0;
972 background-repeat: no-repeat;
980 background-image: image-url("sign-up-illustration.png");
984 background-image: image-url("confirm-illustration.png");
988 background-image: image-url("terms-illustration.png");
996 background-image: image-url("sign-up-illustration-arm.png");
999 pointer-events: none;
1003 [dir=rtl] .header-illustration {
1004 transform: scaleX(-1);
1007 #content.maximised {
1016 /* Rules for small maps in content areas */
1020 margin-bottom: $lineheight;
1023 @include media-breakpoint-up(md) {
1029 /* Rules for the user map */
1031 .content_map .leaflet-popup-content {
1032 margin: $lineheight/2;
1036 /* Rules for user popups on maps */
1042 margin-top: 0 0 0 60px;
1047 /* Rules for the user list */
1053 /* Rules for the diary list page */
1057 padding-top: $lineheight;
1058 padding-bottom: $lineheight/2;
1059 border-top: 1px solid $grey;
1062 background-color: #fee;
1066 /* Rules for the diary entry page */
1072 margin-bottom: $lineheight;
1078 border-top: 1px dashed $grey;
1079 padding-top: $lineheight/2;
1080 padding-bottom: $lineheight/2;
1082 margin-top: $lineheight/2;
1083 padding-top: $lineheight;
1084 border-top: 1px solid $grey;
1087 background-color: #fee;
1090 margin-bottom: $lineheight/2;
1099 /* Rules for the log in page */
1101 #login_auth_buttons {
1106 padding: $lineheight/4 $lineheight/2;
1110 /* Rules for the account confirmation page */
1114 padding: $lineheight;
1115 margin-bottom: $lineheight;
1120 list-style: inherit;
1124 list-style-type: lower-alpha;
1129 /* Rules for the account settings page */
1131 #accountForm .user_image {
1135 #accountForm #user_image {
1139 #accountForm ul.accountImage-options {
1152 display: inline !important;
1155 /* Rules for the oauth settings page */
1157 .oauth_clients .buttons .oauth-edit {
1158 border-radius: 2px 0 0 2px;
1161 .oauth_clients .buttons .oauth-delete {
1162 border-radius: 0 2px 2px 0;
1165 /* Rules for the oauth authorization page */
1167 .oauth-authorize ul {
1171 /* Rules for messages pages */
1174 button[type="submit"] {
1176 white-space: nowrap;
1180 background: $offwhite;
1184 background: #CBEEA7;
1192 .inbox-row .inbox-mark-read {
1197 margin-bottom: $lineheight;
1198 padding: $lineheight/4 0px 4px 0px;
1199 border-bottom: 1px solid $grey;
1206 .info-line .user_thumbnail_tiny {
1207 vertical-align: middle;
1211 white-space: nowrap;
1220 .inbox-row-unread .inbox-mark-unread {
1224 /* Rules for "flash" notice boxes shown at the top of the content area */
1228 background-color: #ff7070;
1232 background-color: #ffe0cc;
1236 background-color: #CBEEA7;
1240 /* Rules for highlighting fields with rails validation errors */
1243 display: inline-block;
1249 background-color: #ff7070;
1252 /* Rules for rails validation error boxes */
1256 border: 2px solid #ff7070;
1257 padding: 0 $lineheight/2;
1258 margin-bottom: $lineheight;
1259 background-color: #f0f0f0;
1262 margin: 0 -10px 10px -10px;
1263 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1266 background-color: #c00;
1274 padding: $lineheight/4;
1279 background-color: $lightgrey;
1281 .describe_location {
1290 background-color: $lightgrey;
1296 vertical-align: middle;
1300 a.reverse_directions {
1305 /* Rules for user images */
1312 img.user_thumbnail {
1317 img.user_thumbnail_tiny {
1324 /* Rules for geo microformats */
1327 border-bottom: none;
1330 /* General styles for action lists / subnavs / pager navs */
1333 nav.secondary-actions {
1338 flex-direction: row;
1344 display: inline-block;
1350 border-left: 1px solid $grey;
1351 padding-left: $lineheight/2;
1352 margin-right: $lineheight/2;
1353 margin-bottom: $lineheight/8;
1358 div.secondary-actions {
1365 input[type="submit"],
1366 input[type="button"],
1367 input[type="reset"],
1370 box-sizing: border-box;
1376 border-right:1px solid white;
1377 text-overflow: ellipsis;
1378 white-space: nowrap;
1382 .button:first-child,
1383 .button_to:first-child {
1384 border-radius:2px 0 0 2px;
1388 .button_to:last-child {
1389 border-radius:0 2px 2px 0;
1390 border-right-width: 0;
1394 .button_to:only-child,
1395 *[value="Hide"] + input:last-child,
1396 *[value="Hide"] + .button:last-child,
1397 *[value="Hide"] + .button_to:last-child {
1399 border-right-width: 0;
1401 /* if a 3-button set has a hidden middle button */
1402 *[value="Hide"] + input:nth-child(3),
1403 *[value="Hide"] + .button:nth-child(3),
1404 *[value="Hide"] + .button_to:nth-child(3) {
1405 border-radius:0 2px 2px 0;
1406 border-right-width: 0;
1408 /* if a 3-button set starts with a hidden button */
1409 *[value="Hide"] + input:nth-child(2):not(:last-child),
1410 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1411 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1412 border-radius:2px 0 0 2px;
1413 border-right-width: 1px;
1417 /* Create a single-line dl */
1421 display: inline-block;
1428 /* Rules for OpenID logo */
1431 vertical-align: text-bottom;
1435 /* Rules for rich text */
1441 background: $lightgrey;
1447 background: $lightgrey;
1449 white-space: pre-wrap;
1457 padding: $lineheight;
1458 background-color: $offwhite;
1465 border-left: $lineheight solid $offwhite;
1466 padding-left: $lineheight;
1472 /* Rules for the user notes list */
1476 background-color: $offwhite;
1480 /* Rules for the iD editor */
1487 /* Rules for the "Welcome" page */
1488 .site-welcome, .site-fixthemap {
1498 background-image: image-url("welcome-sprite.png");
1499 background-size: 500px 250px;
1505 padding-bottom: 20px;
1507 margin-bottom: 10px;
1519 /* no-r2 */ background-position: -50px 0;
1524 vertical-align: middle;
1528 /* no-r2 */ background-position: -100px 0;
1532 /* no-r2 */ background-position: -150px 0;
1536 /* no-r2 */ background-position: -200px 0;
1540 /* no-r2 */ background-position: -250px 0;
1544 /* no-r2 */ background-position: -300px 0;
1548 /* no-r2 */ background-position: -350px 0;
1557 text-decoration: none;
1561 background-color: #333;
1566 .site-about #content {
1567 background-color: $lightgrey;
1568 background-position: 50% 50%;
1569 background-repeat: no-repeat;
1570 background-size: cover;
1571 background-attachment: fixed;
1582 color: $vibrant-green;
1588 background-position: 0 50%;
1589 background-repeat: no-repeat;
1590 background-image: image-url('about/osm.png');
1591 background-size: cover;
1592 background-color: $vibrant-green;
1596 background: $vibrant-green;
1600 display: inline-block;
1610 vertical-align: middle;
1611 background: 40px 40px image-url('about/sprite.png') no-repeat;
1615 background-position: 0px 0px;
1619 background-position: 0px -40px;
1623 background-position: 0px -80px;
1627 background-position: 0px -120px;
1631 background-position: 0px -160px;
1635 background-position: -45px -160px;
1642 @media only screen and (max-width:960px) {
1643 .header-illustration.new-user-arm {