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 */
108 /* Rules for the header */
111 display: none !important;
113 background: image-url("menu-icon.png") no-repeat;
114 background-size: 30px 30px;
118 margin: 14px 10px 0 0;
123 height: $headerHeight;
128 h1, nav, nav > ul, nav > ul > li {
129 display: inline-block;
134 padding: $lineheight/2;
142 text-decoration: none;
149 vertical-align: middle;
175 .btn-outline-primary {
176 @include button-outline-variant($green, $white);
180 .btn-outline-primary {
185 border-top-color: $grey;
189 background-color: lighten($green, 30%);
194 // Small tweaks to the toggle to stop the primary colour showing through
195 // when the menu is shown
196 .show > .btn-outline-primary.dropdown-toggle {
197 background-color: $green;
198 border-color: $green;
201 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
216 color: darken($darkgrey, 25%);
220 .btn-outline-secondary {
221 @include button-outline-variant($darkgrey);
226 .btn-outline-secondary {
227 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
233 background-color: white;
237 &.show .btn-outline-secondary {
238 background-color: white;
245 img.user_thumbnail_tiny {
251 display: inline-block;
253 margin: 3px 0 3px 3px;
254 background-color: lighten($grey, 10%);
266 nav.primary, nav.secondary {
269 background-color: $green;
275 #compact-secondary-nav {
280 #compact-secondary-nav {
281 display: inline-block;
288 /* Utility for styling notification numbers */
291 padding: 2px $lineheight/4;
293 background: lighten($green, 30%);
299 /* Rules for the message shown in place of the map when javascript is disabled */
307 /* Rules for Leaflet maps */
309 .leaflet-control .control-button {
313 background-color: #333;
314 background-color: rgba(0,0,0,.6);
315 border-radius: 4px 0 0 4px;
320 background-color: black;
325 background-color: #333;
326 background-color: rgba(0,0,0,.5);
331 background-color: $vibrant-green;
339 .leaflet-control .zoomin,
340 .control-layers .control-button {
342 border-radius: 4px 0 0 0;
345 .leaflet-control .zoomout,
346 .control-key .control-button {
351 .control-locate .control-button,
352 .control-share .control-button {
353 border-radius: 0 0 0 4px;
356 /* Rules for the sidebar and main map area */
376 width: $sidebarWidth;
391 padding: $lineheight $lineheight $lineheight/2;
396 margin-top: $lineheight;
397 margin-bottom: $lineheight/2;
410 pointer-events: none;
435 .overlay-sidebar #sidebar {
463 padding: $lineheight/2 $lineheight $lineheight;
477 border-right: 1px solid #fff;
487 width: $sidebarWidth;
503 .leaflet-marker-draggable {
518 border-bottom: 1px solid $grey;
528 border:1px solid $grey;
533 border: 1px solid $grey;
535 border-top-color: $grey;
559 border: 2px solid #fff;
562 transition: border-color 0.08s ease-in;
569 border-bottom-right-radius: 3px;
573 text-stroke: 2px #fff;
574 background: rgba(255,255,255,.9);
576 input[type="radio"] {
581 &.active { border-color: darken($green, 10%); }
584 &.active { border-color: darken($green, 20%); }
594 li.disabled { color: $darkgrey; }
604 text-decoration: none;
605 background-color: $lightblue;
607 border-right: 1px solid #fff;
611 border-right: 1px solid #fff;
612 border-radius: 4px 0 0 4px;
616 border-radius: 0 4px 4px 0;
620 background-color: $blue;
632 font-family: monospace;
654 top: $lineheight/2 !important;
656 margin-right: 0px !important;
657 margin-top: 0px !important;
661 .leaflet-popup-scrolled {
662 padding-right: $lineheight;
663 border-bottom: 0px !important;
664 border-top: 0px !important;
667 .leaflet-popup-content-wrapper {
668 border-radius: 4px !important;
671 /* Rules for attribution text under the main map shown on printouts */
681 .attribution_license,
682 .attribution_project {
686 .attribution_notice {
690 .donate-attr { color: darken($green, 10%) !important; }
692 /* Rules for the sidebar */
696 padding: $lineheight/2 $lineheight;
697 // background: $offwhite;
698 // border-bottom: 1px solid $grey;
708 padding: $lineheight;
722 margin: $lineheight auto;
734 /* Rules for the search and direction forms */
736 header .search_forms,
744 padding: $lineheight/2;
745 background-color: $lightgrey;
750 border-radius: 2px 0 0 2px;
756 transition: 300ms linear;
759 input[type=text].overflow {
761 border-radius: 3px 0px 0px 3px;
766 box-shadow: 0px 0px 7px $vibrant-green;
769 input[type=submit].float {
773 border-radius: 0 2px 2px 0;
777 background-color: rgba($red, 0.4);
781 /* this next line is to polyfill the vertical alignment of text within a select element,
782 * which is different between firefox and chrome. */
819 select.routing_engines {
821 margin: 0px 0px 5px 25px;
836 margin: 0px 0px 5px 0px;
843 vertical-align: middle;
847 a.reverse_directions {
849 margin: 0px 0px 5px 25px;
853 /* Rules for the map key which appears in the popout sidebar */
856 .mapkey-table-key img {
863 /* Rules for search sidebar */
865 #sidebar .search_results_entry {
868 &.selected { background: $list-highlight; }
871 .search_more .loader {
877 .search_results_error {
882 /* Rules for routing */
884 #sidebar_content>table {
885 padding: 5px 20px 10px 15px;
887 border-collapse: separate;
892 background-image: image-url('routing-sprite.png');
895 background-repeat: no-repeat;
897 @for $i from 0 through 25 {
898 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
902 padding: 0 $lineheight $lineheight/4;
905 td.instruction, td.distance {
906 padding-top: $lineheight/5;
907 padding-bottom: $lineheight/5;
908 border-bottom: 1px solid $grey;
919 background: $list-highlight;
921 .routing_engines, #route_from, #route_to { margin-left: 25px; }
922 .routing_marker { width: 15px; position: absolute; cursor: move; }
924 /* Rules for entity history */
929 border-bottom: $keyline;
937 /* Rules for the history sidebar */
939 #sidebar .changesets {
943 &.selected { background: $list-highlight; }
944 /* color is derived from changeset bbox fillColor in history.js */
956 .changeset_more .loader {
962 /* Rules for the browse sidebar */
966 padding: $lineheight/2 $lineheight;
967 border-bottom: 1px solid $grey;
971 word-wrap: break-word;
975 .browse-section:last-of-type {
982 border: 1px solid $lightgrey;
990 padding: 5px 0 5px 10px;
992 border: 1px solid $grey;
993 border-radius: 4px 4px 0 0;
994 background-color: $offwhite;
1000 background-color: #FFF;
1001 border: 1px solid $grey;
1003 border-radius: 0 0 4px 4px;
1008 background-color: $offwhite;
1009 border: 1px solid $grey;
1011 table-layout: fixed;
1012 border-collapse: separate;
1017 border-bottom: 1px solid $grey;
1020 tr:last-child th, tr:last-child td {
1028 word-wrap: break-word;
1029 white-space: pre-wrap;
1034 background-color: $offwhite;
1038 border-left: 1px solid $grey;
1039 background-color: #fff;
1042 .colour-preview-box {
1047 border: 1px solid rgba(0, 0, 0, .1);
1048 // add color via inline css on element: background-color: <tag value>;
1053 margin: 0 0 $lineheight/2 0;
1054 padding: 0 $lineheight/2;
1057 .note-comments li, .changeset-comments li {
1058 margin: $lineheight/2 0;
1061 margin: 10px 6px 0 6px;
1070 .subscribe-buttons {
1072 margin: 18px 10px 10px;
1076 .subscribe-buttons input {
1082 span.action-button:hover {
1084 text-decoration: underline;
1089 margin: 0 0 10px 10px;
1093 padding: $lineheight $lineheight $lineheight/2;
1098 padding-bottom: $lineheight/2;
1101 padding: 0 $lineheight;
1111 background: $list-highlight;
1118 /* Rules for export sidebar */
1121 padding: $lineheight;
1123 .export_area_inputs,
1128 .export_area_inputs {
1129 margin-bottom: $lineheight/2;
1130 input[type="text"] {
1138 background: $lightgrey;
1139 border: 1px solid $grey;
1142 #maxlat { margin-top: -1px; }
1145 /* no-r2 */ margin-left: -1px;
1149 /* no-r2 */ margin-right: -1px;
1151 #minlat { margin-bottom: 0; }
1155 margin: $lineheight/4;
1159 margin-top: $lineheight;
1160 margin-bottom: $lineheight;
1164 padding-left: $lineheight/2;
1167 margin-bottom: 10px;
1172 /* Rules for the routing sidebar */
1181 /* Rules for edit pages */
1197 /* Rules for non-map content pages */
1200 background: $lightgrey;
1204 h1, h2, h3, p, ul, ol {
1205 margin-bottom: $lineheight;
1209 margin-top: $lineheight/2;
1217 padding: $lineheight;
1220 /* Overrides for pages that use new layout conventions */
1226 .content-heading .content-inner {
1231 .header-illustration {
1232 background-position: 0 0;
1233 background-repeat: no-repeat;
1241 background-image: image-url("sign-up-illustration.png");
1245 background-image: image-url("confirm-illustration.png");
1249 background-image: image-url("terms-illustration.png");
1257 background-image: image-url("sign-up-illustration-arm.png");
1262 [dir=rtl] .header-illustration {
1263 transform: scaleX(-1);
1266 #content.maximised {
1275 /* Rules for small maps in content areas */
1281 border: 1px solid $grey;
1282 margin-bottom: $lineheight;
1286 /* Rules for the new trace form */
1291 width: calc(100% - 150px);
1296 /* Rules for the edit trace form */
1299 .standard-form-row p {
1305 width: calc(100% - 150px);
1310 /* Rules for the user profile page */
1315 .userinformation-inner {
1330 .admin-user-info small {
1331 margin-bottom: $lineheight/2;
1333 margin-right: $lineheight;
1338 border-bottom: 1px solid $grey;
1339 padding-bottom: $lineheight;
1342 margin-bottom: $lineheight/2;
1347 margin-top: $lineheight;
1351 .activity-details p {
1357 // Silly exception; remove when user page is redesigned.
1361 p#no_home_location {
1362 margin: $lineheight;
1365 margin-top: $lineheight/4;
1370 /* Rules for the user map */
1372 .content_map .leaflet-popup-content {
1373 margin: $lineheight/2;
1377 /* Rules for user popups on maps */
1383 margin-top: 0 0 0 60px;
1386 img.user_thumbnail {
1388 margin: 0 $lineheight/2 0 0;
1392 /* Rules for the user list */
1398 vertical-align: middle;
1407 #user_list_actions {
1409 margin-top: $lineheight/2;
1412 /* Rules for the diary list page */
1416 padding-top: $lineheight;
1417 padding-bottom: $lineheight/2;
1418 border-top: 1px solid $grey;
1421 margin-top: $lineheight/2;
1425 background-color: #fee;
1429 margin-bottom: $lineheight;
1433 margin-bottom: $lineheight/2;
1437 img.user_thumbnail {
1448 padding-top: $lineheight;
1451 /* Rules for the diary entry page */
1458 border: 1px solid $grey;
1460 margin-bottom: $lineheight;
1463 border-top: 1px solid $grey;
1464 padding-top: $lineheight;
1465 margin-top: $lineheight/2;
1471 border-top: 1px dashed $grey;
1472 padding-top: $lineheight/2;
1473 padding-bottom: $lineheight/2;
1475 margin-top: $lineheight/2;
1476 padding-top: $lineheight;
1477 border-top: 1px solid $grey;
1480 background-color: #fee;
1483 margin-bottom: $lineheight/2;
1492 .diary_entries-show img.user_thumbnail {
1497 .diary-subscribe-buttons {
1503 /* Rules for the log in page */
1505 #login_auth_buttons {
1509 #login_auth_buttons li {
1511 padding: $lineheight/4 $lineheight/2;
1514 /* Rules for the account confirmation page */
1518 border: 1px solid $grey;
1519 padding: $lineheight;
1520 margin-bottom: $lineheight;
1525 list-style: inherit;
1529 list-style-type: lower-alpha;
1534 background: $lightblue;
1536 background: darken($lightblue, $hovercolor);
1541 /* Rules for the account settings page */
1543 #accountForm .user_map {
1547 border: 1px solid $grey;
1550 #accountForm .user_image {
1554 #accountForm #user_image {
1558 #accountForm ul.accountImage-options {
1571 display: inline !important;
1574 .content_map.settings_map {
1579 /* Rules for the oauth settings page */
1581 .oauth_clients .buttons .oauth-edit {
1582 border-radius: 2px 0 0 2px;
1585 .oauth_clients .buttons .oauth-delete {
1586 border-radius: 0 2px 2px 0;
1589 /* Rules for the oauth authorization page */
1591 .oauth-authorize ul {
1595 /* Rules for messages pages */
1598 input[type="submit"] {
1603 background: $offwhite;
1607 background: #CBEEA7;
1615 .inbox-row .inbox-mark-read {
1620 margin-bottom: $lineheight;
1621 padding: $lineheight/4 0px 4px 0px;
1622 border-bottom: 1px solid $grey;
1629 .info-line .user_thumbnail_tiny {
1630 vertical-align: middle;
1634 white-space: nowrap;
1643 .inbox-row-unread .inbox-mark-unread {
1647 /* Rules for "flash" notice boxes shown at the top of the content area */
1650 padding: $lineheight;
1653 background-color: #ff7070;
1657 background-color: #ffe0cc;
1661 background-color: #CBEEA7;
1665 display: inline-block;
1666 margin-left: $lineheight / 2;
1667 vertical-align: middle;
1670 margin-top: $lineheight * 0.5;
1671 margin-bottom: $lineheight * 0.5;
1684 /* Rules for highlighting fields with rails validation errors */
1687 display: inline-block;
1693 background-color: #ff7070;
1696 /* Rules for rails validation error boxes */
1700 border: 2px solid #ff7070;
1701 padding: 0 $lineheight/2;
1702 margin-bottom: $lineheight;
1703 background-color: #f0f0f0;
1706 margin: 0 -10px 10px -10px;
1707 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1710 background-color: #c00;
1718 padding: $lineheight/4;
1722 /* Rules for forms */
1726 margin-bottom: $lineheight;
1728 label.standard-label {
1730 margin-bottom: $lineheight/4;
1731 font-size: $typeheight;
1735 label.standard-label.secondary {
1736 display: inline-block;
1737 font-weight: normal;
1740 font-weight: normal;
1747 margin-top: $lineheight;
1748 padding-top: $lineheight;
1749 border-top: 1px solid $lightgrey;
1751 .horizontal-list .standard-form-row {
1753 padding-right: 10px;
1755 .standard-form-row {
1756 margin-bottom: $lineheight/2;
1763 list-style-type: none;
1765 input[type="checkbox"],
1766 input[type="radio"] {
1772 #remember_me_openid {
1780 input[type="checkbox"],
1781 input[type="radio"] {
1786 input[type="email"],
1788 input[type="password"],
1791 background-color: #fff;
1792 border: 1px solid $grey;
1798 &.field_with_errors {
1799 border: 2px solid #ff7070;
1810 /* Rules for user images */
1815 border: 1px solid $grey;
1816 margin-bottom: $lineheight;
1818 margin-right: $lineheight;
1821 img.user_thumbnail {
1824 border: 1px solid $grey;
1825 margin-right: $lineheight;
1828 img.user_thumbnail_tiny {
1833 border: 1px solid $grey;
1836 /* Rules for geo microformats */
1839 border-bottom: none;
1842 /* General styles for action lists / subnavs / pager navs */
1844 ul.secondary-actions {
1850 display: inline-block;
1857 border-left: 1px solid $grey;
1858 padding-left: $lineheight/2;
1859 margin-right: $lineheight/2;
1870 div.secondary-actions {
1875 /* Utility for managing inner content areas */
1877 .inner22 { padding: $lineheight;}
1879 .inner12 { padding: $lineheight/2 $lineheight;}
1881 .inner11 { padding: $lineheight/2;}
1883 .inner20 { padding: $lineheight 0;}
1885 .inner02 { padding: 0 $lineheight;}
1887 /* Utility for general button styles */
1889 input[type="button"],
1890 input[type="submit"],
1891 input[type="reset"],
1895 display: inline-block;
1896 padding: $lineheight/4 $lineheight/2;
1897 min-height: 20px + $lineheight/2;
1899 margin: 0 0 $lineheight/2 0;
1905 background: darken($blue, $hovercolor);
1906 text-decoration: none;
1909 background: $lightblue;
1911 background: darken($lightblue, $hovercolor);
1915 background: $lightgrey;
1917 background: $lightgrey;
1925 input[type="button"],
1926 input[type="submit"],
1927 input[type="reset"] {
1928 line-height: normal;
1937 input[type="submit"],
1938 input[type="button"],
1939 input[type="reset"],
1942 box-sizing: border-box;
1948 border-right:1px solid white;
1949 text-overflow: ellipsis;
1950 white-space: nowrap;
1954 .button:first-child,
1955 .button_to:first-child {
1956 border-radius:2px 0 0 2px;
1960 .button_to:last-child {
1961 border-radius:0 2px 2px 0;
1962 border-right-width: 0;
1966 .button_to:only-child,
1967 *[value="Hide"] + input:last-child,
1968 *[value="Hide"] + .button:last-child,
1969 *[value="Hide"] + .button_to:last-child {
1971 border-right-width: 0;
1973 /* if a 3-button set has a hidden middle button */
1974 *[value="Hide"] + input:nth-child(3),
1975 *[value="Hide"] + .button:nth-child(3),
1976 *[value="Hide"] + .button_to:nth-child(3) {
1977 border-radius:0 2px 2px 0;
1978 border-right-width: 0;
1980 /* if a 3-button set starts with a hidden button */
1981 *[value="Hide"] + input:nth-child(2):not(:last-child),
1982 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1983 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1984 border-radius:2px 0 0 2px;
1985 border-right-width: 1px;
1989 /* Customise the background colour of striped tables */
1991 .table-striped > tbody > tr:nth-child(2n+1) > td,
1992 .table-striped > tbody > tr:nth-child(2n+1) > th {
1993 background-color: $offwhite;
1996 /* Rules for OpenID logo */
1999 vertical-align: text-bottom;
2003 /* Rules for rich text */
2009 background: $lightgrey;
2015 background: $lightgrey;
2017 white-space: pre-wrap;
2025 padding: $lineheight;
2026 background-color: $offwhite;
2033 border-left: $lineheight solid $offwhite;
2034 padding-left: $lineheight;
2040 .diary_post .richtext {
2041 margin-top: $lineheight;
2044 .comments .richtext {
2049 /* Rules for rich text editors */
2051 input.richtext_title[type="text"] {
2053 width: calc(100% - 235px);
2055 @media only screen and (max-width:768px) {
2060 .richtext_container {
2061 margin-bottom: $lineheight;
2065 width: calc(100% - 235px);
2066 display: inline-block;
2067 vertical-align: top;
2069 @media only screen and (max-width:768px) {
2074 display: inline-block;
2075 padding: $lineheight;
2076 background-color: $offwhite;
2080 background-image: image-url("loading.gif");
2081 background-repeat: no-repeat;
2082 background-position: center;
2092 display: inline-block;
2093 vertical-align: top;
2095 background-color: $offwhite;
2096 padding: $lineheight/2;
2104 border-bottom: 1px solid $grey;
2105 margin-bottom: $lineheight/4;
2106 padding-bottom: $lineheight/4;
2109 li h4, li span, li p {
2110 display: inline-block;
2111 vertical-align: top;
2122 margin-left: $lineheight/2;
2123 margin-bottom: $lineheight/4;
2124 white-space: nowrap;
2129 /* Rules for the user notes list */
2133 background-color: $offwhite;
2137 /* Rules for the iD editor */
2144 /* Rules for the "Welcome" page */
2145 .site-welcome, .site-fixthemap {
2155 background-image: image-url("welcome-sprite.png");
2156 background-size: 500px 250px;
2162 padding-bottom: 20px;
2164 margin-bottom: 10px;
2176 /* no-r2 */ background-position: -50px 0;
2181 vertical-align: middle;
2185 /* no-r2 */ background-position: -100px 0;
2189 /* no-r2 */ background-position: -150px 0;
2193 /* no-r2 */ background-position: -200px 0;
2197 /* no-r2 */ background-position: -250px 0;
2201 /* no-r2 */ background-position: -300px 0;
2205 /* no-r2 */ background-position: -350px 0;
2214 text-decoration: none;
2218 background-color: #333;
2223 .site-about #content {
2224 background-color: $lightgrey;
2225 background-position: 50% 50%;
2226 background-repeat: no-repeat;
2227 background-size: cover;
2228 background-attachment: fixed;
2245 padding: 170px 40px 20px;
2247 background: rgba(0, 0, 0, .8);
2257 color: $vibrant-green;
2267 background-position: 0 50%;
2268 background-repeat: no-repeat;
2269 background-image: image-url('about/osm.png');
2270 background-size: cover;
2271 background-color: $vibrant-green;
2281 padding: 20px 20px 20px 40px;
2282 font: 500 20px/24px Helvetica, Arial, sans-serif;
2283 white-space: nowrap;
2285 background: $vibrant-green;
2289 display: inline-block;
2299 vertical-align: middle;
2300 background: 40px 40px image-url('about/sprite.png') no-repeat;
2304 background-position: 0px 0px;
2308 background-position: 0px -40px;
2312 background-position: 0px -80px;
2316 background-position: 0px -120px;
2320 background-position: 0px -160px;
2324 background-position: -45px -160px;
2331 @media only screen and (max-width:960px) {
2332 .header-illustration.new-user-arm {
2338 background: $lightgrey;