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%);
220 color: darken($darkgrey, 25%);
224 .btn-outline-secondary {
225 @include button-outline-variant($darkgrey);
230 .btn-outline-secondary {
231 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
239 img.user_thumbnail_tiny {
245 display: inline-block;
247 margin: 3px 0 3px 3px;
248 background-color: lighten($grey, 10%);
260 #compact-secondary-nav {
265 #compact-secondary-nav {
266 display: inline-block;
273 /* Utility for styling notification numbers */
276 padding: 2px $lineheight/4;
278 background: lighten($green, 30%);
284 /* Rules for the message shown in place of the map when javascript is disabled */
292 /* Rules for Leaflet maps */
294 .leaflet-control .control-button {
298 background-color: #333;
299 background-color: rgba(0,0,0,.6);
300 border-radius: 4px 0 0 4px;
305 background-color: black;
310 background-color: #333;
311 background-color: rgba(0,0,0,.5);
316 background-color: $vibrant-green;
324 .leaflet-control .zoomin,
325 .control-layers .control-button {
327 border-radius: 4px 0 0 0;
330 .leaflet-control .zoomout,
331 .control-key .control-button {
336 .control-locate .control-button,
337 .control-share .control-button {
338 border-radius: 0 0 0 4px;
341 /* Rules for the sidebar and main map area */
361 width: $sidebarWidth;
376 padding: $lineheight $lineheight $lineheight/2;
381 margin-top: $lineheight;
382 margin-bottom: $lineheight/2;
395 pointer-events: none;
420 .overlay-sidebar #sidebar {
448 padding: $lineheight/2 $lineheight $lineheight;
462 border-right: 1px solid #fff;
472 width: $sidebarWidth;
488 .leaflet-marker-draggable {
503 border-bottom: 1px solid $grey;
513 border:1px solid $grey;
518 border: 1px solid $grey;
520 border-top-color: $grey;
544 border: 2px solid #fff;
547 transition: border-color 0.08s ease-in;
554 border-bottom-right-radius: 3px;
558 text-stroke: 2px #fff;
559 background: rgba(255,255,255,.9);
561 input[type="radio"] {
566 &.active { border-color: darken($green, 10%); }
569 &.active { border-color: darken($green, 20%); }
579 li.disabled { color: $darkgrey; }
589 text-decoration: none;
590 background-color: $lightblue;
592 border-right: 1px solid #fff;
596 border-right: 1px solid #fff;
597 border-radius: 4px 0 0 4px;
601 border-radius: 0 4px 4px 0;
605 background-color: $blue;
617 font-family: monospace;
639 top: $lineheight/2 !important;
641 margin-right: 0px !important;
642 margin-top: 0px !important;
646 .leaflet-popup-scrolled {
647 padding-right: $lineheight;
648 border-bottom: 0px !important;
649 border-top: 0px !important;
652 .leaflet-popup-content-wrapper {
653 border-radius: 4px !important;
656 /* Rules for attribution text under the main map shown on printouts */
666 .attribution_license,
667 .attribution_project {
671 .attribution_notice {
675 .donate-attr { color: darken($green, 10%) !important; }
677 /* Rules for the sidebar */
681 padding: $lineheight/2 $lineheight;
682 // background: $offwhite;
683 // border-bottom: 1px solid $grey;
693 padding: $lineheight;
707 margin: $lineheight auto;
719 /* Rules for the search and direction forms */
721 header .search_forms,
729 padding: $lineheight/2;
730 background-color: $lightgrey;
735 border-radius: 2px 0 0 2px;
741 transition: 300ms linear;
744 input[type=text].overflow {
750 box-shadow: 0px 0px 7px $vibrant-green;
753 input[type=submit].float {
757 border-radius: 0 2px 2px 0;
761 background-color: rgba($red, 0.4);
765 /* this next line is to polyfill the vertical alignment of text within a select element,
766 * which is different between firefox and chrome. */
803 select.routing_engines {
805 margin: 0px 0px 5px 25px;
820 margin: 0px 0px 5px 0px;
827 vertical-align: middle;
831 a.reverse_directions {
833 margin: 0px 0px 5px 25px;
837 /* Rules for the map key which appears in the popout sidebar */
840 .mapkey-table-key img {
846 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
850 /* Rules for search sidebar */
852 #sidebar .search_results_entry {
855 &.selected { background: $list-highlight; }
858 .search_more .loader {
864 .search_results_error {
869 /* Rules for routing */
871 #sidebar_content>table {
872 padding: 5px 20px 10px 15px;
874 border-collapse: separate;
878 background-image: image-url('routing-sprite.png');
881 background-repeat: no-repeat;
883 @for $i from 0 through 25 {
884 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
888 padding: 0 $lineheight $lineheight/4;
891 td.instruction, td.distance {
892 padding-top: $lineheight/5;
893 padding-bottom: $lineheight/5;
894 border-bottom: 1px solid $grey;
905 background: $list-highlight;
907 .routing_engines, #route_from, #route_to { margin-left: 25px; }
908 .routing_marker { width: 15px; position: absolute; cursor: move; }
910 /* Rules for entity history */
915 border-bottom: $keyline;
923 /* Rules for the history sidebar */
925 #sidebar .changesets {
929 &.selected { background: $list-highlight; }
930 /* color is derived from changeset bbox fillColor in history.js */
942 .changeset_more .loader {
948 /* Rules for the browse sidebar */
952 padding: $lineheight/2 $lineheight;
953 border-bottom: 1px solid $grey;
957 word-wrap: break-word;
961 .browse-section:last-of-type {
968 border: 1px solid $lightgrey;
976 padding: 5px 0 5px 10px;
978 border: 1px solid $grey;
979 border-radius: 4px 4px 0 0;
980 background-color: $offwhite;
986 background-color: #FFF;
987 border: 1px solid $grey;
989 border-radius: 0 0 4px 4px;
994 background-color: $offwhite;
995 border: 1px solid $grey;
998 border-collapse: separate;
1001 border-bottom: 1px solid $grey;
1004 tr:last-child th, tr:last-child td {
1012 word-wrap: break-word;
1013 white-space: pre-wrap;
1018 background-color: $offwhite;
1022 border-left: 1px solid $grey;
1023 background-color: #fff;
1026 .colour-preview-box {
1031 border: 1px solid rgba(0, 0, 0, .1);
1032 // add color via inline css on element: background-color: <tag value>;
1037 margin: 0 0 $lineheight/2 0;
1038 padding: 0 $lineheight/2;
1041 .note-comments li, .changeset-comments li {
1042 margin: $lineheight/2 0;
1045 margin: 10px 6px 0 6px;
1054 .subscribe-buttons {
1056 margin: 18px 10px 10px;
1060 .subscribe-buttons input {
1066 span.action-button:hover {
1068 text-decoration: underline;
1073 margin: 0 0 10px 10px;
1077 padding: $lineheight $lineheight $lineheight/2;
1082 padding-bottom: $lineheight/2;
1085 padding: 0 $lineheight;
1095 background: $list-highlight;
1102 /* Rules for export sidebar */
1105 padding: $lineheight;
1107 .export_area_inputs,
1112 .export_area_inputs {
1113 margin-bottom: $lineheight/2;
1114 input[type="text"] {
1122 background: $lightgrey;
1123 border: 1px solid $grey;
1126 #maxlat { margin-top: -1px; }
1129 /* no-r2 */ margin-left: -1px;
1133 /* no-r2 */ margin-right: -1px;
1135 #minlat { margin-bottom: 0; }
1139 margin: $lineheight/4;
1143 margin-top: $lineheight;
1144 margin-bottom: $lineheight;
1148 padding-left: $lineheight/2;
1151 margin-bottom: 10px;
1156 /* Rules for the routing sidebar */
1165 /* Rules for edit pages */
1181 /* Rules for non-map content pages */
1184 background: $lightgrey;
1188 h1, h2, h3, p, ul, ol {
1189 margin-bottom: $lineheight;
1193 margin-top: $lineheight/2;
1201 padding: $lineheight;
1204 /* Overrides for pages that use new layout conventions */
1210 .content-heading .content-inner {
1215 .header-illustration {
1216 background-position: 0 0;
1217 background-repeat: no-repeat;
1225 background-image: image-url("sign-up-illustration.png");
1229 background-image: image-url("confirm-illustration.png");
1233 background-image: image-url("terms-illustration.png");
1241 background-image: image-url("sign-up-illustration-arm.png");
1246 [dir=rtl] .header-illustration {
1247 transform: scaleX(-1);
1250 #content.maximised {
1259 /* Rules for small maps in content areas */
1265 border: 1px solid $grey;
1266 margin-bottom: $lineheight;
1270 /* Rules for the trace list shown by the traces tab etc */
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 */
1595 border: 1px solid $grey;
1597 input[type="submit"] {
1601 border-top: 1px solid $grey;
1605 background: $offwhite;
1618 padding: $lineheight/4;
1629 border-right: 1px solid $lightgrey;
1633 .inbox-row .inbox-mark-read {
1638 margin-bottom: $lineheight;
1639 padding: $lineheight/4 0px 4px 0px;
1640 border-bottom: 1px solid $grey;
1647 .info-line .user_thumbnail_tiny {
1648 vertical-align: middle;
1652 white-space: nowrap;
1661 .inbox-row-unread .inbox-mark-unread {
1665 .messages-show .message-buttons {
1666 margin-top: $lineheight;
1667 margin-bottom: $lineheight * 1.5;
1668 padding-top: $lineheight;
1669 border-top: 1px solid $lightgrey;
1672 .messages-show .buttons .mark-unread-button {
1676 /* Rules for "flash" notice boxes shown at the top of the content area */
1679 padding: $lineheight;
1682 background-color: #ff7070;
1686 background-color: #ffe0cc;
1690 background-color: #CBEEA7;
1694 display: inline-block;
1695 margin-left: $lineheight / 2;
1696 vertical-align: middle;
1699 margin-top: $lineheight * 0.5;
1700 margin-bottom: $lineheight * 0.5;
1713 /* Rules for highlighting fields with rails validation errors */
1716 display: inline-block;
1722 background-color: #ff7070;
1725 /* Rules for rails validation error boxes */
1729 border: 2px solid #ff7070;
1730 padding: 0 $lineheight/2;
1731 margin-bottom: $lineheight;
1732 background-color: #f0f0f0;
1735 margin: 0 -10px 10px -10px;
1736 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1739 background-color: #c00;
1747 padding: $lineheight/4;
1751 /* Rules for forms */
1755 margin-bottom: $lineheight;
1757 label.standard-label {
1759 margin-bottom: $lineheight/4;
1760 font-size: $typeheight;
1764 label.standard-label.secondary {
1765 display: inline-block;
1766 font-weight: normal;
1769 font-weight: normal;
1776 margin-top: $lineheight;
1777 padding-top: $lineheight;
1778 border-top: 1px solid $lightgrey;
1780 .horizontal-list .standard-form-row {
1782 padding-right: 10px;
1784 .standard-form-row {
1785 margin-bottom: $lineheight/2;
1792 list-style-type: none;
1794 input[type="checkbox"],
1795 input[type="radio"] {
1801 #remember_me_openid {
1809 input[type="checkbox"],
1810 input[type="radio"] {
1815 input[type="email"],
1817 input[type="password"],
1820 background-color: #fff;
1821 border: 1px solid $grey;
1827 &.field_with_errors {
1828 border: 2px solid #ff7070;
1839 /* Rules for user images */
1844 border: 1px solid $grey;
1845 margin-bottom: $lineheight;
1847 margin-right: $lineheight;
1850 img.user_thumbnail {
1853 border: 1px solid $grey;
1854 margin-right: $lineheight;
1857 img.user_thumbnail_tiny {
1862 border: 1px solid $grey;
1865 /* Rules for geo microformats */
1868 border-bottom: none;
1871 /* General styles for action lists / subnavs / pager navs */
1873 ul.secondary-actions {
1879 display: inline-block;
1886 border-left: 1px solid $grey;
1887 padding-left: $lineheight/2;
1888 margin-right: $lineheight/2;
1899 div.secondary-actions {
1904 /* Utility for managing inner content areas */
1906 .inner22 { padding: $lineheight;}
1908 .inner12 { padding: $lineheight/2 $lineheight;}
1910 .inner11 { padding: $lineheight/2;}
1912 .inner20 { padding: $lineheight 0;}
1914 .inner02 { padding: 0 $lineheight;}
1916 /* Utility for general button styles */
1918 input[type="button"],
1919 input[type="submit"],
1920 input[type="reset"],
1924 display: inline-block;
1925 padding: $lineheight/4 $lineheight/2;
1926 min-height: 20px + $lineheight/2;
1928 margin: 0 0 $lineheight/2 0;
1934 background: darken($blue, $hovercolor);
1935 text-decoration: none;
1938 background: $lightblue;
1940 background: darken($lightblue, $hovercolor);
1944 background: $lightgrey;
1946 background: $lightgrey;
1954 input[type="button"],
1955 input[type="submit"],
1956 input[type="reset"] {
1957 line-height: normal;
1966 input[type="submit"],
1967 input[type="button"],
1968 input[type="reset"],
1971 box-sizing: border-box;
1977 border-right:1px solid white;
1978 text-overflow: ellipsis;
1979 white-space: nowrap;
1983 .button:first-child,
1984 .button_to:first-child {
1985 border-radius:2px 0 0 2px;
1989 .button_to:last-child {
1990 border-radius:0 2px 2px 0;
1991 border-right-width: 0;
1995 .button_to:only-child,
1996 *[value="Hide"] + input:last-child,
1997 *[value="Hide"] + .button:last-child,
1998 *[value="Hide"] + .button_to:last-child {
2000 border-right-width: 0;
2002 /* if a 3-button set has a hidden middle button */
2003 *[value="Hide"] + input:nth-child(3),
2004 *[value="Hide"] + .button:nth-child(3),
2005 *[value="Hide"] + .button_to:nth-child(3) {
2006 border-radius:0 2px 2px 0;
2007 border-right-width: 0;
2009 /* if a 3-button set starts with a hidden button */
2010 *[value="Hide"] + input:nth-child(2):not(:last-child),
2011 *[value="Hide"] + .button:nth-child(2):not(:last-child),
2012 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2013 border-radius:2px 0 0 2px;
2014 border-right-width: 1px;
2018 /* Rules for doing distinct colour of alternate table rows */
2022 background: $offwhite;
2030 /* Rules for OpenID logo */
2033 vertical-align: text-bottom;
2037 /* Rules for rich text */
2043 background: $lightgrey;
2049 background: $lightgrey;
2051 white-space: pre-wrap;
2059 padding: $lineheight;
2060 background-color: $offwhite;
2067 border-left: $lineheight solid $offwhite;
2068 padding-left: $lineheight;
2074 .diary_post .richtext {
2075 margin-top: $lineheight;
2078 .comments .richtext {
2083 /* Rules for rich text editors */
2085 input.richtext_title[type="text"] {
2087 width: calc(100% - 235px);
2089 @media only screen and (max-width:768px) {
2094 .richtext_container {
2095 margin-bottom: $lineheight;
2099 width: calc(100% - 235px);
2100 display: inline-block;
2101 vertical-align: top;
2103 @media only screen and (max-width:768px) {
2108 display: inline-block;
2109 padding: $lineheight;
2110 background-color: $offwhite;
2114 background-image: image-url("loading.gif");
2115 background-repeat: no-repeat;
2116 background-position: center;
2126 display: inline-block;
2127 vertical-align: top;
2129 background-color: $offwhite;
2130 padding: $lineheight/2;
2138 border-bottom: 1px solid $grey;
2139 margin-bottom: $lineheight/4;
2140 padding-bottom: $lineheight/4;
2143 li h4, li span, li p {
2144 display: inline-block;
2145 vertical-align: top;
2156 margin-left: $lineheight/2;
2157 margin-bottom: $lineheight/4;
2158 white-space: nowrap;
2163 /* Rules for the user notes list */
2167 background-color: $lightgrey;
2179 /* Rules for the iD editor */
2186 /* Rules for the "Welcome" page */
2187 .site-welcome, .site-fixthemap {
2197 background-image: image-url("welcome-sprite.png");
2198 background-size: 500px 250px;
2204 padding-bottom: 20px;
2206 margin-bottom: 10px;
2218 /* no-r2 */ background-position: -50px 0;
2223 vertical-align: middle;
2227 /* no-r2 */ background-position: -100px 0;
2231 /* no-r2 */ background-position: -150px 0;
2235 /* no-r2 */ background-position: -200px 0;
2239 /* no-r2 */ background-position: -250px 0;
2243 /* no-r2 */ background-position: -300px 0;
2247 /* no-r2 */ background-position: -350px 0;
2256 text-decoration: none;
2260 background-color: #333;
2265 .site-about #content {
2266 background-color: $lightgrey;
2267 background-position: 50% 50%;
2268 background-repeat: no-repeat;
2269 background-size: cover;
2270 background-attachment: fixed;
2287 padding: 170px 40px 20px;
2289 background: rgba(0, 0, 0, .8);
2299 color: $vibrant-green;
2309 background-position: 0 50%;
2310 background-repeat: no-repeat;
2311 background-image: image-url('about/osm.png');
2312 background-size: cover;
2313 background-color: $vibrant-green;
2323 padding: 20px 20px 20px 40px;
2324 font: 500 20px/24px Helvetica, Arial, sans-serif;
2325 white-space: nowrap;
2327 background: $vibrant-green;
2331 display: inline-block;
2341 vertical-align: middle;
2342 background: 40px 40px image-url('about/sprite.png') no-repeat;
2346 background-position: 0px 0px;
2350 background-position: 0px -40px;
2354 background-position: 0px -80px;
2358 background-position: 0px -120px;
2362 background-position: 0px -160px;
2366 background-position: -45px -160px;
2373 @media only screen and (max-width:960px) {
2374 .header-illustration.new-user-arm {
2380 background: $lightgrey;
2386 white-space: nowrap;