2 @import "bootstrap-custom";
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 {
780 box-shadow: 0px 0px 7px $vibrant-green;
783 input[type=submit].float {
787 border-radius: 0 2px 2px 0;
791 background-color: rgba($red, 0.4);
795 /* this next line is to polyfill the vertical alignment of text within a select element,
796 * which is different between firefox and chrome. */
833 select.routing_engines {
835 margin: 0px 0px 5px 25px;
850 margin: 0px 0px 5px 0px;
857 vertical-align: middle;
861 a.reverse_directions {
863 margin: 0px 0px 5px 25px;
867 /* Rules for the map key which appears in the popout sidebar */
870 .mapkey-table-key img {
876 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
880 /* Rules for search sidebar */
882 #sidebar .search_results_entry {
885 &.selected { background: $list-highlight; }
888 .search_more .loader {
894 .search_results_error {
899 /* Rules for routing */
901 #sidebar_content>table {
902 padding: 5px 20px 10px 15px;
904 border-collapse: separate;
908 background-image: image-url('routing-sprite.png');
911 background-repeat: no-repeat;
913 @for $i from 0 through 25 {
914 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
918 padding: 0 $lineheight $lineheight/4;
921 td.instruction, td.distance {
922 padding-top: $lineheight/5;
923 padding-bottom: $lineheight/5;
924 border-bottom: 1px solid $grey;
935 background: $list-highlight;
937 .routing_engines, #route_from, #route_to { margin-left: 25px; }
938 .routing_marker { width: 15px; position: absolute; cursor: move; }
940 /* Rules for entity history */
945 border-bottom: $keyline;
953 /* Rules for the history sidebar */
955 #sidebar .changesets {
959 &.selected { background: $list-highlight; }
960 /* color is derived from changeset bbox fillColor in history.js */
972 .changeset_more .loader {
978 /* Rules for the browse sidebar */
982 padding: $lineheight/2 $lineheight;
983 border-bottom: 1px solid $grey;
987 word-wrap: break-word;
991 .browse-section:last-of-type {
998 border: 1px solid $lightgrey;
1003 margin-bottom: 10px;
1006 padding: 5px 0 5px 10px;
1008 border: 1px solid $grey;
1009 border-radius: 4px 4px 0 0;
1010 background-color: $offwhite;
1016 background-color: #FFF;
1017 border: 1px solid $grey;
1019 border-radius: 0 0 4px 4px;
1024 background-color: $offwhite;
1025 border: 1px solid $grey;
1027 table-layout: fixed;
1028 border-collapse: separate;
1031 border-bottom: 1px solid $grey;
1034 tr:last-child th, tr:last-child td {
1042 word-wrap: break-word;
1043 white-space: pre-wrap;
1048 background-color: $offwhite;
1052 border-left: 1px solid $grey;
1053 background-color: #fff;
1056 .colour-preview-box {
1061 border: 1px solid rgba(0, 0, 0, .1);
1062 // add color via inline css on element: background-color: <tag value>;
1067 margin: 0 0 $lineheight/2 0;
1068 padding: 0 $lineheight/2;
1071 .note-comments li, .changeset-comments li {
1072 margin: $lineheight/2 0;
1075 margin: 10px 6px 0 6px;
1084 .subscribe-buttons {
1086 margin: 18px 10px 10px;
1090 .subscribe-buttons input {
1096 span.action-button:hover {
1098 text-decoration: underline;
1103 margin: 0 0 10px 10px;
1107 padding: $lineheight $lineheight $lineheight/2;
1112 padding-bottom: $lineheight/2;
1115 padding: 0 $lineheight;
1125 background: $list-highlight;
1132 /* Rules for export sidebar */
1135 padding: $lineheight;
1137 .export_area_inputs,
1142 .export_area_inputs {
1143 margin-bottom: $lineheight/2;
1144 input[type="text"] {
1152 background: $lightgrey;
1153 border: 1px solid $grey;
1156 #maxlat { margin-top: -1px; }
1159 /* no-r2 */ margin-left: -1px;
1163 /* no-r2 */ margin-right: -1px;
1165 #minlat { margin-bottom: 0; }
1169 margin: $lineheight/4;
1173 margin-top: $lineheight;
1174 margin-bottom: $lineheight;
1178 padding-left: $lineheight/2;
1181 margin-bottom: 10px;
1186 /* Rules for the routing sidebar */
1195 /* Rules for edit pages */
1211 /* Rules for non-map content pages */
1214 background: $lightgrey;
1218 h1, h2, h3, p, ul, ol {
1219 margin-bottom: $lineheight;
1223 margin-top: $lineheight/2;
1231 padding: $lineheight;
1234 /* Overrides for pages that use new layout conventions */
1240 .content-heading .content-inner {
1245 .header-illustration {
1246 background-position: 0 0;
1247 background-repeat: no-repeat;
1255 background-image: image-url("sign-up-illustration.png");
1259 background-image: image-url("confirm-illustration.png");
1263 background-image: image-url("terms-illustration.png");
1271 background-image: image-url("sign-up-illustration-arm.png");
1276 [dir=rtl] .header-illustration {
1277 transform: scaleX(-1);
1280 #content.maximised {
1289 /* Rules for small maps in content areas */
1295 border: 1px solid $grey;
1296 margin-bottom: $lineheight;
1300 /* Rules for the trace list shown by the traces tab etc */
1312 /* Rules for the new trace form */
1317 width: calc(100% - 150px);
1322 /* Rules for the edit trace form */
1325 .standard-form-row p {
1331 width: calc(100% - 150px);
1336 /* Rules for the user profile page */
1341 .userinformation-inner {
1356 .admin-user-info small {
1357 margin-bottom: $lineheight/2;
1359 margin-right: $lineheight;
1364 border-bottom: 1px solid $grey;
1365 padding-bottom: $lineheight;
1368 margin-bottom: $lineheight/2;
1373 margin-top: $lineheight;
1377 .activity-details p {
1383 // Silly exception; remove when user page is redesigned.
1387 p#no_home_location {
1388 margin: $lineheight;
1391 margin-top: $lineheight/4;
1396 /* Rules for the user map */
1398 .content_map .leaflet-popup-content {
1399 margin: $lineheight/2;
1403 /* Rules for user popups on maps */
1409 margin-top: 0 0 0 60px;
1412 img.user_thumbnail {
1414 margin: 0 $lineheight/2 0 0;
1418 /* Rules for the user list */
1424 vertical-align: middle;
1433 #user_list_actions {
1435 margin-top: $lineheight/2;
1438 /* Rules for the diary list page */
1442 padding-top: $lineheight;
1443 padding-bottom: $lineheight/2;
1444 border-top: 1px solid $grey;
1447 margin-top: $lineheight/2;
1451 background-color: #fee;
1455 margin-bottom: $lineheight;
1459 margin-bottom: $lineheight/2;
1463 img.user_thumbnail {
1474 padding-top: $lineheight;
1477 /* Rules for the diary entry page */
1484 border: 1px solid $grey;
1486 margin-bottom: $lineheight;
1489 border-top: 1px solid $grey;
1490 padding-top: $lineheight;
1491 margin-top: $lineheight/2;
1497 border-top: 1px dashed $grey;
1498 padding-top: $lineheight/2;
1499 padding-bottom: $lineheight/2;
1501 margin-top: $lineheight/2;
1502 padding-top: $lineheight;
1503 border-top: 1px solid $grey;
1506 background-color: #fee;
1509 margin-bottom: $lineheight/2;
1518 .diary_entries-show img.user_thumbnail {
1523 .diary-subscribe-buttons {
1529 /* Rules for the log in page */
1531 #login_auth_buttons {
1535 #login_auth_buttons li {
1537 padding: $lineheight/4 $lineheight/2;
1540 /* Rules for the account confirmation page */
1544 border: 1px solid $grey;
1545 padding: $lineheight;
1546 margin-bottom: $lineheight;
1551 list-style: inherit;
1555 list-style-type: lower-alpha;
1560 background: $lightblue;
1562 background: darken($lightblue, $hovercolor);
1567 /* Rules for the account settings page */
1569 #accountForm .user_map {
1573 border: 1px solid $grey;
1576 #accountForm .user_image {
1580 #accountForm #user_image {
1584 #accountForm ul.accountImage-options {
1597 display: inline !important;
1600 .content_map.settings_map {
1605 /* Rules for the oauth settings page */
1607 .oauth_clients .buttons .oauth-edit {
1608 border-radius: 2px 0 0 2px;
1611 .oauth_clients .buttons .oauth-delete {
1612 border-radius: 0 2px 2px 0;
1615 /* Rules for the oauth authorization page */
1617 .oauth-authorize ul {
1621 /* Rules for messages pages */
1625 border: 1px solid $grey;
1627 input[type="submit"] {
1631 border-top: 1px solid $grey;
1635 background: $offwhite;
1648 padding: $lineheight/4;
1659 border-right: 1px solid $lightgrey;
1663 .inbox-row .inbox-mark-read {
1668 margin-bottom: $lineheight;
1669 padding: $lineheight/4 0px 4px 0px;
1670 border-bottom: 1px solid $grey;
1677 .info-line .user_thumbnail_tiny {
1678 vertical-align: middle;
1682 white-space: nowrap;
1691 .inbox-row-unread .inbox-mark-unread {
1695 .messages-show .message-buttons {
1696 margin-top: $lineheight;
1697 margin-bottom: $lineheight * 1.5;
1698 padding-top: $lineheight;
1699 border-top: 1px solid $lightgrey;
1702 .messages-show .buttons .mark-unread-button {
1706 /* Rules for "flash" notice boxes shown at the top of the content area */
1709 padding: $lineheight;
1712 background-color: #ff7070;
1716 background-color: #ffe0cc;
1720 background-color: #CBEEA7;
1724 display: inline-block;
1725 margin-left: $lineheight / 2;
1726 vertical-align: middle;
1729 margin-top: $lineheight * 0.5;
1730 margin-bottom: $lineheight * 0.5;
1743 /* Rules for highlighting fields with rails validation errors */
1746 display: inline-block;
1752 background-color: #ff7070;
1755 /* Rules for rails validation error boxes */
1759 border: 2px solid #ff7070;
1760 padding: 0 $lineheight/2;
1761 margin-bottom: $lineheight;
1762 background-color: #f0f0f0;
1765 margin: 0 -10px 10px -10px;
1766 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1769 background-color: #c00;
1777 padding: $lineheight/4;
1781 /* Rules for forms */
1785 margin-bottom: $lineheight;
1787 label.standard-label {
1789 margin-bottom: $lineheight/4;
1790 font-size: $typeheight;
1794 label.standard-label.secondary {
1795 display: inline-block;
1796 font-weight: normal;
1799 font-weight: normal;
1806 margin-top: $lineheight;
1807 padding-top: $lineheight;
1808 border-top: 1px solid $lightgrey;
1810 .horizontal-list .standard-form-row {
1812 padding-right: 10px;
1814 .standard-form-row {
1815 margin-bottom: $lineheight/2;
1822 list-style-type: none;
1824 input[type="checkbox"],
1825 input[type="radio"] {
1831 #remember_me_openid {
1839 input[type="checkbox"],
1840 input[type="radio"] {
1845 input[type="email"],
1847 input[type="password"],
1850 background-color: #fff;
1851 border: 1px solid $grey;
1857 &.field_with_errors {
1858 border: 2px solid #ff7070;
1869 /* Rules for user images */
1874 border: 1px solid $grey;
1875 margin-bottom: $lineheight;
1877 margin-right: $lineheight;
1880 img.user_thumbnail {
1883 border: 1px solid $grey;
1884 margin-right: $lineheight;
1887 img.user_thumbnail_tiny {
1892 border: 1px solid $grey;
1895 /* Rules for geo microformats */
1898 border-bottom: none;
1901 /* General styles for action lists / subnavs / pager navs */
1903 ul.secondary-actions {
1909 display: inline-block;
1916 border-left: 1px solid $grey;
1917 padding-left: $lineheight/2;
1918 margin-right: $lineheight/2;
1929 div.secondary-actions {
1934 /* Utility for managing inner content areas */
1936 .inner22 { padding: $lineheight;}
1938 .inner12 { padding: $lineheight/2 $lineheight;}
1940 .inner11 { padding: $lineheight/2;}
1942 .inner20 { padding: $lineheight 0;}
1944 .inner02 { padding: 0 $lineheight;}
1946 /* Utility for general button styles */
1948 input[type="button"],
1949 input[type="submit"],
1950 input[type="reset"],
1954 display: inline-block;
1955 padding: $lineheight/4 $lineheight/2;
1956 min-height: 20px + $lineheight/2;
1958 margin: 0 0 $lineheight/2 0;
1964 background: darken($blue, $hovercolor);
1965 text-decoration: none;
1968 background: $lightblue;
1970 background: darken($lightblue, $hovercolor);
1974 background: $lightgrey;
1976 background: $lightgrey;
1984 input[type="button"],
1985 input[type="submit"],
1986 input[type="reset"] {
1987 line-height: normal;
1996 input[type="submit"],
1997 input[type="button"],
1998 input[type="reset"],
2001 box-sizing: border-box;
2007 border-right:1px solid white;
2008 text-overflow: ellipsis;
2009 white-space: nowrap;
2013 .button:first-child,
2014 .button_to:first-child {
2015 border-radius:2px 0 0 2px;
2019 .button_to:last-child {
2020 border-radius:0 2px 2px 0;
2021 border-right-width: 0;
2025 .button_to:only-child,
2026 *[value="Hide"] + input:last-child,
2027 *[value="Hide"] + .button:last-child,
2028 *[value="Hide"] + .button_to:last-child {
2030 border-right-width: 0;
2032 /* if a 3-button set has a hidden middle button */
2033 *[value="Hide"] + input:nth-child(3),
2034 *[value="Hide"] + .button:nth-child(3),
2035 *[value="Hide"] + .button_to:nth-child(3) {
2036 border-radius:0 2px 2px 0;
2037 border-right-width: 0;
2039 /* if a 3-button set starts with a hidden button */
2040 *[value="Hide"] + input:nth-child(2):not(:last-child),
2041 *[value="Hide"] + .button:nth-child(2):not(:last-child),
2042 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2043 border-radius:2px 0 0 2px;
2044 border-right-width: 1px;
2048 /* Rules for doing distinct colour of alternate table rows */
2052 background: $offwhite;
2060 /* Rules for OpenID logo */
2063 vertical-align: text-bottom;
2067 /* Rules for rich text */
2073 background: $lightgrey;
2079 background: $lightgrey;
2081 white-space: pre-wrap;
2089 padding: $lineheight;
2090 background-color: $offwhite;
2097 border-left: $lineheight solid $offwhite;
2098 padding-left: $lineheight;
2104 .diary_post .richtext {
2105 margin-top: $lineheight;
2108 .comments .richtext {
2113 /* Rules for rich text editors */
2115 input.richtext_title[type="text"] {
2117 width: calc(100% - 235px);
2119 @media only screen and (max-width:768px) {
2124 .richtext_container {
2125 margin-bottom: $lineheight;
2129 width: calc(100% - 235px);
2130 display: inline-block;
2131 vertical-align: top;
2133 @media only screen and (max-width:768px) {
2138 display: inline-block;
2139 padding: $lineheight;
2140 background-color: $offwhite;
2144 background-image: image-url("loading.gif");
2145 background-repeat: no-repeat;
2146 background-position: center;
2156 display: inline-block;
2157 vertical-align: top;
2159 background-color: $offwhite;
2160 padding: $lineheight/2;
2168 border-bottom: 1px solid $grey;
2169 margin-bottom: $lineheight/4;
2170 padding-bottom: $lineheight/4;
2173 li h4, li span, li p {
2174 display: inline-block;
2175 vertical-align: top;
2186 margin-left: $lineheight/2;
2187 margin-bottom: $lineheight/4;
2188 white-space: nowrap;
2193 /* Rules for the user notes list */
2197 background-color: $lightgrey;
2209 /* Rules for the iD editor */
2216 /* Rules for the "Welcome" page */
2217 .site-welcome, .site-fixthemap {
2227 background-image: image-url("welcome-sprite.png");
2228 background-size: 500px 250px;
2234 padding-bottom: 20px;
2236 margin-bottom: 10px;
2248 /* no-r2 */ background-position: -50px 0;
2253 vertical-align: middle;
2257 /* no-r2 */ background-position: -100px 0;
2261 /* no-r2 */ background-position: -150px 0;
2265 /* no-r2 */ background-position: -200px 0;
2269 /* no-r2 */ background-position: -250px 0;
2273 /* no-r2 */ background-position: -300px 0;
2277 /* no-r2 */ background-position: -350px 0;
2286 text-decoration: none;
2290 background-color: #333;
2295 .site-about #content {
2296 background-color: $lightgrey;
2297 background-position: 50% 50%;
2298 background-repeat: no-repeat;
2299 background-size: cover;
2300 background-attachment: fixed;
2317 padding: 170px 40px 20px;
2319 background: rgba(0, 0, 0, .8);
2329 color: $vibrant-green;
2339 background-position: 0 50%;
2340 background-repeat: no-repeat;
2341 background-image: image-url('about/osm.png');
2342 background-size: cover;
2343 background-color: $vibrant-green;
2353 padding: 20px 20px 20px 40px;
2354 font: 500 20px/24px Helvetica, Arial, sans-serif;
2355 white-space: nowrap;
2357 background: $vibrant-green;
2361 display: inline-block;
2371 vertical-align: middle;
2372 background: 40px 40px image-url('about/sprite.png') no-repeat;
2376 background-position: 0px 0px;
2380 background-position: 0px -40px;
2384 background-position: 0px -80px;
2388 background-position: 0px -120px;
2392 background-position: 0px -160px;
2396 background-position: -45px -160px;
2403 @media only screen and (max-width:960px) {
2404 .header-illustration.new-user-arm {
2410 background: $lightgrey;
2416 white-space: nowrap;