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 .messages-show .message-buttons {
1644 margin-top: $lineheight;
1645 margin-bottom: $lineheight * 1.5;
1646 padding-top: $lineheight;
1647 border-top: 1px solid $lightgrey;
1650 .messages-show .buttons .mark-unread-button {
1654 /* Rules for "flash" notice boxes shown at the top of the content area */
1657 padding: $lineheight;
1660 background-color: #ff7070;
1664 background-color: #ffe0cc;
1668 background-color: #CBEEA7;
1672 display: inline-block;
1673 margin-left: $lineheight / 2;
1674 vertical-align: middle;
1677 margin-top: $lineheight * 0.5;
1678 margin-bottom: $lineheight * 0.5;
1691 /* Rules for highlighting fields with rails validation errors */
1694 display: inline-block;
1700 background-color: #ff7070;
1703 /* Rules for rails validation error boxes */
1707 border: 2px solid #ff7070;
1708 padding: 0 $lineheight/2;
1709 margin-bottom: $lineheight;
1710 background-color: #f0f0f0;
1713 margin: 0 -10px 10px -10px;
1714 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1717 background-color: #c00;
1725 padding: $lineheight/4;
1729 /* Rules for forms */
1733 margin-bottom: $lineheight;
1735 label.standard-label {
1737 margin-bottom: $lineheight/4;
1738 font-size: $typeheight;
1742 label.standard-label.secondary {
1743 display: inline-block;
1744 font-weight: normal;
1747 font-weight: normal;
1754 margin-top: $lineheight;
1755 padding-top: $lineheight;
1756 border-top: 1px solid $lightgrey;
1758 .horizontal-list .standard-form-row {
1760 padding-right: 10px;
1762 .standard-form-row {
1763 margin-bottom: $lineheight/2;
1770 list-style-type: none;
1772 input[type="checkbox"],
1773 input[type="radio"] {
1779 #remember_me_openid {
1787 input[type="checkbox"],
1788 input[type="radio"] {
1793 input[type="email"],
1795 input[type="password"],
1798 background-color: #fff;
1799 border: 1px solid $grey;
1805 &.field_with_errors {
1806 border: 2px solid #ff7070;
1817 /* Rules for user images */
1822 border: 1px solid $grey;
1823 margin-bottom: $lineheight;
1825 margin-right: $lineheight;
1828 img.user_thumbnail {
1831 border: 1px solid $grey;
1832 margin-right: $lineheight;
1835 img.user_thumbnail_tiny {
1840 border: 1px solid $grey;
1843 /* Rules for geo microformats */
1846 border-bottom: none;
1849 /* General styles for action lists / subnavs / pager navs */
1851 ul.secondary-actions {
1857 display: inline-block;
1864 border-left: 1px solid $grey;
1865 padding-left: $lineheight/2;
1866 margin-right: $lineheight/2;
1877 div.secondary-actions {
1882 /* Utility for managing inner content areas */
1884 .inner22 { padding: $lineheight;}
1886 .inner12 { padding: $lineheight/2 $lineheight;}
1888 .inner11 { padding: $lineheight/2;}
1890 .inner20 { padding: $lineheight 0;}
1892 .inner02 { padding: 0 $lineheight;}
1894 /* Utility for general button styles */
1896 input[type="button"],
1897 input[type="submit"],
1898 input[type="reset"],
1902 display: inline-block;
1903 padding: $lineheight/4 $lineheight/2;
1904 min-height: 20px + $lineheight/2;
1906 margin: 0 0 $lineheight/2 0;
1912 background: darken($blue, $hovercolor);
1913 text-decoration: none;
1916 background: $lightblue;
1918 background: darken($lightblue, $hovercolor);
1922 background: $lightgrey;
1924 background: $lightgrey;
1932 input[type="button"],
1933 input[type="submit"],
1934 input[type="reset"] {
1935 line-height: normal;
1944 input[type="submit"],
1945 input[type="button"],
1946 input[type="reset"],
1949 box-sizing: border-box;
1955 border-right:1px solid white;
1956 text-overflow: ellipsis;
1957 white-space: nowrap;
1961 .button:first-child,
1962 .button_to:first-child {
1963 border-radius:2px 0 0 2px;
1967 .button_to:last-child {
1968 border-radius:0 2px 2px 0;
1969 border-right-width: 0;
1973 .button_to:only-child,
1974 *[value="Hide"] + input:last-child,
1975 *[value="Hide"] + .button:last-child,
1976 *[value="Hide"] + .button_to:last-child {
1978 border-right-width: 0;
1980 /* if a 3-button set has a hidden middle button */
1981 *[value="Hide"] + input:nth-child(3),
1982 *[value="Hide"] + .button:nth-child(3),
1983 *[value="Hide"] + .button_to:nth-child(3) {
1984 border-radius:0 2px 2px 0;
1985 border-right-width: 0;
1987 /* if a 3-button set starts with a hidden button */
1988 *[value="Hide"] + input:nth-child(2):not(:last-child),
1989 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1990 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1991 border-radius:2px 0 0 2px;
1992 border-right-width: 1px;
1996 /* Customise the background colour of striped tables */
1998 .table-striped > tbody > tr:nth-child(2n+1) > td,
1999 .table-striped > tbody > tr:nth-child(2n+1) > th {
2000 background-color: $offwhite;
2003 /* Rules for OpenID logo */
2006 vertical-align: text-bottom;
2010 /* Rules for rich text */
2016 background: $lightgrey;
2022 background: $lightgrey;
2024 white-space: pre-wrap;
2032 padding: $lineheight;
2033 background-color: $offwhite;
2040 border-left: $lineheight solid $offwhite;
2041 padding-left: $lineheight;
2047 .diary_post .richtext {
2048 margin-top: $lineheight;
2051 .comments .richtext {
2056 /* Rules for rich text editors */
2058 input.richtext_title[type="text"] {
2060 width: calc(100% - 235px);
2062 @media only screen and (max-width:768px) {
2067 .richtext_container {
2068 margin-bottom: $lineheight;
2072 width: calc(100% - 235px);
2073 display: inline-block;
2074 vertical-align: top;
2076 @media only screen and (max-width:768px) {
2081 display: inline-block;
2082 padding: $lineheight;
2083 background-color: $offwhite;
2087 background-image: image-url("loading.gif");
2088 background-repeat: no-repeat;
2089 background-position: center;
2099 display: inline-block;
2100 vertical-align: top;
2102 background-color: $offwhite;
2103 padding: $lineheight/2;
2111 border-bottom: 1px solid $grey;
2112 margin-bottom: $lineheight/4;
2113 padding-bottom: $lineheight/4;
2116 li h4, li span, li p {
2117 display: inline-block;
2118 vertical-align: top;
2129 margin-left: $lineheight/2;
2130 margin-bottom: $lineheight/4;
2131 white-space: nowrap;
2136 /* Rules for the user notes list */
2140 background-color: $offwhite;
2144 /* Rules for the iD editor */
2151 /* Rules for the "Welcome" page */
2152 .site-welcome, .site-fixthemap {
2162 background-image: image-url("welcome-sprite.png");
2163 background-size: 500px 250px;
2169 padding-bottom: 20px;
2171 margin-bottom: 10px;
2183 /* no-r2 */ background-position: -50px 0;
2188 vertical-align: middle;
2192 /* no-r2 */ background-position: -100px 0;
2196 /* no-r2 */ background-position: -150px 0;
2200 /* no-r2 */ background-position: -200px 0;
2204 /* no-r2 */ background-position: -250px 0;
2208 /* no-r2 */ background-position: -300px 0;
2212 /* no-r2 */ background-position: -350px 0;
2221 text-decoration: none;
2225 background-color: #333;
2230 .site-about #content {
2231 background-color: $lightgrey;
2232 background-position: 50% 50%;
2233 background-repeat: no-repeat;
2234 background-size: cover;
2235 background-attachment: fixed;
2252 padding: 170px 40px 20px;
2254 background: rgba(0, 0, 0, .8);
2264 color: $vibrant-green;
2274 background-position: 0 50%;
2275 background-repeat: no-repeat;
2276 background-image: image-url('about/osm.png');
2277 background-size: cover;
2278 background-color: $vibrant-green;
2288 padding: 20px 20px 20px 40px;
2289 font: 500 20px/24px Helvetica, Arial, sans-serif;
2290 white-space: nowrap;
2292 background: $vibrant-green;
2296 display: inline-block;
2306 vertical-align: middle;
2307 background: 40px 40px image-url('about/sprite.png') no-repeat;
2311 background-position: 0px 0px;
2315 background-position: 0px -40px;
2319 background-position: 0px -80px;
2323 background-position: 0px -120px;
2327 background-position: 0px -160px;
2331 background-position: -45px -160px;
2338 @media only screen and (max-width:960px) {
2339 .header-illustration.new-user-arm {
2345 background: $lightgrey;