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);
205 color: darken($darkgrey, 25%);
209 .btn-outline-secondary {
210 @include button-outline-variant($darkgrey);
215 .btn-outline-secondary {
216 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
217 // @include button-outline-variant($grey, $grey, white, $grey);
222 img.user_thumbnail_tiny {
228 display: inline-block;
230 margin: 3px 0 3px 3px;
231 background-color: lighten($grey, 10%);
243 #compact-secondary-nav {
248 #compact-secondary-nav {
249 display: inline-block;
256 /* Utility for styling notification numbers */
259 padding: 2px $lineheight/4;
261 background: lighten($green, 30%);
267 /* Rules for the message shown in place of the map when javascript is disabled */
275 /* Rules for Leaflet maps */
277 .leaflet-control .control-button {
281 background-color: #333;
282 background-color: rgba(0,0,0,.6);
283 border-radius: 4px 0 0 4px;
288 background-color: black;
293 background-color: #333;
294 background-color: rgba(0,0,0,.5);
299 background-color: $vibrant-green;
307 .leaflet-control .zoomin,
308 .control-layers .control-button {
310 border-radius: 4px 0 0 0;
313 .leaflet-control .zoomout,
314 .control-key .control-button {
319 .control-locate .control-button,
320 .control-share .control-button {
321 border-radius: 0 0 0 4px;
324 /* Rules for the sidebar and main map area */
344 width: $sidebarWidth;
359 padding: $lineheight $lineheight $lineheight/2;
364 margin-top: $lineheight;
365 margin-bottom: $lineheight/2;
378 pointer-events: none;
403 .overlay-sidebar #sidebar {
431 padding: $lineheight/2 $lineheight $lineheight;
445 border-right: 1px solid #fff;
455 width: $sidebarWidth;
471 .leaflet-marker-draggable {
486 border-bottom: 1px solid $grey;
496 border:1px solid $grey;
501 border: 1px solid $grey;
503 border-top-color: $grey;
527 border: 2px solid #fff;
530 transition: border-color 0.08s ease-in;
537 border-bottom-right-radius: 3px;
541 text-stroke: 2px #fff;
542 background: rgba(255,255,255,.9);
544 input[type="radio"] {
549 &.active { border-color: darken($green, 10%); }
552 &.active { border-color: darken($green, 20%); }
562 li.disabled { color: $darkgrey; }
572 text-decoration: none;
573 background-color: $lightblue;
575 border-right: 1px solid #fff;
579 border-right: 1px solid #fff;
580 border-radius: 4px 0 0 4px;
584 border-radius: 0 4px 4px 0;
588 background-color: $blue;
600 font-family: monospace;
622 top: $lineheight/2 !important;
624 margin-right: 0px !important;
625 margin-top: 0px !important;
629 .leaflet-popup-scrolled {
630 padding-right: $lineheight;
631 border-bottom: 0px !important;
632 border-top: 0px !important;
635 .leaflet-popup-content-wrapper {
636 border-radius: 4px !important;
639 /* Rules for attribution text under the main map shown on printouts */
649 .attribution_license,
650 .attribution_project {
654 .attribution_notice {
658 .donate-attr { color: darken($green, 10%) !important; }
660 /* Rules for the sidebar */
664 padding: $lineheight/2 $lineheight;
665 // background: $offwhite;
666 // border-bottom: 1px solid $grey;
676 padding: $lineheight;
690 margin: $lineheight auto;
702 /* Rules for the search and direction forms */
704 header .search_forms,
712 padding: $lineheight/2;
713 background-color: $lightgrey;
718 border-radius: 2px 0 0 2px;
724 transition: 300ms linear;
727 input[type=text].overflow {
733 box-shadow: 0px 0px 7px $vibrant-green;
736 input[type=submit].float {
740 border-radius: 0 2px 2px 0;
744 background-color: rgba($red, 0.4);
748 /* this next line is to polyfill the vertical alignment of text within a select element,
749 * which is different between firefox and chrome. */
786 select.routing_engines {
788 margin: 0px 0px 5px 25px;
803 margin: 0px 0px 5px 0px;
810 vertical-align: middle;
814 a.reverse_directions {
816 margin: 0px 0px 5px 25px;
820 /* Rules for the map key which appears in the popout sidebar */
823 .mapkey-table-key img {
829 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
833 /* Rules for search sidebar */
835 #sidebar .search_results_entry {
838 &.selected { background: $list-highlight; }
841 .search_more .loader {
847 .search_results_error {
852 /* Rules for routing */
854 #sidebar_content>table {
855 padding: 5px 20px 10px 15px;
857 border-collapse: separate;
861 background-image: image-url('routing-sprite.png');
864 background-repeat: no-repeat;
866 @for $i from 0 through 25 {
867 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
871 padding: 0 $lineheight $lineheight/4;
874 td.instruction, td.distance {
875 padding-top: $lineheight/5;
876 padding-bottom: $lineheight/5;
877 border-bottom: 1px solid $grey;
888 background: $list-highlight;
890 .routing_engines, #route_from, #route_to { margin-left: 25px; }
891 .routing_marker { width: 15px; position: absolute; cursor: move; }
893 /* Rules for entity history */
898 border-bottom: $keyline;
906 /* Rules for the history sidebar */
908 #sidebar .changesets {
912 &.selected { background: $list-highlight; }
913 /* color is derived from changeset bbox fillColor in history.js */
925 .changeset_more .loader {
931 /* Rules for the browse sidebar */
935 padding: $lineheight/2 $lineheight;
936 border-bottom: 1px solid $grey;
940 word-wrap: break-word;
944 .browse-section:last-of-type {
951 border: 1px solid $lightgrey;
959 padding: 5px 0 5px 10px;
961 border: 1px solid $grey;
962 border-radius: 4px 4px 0 0;
963 background-color: $offwhite;
969 background-color: #FFF;
970 border: 1px solid $grey;
972 border-radius: 0 0 4px 4px;
977 background-color: $offwhite;
978 border: 1px solid $grey;
981 border-collapse: separate;
984 border-bottom: 1px solid $grey;
987 tr:last-child th, tr:last-child td {
995 word-wrap: break-word;
996 white-space: pre-wrap;
1001 background-color: $offwhite;
1005 border-left: 1px solid $grey;
1006 background-color: #fff;
1009 .colour-preview-box {
1014 border: 1px solid rgba(0, 0, 0, .1);
1015 // add color via inline css on element: background-color: <tag value>;
1020 margin: 0 0 $lineheight/2 0;
1021 padding: 0 $lineheight/2;
1024 .note-comments li, .changeset-comments li {
1025 margin: $lineheight/2 0;
1028 margin: 10px 6px 0 6px;
1037 .subscribe-buttons {
1039 margin: 18px 10px 10px;
1043 .subscribe-buttons input {
1049 span.action-button:hover {
1051 text-decoration: underline;
1056 margin: 0 0 10px 10px;
1060 padding: $lineheight $lineheight $lineheight/2;
1065 padding-bottom: $lineheight/2;
1068 padding: 0 $lineheight;
1078 background: $list-highlight;
1085 /* Rules for export sidebar */
1088 padding: $lineheight;
1090 .export_area_inputs,
1095 .export_area_inputs {
1096 margin-bottom: $lineheight/2;
1097 input[type="text"] {
1105 background: $lightgrey;
1106 border: 1px solid $grey;
1109 #maxlat { margin-top: -1px; }
1112 /* no-r2 */ margin-left: -1px;
1116 /* no-r2 */ margin-right: -1px;
1118 #minlat { margin-bottom: 0; }
1122 margin: $lineheight/4;
1126 margin-top: $lineheight;
1127 margin-bottom: $lineheight;
1131 padding-left: $lineheight/2;
1134 margin-bottom: 10px;
1139 /* Rules for the routing sidebar */
1148 /* Rules for edit pages */
1164 /* Rules for non-map content pages */
1167 background: $lightgrey;
1171 h1, h2, h3, p, ul, ol {
1172 margin-bottom: $lineheight;
1176 margin-top: $lineheight/2;
1184 padding: $lineheight;
1187 /* Overrides for pages that use new layout conventions */
1193 .content-heading .content-inner {
1198 .header-illustration {
1199 background-position: 0 0;
1200 background-repeat: no-repeat;
1208 background-image: image-url("sign-up-illustration.png");
1212 background-image: image-url("confirm-illustration.png");
1216 background-image: image-url("terms-illustration.png");
1224 background-image: image-url("sign-up-illustration-arm.png");
1229 [dir=rtl] .header-illustration {
1230 transform: scaleX(-1);
1233 #content.maximised {
1242 /* Rules for small maps in content areas */
1248 border: 1px solid $grey;
1249 margin-bottom: $lineheight;
1253 /* Rules for the trace list shown by the traces tab etc */
1265 /* Rules for the new trace form */
1270 width: calc(100% - 150px);
1275 /* Rules for the edit trace form */
1278 .standard-form-row p {
1284 width: calc(100% - 150px);
1289 /* Rules for the user profile page */
1294 .userinformation-inner {
1309 .admin-user-info small {
1310 margin-bottom: $lineheight/2;
1312 margin-right: $lineheight;
1317 border-bottom: 1px solid $grey;
1318 padding-bottom: $lineheight;
1321 margin-bottom: $lineheight/2;
1326 margin-top: $lineheight;
1330 .activity-details p {
1336 // Silly exception; remove when user page is redesigned.
1340 p#no_home_location {
1341 margin: $lineheight;
1344 margin-top: $lineheight/4;
1349 /* Rules for the user map */
1351 .content_map .leaflet-popup-content {
1352 margin: $lineheight/2;
1356 /* Rules for user popups on maps */
1362 margin-top: 0 0 0 60px;
1365 img.user_thumbnail {
1367 margin: 0 $lineheight/2 0 0;
1371 /* Rules for the user list */
1377 vertical-align: middle;
1386 #user_list_actions {
1388 margin-top: $lineheight/2;
1391 /* Rules for the diary list page */
1395 padding-top: $lineheight;
1396 padding-bottom: $lineheight/2;
1397 border-top: 1px solid $grey;
1400 margin-top: $lineheight/2;
1404 background-color: #fee;
1408 margin-bottom: $lineheight;
1412 margin-bottom: $lineheight/2;
1416 img.user_thumbnail {
1427 padding-top: $lineheight;
1430 /* Rules for the diary entry page */
1437 border: 1px solid $grey;
1439 margin-bottom: $lineheight;
1442 border-top: 1px solid $grey;
1443 padding-top: $lineheight;
1444 margin-top: $lineheight/2;
1450 border-top: 1px dashed $grey;
1451 padding-top: $lineheight/2;
1452 padding-bottom: $lineheight/2;
1454 margin-top: $lineheight/2;
1455 padding-top: $lineheight;
1456 border-top: 1px solid $grey;
1459 background-color: #fee;
1462 margin-bottom: $lineheight/2;
1471 .diary_entries-show img.user_thumbnail {
1476 .diary-subscribe-buttons {
1482 /* Rules for the log in page */
1484 #login_auth_buttons {
1488 #login_auth_buttons li {
1490 padding: $lineheight/4 $lineheight/2;
1493 /* Rules for the account confirmation page */
1497 border: 1px solid $grey;
1498 padding: $lineheight;
1499 margin-bottom: $lineheight;
1504 list-style: inherit;
1508 list-style-type: lower-alpha;
1513 background: $lightblue;
1515 background: darken($lightblue, $hovercolor);
1520 /* Rules for the account settings page */
1522 #accountForm .user_map {
1526 border: 1px solid $grey;
1529 #accountForm .user_image {
1533 #accountForm #user_image {
1537 #accountForm ul.accountImage-options {
1550 display: inline !important;
1553 .content_map.settings_map {
1558 /* Rules for the oauth settings page */
1560 .oauth_clients .buttons .oauth-edit {
1561 border-radius: 2px 0 0 2px;
1564 .oauth_clients .buttons .oauth-delete {
1565 border-radius: 0 2px 2px 0;
1568 /* Rules for the oauth authorization page */
1570 .oauth-authorize ul {
1574 /* Rules for messages pages */
1578 border: 1px solid $grey;
1580 input[type="submit"] {
1584 border-top: 1px solid $grey;
1588 background: $offwhite;
1601 padding: $lineheight/4;
1612 border-right: 1px solid $lightgrey;
1616 .inbox-row .inbox-mark-read {
1621 margin-bottom: $lineheight;
1622 padding: $lineheight/4 0px 4px 0px;
1623 border-bottom: 1px solid $grey;
1630 .info-line .user_thumbnail_tiny {
1631 vertical-align: middle;
1635 white-space: nowrap;
1644 .inbox-row-unread .inbox-mark-unread {
1648 .messages-show .message-buttons {
1649 margin-top: $lineheight;
1650 margin-bottom: $lineheight * 1.5;
1651 padding-top: $lineheight;
1652 border-top: 1px solid $lightgrey;
1655 .messages-show .buttons .mark-unread-button {
1659 /* Rules for "flash" notice boxes shown at the top of the content area */
1662 padding: $lineheight;
1665 background-color: #ff7070;
1669 background-color: #ffe0cc;
1673 background-color: #CBEEA7;
1677 display: inline-block;
1678 margin-left: $lineheight / 2;
1679 vertical-align: middle;
1682 margin-top: $lineheight * 0.5;
1683 margin-bottom: $lineheight * 0.5;
1696 /* Rules for highlighting fields with rails validation errors */
1699 display: inline-block;
1705 background-color: #ff7070;
1708 /* Rules for rails validation error boxes */
1712 border: 2px solid #ff7070;
1713 padding: 0 $lineheight/2;
1714 margin-bottom: $lineheight;
1715 background-color: #f0f0f0;
1718 margin: 0 -10px 10px -10px;
1719 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1722 background-color: #c00;
1730 padding: $lineheight/4;
1734 /* Rules for forms */
1738 margin-bottom: $lineheight;
1740 label.standard-label {
1742 margin-bottom: $lineheight/4;
1743 font-size: $typeheight;
1747 label.standard-label.secondary {
1748 display: inline-block;
1749 font-weight: normal;
1752 font-weight: normal;
1759 margin-top: $lineheight;
1760 padding-top: $lineheight;
1761 border-top: 1px solid $lightgrey;
1763 .horizontal-list .standard-form-row {
1765 padding-right: 10px;
1767 .standard-form-row {
1768 margin-bottom: $lineheight/2;
1775 list-style-type: none;
1777 input[type="checkbox"],
1778 input[type="radio"] {
1784 #remember_me_openid {
1792 input[type="checkbox"],
1793 input[type="radio"] {
1798 input[type="email"],
1800 input[type="password"],
1803 background-color: #fff;
1804 border: 1px solid $grey;
1810 &.field_with_errors {
1811 border: 2px solid #ff7070;
1822 /* Rules for user images */
1827 border: 1px solid $grey;
1828 margin-bottom: $lineheight;
1830 margin-right: $lineheight;
1833 img.user_thumbnail {
1836 border: 1px solid $grey;
1837 margin-right: $lineheight;
1840 img.user_thumbnail_tiny {
1845 border: 1px solid $grey;
1848 /* Rules for geo microformats */
1851 border-bottom: none;
1854 /* General styles for action lists / subnavs / pager navs */
1856 ul.secondary-actions {
1862 display: inline-block;
1869 border-left: 1px solid $grey;
1870 padding-left: $lineheight/2;
1871 margin-right: $lineheight/2;
1882 div.secondary-actions {
1887 /* Utility for managing inner content areas */
1889 .inner22 { padding: $lineheight;}
1891 .inner12 { padding: $lineheight/2 $lineheight;}
1893 .inner11 { padding: $lineheight/2;}
1895 .inner20 { padding: $lineheight 0;}
1897 .inner02 { padding: 0 $lineheight;}
1899 /* Utility for general button styles */
1901 input[type="button"],
1902 input[type="submit"],
1903 input[type="reset"],
1907 display: inline-block;
1908 padding: $lineheight/4 $lineheight/2;
1909 min-height: 20px + $lineheight/2;
1911 margin: 0 0 $lineheight/2 0;
1917 background: darken($blue, $hovercolor);
1918 text-decoration: none;
1921 background: $lightblue;
1923 background: darken($lightblue, $hovercolor);
1927 background: $lightgrey;
1929 background: $lightgrey;
1937 input[type="button"],
1938 input[type="submit"],
1939 input[type="reset"] {
1940 line-height: normal;
1949 input[type="submit"],
1950 input[type="button"],
1951 input[type="reset"],
1954 box-sizing: border-box;
1960 border-right:1px solid white;
1961 text-overflow: ellipsis;
1962 white-space: nowrap;
1966 .button:first-child,
1967 .button_to:first-child {
1968 border-radius:2px 0 0 2px;
1972 .button_to:last-child {
1973 border-radius:0 2px 2px 0;
1974 border-right-width: 0;
1978 .button_to:only-child,
1979 *[value="Hide"] + input:last-child,
1980 *[value="Hide"] + .button:last-child,
1981 *[value="Hide"] + .button_to:last-child {
1983 border-right-width: 0;
1985 /* if a 3-button set has a hidden middle button */
1986 *[value="Hide"] + input:nth-child(3),
1987 *[value="Hide"] + .button:nth-child(3),
1988 *[value="Hide"] + .button_to:nth-child(3) {
1989 border-radius:0 2px 2px 0;
1990 border-right-width: 0;
1992 /* if a 3-button set starts with a hidden button */
1993 *[value="Hide"] + input:nth-child(2):not(:last-child),
1994 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1995 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1996 border-radius:2px 0 0 2px;
1997 border-right-width: 1px;
2001 /* Rules for doing distinct colour of alternate table rows */
2005 background: $offwhite;
2013 /* Rules for OpenID logo */
2016 vertical-align: text-bottom;
2020 /* Rules for rich text */
2026 background: $lightgrey;
2032 background: $lightgrey;
2034 white-space: pre-wrap;
2042 padding: $lineheight;
2043 background-color: $offwhite;
2050 border-left: $lineheight solid $offwhite;
2051 padding-left: $lineheight;
2057 .diary_post .richtext {
2058 margin-top: $lineheight;
2061 .comments .richtext {
2066 /* Rules for rich text editors */
2068 input.richtext_title[type="text"] {
2070 width: calc(100% - 235px);
2072 @media only screen and (max-width:768px) {
2077 .richtext_container {
2078 margin-bottom: $lineheight;
2082 width: calc(100% - 235px);
2083 display: inline-block;
2084 vertical-align: top;
2086 @media only screen and (max-width:768px) {
2091 display: inline-block;
2092 padding: $lineheight;
2093 background-color: $offwhite;
2097 background-image: image-url("loading.gif");
2098 background-repeat: no-repeat;
2099 background-position: center;
2109 display: inline-block;
2110 vertical-align: top;
2112 background-color: $offwhite;
2113 padding: $lineheight/2;
2121 border-bottom: 1px solid $grey;
2122 margin-bottom: $lineheight/4;
2123 padding-bottom: $lineheight/4;
2126 li h4, li span, li p {
2127 display: inline-block;
2128 vertical-align: top;
2139 margin-left: $lineheight/2;
2140 margin-bottom: $lineheight/4;
2141 white-space: nowrap;
2146 /* Rules for the user notes list */
2150 background-color: $lightgrey;
2162 /* Rules for the iD editor */
2169 /* Rules for the "Welcome" page */
2170 .site-welcome, .site-fixthemap {
2180 background-image: image-url("welcome-sprite.png");
2181 background-size: 500px 250px;
2187 padding-bottom: 20px;
2189 margin-bottom: 10px;
2201 /* no-r2 */ background-position: -50px 0;
2206 vertical-align: middle;
2210 /* no-r2 */ background-position: -100px 0;
2214 /* no-r2 */ background-position: -150px 0;
2218 /* no-r2 */ background-position: -200px 0;
2222 /* no-r2 */ background-position: -250px 0;
2226 /* no-r2 */ background-position: -300px 0;
2230 /* no-r2 */ background-position: -350px 0;
2239 text-decoration: none;
2243 background-color: #333;
2248 .site-about #content {
2249 background-color: $lightgrey;
2250 background-position: 50% 50%;
2251 background-repeat: no-repeat;
2252 background-size: cover;
2253 background-attachment: fixed;
2270 padding: 170px 40px 20px;
2272 background: rgba(0, 0, 0, .8);
2282 color: $vibrant-green;
2292 background-position: 0 50%;
2293 background-repeat: no-repeat;
2294 background-image: image-url('about/osm.png');
2295 background-size: cover;
2296 background-color: $vibrant-green;
2306 padding: 20px 20px 20px 40px;
2307 font: 500 20px/24px Helvetica, Arial, sans-serif;
2308 white-space: nowrap;
2310 background: $vibrant-green;
2314 display: inline-block;
2324 vertical-align: middle;
2325 background: 40px 40px image-url('about/sprite.png') no-repeat;
2329 background-position: 0px 0px;
2333 background-position: 0px -40px;
2337 background-position: 0px -80px;
2341 background-position: 0px -120px;
2345 background-position: 0px -160px;
2349 background-position: -45px -160px;
2356 @media only screen and (max-width:960px) {
2357 .header-illustration.new-user-arm {
2363 background: $lightgrey;
2369 white-space: nowrap;