4 /* Styles common to large and small screens */
6 .fillL { background-color: white; }
8 /* Default rules for the body of every page */
11 font-family: 'Helvetica Neue',Arial,sans-serif;
12 font-size: $typeheight;
15 background-color: #fff;
31 #container { position: relative; }
34 vertical-align: middle;
35 margin-right: $lineheight/4;
38 [dir=rtl] { /* no-r2 */ text-align: right; }
40 [dir=ltr] { /* no-r2 */ text-align: left; }
45 display: inline-block;
49 background: transparent image-url("sprite.png") no-repeat 0 0;
50 background-image: image-url("sprite.svg");
55 .icon.search { /* no-r2 */ background-position: 0 0; }
56 .icon.donate { /* no-r2 */ background-position: -20px 0; }
57 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
58 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
59 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
60 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
61 .icon.layers { /* no-r2 */ background-position: -100px 0; }
62 .icon.key { /* no-r2 */ background-position: -120px 0; }
63 .icon.share { /* no-r2 */ background-position: -140px 0; }
64 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
65 .icon.link { /* no-r2 */ background-position: -180px 0; }
66 .icon.close { /* no-r2 */ background-position: -200px 0; }
67 .close-wrap:hover .icon.close,
68 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
69 .icon.check { /* no-r2 */ background-position: -220px 0; }
70 .icon.note { /* no-r2 */ background-position: -240px 0; }
71 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
72 .icon.query { /* no-r2 */ background-position: -260px 0; }
78 text-decoration: none;
81 text-decoration: underline;
85 /* Utility for de-emphasizing content */
98 /* Rules for the header */
101 display: none !important;
103 background: image-url("menu-icon.png") no-repeat;
104 background-size: 30px 30px;
108 margin: 14px 10px 0 0;
113 height: $headerHeight;
118 h1, nav, nav > ul, nav > ul > li {
119 display: inline-block;
124 padding: $lineheight/2;
132 text-decoration: none;
139 vertical-align: middle;
165 .btn-outline-primary {
166 @include button-outline-variant($green, $white);
170 .btn-outline-primary {
175 border-top-color: $grey;
179 background-color: lighten($green, 30%);
184 // Small tweaks to the toggle to stop the primary colour showing through
185 // when the menu is shown
186 .show > .btn-outline-primary.dropdown-toggle {
187 background-color: $green;
188 border-color: $green;
191 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
206 color: darken($darkgrey, 25%);
210 .btn-outline-secondary {
211 @include button-outline-variant($darkgrey);
216 .btn-outline-secondary {
217 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
223 background-color: white;
227 &.show .btn-outline-secondary {
228 background-color: white;
235 img.user_thumbnail_tiny {
241 display: inline-block;
243 margin: 3px 0 3px 3px;
244 background-color: lighten($grey, 10%);
256 nav.primary, nav.secondary {
259 background-color: $green;
265 #compact-secondary-nav {
270 #compact-secondary-nav {
271 display: inline-block;
278 /* Utility for styling notification numbers */
281 padding: 2px $lineheight/4;
283 background: lighten($green, 30%);
289 /* Rules for the message shown in place of the map when javascript is disabled */
297 /* Rules for Leaflet maps */
299 .leaflet-control .control-button {
303 background-color: #333;
304 background-color: rgba(0,0,0,.6);
305 border-radius: 4px 0 0 4px;
310 background-color: black;
315 background-color: #333;
316 background-color: rgba(0,0,0,.5);
321 background-color: $vibrant-green;
329 .leaflet-control .zoomin,
330 .control-layers .control-button {
332 border-radius: 4px 0 0 0;
335 .leaflet-control .zoomout,
336 .control-key .control-button {
341 .control-locate .control-button,
342 .control-share .control-button {
343 border-radius: 0 0 0 4px;
346 /* Rules for the sidebar and main map area */
366 width: $sidebarWidth;
381 padding: $lineheight $lineheight $lineheight/2;
386 margin-top: $lineheight;
387 margin-bottom: $lineheight/2;
400 pointer-events: none;
425 .overlay-sidebar #sidebar {
453 padding: $lineheight/2 $lineheight $lineheight;
467 border-right: 1px solid #fff;
477 width: $sidebarWidth;
493 .leaflet-marker-draggable {
508 border-bottom: 1px solid $grey;
518 border:1px solid $grey;
523 border: 1px solid $grey;
525 border-top-color: $grey;
549 border: 2px solid #fff;
552 transition: border-color 0.08s ease-in;
559 border-bottom-right-radius: 3px;
563 text-stroke: 2px #fff;
564 background: rgba(255,255,255,.9);
566 input[type="radio"] {
571 &.active { border-color: darken($green, 10%); }
574 &.active { border-color: darken($green, 20%); }
584 li.disabled { color: $darkgrey; }
594 text-decoration: none;
595 background-color: $lightblue;
597 border-right: 1px solid #fff;
601 border-right: 1px solid #fff;
602 border-radius: 4px 0 0 4px;
606 border-radius: 0 4px 4px 0;
610 background-color: $blue;
622 font-family: monospace;
644 top: $lineheight/2 !important;
646 margin-right: 0px !important;
647 margin-top: 0px !important;
651 .leaflet-popup-scrolled {
652 padding-right: $lineheight;
653 border-bottom: 0px !important;
654 border-top: 0px !important;
657 .leaflet-popup-content-wrapper {
658 border-radius: 4px !important;
661 /* Rules for attribution text under the main map shown on printouts */
671 .attribution_license,
672 .attribution_project {
676 .attribution_notice {
680 .donate-attr { color: darken($green, 10%) !important; }
682 /* Rules for the sidebar */
686 padding: $lineheight/2 $lineheight;
687 // background: $offwhite;
688 // border-bottom: 1px solid $grey;
708 margin: $lineheight auto;
720 /* Rules for the search and direction forms */
722 header .search_forms,
730 padding: $lineheight/2;
731 background-color: $lightgrey;
736 border-radius: 2px 0 0 2px;
742 transition: 300ms linear;
745 input[type=text].overflow {
747 border-radius: 3px 0px 0px 3px;
752 box-shadow: 0px 0px 7px $vibrant-green;
755 input[type=submit].float {
759 border-radius: 0 2px 2px 0;
763 background-color: rgba($red, 0.4);
767 /* this next line is to polyfill the vertical alignment of text within a select element,
768 * which is different between firefox and chrome. */
805 select.routing_engines {
807 margin: 0px 0px 5px 25px;
822 margin: 0px 0px 5px 0px;
829 vertical-align: middle;
833 a.reverse_directions {
835 margin: 0px 0px 5px 25px;
839 /* Rules for the map key which appears in the popout sidebar */
842 .mapkey-table-key img {
849 /* Rules for search sidebar */
851 #sidebar .search_results_entry {
854 &.selected { background: $list-highlight; }
857 .search_more .loader {
863 .search_results_error {
868 /* Rules for routing */
870 #sidebar_content>table {
871 padding: 5px 20px 10px 15px;
873 border-collapse: separate;
878 background-image: image-url('routing-sprite.png');
881 background-repeat: no-repeat;
883 @for $i from 0 through 25 {
884 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
888 padding: 0 $lineheight $lineheight/4;
891 td.instruction, td.distance {
892 padding-top: $lineheight/5;
893 padding-bottom: $lineheight/5;
894 border-bottom: 1px solid $grey;
905 background: $list-highlight;
907 .routing_engines, #route_from, #route_to { margin-left: 25px; }
908 .routing_marker { width: 15px; position: absolute; cursor: move; }
910 /* Rules for entity history */
915 border-bottom: $keyline;
923 /* Rules for the history sidebar */
925 #sidebar .changesets {
929 &.selected { background: $list-highlight; }
930 /* color is derived from changeset bbox fillColor in history.js */
942 .changeset_more .loader {
948 /* Rules for the browse sidebar */
952 padding: $lineheight/2 $lineheight;
953 border-bottom: 1px solid $grey;
957 word-wrap: break-word;
961 .browse-section:last-of-type {
968 border: 1px solid $lightgrey;
976 padding: 5px 0 5px 10px;
978 border: 1px solid $grey;
979 border-radius: 4px 4px 0 0;
980 background-color: $offwhite;
986 background-color: #FFF;
987 border: 1px solid $grey;
989 border-radius: 0 0 4px 4px;
994 background-color: $offwhite;
995 border: 1px solid $grey;
998 border-collapse: separate;
1003 border-bottom: 1px solid $grey;
1006 tr:last-child th, tr:last-child td {
1014 word-wrap: break-word;
1015 white-space: pre-wrap;
1020 background-color: $offwhite;
1024 border-left: 1px solid $grey;
1025 background-color: #fff;
1028 .colour-preview-box {
1033 border: 1px solid rgba(0, 0, 0, .1);
1034 // add color via inline css on element: background-color: <tag value>;
1038 .note-comments li, .changeset-comments li {
1039 margin: $lineheight/2 0;
1042 margin: 10px 6px 0 6px;
1051 .subscribe-buttons {
1053 margin: 18px 10px 10px;
1057 .subscribe-buttons input {
1063 span.action-button:hover {
1065 text-decoration: underline;
1070 margin: 0 0 10px 10px;
1074 padding: $lineheight $lineheight $lineheight/2;
1079 padding-bottom: $lineheight/2;
1082 padding: 0 $lineheight;
1092 background: $list-highlight;
1099 /* Rules for export sidebar */
1102 padding: $lineheight;
1104 .export_area_inputs,
1109 .export_area_inputs {
1110 margin-bottom: $lineheight/2;
1111 input[type="text"] {
1119 background: $lightgrey;
1120 border: 1px solid $grey;
1123 #maxlat { margin-top: -1px; }
1126 /* no-r2 */ margin-left: -1px;
1130 /* no-r2 */ margin-right: -1px;
1132 #minlat { margin-bottom: 0; }
1136 margin: $lineheight/4;
1140 margin-top: $lineheight;
1141 margin-bottom: $lineheight;
1145 padding-left: $lineheight/2;
1148 margin-bottom: 10px;
1153 /* Rules for the routing sidebar */
1162 /* Rules for edit pages */
1178 /* Rules for non-map content pages */
1181 background: $lightgrey;
1188 padding: $lineheight;
1191 /* Overrides for pages that use new layout conventions */
1197 .content-heading .content-inner {
1202 .header-illustration {
1203 background-position: 0 0;
1204 background-repeat: no-repeat;
1212 background-image: image-url("sign-up-illustration.png");
1216 background-image: image-url("confirm-illustration.png");
1220 background-image: image-url("terms-illustration.png");
1228 background-image: image-url("sign-up-illustration-arm.png");
1233 [dir=rtl] .header-illustration {
1234 transform: scaleX(-1);
1237 #content.maximised {
1246 /* Rules for small maps in content areas */
1250 border: 1px solid $grey;
1251 margin-bottom: $lineheight;
1254 @include media-breakpoint-up(md) {
1260 /* Rules for the new trace form */
1265 width: calc(100% - 150px);
1270 /* Rules for the edit trace form */
1273 .standard-form-row p {
1279 width: calc(100% - 150px);
1284 /* Rules for the user profile page */
1288 .userinformation-inner {
1297 .admin-user-info small {
1298 margin-bottom: $lineheight/2;
1300 margin-right: $lineheight;
1304 margin-top: $lineheight;
1308 .activity-details p {
1314 // Silly exception; remove when user page is redesigned.
1318 p#no_home_location {
1319 margin: $lineheight;
1322 margin-top: $lineheight/4;
1327 /* Rules for the user map */
1329 .content_map .leaflet-popup-content {
1330 margin: $lineheight/2;
1334 /* Rules for user popups on maps */
1340 margin-top: 0 0 0 60px;
1343 img.user_thumbnail {
1345 margin: 0 $lineheight/2 0 0;
1349 /* Rules for the user list */
1355 vertical-align: middle;
1364 #user_list_actions {
1366 margin-top: $lineheight/2;
1369 /* Rules for the diary list page */
1373 padding-top: $lineheight;
1374 padding-bottom: $lineheight/2;
1375 border-top: 1px solid $grey;
1378 margin-top: $lineheight/2;
1382 background-color: #fee;
1386 margin-bottom: $lineheight;
1390 margin-bottom: $lineheight/2;
1394 img.user_thumbnail {
1405 padding-top: $lineheight;
1408 /* Rules for the diary entry page */
1415 border: 1px solid $grey;
1417 margin-bottom: $lineheight;
1420 border-top: 1px solid $grey;
1421 padding-top: $lineheight;
1422 margin-top: $lineheight/2;
1428 border-top: 1px dashed $grey;
1429 padding-top: $lineheight/2;
1430 padding-bottom: $lineheight/2;
1432 margin-top: $lineheight/2;
1433 padding-top: $lineheight;
1434 border-top: 1px solid $grey;
1437 background-color: #fee;
1440 margin-bottom: $lineheight/2;
1449 .diary_entries-show img.user_thumbnail {
1454 .diary-subscribe-buttons {
1460 /* Rules for the log in page */
1462 #login_auth_buttons {
1466 #login_auth_buttons li {
1468 padding: $lineheight/4 $lineheight/2;
1471 /* Rules for the account confirmation page */
1475 border: 1px solid $grey;
1476 padding: $lineheight;
1477 margin-bottom: $lineheight;
1482 list-style: inherit;
1486 list-style-type: lower-alpha;
1491 background: $lightblue;
1493 background: darken($lightblue, $hovercolor);
1498 /* Rules for the account settings page */
1500 #accountForm .user_image {
1504 #accountForm #user_image {
1508 #accountForm ul.accountImage-options {
1521 display: inline !important;
1524 /* Rules for the oauth settings page */
1526 .oauth_clients .buttons .oauth-edit {
1527 border-radius: 2px 0 0 2px;
1530 .oauth_clients .buttons .oauth-delete {
1531 border-radius: 0 2px 2px 0;
1534 /* Rules for the oauth authorization page */
1536 .oauth-authorize ul {
1540 /* Rules for messages pages */
1543 input[type="submit"] {
1548 background: $offwhite;
1552 background: #CBEEA7;
1560 .inbox-row .inbox-mark-read {
1565 margin-bottom: $lineheight;
1566 padding: $lineheight/4 0px 4px 0px;
1567 border-bottom: 1px solid $grey;
1574 .info-line .user_thumbnail_tiny {
1575 vertical-align: middle;
1579 white-space: nowrap;
1588 .inbox-row-unread .inbox-mark-unread {
1592 /* Rules for "flash" notice boxes shown at the top of the content area */
1595 padding: $lineheight;
1598 background-color: #ff7070;
1602 background-color: #ffe0cc;
1606 background-color: #CBEEA7;
1610 display: inline-block;
1611 margin-left: $lineheight / 2;
1612 vertical-align: middle;
1615 margin-top: $lineheight * 0.5;
1616 margin-bottom: $lineheight * 0.5;
1629 /* Rules for highlighting fields with rails validation errors */
1632 display: inline-block;
1638 background-color: #ff7070;
1641 /* Rules for rails validation error boxes */
1645 border: 2px solid #ff7070;
1646 padding: 0 $lineheight/2;
1647 margin-bottom: $lineheight;
1648 background-color: #f0f0f0;
1651 margin: 0 -10px 10px -10px;
1652 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1655 background-color: #c00;
1663 padding: $lineheight/4;
1667 /* Rules for forms */
1671 margin-bottom: $lineheight;
1673 label.standard-label {
1675 margin-bottom: $lineheight/4;
1676 font-size: $typeheight;
1680 label.standard-label.secondary {
1681 display: inline-block;
1682 font-weight: normal;
1685 font-weight: normal;
1692 margin-top: $lineheight;
1693 padding-top: $lineheight;
1694 border-top: 1px solid $lightgrey;
1696 .horizontal-list .standard-form-row {
1698 padding-right: 10px;
1700 .standard-form-row {
1701 margin-bottom: $lineheight/2;
1708 list-style-type: none;
1710 input[type="checkbox"],
1711 input[type="radio"] {
1717 #remember_me_openid {
1725 input[type="checkbox"],
1726 input[type="radio"] {
1731 input[type="email"],
1733 input[type="password"],
1736 background-color: #fff;
1737 border: 1px solid $grey;
1743 &.field_with_errors {
1744 border: 2px solid #ff7070;
1755 /* Rules for user images */
1760 border: 1px solid $grey;
1761 margin-bottom: $lineheight;
1763 margin-right: $lineheight;
1766 img.user_thumbnail {
1769 border: 1px solid $grey;
1770 margin-right: $lineheight;
1773 img.user_thumbnail_tiny {
1778 border: 1px solid $grey;
1781 /* Rules for geo microformats */
1784 border-bottom: none;
1787 /* General styles for action lists / subnavs / pager navs */
1789 ul.secondary-actions {
1795 display: inline-block;
1802 border-left: 1px solid $grey;
1803 padding-left: $lineheight/2;
1804 margin-right: $lineheight/2;
1815 div.secondary-actions {
1820 /* Utility for managing inner content areas */
1822 .inner22 { padding: $lineheight;}
1824 .inner12 { padding: $lineheight/2 $lineheight;}
1826 .inner11 { padding: $lineheight/2;}
1828 .inner20 { padding: $lineheight 0;}
1830 .inner02 { padding: 0 $lineheight;}
1832 /* Utility for general button styles */
1834 input[type="button"],
1835 input[type="submit"],
1836 input[type="reset"],
1840 display: inline-block;
1841 padding: $lineheight/4 $lineheight/2;
1842 min-height: 20px + $lineheight/2;
1844 margin: 0 0 $lineheight/2 0;
1850 background: darken($blue, $hovercolor);
1851 text-decoration: none;
1854 background: $lightblue;
1856 background: darken($lightblue, $hovercolor);
1860 background: $lightgrey;
1862 background: $lightgrey;
1870 input[type="button"],
1871 input[type="submit"],
1872 input[type="reset"] {
1873 line-height: normal;
1882 input[type="submit"],
1883 input[type="button"],
1884 input[type="reset"],
1887 box-sizing: border-box;
1893 border-right:1px solid white;
1894 text-overflow: ellipsis;
1895 white-space: nowrap;
1899 .button:first-child,
1900 .button_to:first-child {
1901 border-radius:2px 0 0 2px;
1905 .button_to:last-child {
1906 border-radius:0 2px 2px 0;
1907 border-right-width: 0;
1911 .button_to:only-child,
1912 *[value="Hide"] + input:last-child,
1913 *[value="Hide"] + .button:last-child,
1914 *[value="Hide"] + .button_to:last-child {
1916 border-right-width: 0;
1918 /* if a 3-button set has a hidden middle button */
1919 *[value="Hide"] + input:nth-child(3),
1920 *[value="Hide"] + .button:nth-child(3),
1921 *[value="Hide"] + .button_to:nth-child(3) {
1922 border-radius:0 2px 2px 0;
1923 border-right-width: 0;
1925 /* if a 3-button set starts with a hidden button */
1926 *[value="Hide"] + input:nth-child(2):not(:last-child),
1927 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1928 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1929 border-radius:2px 0 0 2px;
1930 border-right-width: 1px;
1934 /* Customise the background colour of striped tables */
1936 .table-striped > tbody > tr:nth-child(2n+1) > td,
1937 .table-striped > tbody > tr:nth-child(2n+1) > th {
1938 background-color: $offwhite;
1941 /* Rules for OpenID logo */
1944 vertical-align: text-bottom;
1948 /* Rules for rich text */
1954 background: $lightgrey;
1960 background: $lightgrey;
1962 white-space: pre-wrap;
1970 padding: $lineheight;
1971 background-color: $offwhite;
1978 border-left: $lineheight solid $offwhite;
1979 padding-left: $lineheight;
1985 .diary_post .richtext {
1986 margin-top: $lineheight;
1989 .comments .richtext {
1994 /* Rules for rich text editors */
1996 input.richtext_title[type="text"] {
1998 width: calc(100% - 235px);
2000 @media only screen and (max-width:768px) {
2005 .richtext_container {
2006 margin-bottom: $lineheight;
2010 width: calc(100% - 235px);
2011 display: inline-block;
2012 vertical-align: top;
2014 @media only screen and (max-width:768px) {
2019 display: inline-block;
2020 padding: $lineheight;
2021 background-color: $offwhite;
2025 background-image: image-url("loading.gif");
2026 background-repeat: no-repeat;
2027 background-position: center;
2037 display: inline-block;
2038 vertical-align: top;
2040 background-color: $offwhite;
2041 padding: $lineheight/2;
2049 border-bottom: 1px solid $grey;
2050 margin-bottom: $lineheight/4;
2051 padding-bottom: $lineheight/4;
2054 li h4, li span, li p {
2055 display: inline-block;
2056 vertical-align: top;
2067 margin-left: $lineheight/2;
2068 margin-bottom: $lineheight/4;
2069 white-space: nowrap;
2074 /* Rules for the user notes list */
2078 background-color: $offwhite;
2082 /* Rules for the iD editor */
2089 /* Rules for the "Welcome" page */
2090 .site-welcome, .site-fixthemap {
2100 background-image: image-url("welcome-sprite.png");
2101 background-size: 500px 250px;
2107 padding-bottom: 20px;
2109 margin-bottom: 10px;
2121 /* no-r2 */ background-position: -50px 0;
2126 vertical-align: middle;
2130 /* no-r2 */ background-position: -100px 0;
2134 /* no-r2 */ background-position: -150px 0;
2138 /* no-r2 */ background-position: -200px 0;
2142 /* no-r2 */ background-position: -250px 0;
2146 /* no-r2 */ background-position: -300px 0;
2150 /* no-r2 */ background-position: -350px 0;
2159 text-decoration: none;
2163 background-color: #333;
2168 .site-about #content {
2169 background-color: $lightgrey;
2170 background-position: 50% 50%;
2171 background-repeat: no-repeat;
2172 background-size: cover;
2173 background-attachment: fixed;
2190 padding: 170px 40px 20px;
2192 background: rgba(0, 0, 0, .8);
2202 color: $vibrant-green;
2206 @include media-breakpoint-up(sm) {
2218 background-position: 0 50%;
2219 background-repeat: no-repeat;
2220 background-image: image-url('about/osm.png');
2221 background-size: cover;
2222 background-color: $vibrant-green;
2232 padding: 20px 20px 20px 40px;
2233 font: 500 20px/24px Helvetica, Arial, sans-serif;
2234 white-space: nowrap;
2236 background: $vibrant-green;
2240 display: inline-block;
2250 vertical-align: middle;
2251 background: 40px 40px image-url('about/sprite.png') no-repeat;
2255 background-position: 0px 0px;
2259 background-position: 0px -40px;
2263 background-position: 0px -80px;
2267 background-position: 0px -120px;
2271 background-position: 0px -160px;
2275 background-position: -45px -160px;
2282 @media only screen and (max-width:960px) {
2283 .header-illustration.new-user-arm {