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;
909 background-image: image-url('routing-sprite.png');
912 background-repeat: no-repeat;
914 @for $i from 0 through 25 {
915 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
919 padding: 0 $lineheight $lineheight/4;
922 td.instruction, td.distance {
923 padding-top: $lineheight/5;
924 padding-bottom: $lineheight/5;
925 border-bottom: 1px solid $grey;
936 background: $list-highlight;
938 .routing_engines, #route_from, #route_to { margin-left: 25px; }
939 .routing_marker { width: 15px; position: absolute; cursor: move; }
941 /* Rules for entity history */
946 border-bottom: $keyline;
954 /* Rules for the history sidebar */
956 #sidebar .changesets {
960 &.selected { background: $list-highlight; }
961 /* color is derived from changeset bbox fillColor in history.js */
973 .changeset_more .loader {
979 /* Rules for the browse sidebar */
983 padding: $lineheight/2 $lineheight;
984 border-bottom: 1px solid $grey;
988 word-wrap: break-word;
992 .browse-section:last-of-type {
999 border: 1px solid $lightgrey;
1004 margin-bottom: 10px;
1007 padding: 5px 0 5px 10px;
1009 border: 1px solid $grey;
1010 border-radius: 4px 4px 0 0;
1011 background-color: $offwhite;
1017 background-color: #FFF;
1018 border: 1px solid $grey;
1020 border-radius: 0 0 4px 4px;
1025 background-color: $offwhite;
1026 border: 1px solid $grey;
1028 table-layout: fixed;
1029 border-collapse: separate;
1033 border-bottom: 1px solid $grey;
1036 tr:last-child th, tr:last-child td {
1044 word-wrap: break-word;
1045 white-space: pre-wrap;
1050 background-color: $offwhite;
1054 border-left: 1px solid $grey;
1055 background-color: #fff;
1058 .colour-preview-box {
1063 border: 1px solid rgba(0, 0, 0, .1);
1064 // add color via inline css on element: background-color: <tag value>;
1069 margin: 0 0 $lineheight/2 0;
1070 padding: 0 $lineheight/2;
1073 .note-comments li, .changeset-comments li {
1074 margin: $lineheight/2 0;
1077 margin: 10px 6px 0 6px;
1086 .subscribe-buttons {
1088 margin: 18px 10px 10px;
1092 .subscribe-buttons input {
1098 span.action-button:hover {
1100 text-decoration: underline;
1105 margin: 0 0 10px 10px;
1109 padding: $lineheight $lineheight $lineheight/2;
1114 padding-bottom: $lineheight/2;
1117 padding: 0 $lineheight;
1127 background: $list-highlight;
1134 /* Rules for export sidebar */
1137 padding: $lineheight;
1139 .export_area_inputs,
1144 .export_area_inputs {
1145 margin-bottom: $lineheight/2;
1146 input[type="text"] {
1154 background: $lightgrey;
1155 border: 1px solid $grey;
1158 #maxlat { margin-top: -1px; }
1161 /* no-r2 */ margin-left: -1px;
1165 /* no-r2 */ margin-right: -1px;
1167 #minlat { margin-bottom: 0; }
1171 margin: $lineheight/4;
1175 margin-top: $lineheight;
1176 margin-bottom: $lineheight;
1180 padding-left: $lineheight/2;
1183 margin-bottom: 10px;
1188 /* Rules for the routing sidebar */
1197 /* Rules for edit pages */
1213 /* Rules for non-map content pages */
1216 background: $lightgrey;
1220 h1, h2, h3, p, ul, ol {
1221 margin-bottom: $lineheight;
1225 margin-top: $lineheight/2;
1233 padding: $lineheight;
1236 /* Overrides for pages that use new layout conventions */
1242 .content-heading .content-inner {
1247 .header-illustration {
1248 background-position: 0 0;
1249 background-repeat: no-repeat;
1257 background-image: image-url("sign-up-illustration.png");
1261 background-image: image-url("confirm-illustration.png");
1265 background-image: image-url("terms-illustration.png");
1273 background-image: image-url("sign-up-illustration-arm.png");
1278 [dir=rtl] .header-illustration {
1279 transform: scaleX(-1);
1282 #content.maximised {
1291 /* Rules for small maps in content areas */
1297 border: 1px solid $grey;
1298 margin-bottom: $lineheight;
1302 /* Rules for the trace list shown by the traces tab etc */
1314 /* Rules for the new trace form */
1319 width: calc(100% - 150px);
1324 /* Rules for the edit trace form */
1327 .standard-form-row p {
1333 width: calc(100% - 150px);
1338 /* Rules for the user profile page */
1343 .userinformation-inner {
1358 .admin-user-info small {
1359 margin-bottom: $lineheight/2;
1361 margin-right: $lineheight;
1366 border-bottom: 1px solid $grey;
1367 padding-bottom: $lineheight;
1370 margin-bottom: $lineheight/2;
1375 margin-top: $lineheight;
1379 .activity-details p {
1385 // Silly exception; remove when user page is redesigned.
1389 p#no_home_location {
1390 margin: $lineheight;
1393 margin-top: $lineheight/4;
1398 /* Rules for the user map */
1400 .content_map .leaflet-popup-content {
1401 margin: $lineheight/2;
1405 /* Rules for user popups on maps */
1411 margin-top: 0 0 0 60px;
1414 img.user_thumbnail {
1416 margin: 0 $lineheight/2 0 0;
1420 /* Rules for the user list */
1426 vertical-align: middle;
1435 #user_list_actions {
1437 margin-top: $lineheight/2;
1440 /* Rules for the diary list page */
1444 padding-top: $lineheight;
1445 padding-bottom: $lineheight/2;
1446 border-top: 1px solid $grey;
1449 margin-top: $lineheight/2;
1453 background-color: #fee;
1457 margin-bottom: $lineheight;
1461 margin-bottom: $lineheight/2;
1465 img.user_thumbnail {
1476 padding-top: $lineheight;
1479 /* Rules for the diary entry page */
1486 border: 1px solid $grey;
1488 margin-bottom: $lineheight;
1491 border-top: 1px solid $grey;
1492 padding-top: $lineheight;
1493 margin-top: $lineheight/2;
1499 border-top: 1px dashed $grey;
1500 padding-top: $lineheight/2;
1501 padding-bottom: $lineheight/2;
1503 margin-top: $lineheight/2;
1504 padding-top: $lineheight;
1505 border-top: 1px solid $grey;
1508 background-color: #fee;
1511 margin-bottom: $lineheight/2;
1520 .diary_entries-show img.user_thumbnail {
1525 .diary-subscribe-buttons {
1531 /* Rules for the log in page */
1533 #login_auth_buttons {
1537 #login_auth_buttons li {
1539 padding: $lineheight/4 $lineheight/2;
1542 /* Rules for the account confirmation page */
1546 border: 1px solid $grey;
1547 padding: $lineheight;
1548 margin-bottom: $lineheight;
1553 list-style: inherit;
1557 list-style-type: lower-alpha;
1562 background: $lightblue;
1564 background: darken($lightblue, $hovercolor);
1569 /* Rules for the account settings page */
1571 #accountForm .user_map {
1575 border: 1px solid $grey;
1578 #accountForm .user_image {
1582 #accountForm #user_image {
1586 #accountForm ul.accountImage-options {
1599 display: inline !important;
1602 .content_map.settings_map {
1607 /* Rules for the oauth settings page */
1609 .oauth_clients .buttons .oauth-edit {
1610 border-radius: 2px 0 0 2px;
1613 .oauth_clients .buttons .oauth-delete {
1614 border-radius: 0 2px 2px 0;
1617 /* Rules for the oauth authorization page */
1619 .oauth-authorize ul {
1623 /* Rules for messages pages */
1627 border: 1px solid $grey;
1629 input[type="submit"] {
1633 border-top: 1px solid $grey;
1637 background: $offwhite;
1650 padding: $lineheight/4;
1661 border-right: 1px solid $lightgrey;
1665 .inbox-row .inbox-mark-read {
1670 margin-bottom: $lineheight;
1671 padding: $lineheight/4 0px 4px 0px;
1672 border-bottom: 1px solid $grey;
1679 .info-line .user_thumbnail_tiny {
1680 vertical-align: middle;
1684 white-space: nowrap;
1693 .inbox-row-unread .inbox-mark-unread {
1697 .messages-show .message-buttons {
1698 margin-top: $lineheight;
1699 margin-bottom: $lineheight * 1.5;
1700 padding-top: $lineheight;
1701 border-top: 1px solid $lightgrey;
1704 .messages-show .buttons .mark-unread-button {
1708 /* Rules for "flash" notice boxes shown at the top of the content area */
1711 padding: $lineheight;
1714 background-color: #ff7070;
1718 background-color: #ffe0cc;
1722 background-color: #CBEEA7;
1726 display: inline-block;
1727 margin-left: $lineheight / 2;
1728 vertical-align: middle;
1731 margin-top: $lineheight * 0.5;
1732 margin-bottom: $lineheight * 0.5;
1745 /* Rules for highlighting fields with rails validation errors */
1748 display: inline-block;
1754 background-color: #ff7070;
1757 /* Rules for rails validation error boxes */
1761 border: 2px solid #ff7070;
1762 padding: 0 $lineheight/2;
1763 margin-bottom: $lineheight;
1764 background-color: #f0f0f0;
1767 margin: 0 -10px 10px -10px;
1768 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1771 background-color: #c00;
1779 padding: $lineheight/4;
1783 /* Rules for forms */
1787 margin-bottom: $lineheight;
1789 label.standard-label {
1791 margin-bottom: $lineheight/4;
1792 font-size: $typeheight;
1796 label.standard-label.secondary {
1797 display: inline-block;
1798 font-weight: normal;
1801 font-weight: normal;
1808 margin-top: $lineheight;
1809 padding-top: $lineheight;
1810 border-top: 1px solid $lightgrey;
1812 .horizontal-list .standard-form-row {
1814 padding-right: 10px;
1816 .standard-form-row {
1817 margin-bottom: $lineheight/2;
1824 list-style-type: none;
1826 input[type="checkbox"],
1827 input[type="radio"] {
1833 #remember_me_openid {
1841 input[type="checkbox"],
1842 input[type="radio"] {
1847 input[type="email"],
1849 input[type="password"],
1852 background-color: #fff;
1853 border: 1px solid $grey;
1859 &.field_with_errors {
1860 border: 2px solid #ff7070;
1871 /* Rules for user images */
1876 border: 1px solid $grey;
1877 margin-bottom: $lineheight;
1879 margin-right: $lineheight;
1882 img.user_thumbnail {
1885 border: 1px solid $grey;
1886 margin-right: $lineheight;
1889 img.user_thumbnail_tiny {
1894 border: 1px solid $grey;
1897 /* Rules for geo microformats */
1900 border-bottom: none;
1903 /* General styles for action lists / subnavs / pager navs */
1905 ul.secondary-actions {
1911 display: inline-block;
1918 border-left: 1px solid $grey;
1919 padding-left: $lineheight/2;
1920 margin-right: $lineheight/2;
1931 div.secondary-actions {
1936 /* Utility for managing inner content areas */
1938 .inner22 { padding: $lineheight;}
1940 .inner12 { padding: $lineheight/2 $lineheight;}
1942 .inner11 { padding: $lineheight/2;}
1944 .inner20 { padding: $lineheight 0;}
1946 .inner02 { padding: 0 $lineheight;}
1948 /* Utility for general button styles */
1950 input[type="button"],
1951 input[type="submit"],
1952 input[type="reset"],
1956 display: inline-block;
1957 padding: $lineheight/4 $lineheight/2;
1958 min-height: 20px + $lineheight/2;
1960 margin: 0 0 $lineheight/2 0;
1966 background: darken($blue, $hovercolor);
1967 text-decoration: none;
1970 background: $lightblue;
1972 background: darken($lightblue, $hovercolor);
1976 background: $lightgrey;
1978 background: $lightgrey;
1986 input[type="button"],
1987 input[type="submit"],
1988 input[type="reset"] {
1989 line-height: normal;
1998 input[type="submit"],
1999 input[type="button"],
2000 input[type="reset"],
2003 box-sizing: border-box;
2009 border-right:1px solid white;
2010 text-overflow: ellipsis;
2011 white-space: nowrap;
2015 .button:first-child,
2016 .button_to:first-child {
2017 border-radius:2px 0 0 2px;
2021 .button_to:last-child {
2022 border-radius:0 2px 2px 0;
2023 border-right-width: 0;
2027 .button_to:only-child,
2028 *[value="Hide"] + input:last-child,
2029 *[value="Hide"] + .button:last-child,
2030 *[value="Hide"] + .button_to:last-child {
2032 border-right-width: 0;
2034 /* if a 3-button set has a hidden middle button */
2035 *[value="Hide"] + input:nth-child(3),
2036 *[value="Hide"] + .button:nth-child(3),
2037 *[value="Hide"] + .button_to:nth-child(3) {
2038 border-radius:0 2px 2px 0;
2039 border-right-width: 0;
2041 /* if a 3-button set starts with a hidden button */
2042 *[value="Hide"] + input:nth-child(2):not(:last-child),
2043 *[value="Hide"] + .button:nth-child(2):not(:last-child),
2044 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2045 border-radius:2px 0 0 2px;
2046 border-right-width: 1px;
2050 /* Rules for doing distinct colour of alternate table rows */
2054 background: $offwhite;
2062 /* Rules for OpenID logo */
2065 vertical-align: text-bottom;
2069 /* Rules for rich text */
2075 background: $lightgrey;
2081 background: $lightgrey;
2083 white-space: pre-wrap;
2091 padding: $lineheight;
2092 background-color: $offwhite;
2099 border-left: $lineheight solid $offwhite;
2100 padding-left: $lineheight;
2106 .diary_post .richtext {
2107 margin-top: $lineheight;
2110 .comments .richtext {
2115 /* Rules for rich text editors */
2117 input.richtext_title[type="text"] {
2119 width: calc(100% - 235px);
2121 @media only screen and (max-width:768px) {
2126 .richtext_container {
2127 margin-bottom: $lineheight;
2131 width: calc(100% - 235px);
2132 display: inline-block;
2133 vertical-align: top;
2135 @media only screen and (max-width:768px) {
2140 display: inline-block;
2141 padding: $lineheight;
2142 background-color: $offwhite;
2146 background-image: image-url("loading.gif");
2147 background-repeat: no-repeat;
2148 background-position: center;
2158 display: inline-block;
2159 vertical-align: top;
2161 background-color: $offwhite;
2162 padding: $lineheight/2;
2170 border-bottom: 1px solid $grey;
2171 margin-bottom: $lineheight/4;
2172 padding-bottom: $lineheight/4;
2175 li h4, li span, li p {
2176 display: inline-block;
2177 vertical-align: top;
2188 margin-left: $lineheight/2;
2189 margin-bottom: $lineheight/4;
2190 white-space: nowrap;
2195 /* Rules for the user notes list */
2199 background-color: $lightgrey;
2211 /* Rules for the iD editor */
2218 /* Rules for the "Welcome" page */
2219 .site-welcome, .site-fixthemap {
2229 background-image: image-url("welcome-sprite.png");
2230 background-size: 500px 250px;
2236 padding-bottom: 20px;
2238 margin-bottom: 10px;
2250 /* no-r2 */ background-position: -50px 0;
2255 vertical-align: middle;
2259 /* no-r2 */ background-position: -100px 0;
2263 /* no-r2 */ background-position: -150px 0;
2267 /* no-r2 */ background-position: -200px 0;
2271 /* no-r2 */ background-position: -250px 0;
2275 /* no-r2 */ background-position: -300px 0;
2279 /* no-r2 */ background-position: -350px 0;
2288 text-decoration: none;
2292 background-color: #333;
2297 .site-about #content {
2298 background-color: $lightgrey;
2299 background-position: 50% 50%;
2300 background-repeat: no-repeat;
2301 background-size: cover;
2302 background-attachment: fixed;
2319 padding: 170px 40px 20px;
2321 background: rgba(0, 0, 0, .8);
2331 color: $vibrant-green;
2341 background-position: 0 50%;
2342 background-repeat: no-repeat;
2343 background-image: image-url('about/osm.png');
2344 background-size: cover;
2345 background-color: $vibrant-green;
2355 padding: 20px 20px 20px 40px;
2356 font: 500 20px/24px Helvetica, Arial, sans-serif;
2357 white-space: nowrap;
2359 background: $vibrant-green;
2363 display: inline-block;
2373 vertical-align: middle;
2374 background: 40px 40px image-url('about/sprite.png') no-repeat;
2378 background-position: 0px 0px;
2382 background-position: 0px -40px;
2386 background-position: 0px -80px;
2390 background-position: 0px -120px;
2394 background-position: 0px -160px;
2398 background-position: -45px -160px;
2405 @media only screen and (max-width:960px) {
2406 .header-illustration.new-user-arm {
2412 background: $lightgrey;
2418 white-space: nowrap;