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;
362 .overlay-sidebar #sidebar {
399 width: $sidebarWidth;
415 .leaflet-marker-draggable {
430 border-bottom: 1px solid $grey;
440 border:1px solid $grey;
445 border: 1px solid $grey;
447 border-top-color: $grey;
471 border: 2px solid #fff;
474 transition: border-color 0.08s ease-in;
481 border-bottom-right-radius: 3px;
485 text-stroke: 2px #fff;
486 background: rgba(255,255,255,.9);
488 input[type="radio"] {
493 &.active { border-color: darken($green, 10%); }
496 &.active { border-color: darken($green, 20%); }
506 li.disabled { color: $darkgrey; }
516 text-decoration: none;
517 background-color: $lightblue;
519 border-right: 1px solid #fff;
523 border-right: 1px solid #fff;
524 border-radius: 4px 0 0 4px;
528 border-radius: 0 4px 4px 0;
532 background-color: $blue;
544 font-family: monospace;
566 top: $lineheight/2 !important;
568 margin-right: 0px !important;
569 margin-top: 0px !important;
573 .leaflet-popup-scrolled {
574 padding-right: $lineheight;
575 border-bottom: 0px !important;
576 border-top: 0px !important;
579 .leaflet-popup-content-wrapper {
580 border-radius: 4px !important;
583 /* Rules for attribution text under the main map shown on printouts */
593 .attribution_license,
594 .attribution_project {
598 .attribution_notice {
602 .donate-attr { color: darken($green, 10%) !important; }
604 /* Rules for the sidebar */
608 padding: $lineheight/2 $lineheight;
609 // background: $offwhite;
610 // border-bottom: 1px solid $grey;
629 margin: $lineheight auto;
640 /* Temporary label size override until we remove site-wide font customisation */
648 /* Stop bootstrap 5 from floating legends when they don't need to be */
653 /* Override the text colour for primary and secondary buttons, to match our
654 bootstrap 4 colours. Note this has accessibility issues, which is why
655 bootstrap 5 calculates black as the appropriate colour, and we should
656 reconsider our colours at some point with that in mind. */
659 @include button-variant($primary, $primary, $white, null, null, $white, null, null, $white, null, null, $white);
663 @include button-variant($secondary, $secondary, $white, null, null, $white, null, null, $white, null, null, $white);
666 .btn-outline-secondary {
667 @include button-outline-variant($secondary, $white, null, null, $white);
670 /* Rules for the search and direction forms */
672 header .search_forms,
677 /* Rules for the map key which appears in the popout sidebar */
680 .mapkey-table-key img {
687 /* Rules for search sidebar */
689 #sidebar .search_results_entry {
692 &.selected { background: $list-highlight; }
695 .search_more .loader {
701 .search_results_error {
706 /* Rules for routing */
709 background-image: image-url('routing-sprite.png');
712 background-repeat: no-repeat;
714 @for $i from 0 through 25 {
715 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
718 td.instruction, td.distance {
719 padding-top: $lineheight/5;
720 padding-bottom: $lineheight/5;
721 border-bottom: 1px solid $grey;
732 background: $list-highlight;
735 .routing_marker { width: 15px; cursor: move; }
737 /* Rules for entity history */
742 border-bottom: $keyline;
750 /* Rules for the history sidebar */
752 #sidebar .changesets {
756 &.selected { background: $list-highlight; }
757 /* color is derived from changeset bbox fillColor in history.js */
768 .changeset_more .loader {
774 /* Rules for the browse sidebar */
778 padding-bottom: $spacer;
779 margin-bottom: $spacer;
780 border-bottom: 1px solid $grey;
783 word-wrap: break-word;
787 .browse-section:last-of-type {
792 background-color: $offwhite;
794 border-collapse: separate;
797 margin-bottom: $spacer;
800 border-bottom: 1px solid $grey;
803 tr:last-child th, tr:last-child td {
811 word-wrap: break-word;
812 white-space: pre-wrap;
817 background-color: $offwhite;
821 border-left: 1px solid $grey;
822 background-color: #fff;
825 .colour-preview-box {
830 border: 1px solid rgba(0, 0, 0, .1);
831 // add color via inline css on element: background-color: <tag value>;
835 .note-comments li, .changeset-comments li {
836 margin: $lineheight/2 0;
839 margin: 10px 6px 0 6px;
844 form.note-comment-resolve {
845 margin: 10px 0px 40px 0px;
848 .subscribe-buttons input {
854 span.action-button:hover {
856 text-decoration: underline;
861 margin: 0 0 10px 10px;
874 background: $list-highlight;
881 /* Bootstrap buttons don't have any vertical margin, so
882 they touch when adjacent buttons wrap onto a new line
883 e.g. wide form buttons on a narrow sidebar */
887 margin-bottom: $spacer * 0.25;
891 /* Rules for export sidebar */
899 .export_area_inputs {
900 margin-bottom: $spacer;
908 background: $lightgrey;
910 #maxlat { margin-top: -1px; }
913 /* no-r2 */ margin-left: -1px;
917 /* no-r2 */ margin-right: -1px;
919 #minlat { margin-bottom: -1px; }
923 margin: $lineheight/4;
927 padding-left: $lineheight/2;
935 /* Rules for edit pages */
951 /* Rules for non-map content pages */
954 background: $lightgrey;
961 padding: $lineheight;
964 /* Overrides for pages that use new layout conventions */
966 .header-illustration {
967 background-position: 0 0;
968 background-repeat: no-repeat;
976 background-image: image-url("sign-up-illustration.png");
980 background-image: image-url("confirm-illustration.png");
984 background-image: image-url("terms-illustration.png");
992 background-image: image-url("sign-up-illustration-arm.png");
995 pointer-events: none;
999 [dir=rtl] .header-illustration {
1000 transform: scaleX(-1);
1003 #content.maximised {
1012 /* Rules for small maps in content areas */
1016 margin-bottom: $lineheight;
1019 @include media-breakpoint-up(md) {
1025 /* Rules for the user map */
1027 .content_map .leaflet-popup-content {
1028 margin: $lineheight/2;
1032 /* Rules for user popups on maps */
1038 margin-top: 0 0 0 60px;
1043 /* Rules for the user list */
1049 /* Rules for the diary list page */
1053 padding-top: $lineheight;
1054 padding-bottom: $lineheight/2;
1055 border-top: 1px solid $grey;
1058 background-color: #fee;
1062 /* Rules for the diary entry page */
1068 margin-bottom: $lineheight;
1074 border-top: 1px dashed $grey;
1075 padding-top: $lineheight/2;
1076 padding-bottom: $lineheight/2;
1078 margin-top: $lineheight/2;
1079 padding-top: $lineheight;
1080 border-top: 1px solid $grey;
1083 background-color: #fee;
1086 margin-bottom: $lineheight/2;
1095 /* Rules for the log in page */
1097 #login_auth_buttons {
1102 padding: $lineheight/4 $lineheight/2;
1106 /* Rules for the account confirmation page */
1110 padding: $lineheight;
1111 margin-bottom: $lineheight;
1116 list-style: inherit;
1120 list-style-type: lower-alpha;
1125 /* Rules for the account settings page */
1127 #accountForm .user_image {
1131 #accountForm #user_image {
1135 #accountForm ul.accountImage-options {
1148 display: inline !important;
1151 /* Rules for the oauth settings page */
1153 .oauth_clients .buttons .oauth-edit {
1154 border-radius: 2px 0 0 2px;
1157 .oauth_clients .buttons .oauth-delete {
1158 border-radius: 0 2px 2px 0;
1161 /* Rules for the oauth authorization page */
1163 .oauth-authorize ul {
1167 /* Rules for messages pages */
1170 button[type="submit"] {
1172 white-space: nowrap;
1176 background: $offwhite;
1180 background: #CBEEA7;
1188 .inbox-row .inbox-mark-read {
1193 margin-bottom: $lineheight;
1194 padding: $lineheight/4 0px 4px 0px;
1195 border-bottom: 1px solid $grey;
1202 .info-line .user_thumbnail_tiny {
1203 vertical-align: middle;
1207 white-space: nowrap;
1216 .inbox-row-unread .inbox-mark-unread {
1220 /* Rules for "flash" notice boxes shown at the top of the content area */
1224 background-color: #ff7070;
1228 background-color: #ffe0cc;
1232 background-color: #CBEEA7;
1236 /* Rules for highlighting fields with rails validation errors */
1239 display: inline-block;
1245 background-color: #ff7070;
1248 /* Rules for rails validation error boxes */
1252 border: 2px solid #ff7070;
1253 padding: 0 $lineheight/2;
1254 margin-bottom: $lineheight;
1255 background-color: #f0f0f0;
1258 margin: 0 -10px 10px -10px;
1259 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1262 background-color: #c00;
1270 padding: $lineheight/4;
1275 background-color: $lightgrey;
1277 .describe_location {
1286 background-color: $lightgrey;
1292 vertical-align: middle;
1296 a.reverse_directions {
1301 /* Rules for user images */
1308 img.user_thumbnail {
1313 img.user_thumbnail_tiny {
1320 /* Rules for geo microformats */
1323 border-bottom: none;
1326 /* General styles for action lists / subnavs / pager navs */
1329 nav.secondary-actions {
1334 flex-direction: row;
1340 display: inline-block;
1346 border-left: 1px solid $grey;
1347 padding-left: $lineheight/2;
1348 margin-right: $lineheight/2;
1349 margin-bottom: $lineheight/8;
1354 div.secondary-actions {
1361 input[type="submit"],
1362 input[type="button"],
1363 input[type="reset"],
1366 box-sizing: border-box;
1372 border-right:1px solid white;
1373 text-overflow: ellipsis;
1374 white-space: nowrap;
1378 .button:first-child,
1379 .button_to:first-child {
1380 border-radius:2px 0 0 2px;
1384 .button_to:last-child {
1385 border-radius:0 2px 2px 0;
1386 border-right-width: 0;
1390 .button_to:only-child,
1391 *[value="Hide"] + input:last-child,
1392 *[value="Hide"] + .button:last-child,
1393 *[value="Hide"] + .button_to:last-child {
1395 border-right-width: 0;
1397 /* if a 3-button set has a hidden middle button */
1398 *[value="Hide"] + input:nth-child(3),
1399 *[value="Hide"] + .button:nth-child(3),
1400 *[value="Hide"] + .button_to:nth-child(3) {
1401 border-radius:0 2px 2px 0;
1402 border-right-width: 0;
1404 /* if a 3-button set starts with a hidden button */
1405 *[value="Hide"] + input:nth-child(2):not(:last-child),
1406 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1407 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1408 border-radius:2px 0 0 2px;
1409 border-right-width: 1px;
1413 /* Create a single-line dl */
1417 display: inline-block;
1424 /* Rules for OpenID logo */
1427 vertical-align: text-bottom;
1431 /* Rules for rich text */
1436 background: $lightgrey;
1441 background: $lightgrey;
1443 white-space: pre-wrap;
1451 padding: $lineheight;
1452 background-color: $offwhite;
1459 border-left: $lineheight solid $offwhite;
1460 padding-left: $lineheight;
1466 /* Rules for the user notes list */
1470 background-color: $offwhite;
1474 /* Rules for the iD editor */
1481 /* Rules for the "Welcome" page */
1482 .site-welcome, .site-fixthemap {
1484 background-image: image-url("welcome-sprite.png");
1485 background-size: 500px 250px;
1490 padding-bottom: 20px;
1492 margin-bottom: 10px;
1504 /* no-r2 */ background-position: -50px 0;
1509 vertical-align: middle;
1513 /* no-r2 */ background-position: -100px 0;
1517 /* no-r2 */ background-position: -150px 0;
1521 /* no-r2 */ background-position: -200px 0;
1525 /* no-r2 */ background-position: -250px 0;
1529 /* no-r2 */ background-position: -300px 0;
1533 /* no-r2 */ background-position: -350px 0;
1537 background-color: #333;
1542 .site-about #content {
1543 background-color: $lightgrey;
1544 background-position: 50% 50%;
1545 background-repeat: no-repeat;
1546 background-size: cover;
1547 background-attachment: fixed;
1558 color: $vibrant-green;
1564 background-position: 0 50%;
1565 background-repeat: no-repeat;
1566 background-image: image-url('about/osm.png');
1567 background-size: cover;
1568 background-color: $vibrant-green;
1572 background: $vibrant-green;
1576 display: inline-block;
1586 vertical-align: middle;
1587 background: 40px 40px image-url('about/sprite.png') no-repeat;
1591 background-position: 0px 0px;
1595 background-position: 0px -40px;
1599 background-position: 0px -80px;
1603 background-position: 0px -120px;
1607 background-position: 0px -160px;
1611 background-position: -45px -160px;
1618 @media only screen and (max-width:960px) {
1619 .header-illustration.new-user-arm {