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; }
35 margin: 0 0 $lineheight/2 0;
39 vertical-align: middle;
40 margin-right: $lineheight/4;
47 [dir=rtl] { /* no-r2 */ text-align: right; }
49 [dir=ltr] { /* no-r2 */ text-align: left; }
54 display: inline-block;
58 background: transparent image-url("sprite.png") no-repeat 0 0;
59 background-image: image-url("sprite.svg");
64 .icon.search { /* no-r2 */ background-position: 0 0; }
65 .icon.donate { /* no-r2 */ background-position: -20px 0; }
66 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
67 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
68 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
69 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
70 .icon.layers { /* no-r2 */ background-position: -100px 0; }
71 .icon.key { /* no-r2 */ background-position: -120px 0; }
72 .icon.share { /* no-r2 */ background-position: -140px 0; }
73 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
74 .icon.link { /* no-r2 */ background-position: -180px 0; }
75 .icon.close { /* no-r2 */ background-position: -200px 0; }
76 .close-wrap:hover .icon.close,
77 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
78 .icon.check { /* no-r2 */ background-position: -220px 0; }
79 .icon.note { /* no-r2 */ background-position: -240px 0; }
80 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
81 .icon.query { /* no-r2 */ background-position: -260px 0; }
87 text-decoration: none;
88 -webkit-appearance: none;
91 text-decoration: underline;
95 /* General styles for tables */
99 margin-bottom: $lineheight;
102 padding: $lineheight/4;
103 line-height: $lineheight;
110 vertical-align: middle;
114 /* Utility for de-emphasizing content */
123 /* Rules for the header */
126 display: none !important;
128 background: image-url("menu-icon.png") no-repeat;
129 background-size: 30px 30px;
133 margin: 14px 10px 0 0;
138 height: $headerHeight;
143 h1, nav, nav > ul, nav > ul > li {
144 display: inline-block;
149 padding: $lineheight/2;
157 text-decoration: none;
164 vertical-align: middle;
190 .btn-outline-primary {
191 @include button-outline-variant($green, $white);
195 .btn-outline-primary {
200 border-top-color: $grey;
204 background-color: lighten($green, 30%);
209 // Small tweaks to the toggle to stop the primary colour showing through
210 // when the menu is shown
211 .show > .btn-outline-primary.dropdown-toggle {
212 background-color: $green;
213 border-color: $green;
216 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
231 color: darken($darkgrey, 25%);
235 .btn-outline-secondary {
236 @include button-outline-variant($darkgrey);
241 .btn-outline-secondary {
242 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
248 background-color: white;
252 &.show .btn-outline-secondary {
253 background-color: white;
260 img.user_thumbnail_tiny {
266 display: inline-block;
268 margin: 3px 0 3px 3px;
269 background-color: lighten($grey, 10%);
281 nav.primary, nav.secondary {
284 background-color: $green;
290 #compact-secondary-nav {
295 #compact-secondary-nav {
296 display: inline-block;
303 /* Utility for styling notification numbers */
306 padding: 2px $lineheight/4;
308 background: lighten($green, 30%);
314 /* Rules for the message shown in place of the map when javascript is disabled */
322 /* Rules for Leaflet maps */
324 .leaflet-control .control-button {
328 background-color: #333;
329 background-color: rgba(0,0,0,.6);
330 border-radius: 4px 0 0 4px;
335 background-color: black;
340 background-color: #333;
341 background-color: rgba(0,0,0,.5);
346 background-color: $vibrant-green;
354 .leaflet-control .zoomin,
355 .control-layers .control-button {
357 border-radius: 4px 0 0 0;
360 .leaflet-control .zoomout,
361 .control-key .control-button {
366 .control-locate .control-button,
367 .control-share .control-button {
368 border-radius: 0 0 0 4px;
371 /* Rules for the sidebar and main map area */
391 width: $sidebarWidth;
406 padding: $lineheight $lineheight $lineheight/2;
411 margin-top: $lineheight;
412 margin-bottom: $lineheight/2;
425 pointer-events: none;
450 .overlay-sidebar #sidebar {
478 padding: $lineheight/2 $lineheight $lineheight;
492 border-right: 1px solid #fff;
502 width: $sidebarWidth;
518 .leaflet-marker-draggable {
533 border-bottom: 1px solid $grey;
543 border:1px solid $grey;
548 border: 1px solid $grey;
550 border-top-color: $grey;
574 border: 2px solid #fff;
577 transition: border-color 0.08s ease-in;
584 border-bottom-right-radius: 3px;
588 text-stroke: 2px #fff;
589 background: rgba(255,255,255,.9);
591 input[type="radio"] {
596 &.active { border-color: darken($green, 10%); }
599 &.active { border-color: darken($green, 20%); }
609 li.disabled { color: $darkgrey; }
619 text-decoration: none;
620 background-color: $lightblue;
622 border-right: 1px solid #fff;
626 border-right: 1px solid #fff;
627 border-radius: 4px 0 0 4px;
631 border-radius: 0 4px 4px 0;
635 background-color: $blue;
647 font-family: monospace;
669 top: $lineheight/2 !important;
671 margin-right: 0px !important;
672 margin-top: 0px !important;
676 .leaflet-popup-scrolled {
677 padding-right: $lineheight;
678 border-bottom: 0px !important;
679 border-top: 0px !important;
682 .leaflet-popup-content-wrapper {
683 border-radius: 4px !important;
686 /* Rules for attribution text under the main map shown on printouts */
696 .attribution_license,
697 .attribution_project {
701 .attribution_notice {
705 .donate-attr { color: darken($green, 10%) !important; }
707 /* Rules for the sidebar */
711 padding: $lineheight/2 $lineheight;
712 // background: $offwhite;
713 // border-bottom: 1px solid $grey;
723 padding: $lineheight;
737 margin: $lineheight auto;
749 /* Rules for the search and direction forms */
751 header .search_forms,
759 padding: $lineheight/2;
760 background-color: $lightgrey;
765 border-radius: 2px 0 0 2px;
771 transition: 300ms linear;
774 input[type=text].overflow {
776 border-radius: 3px 0px 0px 3px;
781 box-shadow: 0px 0px 7px $vibrant-green;
784 input[type=submit].float {
788 border-radius: 0 2px 2px 0;
792 background-color: rgba($red, 0.4);
796 /* this next line is to polyfill the vertical alignment of text within a select element,
797 * which is different between firefox and chrome. */
834 select.routing_engines {
836 margin: 0px 0px 5px 25px;
851 margin: 0px 0px 5px 0px;
858 vertical-align: middle;
862 a.reverse_directions {
864 margin: 0px 0px 5px 25px;
868 /* Rules for the map key which appears in the popout sidebar */
871 .mapkey-table-key img {
877 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
881 /* Rules for search sidebar */
883 #sidebar .search_results_entry {
886 &.selected { background: $list-highlight; }
889 .search_more .loader {
895 .search_results_error {
900 /* Rules for routing */
902 #sidebar_content>table {
903 padding: 5px 20px 10px 15px;
905 border-collapse: separate;
910 background-image: image-url('routing-sprite.png');
913 background-repeat: no-repeat;
915 @for $i from 0 through 25 {
916 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
920 padding: 0 $lineheight $lineheight/4;
923 td.instruction, td.distance {
924 padding-top: $lineheight/5;
925 padding-bottom: $lineheight/5;
926 border-bottom: 1px solid $grey;
937 background: $list-highlight;
939 .routing_engines, #route_from, #route_to { margin-left: 25px; }
940 .routing_marker { width: 15px; position: absolute; cursor: move; }
942 /* Rules for entity history */
947 border-bottom: $keyline;
955 /* Rules for the history sidebar */
957 #sidebar .changesets {
961 &.selected { background: $list-highlight; }
962 /* color is derived from changeset bbox fillColor in history.js */
974 .changeset_more .loader {
980 /* Rules for the browse sidebar */
984 padding: $lineheight/2 $lineheight;
985 border-bottom: 1px solid $grey;
989 word-wrap: break-word;
993 .browse-section:last-of-type {
1000 border: 1px solid $lightgrey;
1005 margin-bottom: 10px;
1008 padding: 5px 0 5px 10px;
1010 border: 1px solid $grey;
1011 border-radius: 4px 4px 0 0;
1012 background-color: $offwhite;
1018 background-color: #FFF;
1019 border: 1px solid $grey;
1021 border-radius: 0 0 4px 4px;
1026 background-color: $offwhite;
1027 border: 1px solid $grey;
1029 table-layout: fixed;
1030 border-collapse: separate;
1034 border-bottom: 1px solid $grey;
1037 tr:last-child th, tr:last-child td {
1045 word-wrap: break-word;
1046 white-space: pre-wrap;
1051 background-color: $offwhite;
1055 border-left: 1px solid $grey;
1056 background-color: #fff;
1059 .colour-preview-box {
1064 border: 1px solid rgba(0, 0, 0, .1);
1065 // add color via inline css on element: background-color: <tag value>;
1070 margin: 0 0 $lineheight/2 0;
1071 padding: 0 $lineheight/2;
1074 .note-comments li, .changeset-comments li {
1075 margin: $lineheight/2 0;
1078 margin: 10px 6px 0 6px;
1087 .subscribe-buttons {
1089 margin: 18px 10px 10px;
1093 .subscribe-buttons input {
1099 span.action-button:hover {
1101 text-decoration: underline;
1106 margin: 0 0 10px 10px;
1110 padding: $lineheight $lineheight $lineheight/2;
1115 padding-bottom: $lineheight/2;
1118 padding: 0 $lineheight;
1128 background: $list-highlight;
1135 /* Rules for export sidebar */
1138 padding: $lineheight;
1140 .export_area_inputs,
1145 .export_area_inputs {
1146 margin-bottom: $lineheight/2;
1147 input[type="text"] {
1155 background: $lightgrey;
1156 border: 1px solid $grey;
1159 #maxlat { margin-top: -1px; }
1162 /* no-r2 */ margin-left: -1px;
1166 /* no-r2 */ margin-right: -1px;
1168 #minlat { margin-bottom: 0; }
1172 margin: $lineheight/4;
1176 margin-top: $lineheight;
1177 margin-bottom: $lineheight;
1181 padding-left: $lineheight/2;
1184 margin-bottom: 10px;
1189 /* Rules for the routing sidebar */
1198 /* Rules for edit pages */
1214 /* Rules for non-map content pages */
1217 background: $lightgrey;
1221 h1, h2, h3, p, ul, ol {
1222 margin-bottom: $lineheight;
1226 margin-top: $lineheight/2;
1234 padding: $lineheight;
1237 /* Overrides for pages that use new layout conventions */
1243 .content-heading .content-inner {
1248 .header-illustration {
1249 background-position: 0 0;
1250 background-repeat: no-repeat;
1258 background-image: image-url("sign-up-illustration.png");
1262 background-image: image-url("confirm-illustration.png");
1266 background-image: image-url("terms-illustration.png");
1274 background-image: image-url("sign-up-illustration-arm.png");
1279 [dir=rtl] .header-illustration {
1280 transform: scaleX(-1);
1283 #content.maximised {
1292 /* Rules for small maps in content areas */
1298 border: 1px solid $grey;
1299 margin-bottom: $lineheight;
1303 /* Rules for the trace list shown by the traces tab etc */
1315 /* Rules for the new trace form */
1320 width: calc(100% - 150px);
1325 /* Rules for the edit trace form */
1328 .standard-form-row p {
1334 width: calc(100% - 150px);
1339 /* Rules for the user profile page */
1344 .userinformation-inner {
1359 .admin-user-info small {
1360 margin-bottom: $lineheight/2;
1362 margin-right: $lineheight;
1367 border-bottom: 1px solid $grey;
1368 padding-bottom: $lineheight;
1371 margin-bottom: $lineheight/2;
1376 margin-top: $lineheight;
1380 .activity-details p {
1386 // Silly exception; remove when user page is redesigned.
1390 p#no_home_location {
1391 margin: $lineheight;
1394 margin-top: $lineheight/4;
1399 /* Rules for the user map */
1401 .content_map .leaflet-popup-content {
1402 margin: $lineheight/2;
1406 /* Rules for user popups on maps */
1412 margin-top: 0 0 0 60px;
1415 img.user_thumbnail {
1417 margin: 0 $lineheight/2 0 0;
1421 /* Rules for the user list */
1427 vertical-align: middle;
1436 #user_list_actions {
1438 margin-top: $lineheight/2;
1441 /* Rules for the diary list page */
1445 padding-top: $lineheight;
1446 padding-bottom: $lineheight/2;
1447 border-top: 1px solid $grey;
1450 margin-top: $lineheight/2;
1454 background-color: #fee;
1458 margin-bottom: $lineheight;
1462 margin-bottom: $lineheight/2;
1466 img.user_thumbnail {
1477 padding-top: $lineheight;
1480 /* Rules for the diary entry page */
1487 border: 1px solid $grey;
1489 margin-bottom: $lineheight;
1492 border-top: 1px solid $grey;
1493 padding-top: $lineheight;
1494 margin-top: $lineheight/2;
1500 border-top: 1px dashed $grey;
1501 padding-top: $lineheight/2;
1502 padding-bottom: $lineheight/2;
1504 margin-top: $lineheight/2;
1505 padding-top: $lineheight;
1506 border-top: 1px solid $grey;
1509 background-color: #fee;
1512 margin-bottom: $lineheight/2;
1521 .diary_entries-show img.user_thumbnail {
1526 .diary-subscribe-buttons {
1532 /* Rules for the log in page */
1534 #login_auth_buttons {
1538 #login_auth_buttons li {
1540 padding: $lineheight/4 $lineheight/2;
1543 /* Rules for the account confirmation page */
1547 border: 1px solid $grey;
1548 padding: $lineheight;
1549 margin-bottom: $lineheight;
1554 list-style: inherit;
1558 list-style-type: lower-alpha;
1563 background: $lightblue;
1565 background: darken($lightblue, $hovercolor);
1570 /* Rules for the account settings page */
1572 #accountForm .user_map {
1576 border: 1px solid $grey;
1579 #accountForm .user_image {
1583 #accountForm #user_image {
1587 #accountForm ul.accountImage-options {
1600 display: inline !important;
1603 .content_map.settings_map {
1608 /* Rules for the oauth settings page */
1610 .oauth_clients .buttons .oauth-edit {
1611 border-radius: 2px 0 0 2px;
1614 .oauth_clients .buttons .oauth-delete {
1615 border-radius: 0 2px 2px 0;
1618 /* Rules for the oauth authorization page */
1620 .oauth-authorize ul {
1624 /* Rules for messages pages */
1628 border: 1px solid $grey;
1630 input[type="submit"] {
1634 border-top: 1px solid $grey;
1638 background: $offwhite;
1651 padding: $lineheight/4;
1662 border-right: 1px solid $lightgrey;
1666 .inbox-row .inbox-mark-read {
1671 margin-bottom: $lineheight;
1672 padding: $lineheight/4 0px 4px 0px;
1673 border-bottom: 1px solid $grey;
1680 .info-line .user_thumbnail_tiny {
1681 vertical-align: middle;
1685 white-space: nowrap;
1694 .inbox-row-unread .inbox-mark-unread {
1698 .messages-show .message-buttons {
1699 margin-top: $lineheight;
1700 margin-bottom: $lineheight * 1.5;
1701 padding-top: $lineheight;
1702 border-top: 1px solid $lightgrey;
1705 .messages-show .buttons .mark-unread-button {
1709 /* Rules for "flash" notice boxes shown at the top of the content area */
1712 padding: $lineheight;
1715 background-color: #ff7070;
1719 background-color: #ffe0cc;
1723 background-color: #CBEEA7;
1727 display: inline-block;
1728 margin-left: $lineheight / 2;
1729 vertical-align: middle;
1732 margin-top: $lineheight * 0.5;
1733 margin-bottom: $lineheight * 0.5;
1746 /* Rules for highlighting fields with rails validation errors */
1749 display: inline-block;
1755 background-color: #ff7070;
1758 /* Rules for rails validation error boxes */
1762 border: 2px solid #ff7070;
1763 padding: 0 $lineheight/2;
1764 margin-bottom: $lineheight;
1765 background-color: #f0f0f0;
1768 margin: 0 -10px 10px -10px;
1769 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1772 background-color: #c00;
1780 padding: $lineheight/4;
1784 /* Rules for forms */
1788 margin-bottom: $lineheight;
1790 label.standard-label {
1792 margin-bottom: $lineheight/4;
1793 font-size: $typeheight;
1797 label.standard-label.secondary {
1798 display: inline-block;
1799 font-weight: normal;
1802 font-weight: normal;
1809 margin-top: $lineheight;
1810 padding-top: $lineheight;
1811 border-top: 1px solid $lightgrey;
1813 .horizontal-list .standard-form-row {
1815 padding-right: 10px;
1817 .standard-form-row {
1818 margin-bottom: $lineheight/2;
1825 list-style-type: none;
1827 input[type="checkbox"],
1828 input[type="radio"] {
1834 #remember_me_openid {
1842 input[type="checkbox"],
1843 input[type="radio"] {
1848 input[type="email"],
1850 input[type="password"],
1853 background-color: #fff;
1854 border: 1px solid $grey;
1860 &.field_with_errors {
1861 border: 2px solid #ff7070;
1872 /* Rules for user images */
1877 border: 1px solid $grey;
1878 margin-bottom: $lineheight;
1880 margin-right: $lineheight;
1883 img.user_thumbnail {
1886 border: 1px solid $grey;
1887 margin-right: $lineheight;
1890 img.user_thumbnail_tiny {
1895 border: 1px solid $grey;
1898 /* Rules for geo microformats */
1901 border-bottom: none;
1904 /* General styles for action lists / subnavs / pager navs */
1906 ul.secondary-actions {
1912 display: inline-block;
1919 border-left: 1px solid $grey;
1920 padding-left: $lineheight/2;
1921 margin-right: $lineheight/2;
1932 div.secondary-actions {
1937 /* Utility for managing inner content areas */
1939 .inner22 { padding: $lineheight;}
1941 .inner12 { padding: $lineheight/2 $lineheight;}
1943 .inner11 { padding: $lineheight/2;}
1945 .inner20 { padding: $lineheight 0;}
1947 .inner02 { padding: 0 $lineheight;}
1949 /* Utility for general button styles */
1951 input[type="button"],
1952 input[type="submit"],
1953 input[type="reset"],
1957 display: inline-block;
1958 padding: $lineheight/4 $lineheight/2;
1959 min-height: 20px + $lineheight/2;
1961 margin: 0 0 $lineheight/2 0;
1967 background: darken($blue, $hovercolor);
1968 text-decoration: none;
1971 background: $lightblue;
1973 background: darken($lightblue, $hovercolor);
1977 background: $lightgrey;
1979 background: $lightgrey;
1987 input[type="button"],
1988 input[type="submit"],
1989 input[type="reset"] {
1990 line-height: normal;
1999 input[type="submit"],
2000 input[type="button"],
2001 input[type="reset"],
2004 box-sizing: border-box;
2010 border-right:1px solid white;
2011 text-overflow: ellipsis;
2012 white-space: nowrap;
2016 .button:first-child,
2017 .button_to:first-child {
2018 border-radius:2px 0 0 2px;
2022 .button_to:last-child {
2023 border-radius:0 2px 2px 0;
2024 border-right-width: 0;
2028 .button_to:only-child,
2029 *[value="Hide"] + input:last-child,
2030 *[value="Hide"] + .button:last-child,
2031 *[value="Hide"] + .button_to:last-child {
2033 border-right-width: 0;
2035 /* if a 3-button set has a hidden middle button */
2036 *[value="Hide"] + input:nth-child(3),
2037 *[value="Hide"] + .button:nth-child(3),
2038 *[value="Hide"] + .button_to:nth-child(3) {
2039 border-radius:0 2px 2px 0;
2040 border-right-width: 0;
2042 /* if a 3-button set starts with a hidden button */
2043 *[value="Hide"] + input:nth-child(2):not(:last-child),
2044 *[value="Hide"] + .button:nth-child(2):not(:last-child),
2045 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2046 border-radius:2px 0 0 2px;
2047 border-right-width: 1px;
2051 /* Rules for doing distinct colour of alternate table rows */
2055 background: $offwhite;
2063 /* Rules for OpenID logo */
2066 vertical-align: text-bottom;
2070 /* Rules for rich text */
2076 background: $lightgrey;
2082 background: $lightgrey;
2084 white-space: pre-wrap;
2092 padding: $lineheight;
2093 background-color: $offwhite;
2100 border-left: $lineheight solid $offwhite;
2101 padding-left: $lineheight;
2107 .diary_post .richtext {
2108 margin-top: $lineheight;
2111 .comments .richtext {
2116 /* Rules for rich text editors */
2118 input.richtext_title[type="text"] {
2120 width: calc(100% - 235px);
2122 @media only screen and (max-width:768px) {
2127 .richtext_container {
2128 margin-bottom: $lineheight;
2132 width: calc(100% - 235px);
2133 display: inline-block;
2134 vertical-align: top;
2136 @media only screen and (max-width:768px) {
2141 display: inline-block;
2142 padding: $lineheight;
2143 background-color: $offwhite;
2147 background-image: image-url("loading.gif");
2148 background-repeat: no-repeat;
2149 background-position: center;
2159 display: inline-block;
2160 vertical-align: top;
2162 background-color: $offwhite;
2163 padding: $lineheight/2;
2171 border-bottom: 1px solid $grey;
2172 margin-bottom: $lineheight/4;
2173 padding-bottom: $lineheight/4;
2176 li h4, li span, li p {
2177 display: inline-block;
2178 vertical-align: top;
2189 margin-left: $lineheight/2;
2190 margin-bottom: $lineheight/4;
2191 white-space: nowrap;
2196 /* Rules for the user notes list */
2200 background-color: $lightgrey;
2212 /* Rules for the iD editor */
2219 /* Rules for the "Welcome" page */
2220 .site-welcome, .site-fixthemap {
2230 background-image: image-url("welcome-sprite.png");
2231 background-size: 500px 250px;
2237 padding-bottom: 20px;
2239 margin-bottom: 10px;
2251 /* no-r2 */ background-position: -50px 0;
2256 vertical-align: middle;
2260 /* no-r2 */ background-position: -100px 0;
2264 /* no-r2 */ background-position: -150px 0;
2268 /* no-r2 */ background-position: -200px 0;
2272 /* no-r2 */ background-position: -250px 0;
2276 /* no-r2 */ background-position: -300px 0;
2280 /* no-r2 */ background-position: -350px 0;
2289 text-decoration: none;
2293 background-color: #333;
2298 .site-about #content {
2299 background-color: $lightgrey;
2300 background-position: 50% 50%;
2301 background-repeat: no-repeat;
2302 background-size: cover;
2303 background-attachment: fixed;
2320 padding: 170px 40px 20px;
2322 background: rgba(0, 0, 0, .8);
2332 color: $vibrant-green;
2342 background-position: 0 50%;
2343 background-repeat: no-repeat;
2344 background-image: image-url('about/osm.png');
2345 background-size: cover;
2346 background-color: $vibrant-green;
2356 padding: 20px 20px 20px 40px;
2357 font: 500 20px/24px Helvetica, Arial, sans-serif;
2358 white-space: nowrap;
2360 background: $vibrant-green;
2364 display: inline-block;
2374 vertical-align: middle;
2375 background: 40px 40px image-url('about/sprite.png') no-repeat;
2379 background-position: 0px 0px;
2383 background-position: 0px -40px;
2387 background-position: 0px -80px;
2391 background-position: 0px -120px;
2395 background-position: 0px -160px;
2399 background-position: -45px -160px;
2406 @media only screen and (max-width:960px) {
2407 .header-illustration.new-user-arm {
2413 background: $lightgrey;
2419 white-space: nowrap;