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, $color-hover: $white, $active-color: $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, $color-hover: $white, $active-color: $white);
198 .btn-outline-secondary {
199 @include button-outline-variant($darkgrey, $color-hover: $darkgrey, $active-background: white, $active-border: $darkgrey);
208 display: inline-block;
210 margin: 3px 0 3px 3px;
211 background-color: lighten($grey, 10%);
223 nav.primary, nav.secondary {
226 background-color: $green;
232 #compact-secondary-nav {
237 #compact-secondary-nav {
238 display: inline-block;
245 /* Utility for styling notification numbers */
248 padding: 2px $lineheight/4;
250 background: lighten($green, 30%);
256 /* Rules for the message shown in place of the map when javascript is disabled */
264 /* Rules for Leaflet maps */
266 .leaflet-control .control-button {
270 background-color: #333;
271 background-color: rgba(0,0,0,.6);
272 border-radius: 4px 0 0 4px;
278 background-color: black;
283 background-color: #333;
284 background-color: rgba(0,0,0,.5);
289 background-color: $vibrant-green;
297 .leaflet-control .zoomin,
298 .control-layers .control-button {
300 border-radius: 4px 0 0 0;
303 .leaflet-control .zoomout,
304 .control-key .control-button {
309 .control-locate .control-button,
310 .control-share .control-button {
311 border-radius: 0 0 0 4px;
314 /* Rules for the sidebar and main map area */
334 width: $sidebarWidth;
353 .overlay-sidebar #sidebar {
390 width: $sidebarWidth;
406 .leaflet-marker-draggable {
421 border-bottom: 1px solid $grey;
431 border:1px solid $grey;
436 border: 1px solid $grey;
438 border-top-color: $grey;
462 border: 2px solid #fff;
465 transition: border-color 0.08s ease-in;
472 border-bottom-right-radius: 3px;
476 text-stroke: 2px #fff;
477 background: rgba(255,255,255,.9);
479 input[type="radio"] {
484 &.active { border-color: darken($green, 10%); }
487 &.active { border-color: darken($green, 20%); }
497 li.disabled { color: $darkgrey; }
507 text-decoration: none;
508 background-color: $lightblue;
510 border-right: 1px solid #fff;
514 border-right: 1px solid #fff;
515 border-radius: 4px 0 0 4px;
519 border-radius: 0 4px 4px 0;
523 background-color: $blue;
535 font-family: monospace;
557 top: $lineheight/2 !important;
559 margin-right: 0px !important;
560 margin-top: 0px !important;
564 .leaflet-popup-scrolled {
565 padding-right: $lineheight;
566 border-bottom: 0px !important;
567 border-top: 0px !important;
570 .leaflet-popup-content-wrapper {
571 border-radius: 4px !important;
574 /* Rules for attribution text under the main map shown on printouts */
584 .attribution_license,
585 .attribution_project {
589 .attribution_notice {
593 .donate-attr { color: darken($green, 10%) !important; }
595 /* Rules for the sidebar */
599 padding: $lineheight/2 $lineheight;
600 // background: $offwhite;
601 // border-bottom: 1px solid $grey;
620 margin: $lineheight auto;
631 /* Temporary label size override until we remove site-wide font customisation */
639 /* Stop bootstrap 5 from floating legends when they don't need to be */
644 /* Override the text colour for primary and secondary buttons, to match our
645 bootstrap 4 colours. Note this has accessibility issues, which is why
646 bootstrap 5 calculates black as the appropriate colour, and we should
647 reconsider our colours at some point with that in mind. */
650 @include button-variant($primary, $primary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
654 @include button-variant($secondary, $secondary, $color: $white, $hover-color: $white, $active-color: $white, $disabled-color: $white);
657 .btn-outline-secondary {
658 @include button-outline-variant($secondary, $color-hover: $white, $active-color: $white);
661 /* Rules for the search and direction forms */
663 header .search_forms,
668 /* Rules for the map key which appears in the popout sidebar */
671 .mapkey-table-key img {
678 /* Rules for search sidebar */
680 #sidebar .search_results_entry {
683 &.selected { background: $list-highlight; }
686 .search_more .loader {
692 .search_results_error {
697 /* Rules for routing */
700 background-image: image-url('routing-sprite.png');
703 background-repeat: no-repeat;
705 @for $i from 0 through 25 {
706 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
709 td.instruction, td.distance {
710 padding-top: $lineheight/5;
711 padding-bottom: $lineheight/5;
712 border-bottom: 1px solid $grey;
723 background: $list-highlight;
726 .routing_marker { width: 15px; cursor: move; }
728 /* Rules for entity history */
733 border-bottom: $keyline;
741 /* Rules for the history sidebar */
743 #sidebar .changesets {
747 &.selected { background: $list-highlight; }
748 /* color is derived from changeset bbox fillColor in history.js */
759 .changeset_more .loader {
765 /* Rules for the browse sidebar */
769 padding-bottom: $spacer;
770 margin-bottom: $spacer;
771 border-bottom: 1px solid $grey;
774 word-wrap: break-word;
778 .browse-section:last-of-type {
783 background-color: $offwhite;
785 border-collapse: separate;
788 margin-bottom: $spacer;
791 border-bottom: 1px solid $grey;
794 tr:last-child th, tr:last-child td {
802 word-wrap: break-word;
803 white-space: pre-wrap;
808 background-color: $offwhite;
812 border-left: 1px solid $grey;
813 background-color: #fff;
816 .colour-preview-box {
821 border: 1px solid rgba(0, 0, 0, .1);
822 // add color via inline css on element: background-color: <tag value>;
826 .note-comments li, .changeset-comments li {
827 margin: $lineheight/2 0;
830 margin: 10px 6px 0 6px;
835 .subscribe-buttons input {
841 span.action-button:hover {
843 text-decoration: underline;
848 margin: 0 0 10px 10px;
861 background: $list-highlight;
868 /* Bootstrap buttons don't have any vertical margin, so
869 they touch when adjacent buttons wrap onto a new line
870 e.g. wide form buttons on a narrow sidebar */
874 margin-bottom: $spacer * 0.25;
878 /* Rules for export sidebar */
886 .export_area_inputs {
887 margin-bottom: $spacer;
895 background: $lightgrey;
897 #maxlat { margin-top: -1px; }
900 /* no-r2 */ margin-left: -1px;
904 /* no-r2 */ margin-right: -1px;
906 #minlat { margin-bottom: -1px; }
910 margin: $lineheight/4;
914 padding-left: $lineheight/2;
922 /* Rules for edit pages */
938 /* Rules for non-map content pages */
941 background: $lightgrey;
948 padding: $lineheight;
951 /* Overrides for pages that use new layout conventions */
953 .header-illustration {
954 background-position: 0 0;
955 background-repeat: no-repeat;
963 background-image: image-url("sign-up-illustration.png");
967 background-image: image-url("confirm-illustration.png");
971 background-image: image-url("terms-illustration.png");
979 background-image: image-url("sign-up-illustration-arm.png");
982 pointer-events: none;
986 [dir=rtl] .header-illustration {
987 transform: scaleX(-1);
999 /* Rules for small maps in content areas */
1003 margin-bottom: $lineheight;
1006 @include media-breakpoint-up(md) {
1012 /* Rules for the user map */
1014 .content_map .leaflet-popup-content {
1015 margin: $lineheight/2;
1019 /* Rules for user popups on maps */
1025 margin-top: 0 0 0 60px;
1030 /* Rules for the user list */
1036 /* Rules for the diary list page */
1040 padding-top: $lineheight;
1041 padding-bottom: $lineheight/2;
1042 border-top: 1px solid $grey;
1045 background-color: #fee;
1049 /* Rules for the diary entry page */
1055 margin-bottom: $lineheight;
1061 border-top: 1px dashed $grey;
1062 padding-top: $lineheight/2;
1063 padding-bottom: $lineheight/2;
1065 margin-top: $lineheight/2;
1066 padding-top: $lineheight;
1067 border-top: 1px solid $grey;
1070 background-color: #fee;
1073 margin-bottom: $lineheight/2;
1082 /* Rules for the log in page */
1084 #login_auth_buttons {
1089 padding: $lineheight/4 $lineheight/2;
1093 /* Rules for the account confirmation page */
1097 padding: $lineheight;
1098 margin-bottom: $lineheight;
1103 list-style: inherit;
1107 list-style-type: lower-alpha;
1112 /* Rules for the account settings page */
1114 #accountForm .user_image {
1118 #accountForm #user_image {
1122 #accountForm ul.accountImage-options {
1135 display: inline !important;
1138 /* Rules for the oauth settings page */
1140 .oauth_clients .buttons .oauth-edit {
1141 border-radius: 2px 0 0 2px;
1144 .oauth_clients .buttons .oauth-delete {
1145 border-radius: 0 2px 2px 0;
1148 /* Rules for the oauth authorization page */
1150 .oauth-authorize ul {
1154 /* Rules for messages pages */
1157 button[type="submit"] {
1159 white-space: nowrap;
1163 background: $offwhite;
1167 background: #CBEEA7;
1175 .inbox-row .inbox-mark-read {
1180 margin-bottom: $lineheight;
1181 padding: $lineheight/4 0px 4px 0px;
1182 border-bottom: 1px solid $grey;
1189 .info-line .user_thumbnail_tiny {
1190 vertical-align: middle;
1194 white-space: nowrap;
1203 .inbox-row-unread .inbox-mark-unread {
1207 /* Rules for "flash" notice boxes shown at the top of the content area */
1211 background-color: #ff7070;
1215 background-color: #ffe0cc;
1219 background-color: #CBEEA7;
1223 /* Rules for highlighting fields with rails validation errors */
1226 display: inline-block;
1232 background-color: #ff7070;
1235 /* Rules for rails validation error boxes */
1239 border: 2px solid #ff7070;
1240 padding: 0 $lineheight/2;
1241 margin-bottom: $lineheight;
1242 background-color: #f0f0f0;
1245 margin: 0 -10px 10px -10px;
1246 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1249 background-color: #c00;
1257 padding: $lineheight/4;
1262 background-color: $lightgrey;
1264 .describe_location {
1273 background-color: $lightgrey;
1279 vertical-align: middle;
1284 /* Rules for user images */
1291 img.user_thumbnail {
1296 img.user_thumbnail_tiny {
1303 /* Rules for geo microformats */
1306 border-bottom: none;
1309 /* General styles for action lists / subnavs / pager navs */
1312 nav.secondary-actions {
1317 flex-direction: row;
1323 display: inline-block;
1329 border-left: 1px solid $grey;
1330 padding-left: $lineheight/2;
1331 margin-right: $lineheight/2;
1332 margin-bottom: $lineheight/8;
1337 div.secondary-actions {
1344 input[type="submit"],
1345 input[type="button"],
1346 input[type="reset"],
1349 box-sizing: border-box;
1355 border-right:1px solid white;
1356 text-overflow: ellipsis;
1357 white-space: nowrap;
1361 .button:first-child,
1362 .button_to:first-child {
1363 border-radius:2px 0 0 2px;
1367 .button_to:last-child {
1368 border-radius:0 2px 2px 0;
1369 border-right-width: 0;
1373 .button_to:only-child,
1374 *[value="Hide"] + input:last-child,
1375 *[value="Hide"] + .button:last-child,
1376 *[value="Hide"] + .button_to:last-child {
1378 border-right-width: 0;
1380 /* if a 3-button set has a hidden middle button */
1381 *[value="Hide"] + input:nth-child(3),
1382 *[value="Hide"] + .button:nth-child(3),
1383 *[value="Hide"] + .button_to:nth-child(3) {
1384 border-radius:0 2px 2px 0;
1385 border-right-width: 0;
1387 /* if a 3-button set starts with a hidden button */
1388 *[value="Hide"] + input:nth-child(2):not(:last-child),
1389 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1390 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1391 border-radius:2px 0 0 2px;
1392 border-right-width: 1px;
1396 /* Create a single-line dl */
1400 display: inline-block;
1407 /* Rules for OpenID logo */
1410 vertical-align: text-bottom;
1414 /* Rules for rich text */
1419 background: $lightgrey;
1424 background: $lightgrey;
1426 white-space: pre-wrap;
1434 padding: $lineheight;
1435 background-color: $offwhite;
1442 border-left: $lineheight solid $offwhite;
1443 padding-left: $lineheight;
1449 /* Rules for the user notes list */
1453 background-color: $offwhite;
1457 /* Rules for the iD editor */
1464 /* Rules for the "Welcome" page */
1465 .site-welcome, .site-fixthemap {
1467 background-image: image-url("welcome-sprite.png");
1468 background-size: 500px 250px;
1473 padding-bottom: 20px;
1475 margin-bottom: 10px;
1487 /* no-r2 */ background-position: -50px 0;
1492 vertical-align: middle;
1496 /* no-r2 */ background-position: -100px 0;
1500 /* no-r2 */ background-position: -150px 0;
1504 /* no-r2 */ background-position: -200px 0;
1508 /* no-r2 */ background-position: -250px 0;
1512 /* no-r2 */ background-position: -300px 0;
1516 /* no-r2 */ background-position: -350px 0;
1520 background-color: #333;
1525 .site-about #content {
1526 background-color: $lightgrey;
1527 background-position: 50% 50%;
1528 background-repeat: no-repeat;
1529 background-size: cover;
1530 background-attachment: fixed;
1541 color: $vibrant-green;
1547 background-position: 0 50%;
1548 background-repeat: no-repeat;
1549 background-image: image-url('about/osm.png');
1550 background-size: cover;
1551 background-color: $vibrant-green;
1555 background: $vibrant-green;
1559 display: inline-block;
1569 vertical-align: middle;
1570 background: 40px 40px image-url('about/sprite.png') no-repeat;
1574 background-position: 0px 0px;
1578 background-position: 0px -40px;
1582 background-position: 0px -80px;
1586 background-position: 0px -120px;
1590 background-position: 0px -160px;
1594 background-position: -45px -160px;
1601 @media only screen and (max-width:960px) {
1602 .header-illustration.new-user-arm {