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; }
34 vertical-align: middle;
35 margin-right: $lineheight/4;
40 [dir=rtl] { /* no-r2 */ text-align: right; }
42 [dir=ltr] { /* no-r2 */ text-align: left; }
47 display: inline-block;
51 background: transparent image-url("sprite.png") no-repeat 0 0;
52 background-image: image-url("sprite.svg");
57 .icon.search { /* no-r2 */ background-position: 0 0; }
58 .icon.donate { /* no-r2 */ background-position: -20px 0; }
59 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
60 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
61 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
62 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
63 .icon.layers { /* no-r2 */ background-position: -100px 0; }
64 .icon.key { /* no-r2 */ background-position: -120px 0; }
65 .icon.share { /* no-r2 */ background-position: -140px 0; }
66 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
67 .icon.link { /* no-r2 */ background-position: -180px 0; }
68 .icon.close { /* no-r2 */ background-position: -200px 0; }
69 .close-wrap:hover .icon.close,
70 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
71 .icon.check { /* no-r2 */ background-position: -220px 0; }
72 .icon.note { /* no-r2 */ background-position: -240px 0; }
73 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
74 .icon.query { /* no-r2 */ background-position: -260px 0; }
80 text-decoration: none;
83 text-decoration: underline;
87 /* Utility for de-emphasizing content */
100 /* Rules for the header */
103 display: none !important;
105 background: image-url("menu-icon.png") no-repeat;
106 background-size: 30px 30px;
110 margin: 14px 10px 0 0;
115 height: $headerHeight;
120 h1, nav, nav > ul, nav > ul > li {
121 display: inline-block;
126 padding: $lineheight/2;
134 text-decoration: none;
141 vertical-align: middle;
167 .btn-outline-primary {
168 @include button-outline-variant($green, $white);
172 .btn-outline-primary {
177 border-top-color: $grey;
181 background-color: lighten($green, 30%);
186 // Small tweaks to the toggle to stop the primary colour showing through
187 // when the menu is shown
188 .show > .btn-outline-primary.dropdown-toggle {
189 background-color: $green;
190 border-color: $green;
193 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
208 color: darken($darkgrey, 25%);
212 .btn-outline-secondary {
213 @include button-outline-variant($darkgrey);
218 .btn-outline-secondary {
219 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
225 background-color: white;
229 &.show .btn-outline-secondary {
230 background-color: white;
237 img.user_thumbnail_tiny {
243 display: inline-block;
245 margin: 3px 0 3px 3px;
246 background-color: lighten($grey, 10%);
258 nav.primary, nav.secondary {
261 background-color: $green;
267 #compact-secondary-nav {
272 #compact-secondary-nav {
273 display: inline-block;
280 /* Utility for styling notification numbers */
283 padding: 2px $lineheight/4;
285 background: lighten($green, 30%);
291 /* Rules for the message shown in place of the map when javascript is disabled */
299 /* Rules for Leaflet maps */
301 .leaflet-control .control-button {
305 background-color: #333;
306 background-color: rgba(0,0,0,.6);
307 border-radius: 4px 0 0 4px;
312 background-color: black;
317 background-color: #333;
318 background-color: rgba(0,0,0,.5);
323 background-color: $vibrant-green;
331 .leaflet-control .zoomin,
332 .control-layers .control-button {
334 border-radius: 4px 0 0 0;
337 .leaflet-control .zoomout,
338 .control-key .control-button {
343 .control-locate .control-button,
344 .control-share .control-button {
345 border-radius: 0 0 0 4px;
348 /* Rules for the sidebar and main map area */
368 width: $sidebarWidth;
383 padding: $lineheight $lineheight $lineheight/2;
388 margin-top: $lineheight;
389 margin-bottom: $lineheight/2;
402 pointer-events: none;
427 .overlay-sidebar #sidebar {
455 padding: $lineheight/2 $lineheight $lineheight;
469 border-right: 1px solid #fff;
479 width: $sidebarWidth;
495 .leaflet-marker-draggable {
510 border-bottom: 1px solid $grey;
520 border:1px solid $grey;
525 border: 1px solid $grey;
527 border-top-color: $grey;
551 border: 2px solid #fff;
554 transition: border-color 0.08s ease-in;
561 border-bottom-right-radius: 3px;
565 text-stroke: 2px #fff;
566 background: rgba(255,255,255,.9);
568 input[type="radio"] {
573 &.active { border-color: darken($green, 10%); }
576 &.active { border-color: darken($green, 20%); }
586 li.disabled { color: $darkgrey; }
596 text-decoration: none;
597 background-color: $lightblue;
599 border-right: 1px solid #fff;
603 border-right: 1px solid #fff;
604 border-radius: 4px 0 0 4px;
608 border-radius: 0 4px 4px 0;
612 background-color: $blue;
624 font-family: monospace;
646 top: $lineheight/2 !important;
648 margin-right: 0px !important;
649 margin-top: 0px !important;
653 .leaflet-popup-scrolled {
654 padding-right: $lineheight;
655 border-bottom: 0px !important;
656 border-top: 0px !important;
659 .leaflet-popup-content-wrapper {
660 border-radius: 4px !important;
663 /* Rules for attribution text under the main map shown on printouts */
673 .attribution_license,
674 .attribution_project {
678 .attribution_notice {
682 .donate-attr { color: darken($green, 10%) !important; }
684 /* Rules for the sidebar */
688 padding: $lineheight/2 $lineheight;
689 // background: $offwhite;
690 // border-bottom: 1px solid $grey;
700 padding: $lineheight;
714 margin: $lineheight auto;
726 /* Rules for the search and direction forms */
728 header .search_forms,
736 padding: $lineheight/2;
737 background-color: $lightgrey;
742 border-radius: 2px 0 0 2px;
748 transition: 300ms linear;
751 input[type=text].overflow {
753 border-radius: 3px 0px 0px 3px;
758 box-shadow: 0px 0px 7px $vibrant-green;
761 input[type=submit].float {
765 border-radius: 0 2px 2px 0;
769 background-color: rgba($red, 0.4);
773 /* this next line is to polyfill the vertical alignment of text within a select element,
774 * which is different between firefox and chrome. */
811 select.routing_engines {
813 margin: 0px 0px 5px 25px;
828 margin: 0px 0px 5px 0px;
835 vertical-align: middle;
839 a.reverse_directions {
841 margin: 0px 0px 5px 25px;
845 /* Rules for the map key which appears in the popout sidebar */
848 .mapkey-table-key img {
855 /* Rules for search sidebar */
857 #sidebar .search_results_entry {
860 &.selected { background: $list-highlight; }
863 .search_more .loader {
869 .search_results_error {
874 /* Rules for routing */
876 #sidebar_content>table {
877 padding: 5px 20px 10px 15px;
879 border-collapse: separate;
884 background-image: image-url('routing-sprite.png');
887 background-repeat: no-repeat;
889 @for $i from 0 through 25 {
890 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
894 padding: 0 $lineheight $lineheight/4;
897 td.instruction, td.distance {
898 padding-top: $lineheight/5;
899 padding-bottom: $lineheight/5;
900 border-bottom: 1px solid $grey;
911 background: $list-highlight;
913 .routing_engines, #route_from, #route_to { margin-left: 25px; }
914 .routing_marker { width: 15px; position: absolute; cursor: move; }
916 /* Rules for entity history */
921 border-bottom: $keyline;
929 /* Rules for the history sidebar */
931 #sidebar .changesets {
935 &.selected { background: $list-highlight; }
936 /* color is derived from changeset bbox fillColor in history.js */
948 .changeset_more .loader {
954 /* Rules for the browse sidebar */
958 padding: $lineheight/2 $lineheight;
959 border-bottom: 1px solid $grey;
963 word-wrap: break-word;
967 .browse-section:last-of-type {
974 border: 1px solid $lightgrey;
982 padding: 5px 0 5px 10px;
984 border: 1px solid $grey;
985 border-radius: 4px 4px 0 0;
986 background-color: $offwhite;
992 background-color: #FFF;
993 border: 1px solid $grey;
995 border-radius: 0 0 4px 4px;
1000 background-color: $offwhite;
1001 border: 1px solid $grey;
1003 table-layout: fixed;
1004 border-collapse: separate;
1009 border-bottom: 1px solid $grey;
1012 tr:last-child th, tr:last-child td {
1020 word-wrap: break-word;
1021 white-space: pre-wrap;
1026 background-color: $offwhite;
1030 border-left: 1px solid $grey;
1031 background-color: #fff;
1034 .colour-preview-box {
1039 border: 1px solid rgba(0, 0, 0, .1);
1040 // add color via inline css on element: background-color: <tag value>;
1045 margin: 0 0 $lineheight/2 0;
1046 padding: 0 $lineheight/2;
1049 .note-comments li, .changeset-comments li {
1050 margin: $lineheight/2 0;
1053 margin: 10px 6px 0 6px;
1062 .subscribe-buttons {
1064 margin: 18px 10px 10px;
1068 .subscribe-buttons input {
1074 span.action-button:hover {
1076 text-decoration: underline;
1081 margin: 0 0 10px 10px;
1085 padding: $lineheight $lineheight $lineheight/2;
1090 padding-bottom: $lineheight/2;
1093 padding: 0 $lineheight;
1103 background: $list-highlight;
1110 /* Rules for export sidebar */
1113 padding: $lineheight;
1115 .export_area_inputs,
1120 .export_area_inputs {
1121 margin-bottom: $lineheight/2;
1122 input[type="text"] {
1130 background: $lightgrey;
1131 border: 1px solid $grey;
1134 #maxlat { margin-top: -1px; }
1137 /* no-r2 */ margin-left: -1px;
1141 /* no-r2 */ margin-right: -1px;
1143 #minlat { margin-bottom: 0; }
1147 margin: $lineheight/4;
1151 margin-top: $lineheight;
1152 margin-bottom: $lineheight;
1156 padding-left: $lineheight/2;
1159 margin-bottom: 10px;
1164 /* Rules for the routing sidebar */
1173 /* Rules for edit pages */
1189 /* Rules for non-map content pages */
1192 background: $lightgrey;
1199 padding: $lineheight;
1202 /* Overrides for pages that use new layout conventions */
1208 .content-heading .content-inner {
1213 .header-illustration {
1214 background-position: 0 0;
1215 background-repeat: no-repeat;
1223 background-image: image-url("sign-up-illustration.png");
1227 background-image: image-url("confirm-illustration.png");
1231 background-image: image-url("terms-illustration.png");
1239 background-image: image-url("sign-up-illustration-arm.png");
1244 [dir=rtl] .header-illustration {
1245 transform: scaleX(-1);
1248 #content.maximised {
1257 /* Rules for small maps in content areas */
1261 border: 1px solid $grey;
1262 margin-bottom: $lineheight;
1265 @include media-breakpoint-up(md) {
1271 /* Rules for the new trace form */
1276 width: calc(100% - 150px);
1281 /* Rules for the edit trace form */
1284 .standard-form-row p {
1290 width: calc(100% - 150px);
1295 /* Rules for the user profile page */
1299 .userinformation-inner {
1308 .admin-user-info small {
1309 margin-bottom: $lineheight/2;
1311 margin-right: $lineheight;
1315 margin-top: $lineheight;
1319 .activity-details p {
1325 // Silly exception; remove when user page is redesigned.
1329 p#no_home_location {
1330 margin: $lineheight;
1333 margin-top: $lineheight/4;
1338 /* Rules for the user map */
1340 .content_map .leaflet-popup-content {
1341 margin: $lineheight/2;
1345 /* Rules for user popups on maps */
1351 margin-top: 0 0 0 60px;
1354 img.user_thumbnail {
1356 margin: 0 $lineheight/2 0 0;
1360 /* Rules for the user list */
1366 vertical-align: middle;
1375 #user_list_actions {
1377 margin-top: $lineheight/2;
1380 /* Rules for the diary list page */
1384 padding-top: $lineheight;
1385 padding-bottom: $lineheight/2;
1386 border-top: 1px solid $grey;
1389 margin-top: $lineheight/2;
1393 background-color: #fee;
1397 margin-bottom: $lineheight;
1401 margin-bottom: $lineheight/2;
1405 img.user_thumbnail {
1416 padding-top: $lineheight;
1419 /* Rules for the diary entry page */
1426 border: 1px solid $grey;
1428 margin-bottom: $lineheight;
1431 border-top: 1px solid $grey;
1432 padding-top: $lineheight;
1433 margin-top: $lineheight/2;
1439 border-top: 1px dashed $grey;
1440 padding-top: $lineheight/2;
1441 padding-bottom: $lineheight/2;
1443 margin-top: $lineheight/2;
1444 padding-top: $lineheight;
1445 border-top: 1px solid $grey;
1448 background-color: #fee;
1451 margin-bottom: $lineheight/2;
1460 .diary_entries-show img.user_thumbnail {
1465 .diary-subscribe-buttons {
1471 /* Rules for the log in page */
1473 #login_auth_buttons {
1477 #login_auth_buttons li {
1479 padding: $lineheight/4 $lineheight/2;
1482 /* Rules for the account confirmation page */
1486 border: 1px solid $grey;
1487 padding: $lineheight;
1488 margin-bottom: $lineheight;
1493 list-style: inherit;
1497 list-style-type: lower-alpha;
1502 background: $lightblue;
1504 background: darken($lightblue, $hovercolor);
1509 /* Rules for the account settings page */
1511 #accountForm .user_image {
1515 #accountForm #user_image {
1519 #accountForm ul.accountImage-options {
1532 display: inline !important;
1535 /* Rules for the oauth settings page */
1537 .oauth_clients .buttons .oauth-edit {
1538 border-radius: 2px 0 0 2px;
1541 .oauth_clients .buttons .oauth-delete {
1542 border-radius: 0 2px 2px 0;
1545 /* Rules for the oauth authorization page */
1547 .oauth-authorize ul {
1551 /* Rules for messages pages */
1554 input[type="submit"] {
1559 background: $offwhite;
1563 background: #CBEEA7;
1571 .inbox-row .inbox-mark-read {
1576 margin-bottom: $lineheight;
1577 padding: $lineheight/4 0px 4px 0px;
1578 border-bottom: 1px solid $grey;
1585 .info-line .user_thumbnail_tiny {
1586 vertical-align: middle;
1590 white-space: nowrap;
1599 .inbox-row-unread .inbox-mark-unread {
1603 /* Rules for "flash" notice boxes shown at the top of the content area */
1606 padding: $lineheight;
1609 background-color: #ff7070;
1613 background-color: #ffe0cc;
1617 background-color: #CBEEA7;
1621 display: inline-block;
1622 margin-left: $lineheight / 2;
1623 vertical-align: middle;
1626 margin-top: $lineheight * 0.5;
1627 margin-bottom: $lineheight * 0.5;
1640 /* Rules for highlighting fields with rails validation errors */
1643 display: inline-block;
1649 background-color: #ff7070;
1652 /* Rules for rails validation error boxes */
1656 border: 2px solid #ff7070;
1657 padding: 0 $lineheight/2;
1658 margin-bottom: $lineheight;
1659 background-color: #f0f0f0;
1662 margin: 0 -10px 10px -10px;
1663 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1666 background-color: #c00;
1674 padding: $lineheight/4;
1678 /* Rules for forms */
1682 margin-bottom: $lineheight;
1684 label.standard-label {
1686 margin-bottom: $lineheight/4;
1687 font-size: $typeheight;
1691 label.standard-label.secondary {
1692 display: inline-block;
1693 font-weight: normal;
1696 font-weight: normal;
1703 margin-top: $lineheight;
1704 padding-top: $lineheight;
1705 border-top: 1px solid $lightgrey;
1707 .horizontal-list .standard-form-row {
1709 padding-right: 10px;
1711 .standard-form-row {
1712 margin-bottom: $lineheight/2;
1719 list-style-type: none;
1721 input[type="checkbox"],
1722 input[type="radio"] {
1728 #remember_me_openid {
1736 input[type="checkbox"],
1737 input[type="radio"] {
1742 input[type="email"],
1744 input[type="password"],
1747 background-color: #fff;
1748 border: 1px solid $grey;
1754 &.field_with_errors {
1755 border: 2px solid #ff7070;
1766 /* Rules for user images */
1771 border: 1px solid $grey;
1772 margin-bottom: $lineheight;
1774 margin-right: $lineheight;
1777 img.user_thumbnail {
1780 border: 1px solid $grey;
1781 margin-right: $lineheight;
1784 img.user_thumbnail_tiny {
1789 border: 1px solid $grey;
1792 /* Rules for geo microformats */
1795 border-bottom: none;
1798 /* General styles for action lists / subnavs / pager navs */
1800 ul.secondary-actions {
1806 display: inline-block;
1813 border-left: 1px solid $grey;
1814 padding-left: $lineheight/2;
1815 margin-right: $lineheight/2;
1826 div.secondary-actions {
1831 /* Utility for managing inner content areas */
1833 .inner22 { padding: $lineheight;}
1835 .inner12 { padding: $lineheight/2 $lineheight;}
1837 .inner11 { padding: $lineheight/2;}
1839 .inner20 { padding: $lineheight 0;}
1841 .inner02 { padding: 0 $lineheight;}
1843 /* Utility for general button styles */
1845 input[type="button"],
1846 input[type="submit"],
1847 input[type="reset"],
1851 display: inline-block;
1852 padding: $lineheight/4 $lineheight/2;
1853 min-height: 20px + $lineheight/2;
1855 margin: 0 0 $lineheight/2 0;
1861 background: darken($blue, $hovercolor);
1862 text-decoration: none;
1865 background: $lightblue;
1867 background: darken($lightblue, $hovercolor);
1871 background: $lightgrey;
1873 background: $lightgrey;
1881 input[type="button"],
1882 input[type="submit"],
1883 input[type="reset"] {
1884 line-height: normal;
1893 input[type="submit"],
1894 input[type="button"],
1895 input[type="reset"],
1898 box-sizing: border-box;
1904 border-right:1px solid white;
1905 text-overflow: ellipsis;
1906 white-space: nowrap;
1910 .button:first-child,
1911 .button_to:first-child {
1912 border-radius:2px 0 0 2px;
1916 .button_to:last-child {
1917 border-radius:0 2px 2px 0;
1918 border-right-width: 0;
1922 .button_to:only-child,
1923 *[value="Hide"] + input:last-child,
1924 *[value="Hide"] + .button:last-child,
1925 *[value="Hide"] + .button_to:last-child {
1927 border-right-width: 0;
1929 /* if a 3-button set has a hidden middle button */
1930 *[value="Hide"] + input:nth-child(3),
1931 *[value="Hide"] + .button:nth-child(3),
1932 *[value="Hide"] + .button_to:nth-child(3) {
1933 border-radius:0 2px 2px 0;
1934 border-right-width: 0;
1936 /* if a 3-button set starts with a hidden button */
1937 *[value="Hide"] + input:nth-child(2):not(:last-child),
1938 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1939 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1940 border-radius:2px 0 0 2px;
1941 border-right-width: 1px;
1945 /* Customise the background colour of striped tables */
1947 .table-striped > tbody > tr:nth-child(2n+1) > td,
1948 .table-striped > tbody > tr:nth-child(2n+1) > th {
1949 background-color: $offwhite;
1952 /* Rules for OpenID logo */
1955 vertical-align: text-bottom;
1959 /* Rules for rich text */
1965 background: $lightgrey;
1971 background: $lightgrey;
1973 white-space: pre-wrap;
1981 padding: $lineheight;
1982 background-color: $offwhite;
1989 border-left: $lineheight solid $offwhite;
1990 padding-left: $lineheight;
1996 .diary_post .richtext {
1997 margin-top: $lineheight;
2000 .comments .richtext {
2005 /* Rules for rich text editors */
2007 input.richtext_title[type="text"] {
2009 width: calc(100% - 235px);
2011 @media only screen and (max-width:768px) {
2016 .richtext_container {
2017 margin-bottom: $lineheight;
2021 width: calc(100% - 235px);
2022 display: inline-block;
2023 vertical-align: top;
2025 @media only screen and (max-width:768px) {
2030 display: inline-block;
2031 padding: $lineheight;
2032 background-color: $offwhite;
2036 background-image: image-url("loading.gif");
2037 background-repeat: no-repeat;
2038 background-position: center;
2048 display: inline-block;
2049 vertical-align: top;
2051 background-color: $offwhite;
2052 padding: $lineheight/2;
2060 border-bottom: 1px solid $grey;
2061 margin-bottom: $lineheight/4;
2062 padding-bottom: $lineheight/4;
2065 li h4, li span, li p {
2066 display: inline-block;
2067 vertical-align: top;
2078 margin-left: $lineheight/2;
2079 margin-bottom: $lineheight/4;
2080 white-space: nowrap;
2085 /* Rules for the user notes list */
2089 background-color: $offwhite;
2093 /* Rules for the iD editor */
2100 /* Rules for the "Welcome" page */
2101 .site-welcome, .site-fixthemap {
2111 background-image: image-url("welcome-sprite.png");
2112 background-size: 500px 250px;
2118 padding-bottom: 20px;
2120 margin-bottom: 10px;
2132 /* no-r2 */ background-position: -50px 0;
2137 vertical-align: middle;
2141 /* no-r2 */ background-position: -100px 0;
2145 /* no-r2 */ background-position: -150px 0;
2149 /* no-r2 */ background-position: -200px 0;
2153 /* no-r2 */ background-position: -250px 0;
2157 /* no-r2 */ background-position: -300px 0;
2161 /* no-r2 */ background-position: -350px 0;
2170 text-decoration: none;
2174 background-color: #333;
2179 .site-about #content {
2180 background-color: $lightgrey;
2181 background-position: 50% 50%;
2182 background-repeat: no-repeat;
2183 background-size: cover;
2184 background-attachment: fixed;
2201 padding: 170px 40px 20px;
2203 background: rgba(0, 0, 0, .8);
2213 color: $vibrant-green;
2217 @include media-breakpoint-up(sm) {
2229 background-position: 0 50%;
2230 background-repeat: no-repeat;
2231 background-image: image-url('about/osm.png');
2232 background-size: cover;
2233 background-color: $vibrant-green;
2243 padding: 20px 20px 20px 40px;
2244 font: 500 20px/24px Helvetica, Arial, sans-serif;
2245 white-space: nowrap;
2247 background: $vibrant-green;
2251 display: inline-block;
2261 vertical-align: middle;
2262 background: 40px 40px image-url('about/sprite.png') no-repeat;
2266 background-position: 0px 0px;
2270 background-position: 0px -40px;
2274 background-position: 0px -80px;
2278 background-position: 0px -120px;
2282 background-position: 0px -160px;
2286 background-position: -45px -160px;
2293 @media only screen and (max-width:960px) {
2294 .header-illustration.new-user-arm {