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;
38 [dir=rtl] { /* no-r2 */ text-align: right; }
40 [dir=ltr] { /* no-r2 */ text-align: left; }
45 display: inline-block;
49 background: transparent image-url("sprite.png") no-repeat 0 0;
50 background-image: image-url("sprite.svg");
55 .icon.search { /* no-r2 */ background-position: 0 0; }
56 .icon.donate { /* no-r2 */ background-position: -20px 0; }
57 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
58 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
59 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
60 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
61 .icon.layers { /* no-r2 */ background-position: -100px 0; }
62 .icon.key { /* no-r2 */ background-position: -120px 0; }
63 .icon.share { /* no-r2 */ background-position: -140px 0; }
64 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
65 .icon.link { /* no-r2 */ background-position: -180px 0; }
66 .icon.close { /* no-r2 */ background-position: -200px 0; }
67 .close-wrap:hover .icon.close,
68 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
69 .icon.check { /* no-r2 */ background-position: -220px 0; }
70 .icon.note { /* no-r2 */ background-position: -240px 0; }
71 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
72 .icon.query { /* no-r2 */ background-position: -260px 0; }
78 text-decoration: none;
81 text-decoration: underline;
85 /* Utility for de-emphasizing content */
98 /* Rules for the header */
101 display: none !important;
103 background: image-url("menu-icon.png") no-repeat;
104 background-size: 30px 30px;
108 margin: 14px 10px 0 0;
113 height: $headerHeight;
118 h1, nav, nav > ul, nav > ul > li {
119 display: inline-block;
124 padding: $lineheight/2;
132 text-decoration: none;
139 vertical-align: middle;
165 .btn-outline-primary {
166 @include button-outline-variant($green, $white);
170 .btn-outline-primary {
175 border-top-color: $grey;
179 background-color: lighten($green, 30%);
184 // Small tweaks to the toggle to stop the primary colour showing through
185 // when the menu is shown
186 .show > .btn-outline-primary.dropdown-toggle {
187 background-color: $green;
188 border-color: $green;
191 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
206 color: darken($darkgrey, 25%);
210 .btn-outline-secondary {
211 @include button-outline-variant($darkgrey);
216 .btn-outline-secondary {
217 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
223 background-color: white;
227 &.show .btn-outline-secondary {
228 background-color: white;
235 img.user_thumbnail_tiny {
241 display: inline-block;
243 margin: 3px 0 3px 3px;
244 background-color: lighten($grey, 10%);
256 nav.primary, nav.secondary {
259 background-color: $green;
265 #compact-secondary-nav {
270 #compact-secondary-nav {
271 display: inline-block;
278 /* Utility for styling notification numbers */
281 padding: 2px $lineheight/4;
283 background: lighten($green, 30%);
289 /* Rules for the message shown in place of the map when javascript is disabled */
297 /* Rules for Leaflet maps */
299 .leaflet-control .control-button {
303 background-color: #333;
304 background-color: rgba(0,0,0,.6);
305 border-radius: 4px 0 0 4px;
310 background-color: black;
315 background-color: #333;
316 background-color: rgba(0,0,0,.5);
321 background-color: $vibrant-green;
329 .leaflet-control .zoomin,
330 .control-layers .control-button {
332 border-radius: 4px 0 0 0;
335 .leaflet-control .zoomout,
336 .control-key .control-button {
341 .control-locate .control-button,
342 .control-share .control-button {
343 border-radius: 0 0 0 4px;
346 /* Rules for the sidebar and main map area */
366 width: $sidebarWidth;
381 padding: $lineheight $lineheight $lineheight/2;
386 margin-top: $lineheight;
387 margin-bottom: $lineheight/2;
400 pointer-events: none;
425 .overlay-sidebar #sidebar {
453 padding: $lineheight/2 $lineheight $lineheight;
467 border-right: 1px solid #fff;
477 width: $sidebarWidth;
493 .leaflet-marker-draggable {
508 border-bottom: 1px solid $grey;
518 border:1px solid $grey;
523 border: 1px solid $grey;
525 border-top-color: $grey;
549 border: 2px solid #fff;
552 transition: border-color 0.08s ease-in;
559 border-bottom-right-radius: 3px;
563 text-stroke: 2px #fff;
564 background: rgba(255,255,255,.9);
566 input[type="radio"] {
571 &.active { border-color: darken($green, 10%); }
574 &.active { border-color: darken($green, 20%); }
584 li.disabled { color: $darkgrey; }
594 text-decoration: none;
595 background-color: $lightblue;
597 border-right: 1px solid #fff;
601 border-right: 1px solid #fff;
602 border-radius: 4px 0 0 4px;
606 border-radius: 0 4px 4px 0;
610 background-color: $blue;
622 font-family: monospace;
644 top: $lineheight/2 !important;
646 margin-right: 0px !important;
647 margin-top: 0px !important;
651 .leaflet-popup-scrolled {
652 padding-right: $lineheight;
653 border-bottom: 0px !important;
654 border-top: 0px !important;
657 .leaflet-popup-content-wrapper {
658 border-radius: 4px !important;
661 /* Rules for attribution text under the main map shown on printouts */
671 .attribution_license,
672 .attribution_project {
676 .attribution_notice {
680 .donate-attr { color: darken($green, 10%) !important; }
682 /* Rules for the sidebar */
686 padding: $lineheight/2 $lineheight;
687 // background: $offwhite;
688 // border-bottom: 1px solid $grey;
698 padding: $lineheight;
712 margin: $lineheight auto;
724 /* Rules for the search and direction forms */
726 header .search_forms,
734 padding: $lineheight/2;
735 background-color: $lightgrey;
740 border-radius: 2px 0 0 2px;
746 transition: 300ms linear;
749 input[type=text].overflow {
751 border-radius: 3px 0px 0px 3px;
756 box-shadow: 0px 0px 7px $vibrant-green;
759 input[type=submit].float {
763 border-radius: 0 2px 2px 0;
767 background-color: rgba($red, 0.4);
771 /* this next line is to polyfill the vertical alignment of text within a select element,
772 * which is different between firefox and chrome. */
809 select.routing_engines {
811 margin: 0px 0px 5px 25px;
826 margin: 0px 0px 5px 0px;
833 vertical-align: middle;
837 a.reverse_directions {
839 margin: 0px 0px 5px 25px;
843 /* Rules for the map key which appears in the popout sidebar */
846 .mapkey-table-key img {
853 /* Rules for search sidebar */
855 #sidebar .search_results_entry {
858 &.selected { background: $list-highlight; }
861 .search_more .loader {
867 .search_results_error {
872 /* Rules for routing */
874 #sidebar_content>table {
875 padding: 5px 20px 10px 15px;
877 border-collapse: separate;
882 background-image: image-url('routing-sprite.png');
885 background-repeat: no-repeat;
887 @for $i from 0 through 25 {
888 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
892 padding: 0 $lineheight $lineheight/4;
895 td.instruction, td.distance {
896 padding-top: $lineheight/5;
897 padding-bottom: $lineheight/5;
898 border-bottom: 1px solid $grey;
909 background: $list-highlight;
911 .routing_engines, #route_from, #route_to { margin-left: 25px; }
912 .routing_marker { width: 15px; position: absolute; cursor: move; }
914 /* Rules for entity history */
919 border-bottom: $keyline;
927 /* Rules for the history sidebar */
929 #sidebar .changesets {
933 &.selected { background: $list-highlight; }
934 /* color is derived from changeset bbox fillColor in history.js */
946 .changeset_more .loader {
952 /* Rules for the browse sidebar */
956 padding: $lineheight/2 $lineheight;
957 border-bottom: 1px solid $grey;
961 word-wrap: break-word;
965 .browse-section:last-of-type {
972 border: 1px solid $lightgrey;
980 padding: 5px 0 5px 10px;
982 border: 1px solid $grey;
983 border-radius: 4px 4px 0 0;
984 background-color: $offwhite;
990 background-color: #FFF;
991 border: 1px solid $grey;
993 border-radius: 0 0 4px 4px;
998 background-color: $offwhite;
999 border: 1px solid $grey;
1001 table-layout: fixed;
1002 border-collapse: separate;
1007 border-bottom: 1px solid $grey;
1010 tr:last-child th, tr:last-child td {
1018 word-wrap: break-word;
1019 white-space: pre-wrap;
1024 background-color: $offwhite;
1028 border-left: 1px solid $grey;
1029 background-color: #fff;
1032 .colour-preview-box {
1037 border: 1px solid rgba(0, 0, 0, .1);
1038 // add color via inline css on element: background-color: <tag value>;
1043 margin: 0 0 $lineheight/2 0;
1044 padding: 0 $lineheight/2;
1047 .note-comments li, .changeset-comments li {
1048 margin: $lineheight/2 0;
1051 margin: 10px 6px 0 6px;
1060 .subscribe-buttons {
1062 margin: 18px 10px 10px;
1066 .subscribe-buttons input {
1072 span.action-button:hover {
1074 text-decoration: underline;
1079 margin: 0 0 10px 10px;
1083 padding: $lineheight $lineheight $lineheight/2;
1088 padding-bottom: $lineheight/2;
1091 padding: 0 $lineheight;
1101 background: $list-highlight;
1108 /* Rules for export sidebar */
1111 padding: $lineheight;
1113 .export_area_inputs,
1118 .export_area_inputs {
1119 margin-bottom: $lineheight/2;
1120 input[type="text"] {
1128 background: $lightgrey;
1129 border: 1px solid $grey;
1132 #maxlat { margin-top: -1px; }
1135 /* no-r2 */ margin-left: -1px;
1139 /* no-r2 */ margin-right: -1px;
1141 #minlat { margin-bottom: 0; }
1145 margin: $lineheight/4;
1149 margin-top: $lineheight;
1150 margin-bottom: $lineheight;
1154 padding-left: $lineheight/2;
1157 margin-bottom: 10px;
1162 /* Rules for the routing sidebar */
1171 /* Rules for edit pages */
1187 /* Rules for non-map content pages */
1190 background: $lightgrey;
1197 padding: $lineheight;
1200 /* Overrides for pages that use new layout conventions */
1206 .content-heading .content-inner {
1211 .header-illustration {
1212 background-position: 0 0;
1213 background-repeat: no-repeat;
1221 background-image: image-url("sign-up-illustration.png");
1225 background-image: image-url("confirm-illustration.png");
1229 background-image: image-url("terms-illustration.png");
1237 background-image: image-url("sign-up-illustration-arm.png");
1242 [dir=rtl] .header-illustration {
1243 transform: scaleX(-1);
1246 #content.maximised {
1255 /* Rules for small maps in content areas */
1259 border: 1px solid $grey;
1260 margin-bottom: $lineheight;
1263 @include media-breakpoint-up(md) {
1269 /* Rules for the new trace form */
1274 width: calc(100% - 150px);
1279 /* Rules for the edit trace form */
1282 .standard-form-row p {
1288 width: calc(100% - 150px);
1293 /* Rules for the user profile page */
1297 .userinformation-inner {
1306 .admin-user-info small {
1307 margin-bottom: $lineheight/2;
1309 margin-right: $lineheight;
1313 margin-top: $lineheight;
1317 .activity-details p {
1323 // Silly exception; remove when user page is redesigned.
1327 p#no_home_location {
1328 margin: $lineheight;
1331 margin-top: $lineheight/4;
1336 /* Rules for the user map */
1338 .content_map .leaflet-popup-content {
1339 margin: $lineheight/2;
1343 /* Rules for user popups on maps */
1349 margin-top: 0 0 0 60px;
1352 img.user_thumbnail {
1354 margin: 0 $lineheight/2 0 0;
1358 /* Rules for the user list */
1364 vertical-align: middle;
1373 #user_list_actions {
1375 margin-top: $lineheight/2;
1378 /* Rules for the diary list page */
1382 padding-top: $lineheight;
1383 padding-bottom: $lineheight/2;
1384 border-top: 1px solid $grey;
1387 margin-top: $lineheight/2;
1391 background-color: #fee;
1395 margin-bottom: $lineheight;
1399 margin-bottom: $lineheight/2;
1403 img.user_thumbnail {
1414 padding-top: $lineheight;
1417 /* Rules for the diary entry page */
1424 border: 1px solid $grey;
1426 margin-bottom: $lineheight;
1429 border-top: 1px solid $grey;
1430 padding-top: $lineheight;
1431 margin-top: $lineheight/2;
1437 border-top: 1px dashed $grey;
1438 padding-top: $lineheight/2;
1439 padding-bottom: $lineheight/2;
1441 margin-top: $lineheight/2;
1442 padding-top: $lineheight;
1443 border-top: 1px solid $grey;
1446 background-color: #fee;
1449 margin-bottom: $lineheight/2;
1458 .diary_entries-show img.user_thumbnail {
1463 .diary-subscribe-buttons {
1469 /* Rules for the log in page */
1471 #login_auth_buttons {
1475 #login_auth_buttons li {
1477 padding: $lineheight/4 $lineheight/2;
1480 /* Rules for the account confirmation page */
1484 border: 1px solid $grey;
1485 padding: $lineheight;
1486 margin-bottom: $lineheight;
1491 list-style: inherit;
1495 list-style-type: lower-alpha;
1500 background: $lightblue;
1502 background: darken($lightblue, $hovercolor);
1507 /* Rules for the account settings page */
1509 #accountForm .user_image {
1513 #accountForm #user_image {
1517 #accountForm ul.accountImage-options {
1530 display: inline !important;
1533 /* Rules for the oauth settings page */
1535 .oauth_clients .buttons .oauth-edit {
1536 border-radius: 2px 0 0 2px;
1539 .oauth_clients .buttons .oauth-delete {
1540 border-radius: 0 2px 2px 0;
1543 /* Rules for the oauth authorization page */
1545 .oauth-authorize ul {
1549 /* Rules for messages pages */
1552 input[type="submit"] {
1557 background: $offwhite;
1561 background: #CBEEA7;
1569 .inbox-row .inbox-mark-read {
1574 margin-bottom: $lineheight;
1575 padding: $lineheight/4 0px 4px 0px;
1576 border-bottom: 1px solid $grey;
1583 .info-line .user_thumbnail_tiny {
1584 vertical-align: middle;
1588 white-space: nowrap;
1597 .inbox-row-unread .inbox-mark-unread {
1601 /* Rules for "flash" notice boxes shown at the top of the content area */
1604 padding: $lineheight;
1607 background-color: #ff7070;
1611 background-color: #ffe0cc;
1615 background-color: #CBEEA7;
1619 display: inline-block;
1620 margin-left: $lineheight / 2;
1621 vertical-align: middle;
1624 margin-top: $lineheight * 0.5;
1625 margin-bottom: $lineheight * 0.5;
1638 /* Rules for highlighting fields with rails validation errors */
1641 display: inline-block;
1647 background-color: #ff7070;
1650 /* Rules for rails validation error boxes */
1654 border: 2px solid #ff7070;
1655 padding: 0 $lineheight/2;
1656 margin-bottom: $lineheight;
1657 background-color: #f0f0f0;
1660 margin: 0 -10px 10px -10px;
1661 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1664 background-color: #c00;
1672 padding: $lineheight/4;
1676 /* Rules for forms */
1680 margin-bottom: $lineheight;
1682 label.standard-label {
1684 margin-bottom: $lineheight/4;
1685 font-size: $typeheight;
1689 label.standard-label.secondary {
1690 display: inline-block;
1691 font-weight: normal;
1694 font-weight: normal;
1701 margin-top: $lineheight;
1702 padding-top: $lineheight;
1703 border-top: 1px solid $lightgrey;
1705 .horizontal-list .standard-form-row {
1707 padding-right: 10px;
1709 .standard-form-row {
1710 margin-bottom: $lineheight/2;
1717 list-style-type: none;
1719 input[type="checkbox"],
1720 input[type="radio"] {
1726 #remember_me_openid {
1734 input[type="checkbox"],
1735 input[type="radio"] {
1740 input[type="email"],
1742 input[type="password"],
1745 background-color: #fff;
1746 border: 1px solid $grey;
1752 &.field_with_errors {
1753 border: 2px solid #ff7070;
1764 /* Rules for user images */
1769 border: 1px solid $grey;
1770 margin-bottom: $lineheight;
1772 margin-right: $lineheight;
1775 img.user_thumbnail {
1778 border: 1px solid $grey;
1779 margin-right: $lineheight;
1782 img.user_thumbnail_tiny {
1787 border: 1px solid $grey;
1790 /* Rules for geo microformats */
1793 border-bottom: none;
1796 /* General styles for action lists / subnavs / pager navs */
1798 ul.secondary-actions {
1804 display: inline-block;
1811 border-left: 1px solid $grey;
1812 padding-left: $lineheight/2;
1813 margin-right: $lineheight/2;
1824 div.secondary-actions {
1829 /* Utility for managing inner content areas */
1831 .inner22 { padding: $lineheight;}
1833 .inner12 { padding: $lineheight/2 $lineheight;}
1835 .inner11 { padding: $lineheight/2;}
1837 .inner20 { padding: $lineheight 0;}
1839 .inner02 { padding: 0 $lineheight;}
1841 /* Utility for general button styles */
1843 input[type="button"],
1844 input[type="submit"],
1845 input[type="reset"],
1849 display: inline-block;
1850 padding: $lineheight/4 $lineheight/2;
1851 min-height: 20px + $lineheight/2;
1853 margin: 0 0 $lineheight/2 0;
1859 background: darken($blue, $hovercolor);
1860 text-decoration: none;
1863 background: $lightblue;
1865 background: darken($lightblue, $hovercolor);
1869 background: $lightgrey;
1871 background: $lightgrey;
1879 input[type="button"],
1880 input[type="submit"],
1881 input[type="reset"] {
1882 line-height: normal;
1891 input[type="submit"],
1892 input[type="button"],
1893 input[type="reset"],
1896 box-sizing: border-box;
1902 border-right:1px solid white;
1903 text-overflow: ellipsis;
1904 white-space: nowrap;
1908 .button:first-child,
1909 .button_to:first-child {
1910 border-radius:2px 0 0 2px;
1914 .button_to:last-child {
1915 border-radius:0 2px 2px 0;
1916 border-right-width: 0;
1920 .button_to:only-child,
1921 *[value="Hide"] + input:last-child,
1922 *[value="Hide"] + .button:last-child,
1923 *[value="Hide"] + .button_to:last-child {
1925 border-right-width: 0;
1927 /* if a 3-button set has a hidden middle button */
1928 *[value="Hide"] + input:nth-child(3),
1929 *[value="Hide"] + .button:nth-child(3),
1930 *[value="Hide"] + .button_to:nth-child(3) {
1931 border-radius:0 2px 2px 0;
1932 border-right-width: 0;
1934 /* if a 3-button set starts with a hidden button */
1935 *[value="Hide"] + input:nth-child(2):not(:last-child),
1936 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1937 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1938 border-radius:2px 0 0 2px;
1939 border-right-width: 1px;
1943 /* Customise the background colour of striped tables */
1945 .table-striped > tbody > tr:nth-child(2n+1) > td,
1946 .table-striped > tbody > tr:nth-child(2n+1) > th {
1947 background-color: $offwhite;
1950 /* Rules for OpenID logo */
1953 vertical-align: text-bottom;
1957 /* Rules for rich text */
1963 background: $lightgrey;
1969 background: $lightgrey;
1971 white-space: pre-wrap;
1979 padding: $lineheight;
1980 background-color: $offwhite;
1987 border-left: $lineheight solid $offwhite;
1988 padding-left: $lineheight;
1994 .diary_post .richtext {
1995 margin-top: $lineheight;
1998 .comments .richtext {
2003 /* Rules for rich text editors */
2005 input.richtext_title[type="text"] {
2007 width: calc(100% - 235px);
2009 @media only screen and (max-width:768px) {
2014 .richtext_container {
2015 margin-bottom: $lineheight;
2019 width: calc(100% - 235px);
2020 display: inline-block;
2021 vertical-align: top;
2023 @media only screen and (max-width:768px) {
2028 display: inline-block;
2029 padding: $lineheight;
2030 background-color: $offwhite;
2034 background-image: image-url("loading.gif");
2035 background-repeat: no-repeat;
2036 background-position: center;
2046 display: inline-block;
2047 vertical-align: top;
2049 background-color: $offwhite;
2050 padding: $lineheight/2;
2058 border-bottom: 1px solid $grey;
2059 margin-bottom: $lineheight/4;
2060 padding-bottom: $lineheight/4;
2063 li h4, li span, li p {
2064 display: inline-block;
2065 vertical-align: top;
2076 margin-left: $lineheight/2;
2077 margin-bottom: $lineheight/4;
2078 white-space: nowrap;
2083 /* Rules for the user notes list */
2087 background-color: $offwhite;
2091 /* Rules for the iD editor */
2098 /* Rules for the "Welcome" page */
2099 .site-welcome, .site-fixthemap {
2109 background-image: image-url("welcome-sprite.png");
2110 background-size: 500px 250px;
2116 padding-bottom: 20px;
2118 margin-bottom: 10px;
2130 /* no-r2 */ background-position: -50px 0;
2135 vertical-align: middle;
2139 /* no-r2 */ background-position: -100px 0;
2143 /* no-r2 */ background-position: -150px 0;
2147 /* no-r2 */ background-position: -200px 0;
2151 /* no-r2 */ background-position: -250px 0;
2155 /* no-r2 */ background-position: -300px 0;
2159 /* no-r2 */ background-position: -350px 0;
2168 text-decoration: none;
2172 background-color: #333;
2177 .site-about #content {
2178 background-color: $lightgrey;
2179 background-position: 50% 50%;
2180 background-repeat: no-repeat;
2181 background-size: cover;
2182 background-attachment: fixed;
2199 padding: 170px 40px 20px;
2201 background: rgba(0, 0, 0, .8);
2211 color: $vibrant-green;
2215 @include media-breakpoint-up(sm) {
2227 background-position: 0 50%;
2228 background-repeat: no-repeat;
2229 background-image: image-url('about/osm.png');
2230 background-size: cover;
2231 background-color: $vibrant-green;
2241 padding: 20px 20px 20px 40px;
2242 font: 500 20px/24px Helvetica, Arial, sans-serif;
2243 white-space: nowrap;
2245 background: $vibrant-green;
2249 display: inline-block;
2259 vertical-align: middle;
2260 background: 40px 40px image-url('about/sprite.png') no-repeat;
2264 background-position: 0px 0px;
2268 background-position: 0px -40px;
2272 background-position: 0px -80px;
2276 background-position: 0px -120px;
2280 background-position: 0px -160px;
2284 background-position: -45px -160px;
2291 @media only screen and (max-width:960px) {
2292 .header-illustration.new-user-arm {