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_map {
1518 border: 1px solid $grey;
1521 #accountForm .user_image {
1525 #accountForm #user_image {
1529 #accountForm ul.accountImage-options {
1542 display: inline !important;
1545 /* Rules for the oauth settings page */
1547 .oauth_clients .buttons .oauth-edit {
1548 border-radius: 2px 0 0 2px;
1551 .oauth_clients .buttons .oauth-delete {
1552 border-radius: 0 2px 2px 0;
1555 /* Rules for the oauth authorization page */
1557 .oauth-authorize ul {
1561 /* Rules for messages pages */
1564 input[type="submit"] {
1569 background: $offwhite;
1573 background: #CBEEA7;
1581 .inbox-row .inbox-mark-read {
1586 margin-bottom: $lineheight;
1587 padding: $lineheight/4 0px 4px 0px;
1588 border-bottom: 1px solid $grey;
1595 .info-line .user_thumbnail_tiny {
1596 vertical-align: middle;
1600 white-space: nowrap;
1609 .inbox-row-unread .inbox-mark-unread {
1613 /* Rules for "flash" notice boxes shown at the top of the content area */
1616 padding: $lineheight;
1619 background-color: #ff7070;
1623 background-color: #ffe0cc;
1627 background-color: #CBEEA7;
1631 display: inline-block;
1632 margin-left: $lineheight / 2;
1633 vertical-align: middle;
1636 margin-top: $lineheight * 0.5;
1637 margin-bottom: $lineheight * 0.5;
1650 /* Rules for highlighting fields with rails validation errors */
1653 display: inline-block;
1659 background-color: #ff7070;
1662 /* Rules for rails validation error boxes */
1666 border: 2px solid #ff7070;
1667 padding: 0 $lineheight/2;
1668 margin-bottom: $lineheight;
1669 background-color: #f0f0f0;
1672 margin: 0 -10px 10px -10px;
1673 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1676 background-color: #c00;
1684 padding: $lineheight/4;
1688 /* Rules for forms */
1692 margin-bottom: $lineheight;
1694 label.standard-label {
1696 margin-bottom: $lineheight/4;
1697 font-size: $typeheight;
1701 label.standard-label.secondary {
1702 display: inline-block;
1703 font-weight: normal;
1706 font-weight: normal;
1713 margin-top: $lineheight;
1714 padding-top: $lineheight;
1715 border-top: 1px solid $lightgrey;
1717 .horizontal-list .standard-form-row {
1719 padding-right: 10px;
1721 .standard-form-row {
1722 margin-bottom: $lineheight/2;
1729 list-style-type: none;
1731 input[type="checkbox"],
1732 input[type="radio"] {
1738 #remember_me_openid {
1746 input[type="checkbox"],
1747 input[type="radio"] {
1752 input[type="email"],
1754 input[type="password"],
1757 background-color: #fff;
1758 border: 1px solid $grey;
1764 &.field_with_errors {
1765 border: 2px solid #ff7070;
1776 /* Rules for user images */
1781 border: 1px solid $grey;
1782 margin-bottom: $lineheight;
1784 margin-right: $lineheight;
1787 img.user_thumbnail {
1790 border: 1px solid $grey;
1791 margin-right: $lineheight;
1794 img.user_thumbnail_tiny {
1799 border: 1px solid $grey;
1802 /* Rules for geo microformats */
1805 border-bottom: none;
1808 /* General styles for action lists / subnavs / pager navs */
1810 ul.secondary-actions {
1816 display: inline-block;
1823 border-left: 1px solid $grey;
1824 padding-left: $lineheight/2;
1825 margin-right: $lineheight/2;
1836 div.secondary-actions {
1841 /* Utility for managing inner content areas */
1843 .inner22 { padding: $lineheight;}
1845 .inner12 { padding: $lineheight/2 $lineheight;}
1847 .inner11 { padding: $lineheight/2;}
1849 .inner20 { padding: $lineheight 0;}
1851 .inner02 { padding: 0 $lineheight;}
1853 /* Utility for general button styles */
1855 input[type="button"],
1856 input[type="submit"],
1857 input[type="reset"],
1861 display: inline-block;
1862 padding: $lineheight/4 $lineheight/2;
1863 min-height: 20px + $lineheight/2;
1865 margin: 0 0 $lineheight/2 0;
1871 background: darken($blue, $hovercolor);
1872 text-decoration: none;
1875 background: $lightblue;
1877 background: darken($lightblue, $hovercolor);
1881 background: $lightgrey;
1883 background: $lightgrey;
1891 input[type="button"],
1892 input[type="submit"],
1893 input[type="reset"] {
1894 line-height: normal;
1903 input[type="submit"],
1904 input[type="button"],
1905 input[type="reset"],
1908 box-sizing: border-box;
1914 border-right:1px solid white;
1915 text-overflow: ellipsis;
1916 white-space: nowrap;
1920 .button:first-child,
1921 .button_to:first-child {
1922 border-radius:2px 0 0 2px;
1926 .button_to:last-child {
1927 border-radius:0 2px 2px 0;
1928 border-right-width: 0;
1932 .button_to:only-child,
1933 *[value="Hide"] + input:last-child,
1934 *[value="Hide"] + .button:last-child,
1935 *[value="Hide"] + .button_to:last-child {
1937 border-right-width: 0;
1939 /* if a 3-button set has a hidden middle button */
1940 *[value="Hide"] + input:nth-child(3),
1941 *[value="Hide"] + .button:nth-child(3),
1942 *[value="Hide"] + .button_to:nth-child(3) {
1943 border-radius:0 2px 2px 0;
1944 border-right-width: 0;
1946 /* if a 3-button set starts with a hidden button */
1947 *[value="Hide"] + input:nth-child(2):not(:last-child),
1948 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1949 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1950 border-radius:2px 0 0 2px;
1951 border-right-width: 1px;
1955 /* Customise the background colour of striped tables */
1957 .table-striped > tbody > tr:nth-child(2n+1) > td,
1958 .table-striped > tbody > tr:nth-child(2n+1) > th {
1959 background-color: $offwhite;
1962 /* Rules for OpenID logo */
1965 vertical-align: text-bottom;
1969 /* Rules for rich text */
1975 background: $lightgrey;
1981 background: $lightgrey;
1983 white-space: pre-wrap;
1991 padding: $lineheight;
1992 background-color: $offwhite;
1999 border-left: $lineheight solid $offwhite;
2000 padding-left: $lineheight;
2006 .diary_post .richtext {
2007 margin-top: $lineheight;
2010 .comments .richtext {
2015 /* Rules for rich text editors */
2017 input.richtext_title[type="text"] {
2019 width: calc(100% - 235px);
2021 @media only screen and (max-width:768px) {
2026 .richtext_container {
2027 margin-bottom: $lineheight;
2031 width: calc(100% - 235px);
2032 display: inline-block;
2033 vertical-align: top;
2035 @media only screen and (max-width:768px) {
2040 display: inline-block;
2041 padding: $lineheight;
2042 background-color: $offwhite;
2046 background-image: image-url("loading.gif");
2047 background-repeat: no-repeat;
2048 background-position: center;
2058 display: inline-block;
2059 vertical-align: top;
2061 background-color: $offwhite;
2062 padding: $lineheight/2;
2070 border-bottom: 1px solid $grey;
2071 margin-bottom: $lineheight/4;
2072 padding-bottom: $lineheight/4;
2075 li h4, li span, li p {
2076 display: inline-block;
2077 vertical-align: top;
2088 margin-left: $lineheight/2;
2089 margin-bottom: $lineheight/4;
2090 white-space: nowrap;
2095 /* Rules for the user notes list */
2099 background-color: $offwhite;
2103 /* Rules for the iD editor */
2110 /* Rules for the "Welcome" page */
2111 .site-welcome, .site-fixthemap {
2121 background-image: image-url("welcome-sprite.png");
2122 background-size: 500px 250px;
2128 padding-bottom: 20px;
2130 margin-bottom: 10px;
2142 /* no-r2 */ background-position: -50px 0;
2147 vertical-align: middle;
2151 /* no-r2 */ background-position: -100px 0;
2155 /* no-r2 */ background-position: -150px 0;
2159 /* no-r2 */ background-position: -200px 0;
2163 /* no-r2 */ background-position: -250px 0;
2167 /* no-r2 */ background-position: -300px 0;
2171 /* no-r2 */ background-position: -350px 0;
2180 text-decoration: none;
2184 background-color: #333;
2189 .site-about #content {
2190 background-color: $lightgrey;
2191 background-position: 50% 50%;
2192 background-repeat: no-repeat;
2193 background-size: cover;
2194 background-attachment: fixed;
2211 padding: 170px 40px 20px;
2213 background: rgba(0, 0, 0, .8);
2223 color: $vibrant-green;
2233 background-position: 0 50%;
2234 background-repeat: no-repeat;
2235 background-image: image-url('about/osm.png');
2236 background-size: cover;
2237 background-color: $vibrant-green;
2247 padding: 20px 20px 20px 40px;
2248 font: 500 20px/24px Helvetica, Arial, sans-serif;
2249 white-space: nowrap;
2251 background: $vibrant-green;
2255 display: inline-block;
2265 vertical-align: middle;
2266 background: 40px 40px image-url('about/sprite.png') no-repeat;
2270 background-position: 0px 0px;
2274 background-position: 0px -40px;
2278 background-position: 0px -80px;
2282 background-position: 0px -120px;
2286 background-position: 0px -160px;
2290 background-position: -45px -160px;
2297 @media only screen and (max-width:960px) {
2298 .header-illustration.new-user-arm {
2304 background: $lightgrey;