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;
713 margin: $lineheight auto;
725 /* Rules for the search and direction forms */
727 header .search_forms,
735 padding: $lineheight/2;
736 background-color: $lightgrey;
741 border-radius: 2px 0 0 2px;
747 transition: 300ms linear;
750 input[type=text].overflow {
752 border-radius: 3px 0px 0px 3px;
757 box-shadow: 0px 0px 7px $vibrant-green;
760 input[type=submit].float {
764 border-radius: 0 2px 2px 0;
768 background-color: rgba($red, 0.4);
772 /* this next line is to polyfill the vertical alignment of text within a select element,
773 * which is different between firefox and chrome. */
810 select.routing_engines {
812 margin: 0px 0px 5px 25px;
827 margin: 0px 0px 5px 0px;
834 vertical-align: middle;
838 a.reverse_directions {
840 margin: 0px 0px 5px 25px;
844 /* Rules for the map key which appears in the popout sidebar */
847 .mapkey-table-key img {
854 /* Rules for search sidebar */
856 #sidebar .search_results_entry {
859 &.selected { background: $list-highlight; }
862 .search_more .loader {
868 .search_results_error {
873 /* Rules for routing */
875 #sidebar_content>table {
876 padding: 5px 20px 10px 15px;
878 border-collapse: separate;
883 background-image: image-url('routing-sprite.png');
886 background-repeat: no-repeat;
888 @for $i from 0 through 25 {
889 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
893 padding: 0 $lineheight $lineheight/4;
896 td.instruction, td.distance {
897 padding-top: $lineheight/5;
898 padding-bottom: $lineheight/5;
899 border-bottom: 1px solid $grey;
910 background: $list-highlight;
912 .routing_engines, #route_from, #route_to { margin-left: 25px; }
913 .routing_marker { width: 15px; position: absolute; cursor: move; }
915 /* Rules for entity history */
920 border-bottom: $keyline;
928 /* Rules for the history sidebar */
930 #sidebar .changesets {
934 &.selected { background: $list-highlight; }
935 /* color is derived from changeset bbox fillColor in history.js */
947 .changeset_more .loader {
953 /* Rules for the browse sidebar */
957 padding: $lineheight/2 $lineheight;
958 border-bottom: 1px solid $grey;
962 word-wrap: break-word;
966 .browse-section:last-of-type {
973 border: 1px solid $lightgrey;
981 padding: 5px 0 5px 10px;
983 border: 1px solid $grey;
984 border-radius: 4px 4px 0 0;
985 background-color: $offwhite;
991 background-color: #FFF;
992 border: 1px solid $grey;
994 border-radius: 0 0 4px 4px;
999 background-color: $offwhite;
1000 border: 1px solid $grey;
1002 table-layout: fixed;
1003 border-collapse: separate;
1008 border-bottom: 1px solid $grey;
1011 tr:last-child th, tr:last-child td {
1019 word-wrap: break-word;
1020 white-space: pre-wrap;
1025 background-color: $offwhite;
1029 border-left: 1px solid $grey;
1030 background-color: #fff;
1033 .colour-preview-box {
1038 border: 1px solid rgba(0, 0, 0, .1);
1039 // add color via inline css on element: background-color: <tag value>;
1043 .note-comments li, .changeset-comments li {
1044 margin: $lineheight/2 0;
1047 margin: 10px 6px 0 6px;
1056 .subscribe-buttons {
1058 margin: 18px 10px 10px;
1062 .subscribe-buttons input {
1068 span.action-button:hover {
1070 text-decoration: underline;
1075 margin: 0 0 10px 10px;
1079 padding: $lineheight $lineheight $lineheight/2;
1084 padding-bottom: $lineheight/2;
1087 padding: 0 $lineheight;
1097 background: $list-highlight;
1104 /* Rules for export sidebar */
1107 padding: $lineheight;
1109 .export_area_inputs,
1114 .export_area_inputs {
1115 margin-bottom: $lineheight/2;
1116 input[type="text"] {
1124 background: $lightgrey;
1125 border: 1px solid $grey;
1128 #maxlat { margin-top: -1px; }
1131 /* no-r2 */ margin-left: -1px;
1135 /* no-r2 */ margin-right: -1px;
1137 #minlat { margin-bottom: 0; }
1141 margin: $lineheight/4;
1145 margin-top: $lineheight;
1146 margin-bottom: $lineheight;
1150 padding-left: $lineheight/2;
1153 margin-bottom: 10px;
1158 /* Rules for the routing sidebar */
1167 /* Rules for edit pages */
1183 /* Rules for non-map content pages */
1186 background: $lightgrey;
1193 padding: $lineheight;
1196 /* Overrides for pages that use new layout conventions */
1202 .content-heading .content-inner {
1207 .header-illustration {
1208 background-position: 0 0;
1209 background-repeat: no-repeat;
1217 background-image: image-url("sign-up-illustration.png");
1221 background-image: image-url("confirm-illustration.png");
1225 background-image: image-url("terms-illustration.png");
1233 background-image: image-url("sign-up-illustration-arm.png");
1238 [dir=rtl] .header-illustration {
1239 transform: scaleX(-1);
1242 #content.maximised {
1251 /* Rules for small maps in content areas */
1255 border: 1px solid $grey;
1256 margin-bottom: $lineheight;
1259 @include media-breakpoint-up(md) {
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 */
1293 .userinformation-inner {
1302 .admin-user-info small {
1303 margin-bottom: $lineheight/2;
1305 margin-right: $lineheight;
1309 margin-top: $lineheight;
1313 .activity-details p {
1319 // Silly exception; remove when user page is redesigned.
1323 p#no_home_location {
1324 margin: $lineheight;
1327 margin-top: $lineheight/4;
1332 /* Rules for the user map */
1334 .content_map .leaflet-popup-content {
1335 margin: $lineheight/2;
1339 /* Rules for user popups on maps */
1345 margin-top: 0 0 0 60px;
1348 img.user_thumbnail {
1350 margin: 0 $lineheight/2 0 0;
1354 /* Rules for the user list */
1360 vertical-align: middle;
1369 #user_list_actions {
1371 margin-top: $lineheight/2;
1374 /* Rules for the diary list page */
1378 padding-top: $lineheight;
1379 padding-bottom: $lineheight/2;
1380 border-top: 1px solid $grey;
1383 margin-top: $lineheight/2;
1387 background-color: #fee;
1391 margin-bottom: $lineheight;
1395 margin-bottom: $lineheight/2;
1399 img.user_thumbnail {
1410 padding-top: $lineheight;
1413 /* Rules for the diary entry page */
1420 border: 1px solid $grey;
1422 margin-bottom: $lineheight;
1425 border-top: 1px solid $grey;
1426 padding-top: $lineheight;
1427 margin-top: $lineheight/2;
1433 border-top: 1px dashed $grey;
1434 padding-top: $lineheight/2;
1435 padding-bottom: $lineheight/2;
1437 margin-top: $lineheight/2;
1438 padding-top: $lineheight;
1439 border-top: 1px solid $grey;
1442 background-color: #fee;
1445 margin-bottom: $lineheight/2;
1454 .diary_entries-show img.user_thumbnail {
1459 .diary-subscribe-buttons {
1465 /* Rules for the log in page */
1467 #login_auth_buttons {
1471 #login_auth_buttons li {
1473 padding: $lineheight/4 $lineheight/2;
1476 /* Rules for the account confirmation page */
1480 border: 1px solid $grey;
1481 padding: $lineheight;
1482 margin-bottom: $lineheight;
1487 list-style: inherit;
1491 list-style-type: lower-alpha;
1496 background: $lightblue;
1498 background: darken($lightblue, $hovercolor);
1503 /* Rules for the account settings page */
1505 #accountForm .user_map {
1509 border: 1px solid $grey;
1512 #accountForm .user_image {
1516 #accountForm #user_image {
1520 #accountForm ul.accountImage-options {
1533 display: inline !important;
1536 /* Rules for the oauth settings page */
1538 .oauth_clients .buttons .oauth-edit {
1539 border-radius: 2px 0 0 2px;
1542 .oauth_clients .buttons .oauth-delete {
1543 border-radius: 0 2px 2px 0;
1546 /* Rules for the oauth authorization page */
1548 .oauth-authorize ul {
1552 /* Rules for messages pages */
1555 input[type="submit"] {
1560 background: $offwhite;
1564 background: #CBEEA7;
1572 .inbox-row .inbox-mark-read {
1577 margin-bottom: $lineheight;
1578 padding: $lineheight/4 0px 4px 0px;
1579 border-bottom: 1px solid $grey;
1586 .info-line .user_thumbnail_tiny {
1587 vertical-align: middle;
1591 white-space: nowrap;
1600 .inbox-row-unread .inbox-mark-unread {
1604 /* Rules for "flash" notice boxes shown at the top of the content area */
1607 padding: $lineheight;
1610 background-color: #ff7070;
1614 background-color: #ffe0cc;
1618 background-color: #CBEEA7;
1622 display: inline-block;
1623 margin-left: $lineheight / 2;
1624 vertical-align: middle;
1627 margin-top: $lineheight * 0.5;
1628 margin-bottom: $lineheight * 0.5;
1641 /* Rules for highlighting fields with rails validation errors */
1644 display: inline-block;
1650 background-color: #ff7070;
1653 /* Rules for rails validation error boxes */
1657 border: 2px solid #ff7070;
1658 padding: 0 $lineheight/2;
1659 margin-bottom: $lineheight;
1660 background-color: #f0f0f0;
1663 margin: 0 -10px 10px -10px;
1664 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1667 background-color: #c00;
1675 padding: $lineheight/4;
1679 /* Rules for forms */
1683 margin-bottom: $lineheight;
1685 label.standard-label {
1687 margin-bottom: $lineheight/4;
1688 font-size: $typeheight;
1692 label.standard-label.secondary {
1693 display: inline-block;
1694 font-weight: normal;
1697 font-weight: normal;
1704 margin-top: $lineheight;
1705 padding-top: $lineheight;
1706 border-top: 1px solid $lightgrey;
1708 .horizontal-list .standard-form-row {
1710 padding-right: 10px;
1712 .standard-form-row {
1713 margin-bottom: $lineheight/2;
1720 list-style-type: none;
1722 input[type="checkbox"],
1723 input[type="radio"] {
1729 #remember_me_openid {
1737 input[type="checkbox"],
1738 input[type="radio"] {
1743 input[type="email"],
1745 input[type="password"],
1748 background-color: #fff;
1749 border: 1px solid $grey;
1755 &.field_with_errors {
1756 border: 2px solid #ff7070;
1767 /* Rules for user images */
1772 border: 1px solid $grey;
1773 margin-bottom: $lineheight;
1775 margin-right: $lineheight;
1778 img.user_thumbnail {
1781 border: 1px solid $grey;
1782 margin-right: $lineheight;
1785 img.user_thumbnail_tiny {
1790 border: 1px solid $grey;
1793 /* Rules for geo microformats */
1796 border-bottom: none;
1799 /* General styles for action lists / subnavs / pager navs */
1801 ul.secondary-actions {
1807 display: inline-block;
1814 border-left: 1px solid $grey;
1815 padding-left: $lineheight/2;
1816 margin-right: $lineheight/2;
1827 div.secondary-actions {
1832 /* Utility for managing inner content areas */
1834 .inner22 { padding: $lineheight;}
1836 .inner12 { padding: $lineheight/2 $lineheight;}
1838 .inner11 { padding: $lineheight/2;}
1840 .inner20 { padding: $lineheight 0;}
1842 .inner02 { padding: 0 $lineheight;}
1844 /* Utility for general button styles */
1846 input[type="button"],
1847 input[type="submit"],
1848 input[type="reset"],
1852 display: inline-block;
1853 padding: $lineheight/4 $lineheight/2;
1854 min-height: 20px + $lineheight/2;
1856 margin: 0 0 $lineheight/2 0;
1862 background: darken($blue, $hovercolor);
1863 text-decoration: none;
1866 background: $lightblue;
1868 background: darken($lightblue, $hovercolor);
1872 background: $lightgrey;
1874 background: $lightgrey;
1882 input[type="button"],
1883 input[type="submit"],
1884 input[type="reset"] {
1885 line-height: normal;
1894 input[type="submit"],
1895 input[type="button"],
1896 input[type="reset"],
1899 box-sizing: border-box;
1905 border-right:1px solid white;
1906 text-overflow: ellipsis;
1907 white-space: nowrap;
1911 .button:first-child,
1912 .button_to:first-child {
1913 border-radius:2px 0 0 2px;
1917 .button_to:last-child {
1918 border-radius:0 2px 2px 0;
1919 border-right-width: 0;
1923 .button_to:only-child,
1924 *[value="Hide"] + input:last-child,
1925 *[value="Hide"] + .button:last-child,
1926 *[value="Hide"] + .button_to:last-child {
1928 border-right-width: 0;
1930 /* if a 3-button set has a hidden middle button */
1931 *[value="Hide"] + input:nth-child(3),
1932 *[value="Hide"] + .button:nth-child(3),
1933 *[value="Hide"] + .button_to:nth-child(3) {
1934 border-radius:0 2px 2px 0;
1935 border-right-width: 0;
1937 /* if a 3-button set starts with a hidden button */
1938 *[value="Hide"] + input:nth-child(2):not(:last-child),
1939 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1940 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1941 border-radius:2px 0 0 2px;
1942 border-right-width: 1px;
1946 /* Customise the background colour of striped tables */
1948 .table-striped > tbody > tr:nth-child(2n+1) > td,
1949 .table-striped > tbody > tr:nth-child(2n+1) > th {
1950 background-color: $offwhite;
1953 /* Rules for OpenID logo */
1956 vertical-align: text-bottom;
1960 /* Rules for rich text */
1966 background: $lightgrey;
1972 background: $lightgrey;
1974 white-space: pre-wrap;
1982 padding: $lineheight;
1983 background-color: $offwhite;
1990 border-left: $lineheight solid $offwhite;
1991 padding-left: $lineheight;
1997 .diary_post .richtext {
1998 margin-top: $lineheight;
2001 .comments .richtext {
2006 /* Rules for rich text editors */
2008 input.richtext_title[type="text"] {
2010 width: calc(100% - 235px);
2012 @media only screen and (max-width:768px) {
2017 .richtext_container {
2018 margin-bottom: $lineheight;
2022 width: calc(100% - 235px);
2023 display: inline-block;
2024 vertical-align: top;
2026 @media only screen and (max-width:768px) {
2031 display: inline-block;
2032 padding: $lineheight;
2033 background-color: $offwhite;
2037 background-image: image-url("loading.gif");
2038 background-repeat: no-repeat;
2039 background-position: center;
2049 display: inline-block;
2050 vertical-align: top;
2052 background-color: $offwhite;
2053 padding: $lineheight/2;
2061 border-bottom: 1px solid $grey;
2062 margin-bottom: $lineheight/4;
2063 padding-bottom: $lineheight/4;
2066 li h4, li span, li p {
2067 display: inline-block;
2068 vertical-align: top;
2079 margin-left: $lineheight/2;
2080 margin-bottom: $lineheight/4;
2081 white-space: nowrap;
2086 /* Rules for the user notes list */
2090 background-color: $offwhite;
2094 /* Rules for the iD editor */
2101 /* Rules for the "Welcome" page */
2102 .site-welcome, .site-fixthemap {
2112 background-image: image-url("welcome-sprite.png");
2113 background-size: 500px 250px;
2119 padding-bottom: 20px;
2121 margin-bottom: 10px;
2133 /* no-r2 */ background-position: -50px 0;
2138 vertical-align: middle;
2142 /* no-r2 */ background-position: -100px 0;
2146 /* no-r2 */ background-position: -150px 0;
2150 /* no-r2 */ background-position: -200px 0;
2154 /* no-r2 */ background-position: -250px 0;
2158 /* no-r2 */ background-position: -300px 0;
2162 /* no-r2 */ background-position: -350px 0;
2171 text-decoration: none;
2175 background-color: #333;
2180 .site-about #content {
2181 background-color: $lightgrey;
2182 background-position: 50% 50%;
2183 background-repeat: no-repeat;
2184 background-size: cover;
2185 background-attachment: fixed;
2202 padding: 170px 40px 20px;
2204 background: rgba(0, 0, 0, .8);
2214 color: $vibrant-green;
2224 background-position: 0 50%;
2225 background-repeat: no-repeat;
2226 background-image: image-url('about/osm.png');
2227 background-size: cover;
2228 background-color: $vibrant-green;
2238 padding: 20px 20px 20px 40px;
2239 font: 500 20px/24px Helvetica, Arial, sans-serif;
2240 white-space: nowrap;
2242 background: $vibrant-green;
2246 display: inline-block;
2256 vertical-align: middle;
2257 background: 40px 40px image-url('about/sprite.png') no-repeat;
2261 background-position: 0px 0px;
2265 background-position: 0px -40px;
2269 background-position: 0px -80px;
2273 background-position: 0px -120px;
2277 background-position: 0px -160px;
2281 background-position: -45px -160px;
2288 @media only screen and (max-width:960px) {
2289 .header-illustration.new-user-arm {
2295 background: $lightgrey;