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 #compact-secondary-nav {
286 #compact-secondary-nav {
287 display: inline-block;
294 /* Utility for styling notification numbers */
297 padding: 2px $lineheight/4;
299 background: lighten($green, 30%);
305 /* Rules for the message shown in place of the map when javascript is disabled */
313 /* Rules for Leaflet maps */
315 .leaflet-control .control-button {
319 background-color: #333;
320 background-color: rgba(0,0,0,.6);
321 border-radius: 4px 0 0 4px;
326 background-color: black;
331 background-color: #333;
332 background-color: rgba(0,0,0,.5);
337 background-color: $vibrant-green;
345 .leaflet-control .zoomin,
346 .control-layers .control-button {
348 border-radius: 4px 0 0 0;
351 .leaflet-control .zoomout,
352 .control-key .control-button {
357 .control-locate .control-button,
358 .control-share .control-button {
359 border-radius: 0 0 0 4px;
362 /* Rules for the sidebar and main map area */
382 width: $sidebarWidth;
397 padding: $lineheight $lineheight $lineheight/2;
402 margin-top: $lineheight;
403 margin-bottom: $lineheight/2;
416 pointer-events: none;
441 .overlay-sidebar #sidebar {
469 padding: $lineheight/2 $lineheight $lineheight;
483 border-right: 1px solid #fff;
493 width: $sidebarWidth;
509 .leaflet-marker-draggable {
524 border-bottom: 1px solid $grey;
534 border:1px solid $grey;
539 border: 1px solid $grey;
541 border-top-color: $grey;
565 border: 2px solid #fff;
568 transition: border-color 0.08s ease-in;
575 border-bottom-right-radius: 3px;
579 text-stroke: 2px #fff;
580 background: rgba(255,255,255,.9);
582 input[type="radio"] {
587 &.active { border-color: darken($green, 10%); }
590 &.active { border-color: darken($green, 20%); }
600 li.disabled { color: $darkgrey; }
610 text-decoration: none;
611 background-color: $lightblue;
613 border-right: 1px solid #fff;
617 border-right: 1px solid #fff;
618 border-radius: 4px 0 0 4px;
622 border-radius: 0 4px 4px 0;
626 background-color: $blue;
638 font-family: monospace;
660 top: $lineheight/2 !important;
662 margin-right: 0px !important;
663 margin-top: 0px !important;
667 .leaflet-popup-scrolled {
668 padding-right: $lineheight;
669 border-bottom: 0px !important;
670 border-top: 0px !important;
673 .leaflet-popup-content-wrapper {
674 border-radius: 4px !important;
677 /* Rules for attribution text under the main map shown on printouts */
687 .attribution_license,
688 .attribution_project {
692 .attribution_notice {
696 .donate-attr { color: darken($green, 10%) !important; }
698 /* Rules for the sidebar */
702 padding: $lineheight/2 $lineheight;
703 // background: $offwhite;
704 // border-bottom: 1px solid $grey;
714 padding: $lineheight;
728 margin: $lineheight auto;
740 /* Rules for the search and direction forms */
742 header .search_forms,
750 padding: $lineheight/2;
751 background-color: $lightgrey;
756 border-radius: 2px 0 0 2px;
762 transition: 300ms linear;
765 input[type=text].overflow {
771 box-shadow: 0px 0px 7px $vibrant-green;
774 input[type=submit].float {
778 border-radius: 0 2px 2px 0;
782 background-color: rgba($red, 0.4);
786 /* this next line is to polyfill the vertical alignment of text within a select element,
787 * which is different between firefox and chrome. */
824 select.routing_engines {
826 margin: 0px 0px 5px 25px;
841 margin: 0px 0px 5px 0px;
848 vertical-align: middle;
852 a.reverse_directions {
854 margin: 0px 0px 5px 25px;
858 /* Rules for the map key which appears in the popout sidebar */
861 .mapkey-table-key img {
867 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
871 /* Rules for search sidebar */
873 #sidebar .search_results_entry {
876 &.selected { background: $list-highlight; }
879 .search_more .loader {
885 .search_results_error {
890 /* Rules for routing */
892 #sidebar_content>table {
893 padding: 5px 20px 10px 15px;
895 border-collapse: separate;
899 background-image: image-url('routing-sprite.png');
902 background-repeat: no-repeat;
904 @for $i from 0 through 25 {
905 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
909 padding: 0 $lineheight $lineheight/4;
912 td.instruction, td.distance {
913 padding-top: $lineheight/5;
914 padding-bottom: $lineheight/5;
915 border-bottom: 1px solid $grey;
926 background: $list-highlight;
928 .routing_engines, #route_from, #route_to { margin-left: 25px; }
929 .routing_marker { width: 15px; position: absolute; cursor: move; }
931 /* Rules for entity history */
936 border-bottom: $keyline;
944 /* Rules for the history sidebar */
946 #sidebar .changesets {
950 &.selected { background: $list-highlight; }
951 /* color is derived from changeset bbox fillColor in history.js */
963 .changeset_more .loader {
969 /* Rules for the browse sidebar */
973 padding: $lineheight/2 $lineheight;
974 border-bottom: 1px solid $grey;
978 word-wrap: break-word;
982 .browse-section:last-of-type {
989 border: 1px solid $lightgrey;
997 padding: 5px 0 5px 10px;
999 border: 1px solid $grey;
1000 border-radius: 4px 4px 0 0;
1001 background-color: $offwhite;
1007 background-color: #FFF;
1008 border: 1px solid $grey;
1010 border-radius: 0 0 4px 4px;
1015 background-color: $offwhite;
1016 border: 1px solid $grey;
1018 table-layout: fixed;
1019 border-collapse: separate;
1022 border-bottom: 1px solid $grey;
1025 tr:last-child th, tr:last-child td {
1033 word-wrap: break-word;
1034 white-space: pre-wrap;
1039 background-color: $offwhite;
1043 border-left: 1px solid $grey;
1044 background-color: #fff;
1047 .colour-preview-box {
1052 border: 1px solid rgba(0, 0, 0, .1);
1053 // add color via inline css on element: background-color: <tag value>;
1058 margin: 0 0 $lineheight/2 0;
1059 padding: 0 $lineheight/2;
1062 .note-comments li, .changeset-comments li {
1063 margin: $lineheight/2 0;
1066 margin: 10px 6px 0 6px;
1075 .subscribe-buttons {
1077 margin: 18px 10px 10px;
1081 .subscribe-buttons input {
1087 span.action-button:hover {
1089 text-decoration: underline;
1094 margin: 0 0 10px 10px;
1098 padding: $lineheight $lineheight $lineheight/2;
1103 padding-bottom: $lineheight/2;
1106 padding: 0 $lineheight;
1116 background: $list-highlight;
1123 /* Rules for export sidebar */
1126 padding: $lineheight;
1128 .export_area_inputs,
1133 .export_area_inputs {
1134 margin-bottom: $lineheight/2;
1135 input[type="text"] {
1143 background: $lightgrey;
1144 border: 1px solid $grey;
1147 #maxlat { margin-top: -1px; }
1150 /* no-r2 */ margin-left: -1px;
1154 /* no-r2 */ margin-right: -1px;
1156 #minlat { margin-bottom: 0; }
1160 margin: $lineheight/4;
1164 margin-top: $lineheight;
1165 margin-bottom: $lineheight;
1169 padding-left: $lineheight/2;
1172 margin-bottom: 10px;
1177 /* Rules for the routing sidebar */
1186 /* Rules for edit pages */
1202 /* Rules for non-map content pages */
1205 background: $lightgrey;
1209 h1, h2, h3, p, ul, ol {
1210 margin-bottom: $lineheight;
1214 margin-top: $lineheight/2;
1222 padding: $lineheight;
1225 /* Overrides for pages that use new layout conventions */
1231 .content-heading .content-inner {
1236 .header-illustration {
1237 background-position: 0 0;
1238 background-repeat: no-repeat;
1246 background-image: image-url("sign-up-illustration.png");
1250 background-image: image-url("confirm-illustration.png");
1254 background-image: image-url("terms-illustration.png");
1262 background-image: image-url("sign-up-illustration-arm.png");
1267 [dir=rtl] .header-illustration {
1268 transform: scaleX(-1);
1271 #content.maximised {
1280 /* Rules for small maps in content areas */
1286 border: 1px solid $grey;
1287 margin-bottom: $lineheight;
1291 /* Rules for the trace list shown by the traces tab etc */
1303 /* Rules for the new trace form */
1308 width: calc(100% - 150px);
1313 /* Rules for the edit trace form */
1316 .standard-form-row p {
1322 width: calc(100% - 150px);
1327 /* Rules for the user profile page */
1332 .userinformation-inner {
1347 .admin-user-info small {
1348 margin-bottom: $lineheight/2;
1350 margin-right: $lineheight;
1355 border-bottom: 1px solid $grey;
1356 padding-bottom: $lineheight;
1359 margin-bottom: $lineheight/2;
1364 margin-top: $lineheight;
1368 .activity-details p {
1374 // Silly exception; remove when user page is redesigned.
1378 p#no_home_location {
1379 margin: $lineheight;
1382 margin-top: $lineheight/4;
1387 /* Rules for the user map */
1389 .content_map .leaflet-popup-content {
1390 margin: $lineheight/2;
1394 /* Rules for user popups on maps */
1400 margin-top: 0 0 0 60px;
1403 img.user_thumbnail {
1405 margin: 0 $lineheight/2 0 0;
1409 /* Rules for the user list */
1415 vertical-align: middle;
1424 #user_list_actions {
1426 margin-top: $lineheight/2;
1429 /* Rules for the diary list page */
1433 padding-top: $lineheight;
1434 padding-bottom: $lineheight/2;
1435 border-top: 1px solid $grey;
1438 margin-top: $lineheight/2;
1442 background-color: #fee;
1446 margin-bottom: $lineheight;
1450 margin-bottom: $lineheight/2;
1454 img.user_thumbnail {
1465 padding-top: $lineheight;
1468 /* Rules for the diary entry page */
1475 border: 1px solid $grey;
1477 margin-bottom: $lineheight;
1480 border-top: 1px solid $grey;
1481 padding-top: $lineheight;
1482 margin-top: $lineheight/2;
1488 border-top: 1px dashed $grey;
1489 padding-top: $lineheight/2;
1490 padding-bottom: $lineheight/2;
1492 margin-top: $lineheight/2;
1493 padding-top: $lineheight;
1494 border-top: 1px solid $grey;
1497 background-color: #fee;
1500 margin-bottom: $lineheight/2;
1509 .diary_entries-show img.user_thumbnail {
1514 .diary-subscribe-buttons {
1520 /* Rules for the log in page */
1522 #login_auth_buttons {
1526 #login_auth_buttons li {
1528 padding: $lineheight/4 $lineheight/2;
1531 /* Rules for the account confirmation page */
1535 border: 1px solid $grey;
1536 padding: $lineheight;
1537 margin-bottom: $lineheight;
1542 list-style: inherit;
1546 list-style-type: lower-alpha;
1551 background: $lightblue;
1553 background: darken($lightblue, $hovercolor);
1558 /* Rules for the account settings page */
1560 #accountForm .user_map {
1564 border: 1px solid $grey;
1567 #accountForm .user_image {
1571 #accountForm #user_image {
1575 #accountForm ul.accountImage-options {
1588 display: inline !important;
1591 .content_map.settings_map {
1596 /* Rules for the oauth settings page */
1598 .oauth_clients .buttons .oauth-edit {
1599 border-radius: 2px 0 0 2px;
1602 .oauth_clients .buttons .oauth-delete {
1603 border-radius: 0 2px 2px 0;
1606 /* Rules for the oauth authorization page */
1608 .oauth-authorize ul {
1612 /* Rules for messages pages */
1616 border: 1px solid $grey;
1618 input[type="submit"] {
1622 border-top: 1px solid $grey;
1626 background: $offwhite;
1639 padding: $lineheight/4;
1650 border-right: 1px solid $lightgrey;
1654 .inbox-row .inbox-mark-read {
1659 margin-bottom: $lineheight;
1660 padding: $lineheight/4 0px 4px 0px;
1661 border-bottom: 1px solid $grey;
1668 .info-line .user_thumbnail_tiny {
1669 vertical-align: middle;
1673 white-space: nowrap;
1682 .inbox-row-unread .inbox-mark-unread {
1686 .messages-show .message-buttons {
1687 margin-top: $lineheight;
1688 margin-bottom: $lineheight * 1.5;
1689 padding-top: $lineheight;
1690 border-top: 1px solid $lightgrey;
1693 .messages-show .buttons .mark-unread-button {
1697 /* Rules for "flash" notice boxes shown at the top of the content area */
1700 padding: $lineheight;
1703 background-color: #ff7070;
1707 background-color: #ffe0cc;
1711 background-color: #CBEEA7;
1715 display: inline-block;
1716 margin-left: $lineheight / 2;
1717 vertical-align: middle;
1720 margin-top: $lineheight * 0.5;
1721 margin-bottom: $lineheight * 0.5;
1734 /* Rules for highlighting fields with rails validation errors */
1737 display: inline-block;
1743 background-color: #ff7070;
1746 /* Rules for rails validation error boxes */
1750 border: 2px solid #ff7070;
1751 padding: 0 $lineheight/2;
1752 margin-bottom: $lineheight;
1753 background-color: #f0f0f0;
1756 margin: 0 -10px 10px -10px;
1757 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1760 background-color: #c00;
1768 padding: $lineheight/4;
1772 /* Rules for forms */
1776 margin-bottom: $lineheight;
1778 label.standard-label {
1780 margin-bottom: $lineheight/4;
1781 font-size: $typeheight;
1785 label.standard-label.secondary {
1786 display: inline-block;
1787 font-weight: normal;
1790 font-weight: normal;
1797 margin-top: $lineheight;
1798 padding-top: $lineheight;
1799 border-top: 1px solid $lightgrey;
1801 .horizontal-list .standard-form-row {
1803 padding-right: 10px;
1805 .standard-form-row {
1806 margin-bottom: $lineheight/2;
1813 list-style-type: none;
1815 input[type="checkbox"],
1816 input[type="radio"] {
1822 #remember_me_openid {
1830 input[type="checkbox"],
1831 input[type="radio"] {
1836 input[type="email"],
1838 input[type="password"],
1841 background-color: #fff;
1842 border: 1px solid $grey;
1848 &.field_with_errors {
1849 border: 2px solid #ff7070;
1860 /* Rules for user images */
1865 border: 1px solid $grey;
1866 margin-bottom: $lineheight;
1868 margin-right: $lineheight;
1871 img.user_thumbnail {
1874 border: 1px solid $grey;
1875 margin-right: $lineheight;
1878 img.user_thumbnail_tiny {
1883 border: 1px solid $grey;
1886 /* Rules for geo microformats */
1889 border-bottom: none;
1892 /* General styles for action lists / subnavs / pager navs */
1894 ul.secondary-actions {
1900 display: inline-block;
1907 border-left: 1px solid $grey;
1908 padding-left: $lineheight/2;
1909 margin-right: $lineheight/2;
1920 div.secondary-actions {
1925 /* Utility for managing inner content areas */
1927 .inner22 { padding: $lineheight;}
1929 .inner12 { padding: $lineheight/2 $lineheight;}
1931 .inner11 { padding: $lineheight/2;}
1933 .inner20 { padding: $lineheight 0;}
1935 .inner02 { padding: 0 $lineheight;}
1937 /* Utility for general button styles */
1939 input[type="button"],
1940 input[type="submit"],
1941 input[type="reset"],
1945 display: inline-block;
1946 padding: $lineheight/4 $lineheight/2;
1947 min-height: 20px + $lineheight/2;
1949 margin: 0 0 $lineheight/2 0;
1955 background: darken($blue, $hovercolor);
1956 text-decoration: none;
1959 background: $lightblue;
1961 background: darken($lightblue, $hovercolor);
1965 background: $lightgrey;
1967 background: $lightgrey;
1975 input[type="button"],
1976 input[type="submit"],
1977 input[type="reset"] {
1978 line-height: normal;
1987 input[type="submit"],
1988 input[type="button"],
1989 input[type="reset"],
1992 box-sizing: border-box;
1998 border-right:1px solid white;
1999 text-overflow: ellipsis;
2000 white-space: nowrap;
2004 .button:first-child,
2005 .button_to:first-child {
2006 border-radius:2px 0 0 2px;
2010 .button_to:last-child {
2011 border-radius:0 2px 2px 0;
2012 border-right-width: 0;
2016 .button_to:only-child,
2017 *[value="Hide"] + input:last-child,
2018 *[value="Hide"] + .button:last-child,
2019 *[value="Hide"] + .button_to:last-child {
2021 border-right-width: 0;
2023 /* if a 3-button set has a hidden middle button */
2024 *[value="Hide"] + input:nth-child(3),
2025 *[value="Hide"] + .button:nth-child(3),
2026 *[value="Hide"] + .button_to:nth-child(3) {
2027 border-radius:0 2px 2px 0;
2028 border-right-width: 0;
2030 /* if a 3-button set starts with a hidden button */
2031 *[value="Hide"] + input:nth-child(2):not(:last-child),
2032 *[value="Hide"] + .button:nth-child(2):not(:last-child),
2033 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2034 border-radius:2px 0 0 2px;
2035 border-right-width: 1px;
2039 /* Rules for doing distinct colour of alternate table rows */
2043 background: $offwhite;
2051 /* Rules for OpenID logo */
2054 vertical-align: text-bottom;
2058 /* Rules for rich text */
2064 background: $lightgrey;
2070 background: $lightgrey;
2072 white-space: pre-wrap;
2080 padding: $lineheight;
2081 background-color: $offwhite;
2088 border-left: $lineheight solid $offwhite;
2089 padding-left: $lineheight;
2095 .diary_post .richtext {
2096 margin-top: $lineheight;
2099 .comments .richtext {
2104 /* Rules for rich text editors */
2106 input.richtext_title[type="text"] {
2108 width: calc(100% - 235px);
2110 @media only screen and (max-width:768px) {
2115 .richtext_container {
2116 margin-bottom: $lineheight;
2120 width: calc(100% - 235px);
2121 display: inline-block;
2122 vertical-align: top;
2124 @media only screen and (max-width:768px) {
2129 display: inline-block;
2130 padding: $lineheight;
2131 background-color: $offwhite;
2135 background-image: image-url("loading.gif");
2136 background-repeat: no-repeat;
2137 background-position: center;
2147 display: inline-block;
2148 vertical-align: top;
2150 background-color: $offwhite;
2151 padding: $lineheight/2;
2159 border-bottom: 1px solid $grey;
2160 margin-bottom: $lineheight/4;
2161 padding-bottom: $lineheight/4;
2164 li h4, li span, li p {
2165 display: inline-block;
2166 vertical-align: top;
2177 margin-left: $lineheight/2;
2178 margin-bottom: $lineheight/4;
2179 white-space: nowrap;
2184 /* Rules for the user notes list */
2188 background-color: $lightgrey;
2200 /* Rules for the iD editor */
2207 /* Rules for the "Welcome" page */
2208 .site-welcome, .site-fixthemap {
2218 background-image: image-url("welcome-sprite.png");
2219 background-size: 500px 250px;
2225 padding-bottom: 20px;
2227 margin-bottom: 10px;
2239 /* no-r2 */ background-position: -50px 0;
2244 vertical-align: middle;
2248 /* no-r2 */ background-position: -100px 0;
2252 /* no-r2 */ background-position: -150px 0;
2256 /* no-r2 */ background-position: -200px 0;
2260 /* no-r2 */ background-position: -250px 0;
2264 /* no-r2 */ background-position: -300px 0;
2268 /* no-r2 */ background-position: -350px 0;
2277 text-decoration: none;
2281 background-color: #333;
2286 .site-about #content {
2287 background-color: $lightgrey;
2288 background-position: 50% 50%;
2289 background-repeat: no-repeat;
2290 background-size: cover;
2291 background-attachment: fixed;
2308 padding: 170px 40px 20px;
2310 background: rgba(0, 0, 0, .8);
2320 color: $vibrant-green;
2330 background-position: 0 50%;
2331 background-repeat: no-repeat;
2332 background-image: image-url('about/osm.png');
2333 background-size: cover;
2334 background-color: $vibrant-green;
2344 padding: 20px 20px 20px 40px;
2345 font: 500 20px/24px Helvetica, Arial, sans-serif;
2346 white-space: nowrap;
2348 background: $vibrant-green;
2352 display: inline-block;
2362 vertical-align: middle;
2363 background: 40px 40px image-url('about/sprite.png') no-repeat;
2367 background-position: 0px 0px;
2371 background-position: 0px -40px;
2375 background-position: 0px -80px;
2379 background-position: 0px -120px;
2383 background-position: 0px -160px;
2387 background-position: -45px -160px;
2394 @media only screen and (max-width:960px) {
2395 .header-illustration.new-user-arm {
2401 background: $lightgrey;
2407 white-space: nowrap;