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;
379 pointer-events: none;
387 .overlay-sidebar #sidebar {
424 width: $sidebarWidth;
440 .leaflet-marker-draggable {
455 border-bottom: 1px solid $grey;
465 border:1px solid $grey;
470 border: 1px solid $grey;
472 border-top-color: $grey;
496 border: 2px solid #fff;
499 transition: border-color 0.08s ease-in;
506 border-bottom-right-radius: 3px;
510 text-stroke: 2px #fff;
511 background: rgba(255,255,255,.9);
513 input[type="radio"] {
518 &.active { border-color: darken($green, 10%); }
521 &.active { border-color: darken($green, 20%); }
531 li.disabled { color: $darkgrey; }
541 text-decoration: none;
542 background-color: $lightblue;
544 border-right: 1px solid #fff;
548 border-right: 1px solid #fff;
549 border-radius: 4px 0 0 4px;
553 border-radius: 0 4px 4px 0;
557 background-color: $blue;
569 font-family: monospace;
591 top: $lineheight/2 !important;
593 margin-right: 0px !important;
594 margin-top: 0px !important;
598 .leaflet-popup-scrolled {
599 padding-right: $lineheight;
600 border-bottom: 0px !important;
601 border-top: 0px !important;
604 .leaflet-popup-content-wrapper {
605 border-radius: 4px !important;
608 /* Rules for attribution text under the main map shown on printouts */
618 .attribution_license,
619 .attribution_project {
623 .attribution_notice {
627 .donate-attr { color: darken($green, 10%) !important; }
629 /* Rules for the sidebar */
633 padding: $lineheight/2 $lineheight;
634 // background: $offwhite;
635 // border-bottom: 1px solid $grey;
659 margin: $lineheight auto;
670 /* Temporary label size override until we remove site-wide font customisation */
678 /* Stop bootstrap 5 from floating legends when they don't need to be */
683 /* Override the text colour for primary and secondary buttons, to match our
684 bootstrap 4 colours. Note this has accessibility issues, which is why
685 bootstrap 5 calculates black as the appropriate colour, and we should
686 reconsider our colours at some point with that in mind. */
689 @include button-variant($primary, $primary, $white, null, null, $white, null, null, $white, null, null, $white);
693 @include button-variant($secondary, $secondary, $white, null, null, $white, null, null, $white, null, null, $white);
696 .btn-outline-secondary {
697 @include button-outline-variant($secondary, $white, null, null, $white);
700 /* Rules for the search and direction forms */
702 header .search_forms,
707 /* Rules for the map key which appears in the popout sidebar */
710 .mapkey-table-key img {
717 /* Rules for search sidebar */
719 #sidebar .search_results_entry {
722 &.selected { background: $list-highlight; }
725 .search_more .loader {
731 .search_results_error {
736 /* Rules for routing */
739 background-image: image-url('routing-sprite.png');
742 background-repeat: no-repeat;
744 @for $i from 0 through 25 {
745 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
748 td.instruction, td.distance {
749 padding-top: $lineheight/5;
750 padding-bottom: $lineheight/5;
751 border-bottom: 1px solid $grey;
762 background: $list-highlight;
765 .routing_marker { width: 15px; cursor: move; }
767 /* Rules for entity history */
772 border-bottom: $keyline;
780 /* Rules for the history sidebar */
782 #sidebar .changesets {
786 &.selected { background: $list-highlight; }
787 /* color is derived from changeset bbox fillColor in history.js */
798 .changeset_more .loader {
804 /* Rules for the browse sidebar */
808 padding-bottom: $spacer;
809 margin-bottom: $spacer;
810 border-bottom: 1px solid $grey;
813 word-wrap: break-word;
817 .browse-section:last-of-type {
822 background-color: $offwhite;
824 border-collapse: separate;
827 margin-bottom: $spacer;
830 border-bottom: 1px solid $grey;
833 tr:last-child th, tr:last-child td {
841 word-wrap: break-word;
842 white-space: pre-wrap;
847 background-color: $offwhite;
851 border-left: 1px solid $grey;
852 background-color: #fff;
855 .colour-preview-box {
860 border: 1px solid rgba(0, 0, 0, .1);
861 // add color via inline css on element: background-color: <tag value>;
865 .note-comments li, .changeset-comments li {
866 margin: $lineheight/2 0;
869 margin: 10px 6px 0 6px;
874 .subscribe-buttons input {
880 span.action-button:hover {
882 text-decoration: underline;
887 margin: 0 0 10px 10px;
900 background: $list-highlight;
907 /* Bootstrap buttons don't have any vertical margin, so
908 they touch when adjacent buttons wrap onto a new line
909 e.g. wide form buttons on a narrow sidebar */
913 margin-bottom: $spacer * 0.25;
917 /* Rules for export sidebar */
925 .export_area_inputs {
926 margin-bottom: $spacer;
934 background: $lightgrey;
936 #maxlat { margin-top: -1px; }
939 /* no-r2 */ margin-left: -1px;
943 /* no-r2 */ margin-right: -1px;
945 #minlat { margin-bottom: -1px; }
949 margin: $lineheight/4;
953 padding-left: $lineheight/2;
961 /* Rules for edit pages */
977 /* Rules for non-map content pages */
980 background: $lightgrey;
987 padding: $lineheight;
990 /* Overrides for pages that use new layout conventions */
992 .header-illustration {
993 background-position: 0 0;
994 background-repeat: no-repeat;
1002 background-image: image-url("sign-up-illustration.png");
1006 background-image: image-url("confirm-illustration.png");
1010 background-image: image-url("terms-illustration.png");
1018 background-image: image-url("sign-up-illustration-arm.png");
1021 pointer-events: none;
1025 [dir=rtl] .header-illustration {
1026 transform: scaleX(-1);
1029 #content.maximised {
1038 /* Rules for small maps in content areas */
1042 margin-bottom: $lineheight;
1045 @include media-breakpoint-up(md) {
1051 /* Rules for the user map */
1053 .content_map .leaflet-popup-content {
1054 margin: $lineheight/2;
1058 /* Rules for user popups on maps */
1064 margin-top: 0 0 0 60px;
1069 /* Rules for the user list */
1075 /* Rules for the diary list page */
1079 padding-top: $lineheight;
1080 padding-bottom: $lineheight/2;
1081 border-top: 1px solid $grey;
1084 background-color: #fee;
1088 /* Rules for the diary entry page */
1094 margin-bottom: $lineheight;
1100 border-top: 1px dashed $grey;
1101 padding-top: $lineheight/2;
1102 padding-bottom: $lineheight/2;
1104 margin-top: $lineheight/2;
1105 padding-top: $lineheight;
1106 border-top: 1px solid $grey;
1109 background-color: #fee;
1112 margin-bottom: $lineheight/2;
1121 /* Rules for the log in page */
1123 #login_auth_buttons {
1128 padding: $lineheight/4 $lineheight/2;
1132 /* Rules for the account confirmation page */
1136 padding: $lineheight;
1137 margin-bottom: $lineheight;
1142 list-style: inherit;
1146 list-style-type: lower-alpha;
1151 /* Rules for the account settings page */
1153 #accountForm .user_image {
1157 #accountForm #user_image {
1161 #accountForm ul.accountImage-options {
1174 display: inline !important;
1177 /* Rules for the oauth settings page */
1179 .oauth_clients .buttons .oauth-edit {
1180 border-radius: 2px 0 0 2px;
1183 .oauth_clients .buttons .oauth-delete {
1184 border-radius: 0 2px 2px 0;
1187 /* Rules for the oauth authorization page */
1189 .oauth-authorize ul {
1193 /* Rules for messages pages */
1196 button[type="submit"] {
1198 white-space: nowrap;
1202 background: $offwhite;
1206 background: #CBEEA7;
1214 .inbox-row .inbox-mark-read {
1219 margin-bottom: $lineheight;
1220 padding: $lineheight/4 0px 4px 0px;
1221 border-bottom: 1px solid $grey;
1228 .info-line .user_thumbnail_tiny {
1229 vertical-align: middle;
1233 white-space: nowrap;
1242 .inbox-row-unread .inbox-mark-unread {
1246 /* Rules for "flash" notice boxes shown at the top of the content area */
1250 background-color: #ff7070;
1254 background-color: #ffe0cc;
1258 background-color: #CBEEA7;
1262 /* Rules for highlighting fields with rails validation errors */
1265 display: inline-block;
1271 background-color: #ff7070;
1274 /* Rules for rails validation error boxes */
1278 border: 2px solid #ff7070;
1279 padding: 0 $lineheight/2;
1280 margin-bottom: $lineheight;
1281 background-color: #f0f0f0;
1284 margin: 0 -10px 10px -10px;
1285 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1288 background-color: #c00;
1296 padding: $lineheight/4;
1301 background-color: $lightgrey;
1303 .describe_location {
1312 background-color: $lightgrey;
1318 vertical-align: middle;
1322 a.reverse_directions {
1327 /* Rules for user images */
1334 img.user_thumbnail {
1339 img.user_thumbnail_tiny {
1346 /* Rules for geo microformats */
1349 border-bottom: none;
1352 /* General styles for action lists / subnavs / pager navs */
1355 nav.secondary-actions {
1360 flex-direction: row;
1366 display: inline-block;
1372 border-left: 1px solid $grey;
1373 padding-left: $lineheight/2;
1374 margin-right: $lineheight/2;
1375 margin-bottom: $lineheight/8;
1380 div.secondary-actions {
1387 input[type="submit"],
1388 input[type="button"],
1389 input[type="reset"],
1392 box-sizing: border-box;
1398 border-right:1px solid white;
1399 text-overflow: ellipsis;
1400 white-space: nowrap;
1404 .button:first-child,
1405 .button_to:first-child {
1406 border-radius:2px 0 0 2px;
1410 .button_to:last-child {
1411 border-radius:0 2px 2px 0;
1412 border-right-width: 0;
1416 .button_to:only-child,
1417 *[value="Hide"] + input:last-child,
1418 *[value="Hide"] + .button:last-child,
1419 *[value="Hide"] + .button_to:last-child {
1421 border-right-width: 0;
1423 /* if a 3-button set has a hidden middle button */
1424 *[value="Hide"] + input:nth-child(3),
1425 *[value="Hide"] + .button:nth-child(3),
1426 *[value="Hide"] + .button_to:nth-child(3) {
1427 border-radius:0 2px 2px 0;
1428 border-right-width: 0;
1430 /* if a 3-button set starts with a hidden button */
1431 *[value="Hide"] + input:nth-child(2):not(:last-child),
1432 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1433 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1434 border-radius:2px 0 0 2px;
1435 border-right-width: 1px;
1439 /* Create a single-line dl */
1443 display: inline-block;
1450 /* Rules for OpenID logo */
1453 vertical-align: text-bottom;
1457 /* Rules for rich text */
1463 background: $lightgrey;
1469 background: $lightgrey;
1471 white-space: pre-wrap;
1479 padding: $lineheight;
1480 background-color: $offwhite;
1487 border-left: $lineheight solid $offwhite;
1488 padding-left: $lineheight;
1494 /* Rules for the user notes list */
1498 background-color: $offwhite;
1502 /* Rules for the iD editor */
1509 /* Rules for the "Welcome" page */
1510 .site-welcome, .site-fixthemap {
1520 background-image: image-url("welcome-sprite.png");
1521 background-size: 500px 250px;
1527 padding-bottom: 20px;
1529 margin-bottom: 10px;
1541 /* no-r2 */ background-position: -50px 0;
1546 vertical-align: middle;
1550 /* no-r2 */ background-position: -100px 0;
1554 /* no-r2 */ background-position: -150px 0;
1558 /* no-r2 */ background-position: -200px 0;
1562 /* no-r2 */ background-position: -250px 0;
1566 /* no-r2 */ background-position: -300px 0;
1570 /* no-r2 */ background-position: -350px 0;
1579 text-decoration: none;
1583 background-color: #333;
1588 .site-about #content {
1589 background-color: $lightgrey;
1590 background-position: 50% 50%;
1591 background-repeat: no-repeat;
1592 background-size: cover;
1593 background-attachment: fixed;
1604 color: $vibrant-green;
1610 background-position: 0 50%;
1611 background-repeat: no-repeat;
1612 background-image: image-url('about/osm.png');
1613 background-size: cover;
1614 background-color: $vibrant-green;
1618 background: $vibrant-green;
1622 display: inline-block;
1632 vertical-align: middle;
1633 background: 40px 40px image-url('about/sprite.png') no-repeat;
1637 background-position: 0px 0px;
1641 background-position: 0px -40px;
1645 background-position: 0px -80px;
1649 background-position: 0px -120px;
1653 background-position: 0px -160px;
1657 background-position: -45px -160px;
1664 @media only screen and (max-width:960px) {
1665 .header-illustration.new-user-arm {