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 /* Utility for de-emphasizing content */
104 /* Rules for the header */
107 display: none !important;
109 background: image-url("menu-icon.png") no-repeat;
110 background-size: 30px 30px;
114 margin: 14px 10px 0 0;
119 height: $headerHeight;
124 h1, nav, nav > ul, nav > ul > li {
125 display: inline-block;
130 padding: $lineheight/2;
138 text-decoration: none;
145 vertical-align: middle;
171 .btn-outline-primary {
172 @include button-outline-variant($green, $white);
176 .btn-outline-primary {
181 border-top-color: $grey;
185 background-color: lighten($green, 30%);
190 // Small tweaks to the toggle to stop the primary colour showing through
191 // when the menu is shown
192 .show > .btn-outline-primary.dropdown-toggle {
193 background-color: $green;
194 border-color: $green;
197 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
212 color: darken($darkgrey, 25%);
216 .btn-outline-secondary {
217 @include button-outline-variant($darkgrey);
222 .btn-outline-secondary {
223 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
229 background-color: white;
233 &.show .btn-outline-secondary {
234 background-color: white;
241 img.user_thumbnail_tiny {
247 display: inline-block;
249 margin: 3px 0 3px 3px;
250 background-color: lighten($grey, 10%);
262 nav.primary, nav.secondary {
265 background-color: $green;
271 #compact-secondary-nav {
276 #compact-secondary-nav {
277 display: inline-block;
284 /* Utility for styling notification numbers */
287 padding: 2px $lineheight/4;
289 background: lighten($green, 30%);
295 /* Rules for the message shown in place of the map when javascript is disabled */
303 /* Rules for Leaflet maps */
305 .leaflet-control .control-button {
309 background-color: #333;
310 background-color: rgba(0,0,0,.6);
311 border-radius: 4px 0 0 4px;
316 background-color: black;
321 background-color: #333;
322 background-color: rgba(0,0,0,.5);
327 background-color: $vibrant-green;
335 .leaflet-control .zoomin,
336 .control-layers .control-button {
338 border-radius: 4px 0 0 0;
341 .leaflet-control .zoomout,
342 .control-key .control-button {
347 .control-locate .control-button,
348 .control-share .control-button {
349 border-radius: 0 0 0 4px;
352 /* Rules for the sidebar and main map area */
372 width: $sidebarWidth;
387 padding: $lineheight $lineheight $lineheight/2;
392 margin-top: $lineheight;
393 margin-bottom: $lineheight/2;
406 pointer-events: none;
431 .overlay-sidebar #sidebar {
459 padding: $lineheight/2 $lineheight $lineheight;
473 border-right: 1px solid #fff;
483 width: $sidebarWidth;
499 .leaflet-marker-draggable {
514 border-bottom: 1px solid $grey;
524 border:1px solid $grey;
529 border: 1px solid $grey;
531 border-top-color: $grey;
555 border: 2px solid #fff;
558 transition: border-color 0.08s ease-in;
565 border-bottom-right-radius: 3px;
569 text-stroke: 2px #fff;
570 background: rgba(255,255,255,.9);
572 input[type="radio"] {
577 &.active { border-color: darken($green, 10%); }
580 &.active { border-color: darken($green, 20%); }
590 li.disabled { color: $darkgrey; }
600 text-decoration: none;
601 background-color: $lightblue;
603 border-right: 1px solid #fff;
607 border-right: 1px solid #fff;
608 border-radius: 4px 0 0 4px;
612 border-radius: 0 4px 4px 0;
616 background-color: $blue;
628 font-family: monospace;
650 top: $lineheight/2 !important;
652 margin-right: 0px !important;
653 margin-top: 0px !important;
657 .leaflet-popup-scrolled {
658 padding-right: $lineheight;
659 border-bottom: 0px !important;
660 border-top: 0px !important;
663 .leaflet-popup-content-wrapper {
664 border-radius: 4px !important;
667 /* Rules for attribution text under the main map shown on printouts */
677 .attribution_license,
678 .attribution_project {
682 .attribution_notice {
686 .donate-attr { color: darken($green, 10%) !important; }
688 /* Rules for the sidebar */
692 padding: $lineheight/2 $lineheight;
693 // background: $offwhite;
694 // border-bottom: 1px solid $grey;
704 padding: $lineheight;
718 margin: $lineheight auto;
730 /* Rules for the search and direction forms */
732 header .search_forms,
737 /* Rules for the map key which appears in the popout sidebar */
740 .mapkey-table-key img {
747 /* Rules for search sidebar */
749 #sidebar .search_results_entry {
752 &.selected { background: $list-highlight; }
755 .search_more .loader {
761 .search_results_error {
766 /* Rules for routing */
768 #sidebar_content>table {
769 padding: 5px 20px 10px 15px;
771 border-collapse: separate;
776 background-image: image-url('routing-sprite.png');
779 background-repeat: no-repeat;
781 @for $i from 0 through 25 {
782 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
786 padding: 0 $lineheight $lineheight/4;
789 td.instruction, td.distance {
790 padding-top: $lineheight/5;
791 padding-bottom: $lineheight/5;
792 border-bottom: 1px solid $grey;
803 background: $list-highlight;
805 .routing_engines, #route_from, #route_to { margin-left: 25px; }
806 .routing_marker { width: 15px; position: absolute; cursor: move; }
808 /* Rules for entity history */
813 border-bottom: $keyline;
821 /* Rules for the history sidebar */
823 #sidebar .changesets {
827 &.selected { background: $list-highlight; }
828 /* color is derived from changeset bbox fillColor in history.js */
840 .changeset_more .loader {
846 /* Rules for the browse sidebar */
850 padding: $lineheight/2 $lineheight;
851 border-bottom: 1px solid $grey;
855 word-wrap: break-word;
859 .browse-section:last-of-type {
866 border: 1px solid $lightgrey;
874 padding: 5px 0 5px 10px;
876 border: 1px solid $grey;
877 border-radius: 4px 4px 0 0;
878 background-color: $offwhite;
884 background-color: #FFF;
885 border: 1px solid $grey;
887 border-radius: 0 0 4px 4px;
892 background-color: $offwhite;
893 border: 1px solid $grey;
896 border-collapse: separate;
901 border-bottom: 1px solid $grey;
904 tr:last-child th, tr:last-child td {
912 word-wrap: break-word;
913 white-space: pre-wrap;
918 background-color: $offwhite;
922 border-left: 1px solid $grey;
923 background-color: #fff;
926 .colour-preview-box {
931 border: 1px solid rgba(0, 0, 0, .1);
932 // add color via inline css on element: background-color: <tag value>;
937 margin: 0 0 $lineheight/2 0;
938 padding: 0 $lineheight/2;
941 .note-comments li, .changeset-comments li {
942 margin: $lineheight/2 0;
945 margin: 10px 6px 0 6px;
956 margin: 18px 10px 10px;
960 .subscribe-buttons input {
966 span.action-button:hover {
968 text-decoration: underline;
973 margin: 0 0 10px 10px;
977 padding: $lineheight $lineheight $lineheight/2;
982 padding-bottom: $lineheight/2;
985 padding: 0 $lineheight;
995 background: $list-highlight;
1002 /* Rules for export sidebar */
1005 padding: $lineheight;
1007 .export_area_inputs,
1012 .export_area_inputs {
1013 margin-bottom: $lineheight/2;
1014 input[type="text"] {
1022 background: $lightgrey;
1023 border: 1px solid $grey;
1026 #maxlat { margin-top: -1px; }
1029 /* no-r2 */ margin-left: -1px;
1033 /* no-r2 */ margin-right: -1px;
1035 #minlat { margin-bottom: 0; }
1039 margin: $lineheight/4;
1043 margin-top: $lineheight;
1044 margin-bottom: $lineheight;
1048 padding-left: $lineheight/2;
1051 margin-bottom: 10px;
1056 /* Rules for the routing sidebar */
1065 /* Rules for edit pages */
1081 /* Rules for non-map content pages */
1084 background: $lightgrey;
1088 h1, h2, h3, p, ul, ol {
1089 margin-bottom: $lineheight;
1093 margin-top: $lineheight/2;
1101 padding: $lineheight;
1104 /* Overrides for pages that use new layout conventions */
1110 .content-heading .content-inner {
1115 .header-illustration {
1116 background-position: 0 0;
1117 background-repeat: no-repeat;
1125 background-image: image-url("sign-up-illustration.png");
1129 background-image: image-url("confirm-illustration.png");
1133 background-image: image-url("terms-illustration.png");
1141 background-image: image-url("sign-up-illustration-arm.png");
1146 [dir=rtl] .header-illustration {
1147 transform: scaleX(-1);
1150 #content.maximised {
1159 /* Rules for small maps in content areas */
1165 border: 1px solid $grey;
1166 margin-bottom: $lineheight;
1170 /* Rules for the new trace form */
1175 width: calc(100% - 150px);
1180 /* Rules for the edit trace form */
1183 .standard-form-row p {
1189 width: calc(100% - 150px);
1194 /* Rules for the user profile page */
1199 .userinformation-inner {
1214 .admin-user-info small {
1215 margin-bottom: $lineheight/2;
1217 margin-right: $lineheight;
1222 border-bottom: 1px solid $grey;
1223 padding-bottom: $lineheight;
1226 margin-bottom: $lineheight/2;
1231 margin-top: $lineheight;
1235 .activity-details p {
1241 // Silly exception; remove when user page is redesigned.
1245 p#no_home_location {
1246 margin: $lineheight;
1249 margin-top: $lineheight/4;
1254 /* Rules for the user map */
1256 .content_map .leaflet-popup-content {
1257 margin: $lineheight/2;
1261 /* Rules for user popups on maps */
1267 margin-top: 0 0 0 60px;
1270 img.user_thumbnail {
1272 margin: 0 $lineheight/2 0 0;
1276 /* Rules for the user list */
1282 vertical-align: middle;
1291 #user_list_actions {
1293 margin-top: $lineheight/2;
1296 /* Rules for the diary list page */
1300 padding-top: $lineheight;
1301 padding-bottom: $lineheight/2;
1302 border-top: 1px solid $grey;
1305 margin-top: $lineheight/2;
1309 background-color: #fee;
1313 margin-bottom: $lineheight;
1317 margin-bottom: $lineheight/2;
1321 img.user_thumbnail {
1332 padding-top: $lineheight;
1335 /* Rules for the diary entry page */
1342 border: 1px solid $grey;
1344 margin-bottom: $lineheight;
1347 border-top: 1px solid $grey;
1348 padding-top: $lineheight;
1349 margin-top: $lineheight/2;
1355 border-top: 1px dashed $grey;
1356 padding-top: $lineheight/2;
1357 padding-bottom: $lineheight/2;
1359 margin-top: $lineheight/2;
1360 padding-top: $lineheight;
1361 border-top: 1px solid $grey;
1364 background-color: #fee;
1367 margin-bottom: $lineheight/2;
1376 .diary_entries-show img.user_thumbnail {
1381 .diary-subscribe-buttons {
1387 /* Rules for the log in page */
1389 #login_auth_buttons {
1393 #login_auth_buttons li {
1395 padding: $lineheight/4 $lineheight/2;
1398 /* Rules for the account confirmation page */
1402 border: 1px solid $grey;
1403 padding: $lineheight;
1404 margin-bottom: $lineheight;
1409 list-style: inherit;
1413 list-style-type: lower-alpha;
1418 background: $lightblue;
1420 background: darken($lightblue, $hovercolor);
1425 /* Rules for the account settings page */
1427 #accountForm .user_map {
1431 border: 1px solid $grey;
1434 #accountForm .user_image {
1438 #accountForm #user_image {
1442 #accountForm ul.accountImage-options {
1455 display: inline !important;
1458 .content_map.settings_map {
1463 /* Rules for the oauth settings page */
1465 .oauth_clients .buttons .oauth-edit {
1466 border-radius: 2px 0 0 2px;
1469 .oauth_clients .buttons .oauth-delete {
1470 border-radius: 0 2px 2px 0;
1473 /* Rules for the oauth authorization page */
1475 .oauth-authorize ul {
1479 /* Rules for messages pages */
1482 input[type="submit"] {
1487 background: $offwhite;
1491 background: #CBEEA7;
1499 .inbox-row .inbox-mark-read {
1504 margin-bottom: $lineheight;
1505 padding: $lineheight/4 0px 4px 0px;
1506 border-bottom: 1px solid $grey;
1513 .info-line .user_thumbnail_tiny {
1514 vertical-align: middle;
1518 white-space: nowrap;
1527 .inbox-row-unread .inbox-mark-unread {
1531 .messages-show .message-buttons {
1532 margin-top: $lineheight;
1533 margin-bottom: $lineheight * 1.5;
1534 padding-top: $lineheight;
1535 border-top: 1px solid $lightgrey;
1538 .messages-show .buttons .mark-unread-button {
1542 /* Rules for "flash" notice boxes shown at the top of the content area */
1545 padding: $lineheight;
1548 background-color: #ff7070;
1552 background-color: #ffe0cc;
1556 background-color: #CBEEA7;
1560 display: inline-block;
1561 margin-left: $lineheight / 2;
1562 vertical-align: middle;
1565 margin-top: $lineheight * 0.5;
1566 margin-bottom: $lineheight * 0.5;
1579 /* Rules for highlighting fields with rails validation errors */
1582 display: inline-block;
1588 background-color: #ff7070;
1591 /* Rules for rails validation error boxes */
1595 border: 2px solid #ff7070;
1596 padding: 0 $lineheight/2;
1597 margin-bottom: $lineheight;
1598 background-color: #f0f0f0;
1601 margin: 0 -10px 10px -10px;
1602 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1605 background-color: #c00;
1613 padding: $lineheight/4;
1617 /* Rules for forms */
1621 margin-bottom: $lineheight;
1623 label.standard-label {
1625 margin-bottom: $lineheight/4;
1626 font-size: $typeheight;
1630 label.standard-label.secondary {
1631 display: inline-block;
1632 font-weight: normal;
1635 font-weight: normal;
1642 margin-top: $lineheight;
1643 padding-top: $lineheight;
1644 border-top: 1px solid $lightgrey;
1646 .horizontal-list .standard-form-row {
1648 padding-right: 10px;
1650 .standard-form-row {
1651 margin-bottom: $lineheight/2;
1658 list-style-type: none;
1660 input[type="checkbox"],
1661 input[type="radio"] {
1666 #remember_me_openid {
1674 input[type="checkbox"],
1675 input[type="radio"] {
1680 input[type="email"],
1682 input[type="password"],
1685 background-color: #fff;
1686 border: 1px solid $grey;
1692 &.field_with_errors {
1693 border: 2px solid #ff7070;
1705 /* Utility for general button styles */
1707 input[type="button"],
1708 input[type="submit"],
1709 input[type="reset"],
1713 display: inline-block;
1714 padding: $lineheight/4 $lineheight/2;
1715 min-height: 20px + $lineheight/2;
1717 margin: 0 0 $lineheight/2 0;
1723 background: darken($blue, $hovercolor);
1724 text-decoration: none;
1727 background: $lightblue;
1729 background: darken($lightblue, $hovercolor);
1733 background: $lightgrey;
1735 background: $lightgrey;
1743 input[type="button"],
1744 input[type="submit"],
1745 input[type="reset"] {
1746 line-height: normal;
1756 padding: $lineheight/2;
1757 background-color: $lightgrey;
1762 border-radius: 2px 0 0 2px;
1768 transition: 300ms linear;
1771 input[type=text].overflow {
1773 border-radius: 3px 0px 0px 3px;
1778 box-shadow: 0px 0px 7px $vibrant-green;
1781 input[type=submit].float {
1785 border-radius: 0 2px 2px 0;
1789 background-color: rgba($red, 0.4);
1793 /* this next line is to polyfill the vertical alignment of text within a select element,
1794 * which is different between firefox and chrome. */
1804 .describe_location {
1827 padding-right: 25px;
1831 select.routing_engines {
1833 margin: 0px 0px 5px 25px;
1848 margin: 0px 0px 5px 0px;
1855 vertical-align: middle;
1859 a.reverse_directions {
1861 margin: 0px 0px 5px 25px;
1866 /* Rules for user images */
1871 border: 1px solid $grey;
1872 margin-bottom: $lineheight;
1874 margin-right: $lineheight;
1877 img.user_thumbnail {
1880 border: 1px solid $grey;
1881 margin-right: $lineheight;
1884 img.user_thumbnail_tiny {
1889 border: 1px solid $grey;
1892 /* Rules for geo microformats */
1895 border-bottom: none;
1898 /* General styles for action lists / subnavs / pager navs */
1900 ul.secondary-actions {
1906 display: inline-block;
1913 border-left: 1px solid $grey;
1914 padding-left: $lineheight/2;
1915 margin-right: $lineheight/2;
1926 div.secondary-actions {
1931 /* Utility for managing inner content areas */
1933 .inner22 { padding: $lineheight;}
1935 .inner12 { padding: $lineheight/2 $lineheight;}
1937 .inner11 { padding: $lineheight/2;}
1939 .inner20 { padding: $lineheight 0;}
1941 .inner02 { padding: 0 $lineheight;}
1945 input[type="submit"],
1946 input[type="button"],
1947 input[type="reset"],
1950 box-sizing: border-box;
1956 border-right:1px solid white;
1957 text-overflow: ellipsis;
1958 white-space: nowrap;
1962 .button:first-child,
1963 .button_to:first-child {
1964 border-radius:2px 0 0 2px;
1968 .button_to:last-child {
1969 border-radius:0 2px 2px 0;
1970 border-right-width: 0;
1974 .button_to:only-child,
1975 *[value="Hide"] + input:last-child,
1976 *[value="Hide"] + .button:last-child,
1977 *[value="Hide"] + .button_to:last-child {
1979 border-right-width: 0;
1981 /* if a 3-button set has a hidden middle button */
1982 *[value="Hide"] + input:nth-child(3),
1983 *[value="Hide"] + .button:nth-child(3),
1984 *[value="Hide"] + .button_to:nth-child(3) {
1985 border-radius:0 2px 2px 0;
1986 border-right-width: 0;
1988 /* if a 3-button set starts with a hidden button */
1989 *[value="Hide"] + input:nth-child(2):not(:last-child),
1990 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1991 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1992 border-radius:2px 0 0 2px;
1993 border-right-width: 1px;
1997 /* Customise the background colour of striped tables */
1999 .table-striped > tbody > tr:nth-child(2n+1) > td,
2000 .table-striped > tbody > tr:nth-child(2n+1) > th {
2001 background-color: $offwhite;
2004 /* Rules for OpenID logo */
2007 vertical-align: text-bottom;
2011 /* Rules for rich text */
2017 background: $lightgrey;
2023 background: $lightgrey;
2025 white-space: pre-wrap;
2033 padding: $lineheight;
2034 background-color: $offwhite;
2041 border-left: $lineheight solid $offwhite;
2042 padding-left: $lineheight;
2048 .diary_post .richtext {
2049 margin-top: $lineheight;
2052 .comments .richtext {
2057 /* Rules for rich text editors */
2059 input.richtext_title[type="text"] {
2061 width: calc(100% - 235px);
2063 @media only screen and (max-width:768px) {
2068 .richtext_container {
2069 margin-bottom: $lineheight;
2073 width: calc(100% - 235px);
2074 display: inline-block;
2075 vertical-align: top;
2077 @media only screen and (max-width:768px) {
2082 display: inline-block;
2083 padding: $lineheight;
2084 background-color: $offwhite;
2088 background-image: image-url("loading.gif");
2089 background-repeat: no-repeat;
2090 background-position: center;
2100 display: inline-block;
2101 vertical-align: top;
2103 background-color: $offwhite;
2104 padding: $lineheight/2;
2112 border-bottom: 1px solid $grey;
2113 margin-bottom: $lineheight/4;
2114 padding-bottom: $lineheight/4;
2117 li h4, li span, li p {
2118 display: inline-block;
2119 vertical-align: top;
2130 margin-left: $lineheight/2;
2131 margin-bottom: $lineheight/4;
2132 white-space: nowrap;
2137 /* Rules for the user notes list */
2141 background-color: $offwhite;
2145 /* Rules for the iD editor */
2152 /* Rules for the "Welcome" page */
2153 .site-welcome, .site-fixthemap {
2163 background-image: image-url("welcome-sprite.png");
2164 background-size: 500px 250px;
2170 padding-bottom: 20px;
2172 margin-bottom: 10px;
2184 /* no-r2 */ background-position: -50px 0;
2189 vertical-align: middle;
2193 /* no-r2 */ background-position: -100px 0;
2197 /* no-r2 */ background-position: -150px 0;
2201 /* no-r2 */ background-position: -200px 0;
2205 /* no-r2 */ background-position: -250px 0;
2209 /* no-r2 */ background-position: -300px 0;
2213 /* no-r2 */ background-position: -350px 0;
2222 text-decoration: none;
2226 background-color: #333;
2231 .site-about #content {
2232 background-color: $lightgrey;
2233 background-position: 50% 50%;
2234 background-repeat: no-repeat;
2235 background-size: cover;
2236 background-attachment: fixed;
2253 padding: 170px 40px 20px;
2255 background: rgba(0, 0, 0, .8);
2265 color: $vibrant-green;
2275 background-position: 0 50%;
2276 background-repeat: no-repeat;
2277 background-image: image-url('about/osm.png');
2278 background-size: cover;
2279 background-color: $vibrant-green;
2289 padding: 20px 20px 20px 40px;
2290 font: 500 20px/24px Helvetica, Arial, sans-serif;
2291 white-space: nowrap;
2293 background: $vibrant-green;
2297 display: inline-block;
2307 vertical-align: middle;
2308 background: 40px 40px image-url('about/sprite.png') no-repeat;
2312 background-position: 0px 0px;
2316 background-position: 0px -40px;
2320 background-position: 0px -80px;
2324 background-position: 0px -120px;
2328 background-position: 0px -160px;
2332 background-position: -45px -160px;
2339 @media only screen and (max-width:960px) {
2340 .header-illustration.new-user-arm {
2346 background: $lightgrey;