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 */
99 /* Rules for the header */
102 display: none !important;
104 background: image-url("menu-icon.png") no-repeat;
105 background-size: 30px 30px;
109 margin: 14px 10px 0 0;
114 height: $headerHeight;
119 h1, nav, nav > ul, nav > ul > li {
120 display: inline-block;
125 padding: $lineheight/2;
133 text-decoration: none;
140 vertical-align: middle;
166 .btn-outline-primary {
167 @include button-outline-variant($green, $white);
171 .btn-outline-primary {
176 border-top-color: $grey;
180 background-color: lighten($green, 30%);
185 // Small tweaks to the toggle to stop the primary colour showing through
186 // when the menu is shown
187 .show > .btn-outline-primary.dropdown-toggle {
188 background-color: $green;
189 border-color: $green;
192 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
207 color: darken($darkgrey, 25%);
211 .btn-outline-secondary {
212 @include button-outline-variant($darkgrey);
217 .btn-outline-secondary {
218 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
224 background-color: white;
228 &.show .btn-outline-secondary {
229 background-color: white;
236 img.user_thumbnail_tiny {
242 display: inline-block;
244 margin: 3px 0 3px 3px;
245 background-color: lighten($grey, 10%);
257 nav.primary, nav.secondary {
260 background-color: $green;
266 #compact-secondary-nav {
271 #compact-secondary-nav {
272 display: inline-block;
279 /* Utility for styling notification numbers */
282 padding: 2px $lineheight/4;
284 background: lighten($green, 30%);
290 /* Rules for the message shown in place of the map when javascript is disabled */
298 /* Rules for Leaflet maps */
300 .leaflet-control .control-button {
304 background-color: #333;
305 background-color: rgba(0,0,0,.6);
306 border-radius: 4px 0 0 4px;
311 background-color: black;
316 background-color: #333;
317 background-color: rgba(0,0,0,.5);
322 background-color: $vibrant-green;
330 .leaflet-control .zoomin,
331 .control-layers .control-button {
333 border-radius: 4px 0 0 0;
336 .leaflet-control .zoomout,
337 .control-key .control-button {
342 .control-locate .control-button,
343 .control-share .control-button {
344 border-radius: 0 0 0 4px;
347 /* Rules for the sidebar and main map area */
367 width: $sidebarWidth;
382 padding: $lineheight $lineheight $lineheight/2;
387 margin-top: $lineheight;
388 margin-bottom: $lineheight/2;
401 pointer-events: none;
426 .overlay-sidebar #sidebar {
454 padding: $lineheight/2 $lineheight $lineheight;
468 border-right: 1px solid #fff;
478 width: $sidebarWidth;
494 .leaflet-marker-draggable {
509 border-bottom: 1px solid $grey;
519 border:1px solid $grey;
524 border: 1px solid $grey;
526 border-top-color: $grey;
550 border: 2px solid #fff;
553 transition: border-color 0.08s ease-in;
560 border-bottom-right-radius: 3px;
564 text-stroke: 2px #fff;
565 background: rgba(255,255,255,.9);
567 input[type="radio"] {
572 &.active { border-color: darken($green, 10%); }
575 &.active { border-color: darken($green, 20%); }
585 li.disabled { color: $darkgrey; }
595 text-decoration: none;
596 background-color: $lightblue;
598 border-right: 1px solid #fff;
602 border-right: 1px solid #fff;
603 border-radius: 4px 0 0 4px;
607 border-radius: 0 4px 4px 0;
611 background-color: $blue;
623 font-family: monospace;
645 top: $lineheight/2 !important;
647 margin-right: 0px !important;
648 margin-top: 0px !important;
652 .leaflet-popup-scrolled {
653 padding-right: $lineheight;
654 border-bottom: 0px !important;
655 border-top: 0px !important;
658 .leaflet-popup-content-wrapper {
659 border-radius: 4px !important;
662 /* Rules for attribution text under the main map shown on printouts */
672 .attribution_license,
673 .attribution_project {
677 .attribution_notice {
681 .donate-attr { color: darken($green, 10%) !important; }
683 /* Rules for the sidebar */
687 padding: $lineheight/2 $lineheight;
688 // background: $offwhite;
689 // border-bottom: 1px solid $grey;
699 padding: $lineheight;
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>;
1044 margin: 0 0 $lineheight/2 0;
1045 padding: 0 $lineheight/2;
1048 .note-comments li, .changeset-comments li {
1049 margin: $lineheight/2 0;
1052 margin: 10px 6px 0 6px;
1061 .subscribe-buttons {
1063 margin: 18px 10px 10px;
1067 .subscribe-buttons input {
1073 span.action-button:hover {
1075 text-decoration: underline;
1080 margin: 0 0 10px 10px;
1084 padding: $lineheight $lineheight $lineheight/2;
1089 padding-bottom: $lineheight/2;
1092 padding: 0 $lineheight;
1102 background: $list-highlight;
1109 /* Rules for export sidebar */
1112 padding: $lineheight;
1114 .export_area_inputs,
1119 .export_area_inputs {
1120 margin-bottom: $lineheight/2;
1121 input[type="text"] {
1129 background: $lightgrey;
1130 border: 1px solid $grey;
1133 #maxlat { margin-top: -1px; }
1136 /* no-r2 */ margin-left: -1px;
1140 /* no-r2 */ margin-right: -1px;
1142 #minlat { margin-bottom: 0; }
1146 margin: $lineheight/4;
1150 margin-top: $lineheight;
1151 margin-bottom: $lineheight;
1155 padding-left: $lineheight/2;
1158 margin-bottom: 10px;
1163 /* Rules for the routing sidebar */
1172 /* Rules for edit pages */
1188 /* Rules for non-map content pages */
1191 background: $lightgrey;
1195 h1, h2, h3, p, ul, ol {
1196 margin-bottom: $lineheight;
1200 margin-top: $lineheight/2;
1208 padding: $lineheight;
1211 /* Overrides for pages that use new layout conventions */
1217 .content-heading .content-inner {
1222 .header-illustration {
1223 background-position: 0 0;
1224 background-repeat: no-repeat;
1232 background-image: image-url("sign-up-illustration.png");
1236 background-image: image-url("confirm-illustration.png");
1240 background-image: image-url("terms-illustration.png");
1248 background-image: image-url("sign-up-illustration-arm.png");
1253 [dir=rtl] .header-illustration {
1254 transform: scaleX(-1);
1257 #content.maximised {
1266 /* Rules for small maps in content areas */
1270 border: 1px solid $grey;
1271 margin-bottom: $lineheight;
1274 @include media-breakpoint-up(md) {
1280 /* Rules for the new trace form */
1285 width: calc(100% - 150px);
1290 /* Rules for the edit trace form */
1293 .standard-form-row p {
1299 width: calc(100% - 150px);
1304 /* Rules for the user profile page */
1309 .userinformation-inner {
1324 .admin-user-info small {
1325 margin-bottom: $lineheight/2;
1327 margin-right: $lineheight;
1331 margin-top: $lineheight;
1335 .activity-details p {
1341 // Silly exception; remove when user page is redesigned.
1345 p#no_home_location {
1346 margin: $lineheight;
1349 margin-top: $lineheight/4;
1354 /* Rules for the user map */
1356 .content_map .leaflet-popup-content {
1357 margin: $lineheight/2;
1361 /* Rules for user popups on maps */
1367 margin-top: 0 0 0 60px;
1370 img.user_thumbnail {
1372 margin: 0 $lineheight/2 0 0;
1376 /* Rules for the user list */
1382 vertical-align: middle;
1391 #user_list_actions {
1393 margin-top: $lineheight/2;
1396 /* Rules for the diary list page */
1400 padding-top: $lineheight;
1401 padding-bottom: $lineheight/2;
1402 border-top: 1px solid $grey;
1405 margin-top: $lineheight/2;
1409 background-color: #fee;
1413 margin-bottom: $lineheight;
1417 margin-bottom: $lineheight/2;
1421 img.user_thumbnail {
1432 padding-top: $lineheight;
1435 /* Rules for the diary entry page */
1442 border: 1px solid $grey;
1444 margin-bottom: $lineheight;
1447 border-top: 1px solid $grey;
1448 padding-top: $lineheight;
1449 margin-top: $lineheight/2;
1455 border-top: 1px dashed $grey;
1456 padding-top: $lineheight/2;
1457 padding-bottom: $lineheight/2;
1459 margin-top: $lineheight/2;
1460 padding-top: $lineheight;
1461 border-top: 1px solid $grey;
1464 background-color: #fee;
1467 margin-bottom: $lineheight/2;
1476 .diary_entries-show img.user_thumbnail {
1481 .diary-subscribe-buttons {
1487 /* Rules for the log in page */
1489 #login_auth_buttons {
1493 #login_auth_buttons li {
1495 padding: $lineheight/4 $lineheight/2;
1498 /* Rules for the account confirmation page */
1502 border: 1px solid $grey;
1503 padding: $lineheight;
1504 margin-bottom: $lineheight;
1509 list-style: inherit;
1513 list-style-type: lower-alpha;
1518 background: $lightblue;
1520 background: darken($lightblue, $hovercolor);
1525 /* Rules for the account settings page */
1527 #accountForm .user_map {
1531 border: 1px solid $grey;
1534 #accountForm .user_image {
1538 #accountForm #user_image {
1542 #accountForm ul.accountImage-options {
1555 display: inline !important;
1558 /* Rules for the oauth settings page */
1560 .oauth_clients .buttons .oauth-edit {
1561 border-radius: 2px 0 0 2px;
1564 .oauth_clients .buttons .oauth-delete {
1565 border-radius: 0 2px 2px 0;
1568 /* Rules for the oauth authorization page */
1570 .oauth-authorize ul {
1574 /* Rules for messages pages */
1577 input[type="submit"] {
1582 background: $offwhite;
1586 background: #CBEEA7;
1594 .inbox-row .inbox-mark-read {
1599 margin-bottom: $lineheight;
1600 padding: $lineheight/4 0px 4px 0px;
1601 border-bottom: 1px solid $grey;
1608 .info-line .user_thumbnail_tiny {
1609 vertical-align: middle;
1613 white-space: nowrap;
1622 .inbox-row-unread .inbox-mark-unread {
1626 /* Rules for "flash" notice boxes shown at the top of the content area */
1629 padding: $lineheight;
1632 background-color: #ff7070;
1636 background-color: #ffe0cc;
1640 background-color: #CBEEA7;
1644 display: inline-block;
1645 margin-left: $lineheight / 2;
1646 vertical-align: middle;
1649 margin-top: $lineheight * 0.5;
1650 margin-bottom: $lineheight * 0.5;
1663 /* Rules for highlighting fields with rails validation errors */
1666 display: inline-block;
1672 background-color: #ff7070;
1675 /* Rules for rails validation error boxes */
1679 border: 2px solid #ff7070;
1680 padding: 0 $lineheight/2;
1681 margin-bottom: $lineheight;
1682 background-color: #f0f0f0;
1685 margin: 0 -10px 10px -10px;
1686 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1689 background-color: #c00;
1697 padding: $lineheight/4;
1701 /* Rules for forms */
1705 margin-bottom: $lineheight;
1707 label.standard-label {
1709 margin-bottom: $lineheight/4;
1710 font-size: $typeheight;
1714 label.standard-label.secondary {
1715 display: inline-block;
1716 font-weight: normal;
1719 font-weight: normal;
1726 margin-top: $lineheight;
1727 padding-top: $lineheight;
1728 border-top: 1px solid $lightgrey;
1730 .horizontal-list .standard-form-row {
1732 padding-right: 10px;
1734 .standard-form-row {
1735 margin-bottom: $lineheight/2;
1742 list-style-type: none;
1744 input[type="checkbox"],
1745 input[type="radio"] {
1751 #remember_me_openid {
1759 input[type="checkbox"],
1760 input[type="radio"] {
1765 input[type="email"],
1767 input[type="password"],
1770 background-color: #fff;
1771 border: 1px solid $grey;
1777 &.field_with_errors {
1778 border: 2px solid #ff7070;
1789 /* Rules for user images */
1794 border: 1px solid $grey;
1795 margin-bottom: $lineheight;
1797 margin-right: $lineheight;
1800 img.user_thumbnail {
1803 border: 1px solid $grey;
1804 margin-right: $lineheight;
1807 img.user_thumbnail_tiny {
1812 border: 1px solid $grey;
1815 /* Rules for geo microformats */
1818 border-bottom: none;
1821 /* General styles for action lists / subnavs / pager navs */
1823 ul.secondary-actions {
1829 display: inline-block;
1836 border-left: 1px solid $grey;
1837 padding-left: $lineheight/2;
1838 margin-right: $lineheight/2;
1849 div.secondary-actions {
1854 /* Utility for managing inner content areas */
1856 .inner22 { padding: $lineheight;}
1858 .inner12 { padding: $lineheight/2 $lineheight;}
1860 .inner11 { padding: $lineheight/2;}
1862 .inner20 { padding: $lineheight 0;}
1864 .inner02 { padding: 0 $lineheight;}
1866 /* Utility for general button styles */
1868 input[type="button"],
1869 input[type="submit"],
1870 input[type="reset"],
1874 display: inline-block;
1875 padding: $lineheight/4 $lineheight/2;
1876 min-height: 20px + $lineheight/2;
1878 margin: 0 0 $lineheight/2 0;
1884 background: darken($blue, $hovercolor);
1885 text-decoration: none;
1888 background: $lightblue;
1890 background: darken($lightblue, $hovercolor);
1894 background: $lightgrey;
1896 background: $lightgrey;
1904 input[type="button"],
1905 input[type="submit"],
1906 input[type="reset"] {
1907 line-height: normal;
1916 input[type="submit"],
1917 input[type="button"],
1918 input[type="reset"],
1921 box-sizing: border-box;
1927 border-right:1px solid white;
1928 text-overflow: ellipsis;
1929 white-space: nowrap;
1933 .button:first-child,
1934 .button_to:first-child {
1935 border-radius:2px 0 0 2px;
1939 .button_to:last-child {
1940 border-radius:0 2px 2px 0;
1941 border-right-width: 0;
1945 .button_to:only-child,
1946 *[value="Hide"] + input:last-child,
1947 *[value="Hide"] + .button:last-child,
1948 *[value="Hide"] + .button_to:last-child {
1950 border-right-width: 0;
1952 /* if a 3-button set has a hidden middle button */
1953 *[value="Hide"] + input:nth-child(3),
1954 *[value="Hide"] + .button:nth-child(3),
1955 *[value="Hide"] + .button_to:nth-child(3) {
1956 border-radius:0 2px 2px 0;
1957 border-right-width: 0;
1959 /* if a 3-button set starts with a hidden button */
1960 *[value="Hide"] + input:nth-child(2):not(:last-child),
1961 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1962 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1963 border-radius:2px 0 0 2px;
1964 border-right-width: 1px;
1968 /* Customise the background colour of striped tables */
1970 .table-striped > tbody > tr:nth-child(2n+1) > td,
1971 .table-striped > tbody > tr:nth-child(2n+1) > th {
1972 background-color: $offwhite;
1975 /* Rules for OpenID logo */
1978 vertical-align: text-bottom;
1982 /* Rules for rich text */
1988 background: $lightgrey;
1994 background: $lightgrey;
1996 white-space: pre-wrap;
2004 padding: $lineheight;
2005 background-color: $offwhite;
2012 border-left: $lineheight solid $offwhite;
2013 padding-left: $lineheight;
2019 .diary_post .richtext {
2020 margin-top: $lineheight;
2023 .comments .richtext {
2028 /* Rules for rich text editors */
2030 input.richtext_title[type="text"] {
2032 width: calc(100% - 235px);
2034 @media only screen and (max-width:768px) {
2039 .richtext_container {
2040 margin-bottom: $lineheight;
2044 width: calc(100% - 235px);
2045 display: inline-block;
2046 vertical-align: top;
2048 @media only screen and (max-width:768px) {
2053 display: inline-block;
2054 padding: $lineheight;
2055 background-color: $offwhite;
2059 background-image: image-url("loading.gif");
2060 background-repeat: no-repeat;
2061 background-position: center;
2071 display: inline-block;
2072 vertical-align: top;
2074 background-color: $offwhite;
2075 padding: $lineheight/2;
2083 border-bottom: 1px solid $grey;
2084 margin-bottom: $lineheight/4;
2085 padding-bottom: $lineheight/4;
2088 li h4, li span, li p {
2089 display: inline-block;
2090 vertical-align: top;
2101 margin-left: $lineheight/2;
2102 margin-bottom: $lineheight/4;
2103 white-space: nowrap;
2108 /* Rules for the user notes list */
2112 background-color: $offwhite;
2116 /* Rules for the iD editor */
2123 /* Rules for the "Welcome" page */
2124 .site-welcome, .site-fixthemap {
2134 background-image: image-url("welcome-sprite.png");
2135 background-size: 500px 250px;
2141 padding-bottom: 20px;
2143 margin-bottom: 10px;
2155 /* no-r2 */ background-position: -50px 0;
2160 vertical-align: middle;
2164 /* no-r2 */ background-position: -100px 0;
2168 /* no-r2 */ background-position: -150px 0;
2172 /* no-r2 */ background-position: -200px 0;
2176 /* no-r2 */ background-position: -250px 0;
2180 /* no-r2 */ background-position: -300px 0;
2184 /* no-r2 */ background-position: -350px 0;
2193 text-decoration: none;
2197 background-color: #333;
2202 .site-about #content {
2203 background-color: $lightgrey;
2204 background-position: 50% 50%;
2205 background-repeat: no-repeat;
2206 background-size: cover;
2207 background-attachment: fixed;
2224 padding: 170px 40px 20px;
2226 background: rgba(0, 0, 0, .8);
2236 color: $vibrant-green;
2246 background-position: 0 50%;
2247 background-repeat: no-repeat;
2248 background-image: image-url('about/osm.png');
2249 background-size: cover;
2250 background-color: $vibrant-green;
2260 padding: 20px 20px 20px 40px;
2261 font: 500 20px/24px Helvetica, Arial, sans-serif;
2262 white-space: nowrap;
2264 background: $vibrant-green;
2268 display: inline-block;
2278 vertical-align: middle;
2279 background: 40px 40px image-url('about/sprite.png') no-repeat;
2283 background-position: 0px 0px;
2287 background-position: 0px -40px;
2291 background-position: 0px -80px;
2295 background-position: 0px -120px;
2299 background-position: 0px -160px;
2303 background-position: -45px -160px;
2310 @media only screen and (max-width:960px) {
2311 .header-illustration.new-user-arm {
2317 background: $lightgrey;