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;
1199 h1, h2, h3, p, ul, ol {
1200 margin-bottom: $lineheight;
1204 margin-top: $lineheight/2;
1212 padding: $lineheight;
1215 /* Overrides for pages that use new layout conventions */
1221 .content-heading .content-inner {
1226 .header-illustration {
1227 background-position: 0 0;
1228 background-repeat: no-repeat;
1236 background-image: image-url("sign-up-illustration.png");
1240 background-image: image-url("confirm-illustration.png");
1244 background-image: image-url("terms-illustration.png");
1252 background-image: image-url("sign-up-illustration-arm.png");
1257 [dir=rtl] .header-illustration {
1258 transform: scaleX(-1);
1261 #content.maximised {
1270 /* Rules for small maps in content areas */
1274 border: 1px solid $grey;
1275 margin-bottom: $lineheight;
1278 @include media-breakpoint-up(md) {
1284 /* Rules for the new trace form */
1289 width: calc(100% - 150px);
1294 /* Rules for the edit trace form */
1297 .standard-form-row p {
1303 width: calc(100% - 150px);
1308 /* Rules for the user profile page */
1313 .userinformation-inner {
1328 .admin-user-info small {
1329 margin-bottom: $lineheight/2;
1331 margin-right: $lineheight;
1335 margin-top: $lineheight;
1339 .activity-details p {
1345 // Silly exception; remove when user page is redesigned.
1349 p#no_home_location {
1350 margin: $lineheight;
1353 margin-top: $lineheight/4;
1358 /* Rules for the user map */
1360 .content_map .leaflet-popup-content {
1361 margin: $lineheight/2;
1365 /* Rules for user popups on maps */
1371 margin-top: 0 0 0 60px;
1374 img.user_thumbnail {
1376 margin: 0 $lineheight/2 0 0;
1380 /* Rules for the user list */
1386 vertical-align: middle;
1395 #user_list_actions {
1397 margin-top: $lineheight/2;
1400 /* Rules for the diary list page */
1404 padding-top: $lineheight;
1405 padding-bottom: $lineheight/2;
1406 border-top: 1px solid $grey;
1409 margin-top: $lineheight/2;
1413 background-color: #fee;
1417 margin-bottom: $lineheight;
1421 margin-bottom: $lineheight/2;
1425 img.user_thumbnail {
1436 padding-top: $lineheight;
1439 /* Rules for the diary entry page */
1446 border: 1px solid $grey;
1448 margin-bottom: $lineheight;
1451 border-top: 1px solid $grey;
1452 padding-top: $lineheight;
1453 margin-top: $lineheight/2;
1459 border-top: 1px dashed $grey;
1460 padding-top: $lineheight/2;
1461 padding-bottom: $lineheight/2;
1463 margin-top: $lineheight/2;
1464 padding-top: $lineheight;
1465 border-top: 1px solid $grey;
1468 background-color: #fee;
1471 margin-bottom: $lineheight/2;
1480 .diary_entries-show img.user_thumbnail {
1485 .diary-subscribe-buttons {
1491 /* Rules for the log in page */
1493 #login_auth_buttons {
1497 #login_auth_buttons li {
1499 padding: $lineheight/4 $lineheight/2;
1502 /* Rules for the account confirmation page */
1506 border: 1px solid $grey;
1507 padding: $lineheight;
1508 margin-bottom: $lineheight;
1513 list-style: inherit;
1517 list-style-type: lower-alpha;
1522 background: $lightblue;
1524 background: darken($lightblue, $hovercolor);
1529 /* Rules for the account settings page */
1531 #accountForm .user_map {
1535 border: 1px solid $grey;
1538 #accountForm .user_image {
1542 #accountForm #user_image {
1546 #accountForm ul.accountImage-options {
1559 display: inline !important;
1562 /* Rules for the oauth settings page */
1564 .oauth_clients .buttons .oauth-edit {
1565 border-radius: 2px 0 0 2px;
1568 .oauth_clients .buttons .oauth-delete {
1569 border-radius: 0 2px 2px 0;
1572 /* Rules for the oauth authorization page */
1574 .oauth-authorize ul {
1578 /* Rules for messages pages */
1581 input[type="submit"] {
1586 background: $offwhite;
1590 background: #CBEEA7;
1598 .inbox-row .inbox-mark-read {
1603 margin-bottom: $lineheight;
1604 padding: $lineheight/4 0px 4px 0px;
1605 border-bottom: 1px solid $grey;
1612 .info-line .user_thumbnail_tiny {
1613 vertical-align: middle;
1617 white-space: nowrap;
1626 .inbox-row-unread .inbox-mark-unread {
1630 /* Rules for "flash" notice boxes shown at the top of the content area */
1633 padding: $lineheight;
1636 background-color: #ff7070;
1640 background-color: #ffe0cc;
1644 background-color: #CBEEA7;
1648 display: inline-block;
1649 margin-left: $lineheight / 2;
1650 vertical-align: middle;
1653 margin-top: $lineheight * 0.5;
1654 margin-bottom: $lineheight * 0.5;
1667 /* Rules for highlighting fields with rails validation errors */
1670 display: inline-block;
1676 background-color: #ff7070;
1679 /* Rules for rails validation error boxes */
1683 border: 2px solid #ff7070;
1684 padding: 0 $lineheight/2;
1685 margin-bottom: $lineheight;
1686 background-color: #f0f0f0;
1689 margin: 0 -10px 10px -10px;
1690 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1693 background-color: #c00;
1701 padding: $lineheight/4;
1705 /* Rules for forms */
1709 margin-bottom: $lineheight;
1711 label.standard-label {
1713 margin-bottom: $lineheight/4;
1714 font-size: $typeheight;
1718 label.standard-label.secondary {
1719 display: inline-block;
1720 font-weight: normal;
1723 font-weight: normal;
1730 margin-top: $lineheight;
1731 padding-top: $lineheight;
1732 border-top: 1px solid $lightgrey;
1734 .horizontal-list .standard-form-row {
1736 padding-right: 10px;
1738 .standard-form-row {
1739 margin-bottom: $lineheight/2;
1746 list-style-type: none;
1748 input[type="checkbox"],
1749 input[type="radio"] {
1755 #remember_me_openid {
1763 input[type="checkbox"],
1764 input[type="radio"] {
1769 input[type="email"],
1771 input[type="password"],
1774 background-color: #fff;
1775 border: 1px solid $grey;
1781 &.field_with_errors {
1782 border: 2px solid #ff7070;
1793 /* Rules for user images */
1798 border: 1px solid $grey;
1799 margin-bottom: $lineheight;
1801 margin-right: $lineheight;
1804 img.user_thumbnail {
1807 border: 1px solid $grey;
1808 margin-right: $lineheight;
1811 img.user_thumbnail_tiny {
1816 border: 1px solid $grey;
1819 /* Rules for geo microformats */
1822 border-bottom: none;
1825 /* General styles for action lists / subnavs / pager navs */
1827 ul.secondary-actions {
1833 display: inline-block;
1840 border-left: 1px solid $grey;
1841 padding-left: $lineheight/2;
1842 margin-right: $lineheight/2;
1853 div.secondary-actions {
1858 /* Utility for managing inner content areas */
1860 .inner22 { padding: $lineheight;}
1862 .inner12 { padding: $lineheight/2 $lineheight;}
1864 .inner11 { padding: $lineheight/2;}
1866 .inner20 { padding: $lineheight 0;}
1868 .inner02 { padding: 0 $lineheight;}
1870 /* Utility for general button styles */
1872 input[type="button"],
1873 input[type="submit"],
1874 input[type="reset"],
1878 display: inline-block;
1879 padding: $lineheight/4 $lineheight/2;
1880 min-height: 20px + $lineheight/2;
1882 margin: 0 0 $lineheight/2 0;
1888 background: darken($blue, $hovercolor);
1889 text-decoration: none;
1892 background: $lightblue;
1894 background: darken($lightblue, $hovercolor);
1898 background: $lightgrey;
1900 background: $lightgrey;
1908 input[type="button"],
1909 input[type="submit"],
1910 input[type="reset"] {
1911 line-height: normal;
1920 input[type="submit"],
1921 input[type="button"],
1922 input[type="reset"],
1925 box-sizing: border-box;
1931 border-right:1px solid white;
1932 text-overflow: ellipsis;
1933 white-space: nowrap;
1937 .button:first-child,
1938 .button_to:first-child {
1939 border-radius:2px 0 0 2px;
1943 .button_to:last-child {
1944 border-radius:0 2px 2px 0;
1945 border-right-width: 0;
1949 .button_to:only-child,
1950 *[value="Hide"] + input:last-child,
1951 *[value="Hide"] + .button:last-child,
1952 *[value="Hide"] + .button_to:last-child {
1954 border-right-width: 0;
1956 /* if a 3-button set has a hidden middle button */
1957 *[value="Hide"] + input:nth-child(3),
1958 *[value="Hide"] + .button:nth-child(3),
1959 *[value="Hide"] + .button_to:nth-child(3) {
1960 border-radius:0 2px 2px 0;
1961 border-right-width: 0;
1963 /* if a 3-button set starts with a hidden button */
1964 *[value="Hide"] + input:nth-child(2):not(:last-child),
1965 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1966 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1967 border-radius:2px 0 0 2px;
1968 border-right-width: 1px;
1972 /* Customise the background colour of striped tables */
1974 .table-striped > tbody > tr:nth-child(2n+1) > td,
1975 .table-striped > tbody > tr:nth-child(2n+1) > th {
1976 background-color: $offwhite;
1979 /* Rules for OpenID logo */
1982 vertical-align: text-bottom;
1986 /* Rules for rich text */
1992 background: $lightgrey;
1998 background: $lightgrey;
2000 white-space: pre-wrap;
2008 padding: $lineheight;
2009 background-color: $offwhite;
2016 border-left: $lineheight solid $offwhite;
2017 padding-left: $lineheight;
2023 .diary_post .richtext {
2024 margin-top: $lineheight;
2027 .comments .richtext {
2032 /* Rules for rich text editors */
2034 input.richtext_title[type="text"] {
2036 width: calc(100% - 235px);
2038 @media only screen and (max-width:768px) {
2043 .richtext_container {
2044 margin-bottom: $lineheight;
2048 width: calc(100% - 235px);
2049 display: inline-block;
2050 vertical-align: top;
2052 @media only screen and (max-width:768px) {
2057 display: inline-block;
2058 padding: $lineheight;
2059 background-color: $offwhite;
2063 background-image: image-url("loading.gif");
2064 background-repeat: no-repeat;
2065 background-position: center;
2075 display: inline-block;
2076 vertical-align: top;
2078 background-color: $offwhite;
2079 padding: $lineheight/2;
2087 border-bottom: 1px solid $grey;
2088 margin-bottom: $lineheight/4;
2089 padding-bottom: $lineheight/4;
2092 li h4, li span, li p {
2093 display: inline-block;
2094 vertical-align: top;
2105 margin-left: $lineheight/2;
2106 margin-bottom: $lineheight/4;
2107 white-space: nowrap;
2112 /* Rules for the user notes list */
2116 background-color: $offwhite;
2120 /* Rules for the iD editor */
2127 /* Rules for the "Welcome" page */
2128 .site-welcome, .site-fixthemap {
2138 background-image: image-url("welcome-sprite.png");
2139 background-size: 500px 250px;
2145 padding-bottom: 20px;
2147 margin-bottom: 10px;
2159 /* no-r2 */ background-position: -50px 0;
2164 vertical-align: middle;
2168 /* no-r2 */ background-position: -100px 0;
2172 /* no-r2 */ background-position: -150px 0;
2176 /* no-r2 */ background-position: -200px 0;
2180 /* no-r2 */ background-position: -250px 0;
2184 /* no-r2 */ background-position: -300px 0;
2188 /* no-r2 */ background-position: -350px 0;
2197 text-decoration: none;
2201 background-color: #333;
2206 .site-about #content {
2207 background-color: $lightgrey;
2208 background-position: 50% 50%;
2209 background-repeat: no-repeat;
2210 background-size: cover;
2211 background-attachment: fixed;
2228 padding: 170px 40px 20px;
2230 background: rgba(0, 0, 0, .8);
2240 color: $vibrant-green;
2250 background-position: 0 50%;
2251 background-repeat: no-repeat;
2252 background-image: image-url('about/osm.png');
2253 background-size: cover;
2254 background-color: $vibrant-green;
2264 padding: 20px 20px 20px 40px;
2265 font: 500 20px/24px Helvetica, Arial, sans-serif;
2266 white-space: nowrap;
2268 background: $vibrant-green;
2272 display: inline-block;
2282 vertical-align: middle;
2283 background: 40px 40px image-url('about/sprite.png') no-repeat;
2287 background-position: 0px 0px;
2291 background-position: 0px -40px;
2295 background-position: 0px -80px;
2299 background-position: 0px -120px;
2303 background-position: 0px -160px;
2307 background-position: -45px -160px;
2314 @media only screen and (max-width:960px) {
2315 .header-illustration.new-user-arm {
2321 background: $lightgrey;