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,
740 padding: $lineheight/2;
741 background-color: $lightgrey;
746 border-radius: 2px 0 0 2px;
752 transition: 300ms linear;
755 input[type=text].overflow {
757 border-radius: 3px 0px 0px 3px;
762 box-shadow: 0px 0px 7px $vibrant-green;
765 input[type=submit].float {
769 border-radius: 0 2px 2px 0;
773 background-color: rgba($red, 0.4);
777 /* this next line is to polyfill the vertical alignment of text within a select element,
778 * which is different between firefox and chrome. */
815 select.routing_engines {
817 margin: 0px 0px 5px 25px;
832 margin: 0px 0px 5px 0px;
839 vertical-align: middle;
843 a.reverse_directions {
845 margin: 0px 0px 5px 25px;
849 /* Rules for the map key which appears in the popout sidebar */
852 .mapkey-table-key img {
859 /* Rules for search sidebar */
861 #sidebar .search_results_entry {
864 &.selected { background: $list-highlight; }
867 .search_more .loader {
873 .search_results_error {
878 /* Rules for routing */
880 #sidebar_content>table {
881 padding: 5px 20px 10px 15px;
883 border-collapse: separate;
888 background-image: image-url('routing-sprite.png');
891 background-repeat: no-repeat;
893 @for $i from 0 through 25 {
894 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
898 padding: 0 $lineheight $lineheight/4;
901 td.instruction, td.distance {
902 padding-top: $lineheight/5;
903 padding-bottom: $lineheight/5;
904 border-bottom: 1px solid $grey;
915 background: $list-highlight;
917 .routing_engines, #route_from, #route_to { margin-left: 25px; }
918 .routing_marker { width: 15px; position: absolute; cursor: move; }
920 /* Rules for entity history */
925 border-bottom: $keyline;
933 /* Rules for the history sidebar */
935 #sidebar .changesets {
939 &.selected { background: $list-highlight; }
940 /* color is derived from changeset bbox fillColor in history.js */
952 .changeset_more .loader {
958 /* Rules for the browse sidebar */
962 padding: $lineheight/2 $lineheight;
963 border-bottom: 1px solid $grey;
967 word-wrap: break-word;
971 .browse-section:last-of-type {
978 border: 1px solid $lightgrey;
986 padding: 5px 0 5px 10px;
988 border: 1px solid $grey;
989 border-radius: 4px 4px 0 0;
990 background-color: $offwhite;
996 background-color: #FFF;
997 border: 1px solid $grey;
999 border-radius: 0 0 4px 4px;
1004 background-color: $offwhite;
1005 border: 1px solid $grey;
1007 table-layout: fixed;
1008 border-collapse: separate;
1013 border-bottom: 1px solid $grey;
1016 tr:last-child th, tr:last-child td {
1024 word-wrap: break-word;
1025 white-space: pre-wrap;
1030 background-color: $offwhite;
1034 border-left: 1px solid $grey;
1035 background-color: #fff;
1038 .colour-preview-box {
1043 border: 1px solid rgba(0, 0, 0, .1);
1044 // add color via inline css on element: background-color: <tag value>;
1049 margin: 0 0 $lineheight/2 0;
1050 padding: 0 $lineheight/2;
1053 .note-comments li, .changeset-comments li {
1054 margin: $lineheight/2 0;
1057 margin: 10px 6px 0 6px;
1066 .subscribe-buttons {
1068 margin: 18px 10px 10px;
1072 .subscribe-buttons input {
1078 span.action-button:hover {
1080 text-decoration: underline;
1085 margin: 0 0 10px 10px;
1089 padding: $lineheight $lineheight $lineheight/2;
1094 padding-bottom: $lineheight/2;
1097 padding: 0 $lineheight;
1107 background: $list-highlight;
1114 /* Rules for export sidebar */
1117 padding: $lineheight;
1119 .export_area_inputs,
1124 .export_area_inputs {
1125 margin-bottom: $lineheight/2;
1126 input[type="text"] {
1134 background: $lightgrey;
1135 border: 1px solid $grey;
1138 #maxlat { margin-top: -1px; }
1141 /* no-r2 */ margin-left: -1px;
1145 /* no-r2 */ margin-right: -1px;
1147 #minlat { margin-bottom: 0; }
1151 margin: $lineheight/4;
1155 margin-top: $lineheight;
1156 margin-bottom: $lineheight;
1160 padding-left: $lineheight/2;
1163 margin-bottom: 10px;
1168 /* Rules for the routing sidebar */
1177 /* Rules for edit pages */
1193 /* Rules for non-map content pages */
1196 background: $lightgrey;
1200 h1, h2, h3, p, ul, ol {
1201 margin-bottom: $lineheight;
1205 margin-top: $lineheight/2;
1213 padding: $lineheight;
1216 /* Overrides for pages that use new layout conventions */
1222 .content-heading .content-inner {
1227 .header-illustration {
1228 background-position: 0 0;
1229 background-repeat: no-repeat;
1237 background-image: image-url("sign-up-illustration.png");
1241 background-image: image-url("confirm-illustration.png");
1245 background-image: image-url("terms-illustration.png");
1253 background-image: image-url("sign-up-illustration-arm.png");
1258 [dir=rtl] .header-illustration {
1259 transform: scaleX(-1);
1262 #content.maximised {
1271 /* Rules for small maps in content areas */
1277 border: 1px solid $grey;
1278 margin-bottom: $lineheight;
1282 /* Rules for the new trace form */
1287 width: calc(100% - 150px);
1292 /* Rules for the edit trace form */
1295 .standard-form-row p {
1301 width: calc(100% - 150px);
1306 /* Rules for the user profile page */
1311 .userinformation-inner {
1326 .admin-user-info small {
1327 margin-bottom: $lineheight/2;
1329 margin-right: $lineheight;
1334 border-bottom: 1px solid $grey;
1335 padding-bottom: $lineheight;
1338 margin-bottom: $lineheight/2;
1343 margin-top: $lineheight;
1347 .activity-details p {
1353 // Silly exception; remove when user page is redesigned.
1357 p#no_home_location {
1358 margin: $lineheight;
1361 margin-top: $lineheight/4;
1366 /* Rules for the user map */
1368 .content_map .leaflet-popup-content {
1369 margin: $lineheight/2;
1373 /* Rules for user popups on maps */
1379 margin-top: 0 0 0 60px;
1382 img.user_thumbnail {
1384 margin: 0 $lineheight/2 0 0;
1388 /* Rules for the user list */
1394 vertical-align: middle;
1403 #user_list_actions {
1405 margin-top: $lineheight/2;
1408 /* Rules for the diary list page */
1412 padding-top: $lineheight;
1413 padding-bottom: $lineheight/2;
1414 border-top: 1px solid $grey;
1417 margin-top: $lineheight/2;
1421 background-color: #fee;
1425 margin-bottom: $lineheight;
1429 margin-bottom: $lineheight/2;
1433 img.user_thumbnail {
1444 padding-top: $lineheight;
1447 /* Rules for the diary entry page */
1454 border: 1px solid $grey;
1456 margin-bottom: $lineheight;
1459 border-top: 1px solid $grey;
1460 padding-top: $lineheight;
1461 margin-top: $lineheight/2;
1467 border-top: 1px dashed $grey;
1468 padding-top: $lineheight/2;
1469 padding-bottom: $lineheight/2;
1471 margin-top: $lineheight/2;
1472 padding-top: $lineheight;
1473 border-top: 1px solid $grey;
1476 background-color: #fee;
1479 margin-bottom: $lineheight/2;
1488 .diary_entries-show img.user_thumbnail {
1493 .diary-subscribe-buttons {
1499 /* Rules for the log in page */
1501 #login_auth_buttons {
1505 #login_auth_buttons li {
1507 padding: $lineheight/4 $lineheight/2;
1510 /* Rules for the account confirmation page */
1514 border: 1px solid $grey;
1515 padding: $lineheight;
1516 margin-bottom: $lineheight;
1521 list-style: inherit;
1525 list-style-type: lower-alpha;
1530 background: $lightblue;
1532 background: darken($lightblue, $hovercolor);
1537 /* Rules for the account settings page */
1539 #accountForm .user_map {
1543 border: 1px solid $grey;
1546 #accountForm .user_image {
1550 #accountForm #user_image {
1554 #accountForm ul.accountImage-options {
1567 display: inline !important;
1570 .content_map.settings_map {
1575 /* Rules for the oauth settings page */
1577 .oauth_clients .buttons .oauth-edit {
1578 border-radius: 2px 0 0 2px;
1581 .oauth_clients .buttons .oauth-delete {
1582 border-radius: 0 2px 2px 0;
1585 /* Rules for the oauth authorization page */
1587 .oauth-authorize ul {
1591 /* Rules for messages pages */
1594 input[type="submit"] {
1599 background: $offwhite;
1603 background: #CBEEA7;
1611 .inbox-row .inbox-mark-read {
1616 margin-bottom: $lineheight;
1617 padding: $lineheight/4 0px 4px 0px;
1618 border-bottom: 1px solid $grey;
1625 .info-line .user_thumbnail_tiny {
1626 vertical-align: middle;
1630 white-space: nowrap;
1639 .inbox-row-unread .inbox-mark-unread {
1643 /* Rules for "flash" notice boxes shown at the top of the content area */
1646 padding: $lineheight;
1649 background-color: #ff7070;
1653 background-color: #ffe0cc;
1657 background-color: #CBEEA7;
1661 display: inline-block;
1662 margin-left: $lineheight / 2;
1663 vertical-align: middle;
1666 margin-top: $lineheight * 0.5;
1667 margin-bottom: $lineheight * 0.5;
1680 /* Rules for highlighting fields with rails validation errors */
1683 display: inline-block;
1689 background-color: #ff7070;
1692 /* Rules for rails validation error boxes */
1696 border: 2px solid #ff7070;
1697 padding: 0 $lineheight/2;
1698 margin-bottom: $lineheight;
1699 background-color: #f0f0f0;
1702 margin: 0 -10px 10px -10px;
1703 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1706 background-color: #c00;
1714 padding: $lineheight/4;
1718 /* Rules for forms */
1722 margin-bottom: $lineheight;
1724 label.standard-label {
1726 margin-bottom: $lineheight/4;
1727 font-size: $typeheight;
1731 label.standard-label.secondary {
1732 display: inline-block;
1733 font-weight: normal;
1736 font-weight: normal;
1743 margin-top: $lineheight;
1744 padding-top: $lineheight;
1745 border-top: 1px solid $lightgrey;
1747 .horizontal-list .standard-form-row {
1749 padding-right: 10px;
1751 .standard-form-row {
1752 margin-bottom: $lineheight/2;
1759 list-style-type: none;
1761 input[type="checkbox"],
1762 input[type="radio"] {
1768 #remember_me_openid {
1776 input[type="checkbox"],
1777 input[type="radio"] {
1782 input[type="email"],
1784 input[type="password"],
1787 background-color: #fff;
1788 border: 1px solid $grey;
1794 &.field_with_errors {
1795 border: 2px solid #ff7070;
1806 /* Rules for user images */
1811 border: 1px solid $grey;
1812 margin-bottom: $lineheight;
1814 margin-right: $lineheight;
1817 img.user_thumbnail {
1820 border: 1px solid $grey;
1821 margin-right: $lineheight;
1824 img.user_thumbnail_tiny {
1829 border: 1px solid $grey;
1832 /* Rules for geo microformats */
1835 border-bottom: none;
1838 /* General styles for action lists / subnavs / pager navs */
1840 ul.secondary-actions {
1846 display: inline-block;
1853 border-left: 1px solid $grey;
1854 padding-left: $lineheight/2;
1855 margin-right: $lineheight/2;
1866 div.secondary-actions {
1871 /* Utility for managing inner content areas */
1873 .inner22 { padding: $lineheight;}
1875 .inner12 { padding: $lineheight/2 $lineheight;}
1877 .inner11 { padding: $lineheight/2;}
1879 .inner20 { padding: $lineheight 0;}
1881 .inner02 { padding: 0 $lineheight;}
1883 /* Utility for general button styles */
1885 input[type="button"],
1886 input[type="submit"],
1887 input[type="reset"],
1891 display: inline-block;
1892 padding: $lineheight/4 $lineheight/2;
1893 min-height: 20px + $lineheight/2;
1895 margin: 0 0 $lineheight/2 0;
1901 background: darken($blue, $hovercolor);
1902 text-decoration: none;
1905 background: $lightblue;
1907 background: darken($lightblue, $hovercolor);
1911 background: $lightgrey;
1913 background: $lightgrey;
1921 input[type="button"],
1922 input[type="submit"],
1923 input[type="reset"] {
1924 line-height: normal;
1933 input[type="submit"],
1934 input[type="button"],
1935 input[type="reset"],
1938 box-sizing: border-box;
1944 border-right:1px solid white;
1945 text-overflow: ellipsis;
1946 white-space: nowrap;
1950 .button:first-child,
1951 .button_to:first-child {
1952 border-radius:2px 0 0 2px;
1956 .button_to:last-child {
1957 border-radius:0 2px 2px 0;
1958 border-right-width: 0;
1962 .button_to:only-child,
1963 *[value="Hide"] + input:last-child,
1964 *[value="Hide"] + .button:last-child,
1965 *[value="Hide"] + .button_to:last-child {
1967 border-right-width: 0;
1969 /* if a 3-button set has a hidden middle button */
1970 *[value="Hide"] + input:nth-child(3),
1971 *[value="Hide"] + .button:nth-child(3),
1972 *[value="Hide"] + .button_to:nth-child(3) {
1973 border-radius:0 2px 2px 0;
1974 border-right-width: 0;
1976 /* if a 3-button set starts with a hidden button */
1977 *[value="Hide"] + input:nth-child(2):not(:last-child),
1978 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1979 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1980 border-radius:2px 0 0 2px;
1981 border-right-width: 1px;
1985 /* Customise the background colour of striped tables */
1987 .table-striped > tbody > tr:nth-child(2n+1) > td,
1988 .table-striped > tbody > tr:nth-child(2n+1) > th {
1989 background-color: $offwhite;
1992 /* Rules for OpenID logo */
1995 vertical-align: text-bottom;
1999 /* Rules for rich text */
2005 background: $lightgrey;
2011 background: $lightgrey;
2013 white-space: pre-wrap;
2021 padding: $lineheight;
2022 background-color: $offwhite;
2029 border-left: $lineheight solid $offwhite;
2030 padding-left: $lineheight;
2036 .diary_post .richtext {
2037 margin-top: $lineheight;
2040 .comments .richtext {
2045 /* Rules for rich text editors */
2047 input.richtext_title[type="text"] {
2049 width: calc(100% - 235px);
2051 @media only screen and (max-width:768px) {
2056 .richtext_container {
2057 margin-bottom: $lineheight;
2061 width: calc(100% - 235px);
2062 display: inline-block;
2063 vertical-align: top;
2065 @media only screen and (max-width:768px) {
2070 display: inline-block;
2071 padding: $lineheight;
2072 background-color: $offwhite;
2076 background-image: image-url("loading.gif");
2077 background-repeat: no-repeat;
2078 background-position: center;
2088 display: inline-block;
2089 vertical-align: top;
2091 background-color: $offwhite;
2092 padding: $lineheight/2;
2100 border-bottom: 1px solid $grey;
2101 margin-bottom: $lineheight/4;
2102 padding-bottom: $lineheight/4;
2105 li h4, li span, li p {
2106 display: inline-block;
2107 vertical-align: top;
2118 margin-left: $lineheight/2;
2119 margin-bottom: $lineheight/4;
2120 white-space: nowrap;
2125 /* Rules for the user notes list */
2129 background-color: $offwhite;
2133 /* Rules for the iD editor */
2140 /* Rules for the "Welcome" page */
2141 .site-welcome, .site-fixthemap {
2151 background-image: image-url("welcome-sprite.png");
2152 background-size: 500px 250px;
2158 padding-bottom: 20px;
2160 margin-bottom: 10px;
2172 /* no-r2 */ background-position: -50px 0;
2177 vertical-align: middle;
2181 /* no-r2 */ background-position: -100px 0;
2185 /* no-r2 */ background-position: -150px 0;
2189 /* no-r2 */ background-position: -200px 0;
2193 /* no-r2 */ background-position: -250px 0;
2197 /* no-r2 */ background-position: -300px 0;
2201 /* no-r2 */ background-position: -350px 0;
2210 text-decoration: none;
2214 background-color: #333;
2219 .site-about #content {
2220 background-color: $lightgrey;
2221 background-position: 50% 50%;
2222 background-repeat: no-repeat;
2223 background-size: cover;
2224 background-attachment: fixed;
2241 padding: 170px 40px 20px;
2243 background: rgba(0, 0, 0, .8);
2253 color: $vibrant-green;
2263 background-position: 0 50%;
2264 background-repeat: no-repeat;
2265 background-image: image-url('about/osm.png');
2266 background-size: cover;
2267 background-color: $vibrant-green;
2277 padding: 20px 20px 20px 40px;
2278 font: 500 20px/24px Helvetica, Arial, sans-serif;
2279 white-space: nowrap;
2281 background: $vibrant-green;
2285 display: inline-block;
2295 vertical-align: middle;
2296 background: 40px 40px image-url('about/sprite.png') no-repeat;
2300 background-position: 0px 0px;
2304 background-position: 0px -40px;
2308 background-position: 0px -80px;
2312 background-position: 0px -120px;
2316 background-position: 0px -160px;
2320 background-position: -45px -160px;
2327 @media only screen and (max-width:960px) {
2328 .header-illustration.new-user-arm {
2334 background: $lightgrey;