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;
42 [dir=rtl] { /* no-r2 */ text-align: right; }
44 [dir=ltr] { /* no-r2 */ text-align: left; }
49 display: inline-block;
53 background: transparent image-url("sprite.png") no-repeat 0 0;
54 background-image: image-url("sprite.svg");
59 .icon.search { /* no-r2 */ background-position: 0 0; }
60 .icon.donate { /* no-r2 */ background-position: -20px 0; }
61 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
62 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
63 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
64 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
65 .icon.layers { /* no-r2 */ background-position: -100px 0; }
66 .icon.key { /* no-r2 */ background-position: -120px 0; }
67 .icon.share { /* no-r2 */ background-position: -140px 0; }
68 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
69 .icon.link { /* no-r2 */ background-position: -180px 0; }
70 .icon.close { /* no-r2 */ background-position: -200px 0; }
71 .close-wrap:hover .icon.close,
72 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
73 .icon.check { /* no-r2 */ background-position: -220px 0; }
74 .icon.note { /* no-r2 */ background-position: -240px 0; }
75 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
76 .icon.query { /* no-r2 */ background-position: -260px 0; }
82 text-decoration: none;
83 -webkit-appearance: none;
86 text-decoration: underline;
90 /* Utility for de-emphasizing content */
103 /* Rules for the header */
106 display: none !important;
108 background: image-url("menu-icon.png") no-repeat;
109 background-size: 30px 30px;
113 margin: 14px 10px 0 0;
118 height: $headerHeight;
123 h1, nav, nav > ul, nav > ul > li {
124 display: inline-block;
129 padding: $lineheight/2;
137 text-decoration: none;
144 vertical-align: middle;
170 .btn-outline-primary {
171 @include button-outline-variant($green, $white);
175 .btn-outline-primary {
180 border-top-color: $grey;
184 background-color: lighten($green, 30%);
189 // Small tweaks to the toggle to stop the primary colour showing through
190 // when the menu is shown
191 .show > .btn-outline-primary.dropdown-toggle {
192 background-color: $green;
193 border-color: $green;
196 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
211 color: darken($darkgrey, 25%);
215 .btn-outline-secondary {
216 @include button-outline-variant($darkgrey);
221 .btn-outline-secondary {
222 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
228 background-color: white;
232 &.show .btn-outline-secondary {
233 background-color: white;
240 img.user_thumbnail_tiny {
246 display: inline-block;
248 margin: 3px 0 3px 3px;
249 background-color: lighten($grey, 10%);
261 nav.primary, nav.secondary {
264 background-color: $green;
270 #compact-secondary-nav {
275 #compact-secondary-nav {
276 display: inline-block;
283 /* Utility for styling notification numbers */
286 padding: 2px $lineheight/4;
288 background: lighten($green, 30%);
294 /* Rules for the message shown in place of the map when javascript is disabled */
302 /* Rules for Leaflet maps */
304 .leaflet-control .control-button {
308 background-color: #333;
309 background-color: rgba(0,0,0,.6);
310 border-radius: 4px 0 0 4px;
315 background-color: black;
320 background-color: #333;
321 background-color: rgba(0,0,0,.5);
326 background-color: $vibrant-green;
334 .leaflet-control .zoomin,
335 .control-layers .control-button {
337 border-radius: 4px 0 0 0;
340 .leaflet-control .zoomout,
341 .control-key .control-button {
346 .control-locate .control-button,
347 .control-share .control-button {
348 border-radius: 0 0 0 4px;
351 /* Rules for the sidebar and main map area */
371 width: $sidebarWidth;
386 padding: $lineheight $lineheight $lineheight/2;
391 margin-top: $lineheight;
392 margin-bottom: $lineheight/2;
405 pointer-events: none;
430 .overlay-sidebar #sidebar {
458 padding: $lineheight/2 $lineheight $lineheight;
472 border-right: 1px solid #fff;
482 width: $sidebarWidth;
498 .leaflet-marker-draggable {
513 border-bottom: 1px solid $grey;
523 border:1px solid $grey;
528 border: 1px solid $grey;
530 border-top-color: $grey;
554 border: 2px solid #fff;
557 transition: border-color 0.08s ease-in;
564 border-bottom-right-radius: 3px;
568 text-stroke: 2px #fff;
569 background: rgba(255,255,255,.9);
571 input[type="radio"] {
576 &.active { border-color: darken($green, 10%); }
579 &.active { border-color: darken($green, 20%); }
589 li.disabled { color: $darkgrey; }
599 text-decoration: none;
600 background-color: $lightblue;
602 border-right: 1px solid #fff;
606 border-right: 1px solid #fff;
607 border-radius: 4px 0 0 4px;
611 border-radius: 0 4px 4px 0;
615 background-color: $blue;
627 font-family: monospace;
649 top: $lineheight/2 !important;
651 margin-right: 0px !important;
652 margin-top: 0px !important;
656 .leaflet-popup-scrolled {
657 padding-right: $lineheight;
658 border-bottom: 0px !important;
659 border-top: 0px !important;
662 .leaflet-popup-content-wrapper {
663 border-radius: 4px !important;
666 /* Rules for attribution text under the main map shown on printouts */
676 .attribution_license,
677 .attribution_project {
681 .attribution_notice {
685 .donate-attr { color: darken($green, 10%) !important; }
687 /* Rules for the sidebar */
691 padding: $lineheight/2 $lineheight;
692 // background: $offwhite;
693 // border-bottom: 1px solid $grey;
703 padding: $lineheight;
717 margin: $lineheight auto;
729 /* Rules for the search and direction forms */
731 header .search_forms,
739 padding: $lineheight/2;
740 background-color: $lightgrey;
745 border-radius: 2px 0 0 2px;
751 transition: 300ms linear;
754 input[type=text].overflow {
756 border-radius: 3px 0px 0px 3px;
761 box-shadow: 0px 0px 7px $vibrant-green;
764 input[type=submit].float {
768 border-radius: 0 2px 2px 0;
772 background-color: rgba($red, 0.4);
776 /* this next line is to polyfill the vertical alignment of text within a select element,
777 * which is different between firefox and chrome. */
814 select.routing_engines {
816 margin: 0px 0px 5px 25px;
831 margin: 0px 0px 5px 0px;
838 vertical-align: middle;
842 a.reverse_directions {
844 margin: 0px 0px 5px 25px;
848 /* Rules for the map key which appears in the popout sidebar */
851 .mapkey-table-key img {
858 /* Rules for search sidebar */
860 #sidebar .search_results_entry {
863 &.selected { background: $list-highlight; }
866 .search_more .loader {
872 .search_results_error {
877 /* Rules for routing */
879 #sidebar_content>table {
880 padding: 5px 20px 10px 15px;
882 border-collapse: separate;
887 background-image: image-url('routing-sprite.png');
890 background-repeat: no-repeat;
892 @for $i from 0 through 25 {
893 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
897 padding: 0 $lineheight $lineheight/4;
900 td.instruction, td.distance {
901 padding-top: $lineheight/5;
902 padding-bottom: $lineheight/5;
903 border-bottom: 1px solid $grey;
914 background: $list-highlight;
916 .routing_engines, #route_from, #route_to { margin-left: 25px; }
917 .routing_marker { width: 15px; position: absolute; cursor: move; }
919 /* Rules for entity history */
924 border-bottom: $keyline;
932 /* Rules for the history sidebar */
934 #sidebar .changesets {
938 &.selected { background: $list-highlight; }
939 /* color is derived from changeset bbox fillColor in history.js */
951 .changeset_more .loader {
957 /* Rules for the browse sidebar */
961 padding: $lineheight/2 $lineheight;
962 border-bottom: 1px solid $grey;
966 word-wrap: break-word;
970 .browse-section:last-of-type {
977 border: 1px solid $lightgrey;
985 padding: 5px 0 5px 10px;
987 border: 1px solid $grey;
988 border-radius: 4px 4px 0 0;
989 background-color: $offwhite;
995 background-color: #FFF;
996 border: 1px solid $grey;
998 border-radius: 0 0 4px 4px;
1003 background-color: $offwhite;
1004 border: 1px solid $grey;
1006 table-layout: fixed;
1007 border-collapse: separate;
1012 border-bottom: 1px solid $grey;
1015 tr:last-child th, tr:last-child td {
1023 word-wrap: break-word;
1024 white-space: pre-wrap;
1029 background-color: $offwhite;
1033 border-left: 1px solid $grey;
1034 background-color: #fff;
1037 .colour-preview-box {
1042 border: 1px solid rgba(0, 0, 0, .1);
1043 // add color via inline css on element: background-color: <tag value>;
1048 margin: 0 0 $lineheight/2 0;
1049 padding: 0 $lineheight/2;
1052 .note-comments li, .changeset-comments li {
1053 margin: $lineheight/2 0;
1056 margin: 10px 6px 0 6px;
1065 .subscribe-buttons {
1067 margin: 18px 10px 10px;
1071 .subscribe-buttons input {
1077 span.action-button:hover {
1079 text-decoration: underline;
1084 margin: 0 0 10px 10px;
1088 padding: $lineheight $lineheight $lineheight/2;
1093 padding-bottom: $lineheight/2;
1096 padding: 0 $lineheight;
1106 background: $list-highlight;
1113 /* Rules for export sidebar */
1116 padding: $lineheight;
1118 .export_area_inputs,
1123 .export_area_inputs {
1124 margin-bottom: $lineheight/2;
1125 input[type="text"] {
1133 background: $lightgrey;
1134 border: 1px solid $grey;
1137 #maxlat { margin-top: -1px; }
1140 /* no-r2 */ margin-left: -1px;
1144 /* no-r2 */ margin-right: -1px;
1146 #minlat { margin-bottom: 0; }
1150 margin: $lineheight/4;
1154 margin-top: $lineheight;
1155 margin-bottom: $lineheight;
1159 padding-left: $lineheight/2;
1162 margin-bottom: 10px;
1167 /* Rules for the routing sidebar */
1176 /* Rules for edit pages */
1192 /* Rules for non-map content pages */
1195 background: $lightgrey;
1202 padding: $lineheight;
1205 /* Overrides for pages that use new layout conventions */
1211 .content-heading .content-inner {
1216 .header-illustration {
1217 background-position: 0 0;
1218 background-repeat: no-repeat;
1226 background-image: image-url("sign-up-illustration.png");
1230 background-image: image-url("confirm-illustration.png");
1234 background-image: image-url("terms-illustration.png");
1242 background-image: image-url("sign-up-illustration-arm.png");
1247 [dir=rtl] .header-illustration {
1248 transform: scaleX(-1);
1251 #content.maximised {
1260 /* Rules for small maps in content areas */
1264 border: 1px solid $grey;
1265 margin-bottom: $lineheight;
1268 @include media-breakpoint-up(md) {
1274 /* Rules for the new trace form */
1279 width: calc(100% - 150px);
1284 /* Rules for the edit trace form */
1287 .standard-form-row p {
1293 width: calc(100% - 150px);
1298 /* Rules for the user profile page */
1302 .userinformation-inner {
1311 .admin-user-info small {
1312 margin-bottom: $lineheight/2;
1314 margin-right: $lineheight;
1318 margin-top: $lineheight;
1322 .activity-details p {
1328 // Silly exception; remove when user page is redesigned.
1332 p#no_home_location {
1333 margin: $lineheight;
1336 margin-top: $lineheight/4;
1341 /* Rules for the user map */
1343 .content_map .leaflet-popup-content {
1344 margin: $lineheight/2;
1348 /* Rules for user popups on maps */
1354 margin-top: 0 0 0 60px;
1357 img.user_thumbnail {
1359 margin: 0 $lineheight/2 0 0;
1363 /* Rules for the user list */
1369 vertical-align: middle;
1378 #user_list_actions {
1380 margin-top: $lineheight/2;
1383 /* Rules for the diary list page */
1387 padding-top: $lineheight;
1388 padding-bottom: $lineheight/2;
1389 border-top: 1px solid $grey;
1392 margin-top: $lineheight/2;
1396 background-color: #fee;
1400 margin-bottom: $lineheight;
1404 margin-bottom: $lineheight/2;
1408 img.user_thumbnail {
1419 padding-top: $lineheight;
1422 /* Rules for the diary entry page */
1429 border: 1px solid $grey;
1431 margin-bottom: $lineheight;
1434 border-top: 1px solid $grey;
1435 padding-top: $lineheight;
1436 margin-top: $lineheight/2;
1442 border-top: 1px dashed $grey;
1443 padding-top: $lineheight/2;
1444 padding-bottom: $lineheight/2;
1446 margin-top: $lineheight/2;
1447 padding-top: $lineheight;
1448 border-top: 1px solid $grey;
1451 background-color: #fee;
1454 margin-bottom: $lineheight/2;
1463 .diary_entries-show img.user_thumbnail {
1468 .diary-subscribe-buttons {
1474 /* Rules for the log in page */
1476 #login_auth_buttons {
1480 #login_auth_buttons li {
1482 padding: $lineheight/4 $lineheight/2;
1485 /* Rules for the account confirmation page */
1489 border: 1px solid $grey;
1490 padding: $lineheight;
1491 margin-bottom: $lineheight;
1496 list-style: inherit;
1500 list-style-type: lower-alpha;
1505 background: $lightblue;
1507 background: darken($lightblue, $hovercolor);
1512 /* Rules for the account settings page */
1514 #accountForm .user_image {
1518 #accountForm #user_image {
1522 #accountForm ul.accountImage-options {
1535 display: inline !important;
1538 /* Rules for the oauth settings page */
1540 .oauth_clients .buttons .oauth-edit {
1541 border-radius: 2px 0 0 2px;
1544 .oauth_clients .buttons .oauth-delete {
1545 border-radius: 0 2px 2px 0;
1548 /* Rules for the oauth authorization page */
1550 .oauth-authorize ul {
1554 /* Rules for messages pages */
1557 input[type="submit"] {
1562 background: $offwhite;
1566 background: #CBEEA7;
1574 .inbox-row .inbox-mark-read {
1579 margin-bottom: $lineheight;
1580 padding: $lineheight/4 0px 4px 0px;
1581 border-bottom: 1px solid $grey;
1588 .info-line .user_thumbnail_tiny {
1589 vertical-align: middle;
1593 white-space: nowrap;
1602 .inbox-row-unread .inbox-mark-unread {
1606 /* Rules for "flash" notice boxes shown at the top of the content area */
1609 padding: $lineheight;
1612 background-color: #ff7070;
1616 background-color: #ffe0cc;
1620 background-color: #CBEEA7;
1624 display: inline-block;
1625 margin-left: $lineheight / 2;
1626 vertical-align: middle;
1629 margin-top: $lineheight * 0.5;
1630 margin-bottom: $lineheight * 0.5;
1643 /* Rules for highlighting fields with rails validation errors */
1646 display: inline-block;
1652 background-color: #ff7070;
1655 /* Rules for rails validation error boxes */
1659 border: 2px solid #ff7070;
1660 padding: 0 $lineheight/2;
1661 margin-bottom: $lineheight;
1662 background-color: #f0f0f0;
1665 margin: 0 -10px 10px -10px;
1666 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1669 background-color: #c00;
1677 padding: $lineheight/4;
1681 /* Rules for forms */
1685 margin-bottom: $lineheight;
1687 label.standard-label {
1689 margin-bottom: $lineheight/4;
1690 font-size: $typeheight;
1694 label.standard-label.secondary {
1695 display: inline-block;
1696 font-weight: normal;
1699 font-weight: normal;
1706 margin-top: $lineheight;
1707 padding-top: $lineheight;
1708 border-top: 1px solid $lightgrey;
1710 .horizontal-list .standard-form-row {
1712 padding-right: 10px;
1714 .standard-form-row {
1715 margin-bottom: $lineheight/2;
1722 list-style-type: none;
1724 input[type="checkbox"],
1725 input[type="radio"] {
1731 #remember_me_openid {
1739 input[type="checkbox"],
1740 input[type="radio"] {
1745 input[type="email"],
1747 input[type="password"],
1750 background-color: #fff;
1751 border: 1px solid $grey;
1757 &.field_with_errors {
1758 border: 2px solid #ff7070;
1769 /* Rules for user images */
1774 border: 1px solid $grey;
1775 margin-bottom: $lineheight;
1777 margin-right: $lineheight;
1780 img.user_thumbnail {
1783 border: 1px solid $grey;
1784 margin-right: $lineheight;
1787 img.user_thumbnail_tiny {
1792 border: 1px solid $grey;
1795 /* Rules for geo microformats */
1798 border-bottom: none;
1801 /* General styles for action lists / subnavs / pager navs */
1803 ul.secondary-actions {
1809 display: inline-block;
1816 border-left: 1px solid $grey;
1817 padding-left: $lineheight/2;
1818 margin-right: $lineheight/2;
1829 div.secondary-actions {
1834 /* Utility for managing inner content areas */
1836 .inner22 { padding: $lineheight;}
1838 .inner12 { padding: $lineheight/2 $lineheight;}
1840 .inner11 { padding: $lineheight/2;}
1842 .inner20 { padding: $lineheight 0;}
1844 .inner02 { padding: 0 $lineheight;}
1846 /* Utility for general button styles */
1848 input[type="button"],
1849 input[type="submit"],
1850 input[type="reset"],
1854 display: inline-block;
1855 padding: $lineheight/4 $lineheight/2;
1856 min-height: 20px + $lineheight/2;
1858 margin: 0 0 $lineheight/2 0;
1864 background: darken($blue, $hovercolor);
1865 text-decoration: none;
1868 background: $lightblue;
1870 background: darken($lightblue, $hovercolor);
1874 background: $lightgrey;
1876 background: $lightgrey;
1884 input[type="button"],
1885 input[type="submit"],
1886 input[type="reset"] {
1887 line-height: normal;
1896 input[type="submit"],
1897 input[type="button"],
1898 input[type="reset"],
1901 box-sizing: border-box;
1907 border-right:1px solid white;
1908 text-overflow: ellipsis;
1909 white-space: nowrap;
1913 .button:first-child,
1914 .button_to:first-child {
1915 border-radius:2px 0 0 2px;
1919 .button_to:last-child {
1920 border-radius:0 2px 2px 0;
1921 border-right-width: 0;
1925 .button_to:only-child,
1926 *[value="Hide"] + input:last-child,
1927 *[value="Hide"] + .button:last-child,
1928 *[value="Hide"] + .button_to:last-child {
1930 border-right-width: 0;
1932 /* if a 3-button set has a hidden middle button */
1933 *[value="Hide"] + input:nth-child(3),
1934 *[value="Hide"] + .button:nth-child(3),
1935 *[value="Hide"] + .button_to:nth-child(3) {
1936 border-radius:0 2px 2px 0;
1937 border-right-width: 0;
1939 /* if a 3-button set starts with a hidden button */
1940 *[value="Hide"] + input:nth-child(2):not(:last-child),
1941 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1942 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1943 border-radius:2px 0 0 2px;
1944 border-right-width: 1px;
1948 /* Customise the background colour of striped tables */
1950 .table-striped > tbody > tr:nth-child(2n+1) > td,
1951 .table-striped > tbody > tr:nth-child(2n+1) > th {
1952 background-color: $offwhite;
1955 /* Rules for OpenID logo */
1958 vertical-align: text-bottom;
1962 /* Rules for rich text */
1968 background: $lightgrey;
1974 background: $lightgrey;
1976 white-space: pre-wrap;
1984 padding: $lineheight;
1985 background-color: $offwhite;
1992 border-left: $lineheight solid $offwhite;
1993 padding-left: $lineheight;
1999 .diary_post .richtext {
2000 margin-top: $lineheight;
2003 .comments .richtext {
2008 /* Rules for rich text editors */
2010 input.richtext_title[type="text"] {
2012 width: calc(100% - 235px);
2014 @media only screen and (max-width:768px) {
2019 .richtext_container {
2020 margin-bottom: $lineheight;
2024 width: calc(100% - 235px);
2025 display: inline-block;
2026 vertical-align: top;
2028 @media only screen and (max-width:768px) {
2033 display: inline-block;
2034 padding: $lineheight;
2035 background-color: $offwhite;
2039 background-image: image-url("loading.gif");
2040 background-repeat: no-repeat;
2041 background-position: center;
2051 display: inline-block;
2052 vertical-align: top;
2054 background-color: $offwhite;
2055 padding: $lineheight/2;
2063 border-bottom: 1px solid $grey;
2064 margin-bottom: $lineheight/4;
2065 padding-bottom: $lineheight/4;
2068 li h4, li span, li p {
2069 display: inline-block;
2070 vertical-align: top;
2081 margin-left: $lineheight/2;
2082 margin-bottom: $lineheight/4;
2083 white-space: nowrap;
2088 /* Rules for the user notes list */
2092 background-color: $offwhite;
2096 /* Rules for the iD editor */
2103 /* Rules for the "Welcome" page */
2104 .site-welcome, .site-fixthemap {
2114 background-image: image-url("welcome-sprite.png");
2115 background-size: 500px 250px;
2121 padding-bottom: 20px;
2123 margin-bottom: 10px;
2135 /* no-r2 */ background-position: -50px 0;
2140 vertical-align: middle;
2144 /* no-r2 */ background-position: -100px 0;
2148 /* no-r2 */ background-position: -150px 0;
2152 /* no-r2 */ background-position: -200px 0;
2156 /* no-r2 */ background-position: -250px 0;
2160 /* no-r2 */ background-position: -300px 0;
2164 /* no-r2 */ background-position: -350px 0;
2173 text-decoration: none;
2177 background-color: #333;
2182 .site-about #content {
2183 background-color: $lightgrey;
2184 background-position: 50% 50%;
2185 background-repeat: no-repeat;
2186 background-size: cover;
2187 background-attachment: fixed;
2204 padding: 170px 40px 20px;
2206 background: rgba(0, 0, 0, .8);
2216 color: $vibrant-green;
2220 @include media-breakpoint-up(sm) {
2232 background-position: 0 50%;
2233 background-repeat: no-repeat;
2234 background-image: image-url('about/osm.png');
2235 background-size: cover;
2236 background-color: $vibrant-green;
2246 padding: 20px 20px 20px 40px;
2247 font: 500 20px/24px Helvetica, Arial, sans-serif;
2248 white-space: nowrap;
2250 background: $vibrant-green;
2254 display: inline-block;
2264 vertical-align: middle;
2265 background: 40px 40px image-url('about/sprite.png') no-repeat;
2269 background-position: 0px 0px;
2273 background-position: 0px -40px;
2277 background-position: 0px -80px;
2281 background-position: 0px -120px;
2285 background-position: 0px -160px;
2289 background-position: -45px -160px;
2296 @media only screen and (max-width:960px) {
2297 .header-illustration.new-user-arm {
2303 background: $lightgrey;