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;
85 text-decoration: underline;
89 /* Utility for de-emphasizing content */
102 /* Rules for the header */
105 display: none !important;
107 background: image-url("menu-icon.png") no-repeat;
108 background-size: 30px 30px;
112 margin: 14px 10px 0 0;
117 height: $headerHeight;
122 h1, nav, nav > ul, nav > ul > li {
123 display: inline-block;
128 padding: $lineheight/2;
136 text-decoration: none;
143 vertical-align: middle;
169 .btn-outline-primary {
170 @include button-outline-variant($green, $white);
174 .btn-outline-primary {
179 border-top-color: $grey;
183 background-color: lighten($green, 30%);
188 // Small tweaks to the toggle to stop the primary colour showing through
189 // when the menu is shown
190 .show > .btn-outline-primary.dropdown-toggle {
191 background-color: $green;
192 border-color: $green;
195 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
210 color: darken($darkgrey, 25%);
214 .btn-outline-secondary {
215 @include button-outline-variant($darkgrey);
220 .btn-outline-secondary {
221 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
227 background-color: white;
231 &.show .btn-outline-secondary {
232 background-color: white;
239 img.user_thumbnail_tiny {
245 display: inline-block;
247 margin: 3px 0 3px 3px;
248 background-color: lighten($grey, 10%);
260 nav.primary, nav.secondary {
263 background-color: $green;
269 #compact-secondary-nav {
274 #compact-secondary-nav {
275 display: inline-block;
282 /* Utility for styling notification numbers */
285 padding: 2px $lineheight/4;
287 background: lighten($green, 30%);
293 /* Rules for the message shown in place of the map when javascript is disabled */
301 /* Rules for Leaflet maps */
303 .leaflet-control .control-button {
307 background-color: #333;
308 background-color: rgba(0,0,0,.6);
309 border-radius: 4px 0 0 4px;
314 background-color: black;
319 background-color: #333;
320 background-color: rgba(0,0,0,.5);
325 background-color: $vibrant-green;
333 .leaflet-control .zoomin,
334 .control-layers .control-button {
336 border-radius: 4px 0 0 0;
339 .leaflet-control .zoomout,
340 .control-key .control-button {
345 .control-locate .control-button,
346 .control-share .control-button {
347 border-radius: 0 0 0 4px;
350 /* Rules for the sidebar and main map area */
370 width: $sidebarWidth;
385 padding: $lineheight $lineheight $lineheight/2;
390 margin-top: $lineheight;
391 margin-bottom: $lineheight/2;
404 pointer-events: none;
429 .overlay-sidebar #sidebar {
457 padding: $lineheight/2 $lineheight $lineheight;
471 border-right: 1px solid #fff;
481 width: $sidebarWidth;
497 .leaflet-marker-draggable {
512 border-bottom: 1px solid $grey;
522 border:1px solid $grey;
527 border: 1px solid $grey;
529 border-top-color: $grey;
553 border: 2px solid #fff;
556 transition: border-color 0.08s ease-in;
563 border-bottom-right-radius: 3px;
567 text-stroke: 2px #fff;
568 background: rgba(255,255,255,.9);
570 input[type="radio"] {
575 &.active { border-color: darken($green, 10%); }
578 &.active { border-color: darken($green, 20%); }
588 li.disabled { color: $darkgrey; }
598 text-decoration: none;
599 background-color: $lightblue;
601 border-right: 1px solid #fff;
605 border-right: 1px solid #fff;
606 border-radius: 4px 0 0 4px;
610 border-radius: 0 4px 4px 0;
614 background-color: $blue;
626 font-family: monospace;
648 top: $lineheight/2 !important;
650 margin-right: 0px !important;
651 margin-top: 0px !important;
655 .leaflet-popup-scrolled {
656 padding-right: $lineheight;
657 border-bottom: 0px !important;
658 border-top: 0px !important;
661 .leaflet-popup-content-wrapper {
662 border-radius: 4px !important;
665 /* Rules for attribution text under the main map shown on printouts */
675 .attribution_license,
676 .attribution_project {
680 .attribution_notice {
684 .donate-attr { color: darken($green, 10%) !important; }
686 /* Rules for the sidebar */
690 padding: $lineheight/2 $lineheight;
691 // background: $offwhite;
692 // border-bottom: 1px solid $grey;
702 padding: $lineheight;
716 margin: $lineheight auto;
728 /* Rules for the search and direction forms */
730 header .search_forms,
738 padding: $lineheight/2;
739 background-color: $lightgrey;
744 border-radius: 2px 0 0 2px;
750 transition: 300ms linear;
753 input[type=text].overflow {
755 border-radius: 3px 0px 0px 3px;
760 box-shadow: 0px 0px 7px $vibrant-green;
763 input[type=submit].float {
767 border-radius: 0 2px 2px 0;
771 background-color: rgba($red, 0.4);
775 /* this next line is to polyfill the vertical alignment of text within a select element,
776 * which is different between firefox and chrome. */
813 select.routing_engines {
815 margin: 0px 0px 5px 25px;
830 margin: 0px 0px 5px 0px;
837 vertical-align: middle;
841 a.reverse_directions {
843 margin: 0px 0px 5px 25px;
847 /* Rules for the map key which appears in the popout sidebar */
850 .mapkey-table-key img {
857 /* Rules for search sidebar */
859 #sidebar .search_results_entry {
862 &.selected { background: $list-highlight; }
865 .search_more .loader {
871 .search_results_error {
876 /* Rules for routing */
878 #sidebar_content>table {
879 padding: 5px 20px 10px 15px;
881 border-collapse: separate;
886 background-image: image-url('routing-sprite.png');
889 background-repeat: no-repeat;
891 @for $i from 0 through 25 {
892 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
896 padding: 0 $lineheight $lineheight/4;
899 td.instruction, td.distance {
900 padding-top: $lineheight/5;
901 padding-bottom: $lineheight/5;
902 border-bottom: 1px solid $grey;
913 background: $list-highlight;
915 .routing_engines, #route_from, #route_to { margin-left: 25px; }
916 .routing_marker { width: 15px; position: absolute; cursor: move; }
918 /* Rules for entity history */
923 border-bottom: $keyline;
931 /* Rules for the history sidebar */
933 #sidebar .changesets {
937 &.selected { background: $list-highlight; }
938 /* color is derived from changeset bbox fillColor in history.js */
950 .changeset_more .loader {
956 /* Rules for the browse sidebar */
960 padding: $lineheight/2 $lineheight;
961 border-bottom: 1px solid $grey;
965 word-wrap: break-word;
969 .browse-section:last-of-type {
976 border: 1px solid $lightgrey;
984 padding: 5px 0 5px 10px;
986 border: 1px solid $grey;
987 border-radius: 4px 4px 0 0;
988 background-color: $offwhite;
994 background-color: #FFF;
995 border: 1px solid $grey;
997 border-radius: 0 0 4px 4px;
1002 background-color: $offwhite;
1003 border: 1px solid $grey;
1005 table-layout: fixed;
1006 border-collapse: separate;
1011 border-bottom: 1px solid $grey;
1014 tr:last-child th, tr:last-child td {
1022 word-wrap: break-word;
1023 white-space: pre-wrap;
1028 background-color: $offwhite;
1032 border-left: 1px solid $grey;
1033 background-color: #fff;
1036 .colour-preview-box {
1041 border: 1px solid rgba(0, 0, 0, .1);
1042 // add color via inline css on element: background-color: <tag value>;
1047 margin: 0 0 $lineheight/2 0;
1048 padding: 0 $lineheight/2;
1051 .note-comments li, .changeset-comments li {
1052 margin: $lineheight/2 0;
1055 margin: 10px 6px 0 6px;
1064 .subscribe-buttons {
1066 margin: 18px 10px 10px;
1070 .subscribe-buttons input {
1076 span.action-button:hover {
1078 text-decoration: underline;
1083 margin: 0 0 10px 10px;
1087 padding: $lineheight $lineheight $lineheight/2;
1092 padding-bottom: $lineheight/2;
1095 padding: 0 $lineheight;
1105 background: $list-highlight;
1112 /* Rules for export sidebar */
1115 padding: $lineheight;
1117 .export_area_inputs,
1122 .export_area_inputs {
1123 margin-bottom: $lineheight/2;
1124 input[type="text"] {
1132 background: $lightgrey;
1133 border: 1px solid $grey;
1136 #maxlat { margin-top: -1px; }
1139 /* no-r2 */ margin-left: -1px;
1143 /* no-r2 */ margin-right: -1px;
1145 #minlat { margin-bottom: 0; }
1149 margin: $lineheight/4;
1153 margin-top: $lineheight;
1154 margin-bottom: $lineheight;
1158 padding-left: $lineheight/2;
1161 margin-bottom: 10px;
1166 /* Rules for the routing sidebar */
1175 /* Rules for edit pages */
1191 /* Rules for non-map content pages */
1194 background: $lightgrey;
1201 padding: $lineheight;
1204 /* Overrides for pages that use new layout conventions */
1210 .content-heading .content-inner {
1215 .header-illustration {
1216 background-position: 0 0;
1217 background-repeat: no-repeat;
1225 background-image: image-url("sign-up-illustration.png");
1229 background-image: image-url("confirm-illustration.png");
1233 background-image: image-url("terms-illustration.png");
1241 background-image: image-url("sign-up-illustration-arm.png");
1246 [dir=rtl] .header-illustration {
1247 transform: scaleX(-1);
1250 #content.maximised {
1259 /* Rules for small maps in content areas */
1263 border: 1px solid $grey;
1264 margin-bottom: $lineheight;
1267 @include media-breakpoint-up(md) {
1273 /* Rules for the new trace form */
1278 width: calc(100% - 150px);
1283 /* Rules for the edit trace form */
1286 .standard-form-row p {
1292 width: calc(100% - 150px);
1297 /* Rules for the user profile page */
1301 .userinformation-inner {
1310 .admin-user-info small {
1311 margin-bottom: $lineheight/2;
1313 margin-right: $lineheight;
1317 margin-top: $lineheight;
1321 .activity-details p {
1327 // Silly exception; remove when user page is redesigned.
1331 p#no_home_location {
1332 margin: $lineheight;
1335 margin-top: $lineheight/4;
1340 /* Rules for the user map */
1342 .content_map .leaflet-popup-content {
1343 margin: $lineheight/2;
1347 /* Rules for user popups on maps */
1353 margin-top: 0 0 0 60px;
1356 img.user_thumbnail {
1358 margin: 0 $lineheight/2 0 0;
1362 /* Rules for the user list */
1368 vertical-align: middle;
1377 #user_list_actions {
1379 margin-top: $lineheight/2;
1382 /* Rules for the diary list page */
1386 padding-top: $lineheight;
1387 padding-bottom: $lineheight/2;
1388 border-top: 1px solid $grey;
1391 margin-top: $lineheight/2;
1395 background-color: #fee;
1399 margin-bottom: $lineheight;
1403 margin-bottom: $lineheight/2;
1407 img.user_thumbnail {
1418 padding-top: $lineheight;
1421 /* Rules for the diary entry page */
1428 border: 1px solid $grey;
1430 margin-bottom: $lineheight;
1433 border-top: 1px solid $grey;
1434 padding-top: $lineheight;
1435 margin-top: $lineheight/2;
1441 border-top: 1px dashed $grey;
1442 padding-top: $lineheight/2;
1443 padding-bottom: $lineheight/2;
1445 margin-top: $lineheight/2;
1446 padding-top: $lineheight;
1447 border-top: 1px solid $grey;
1450 background-color: #fee;
1453 margin-bottom: $lineheight/2;
1462 .diary_entries-show img.user_thumbnail {
1467 .diary-subscribe-buttons {
1473 /* Rules for the log in page */
1475 #login_auth_buttons {
1479 #login_auth_buttons li {
1481 padding: $lineheight/4 $lineheight/2;
1484 /* Rules for the account confirmation page */
1488 border: 1px solid $grey;
1489 padding: $lineheight;
1490 margin-bottom: $lineheight;
1495 list-style: inherit;
1499 list-style-type: lower-alpha;
1504 background: $lightblue;
1506 background: darken($lightblue, $hovercolor);
1511 /* Rules for the account settings page */
1513 #accountForm .user_image {
1517 #accountForm #user_image {
1521 #accountForm ul.accountImage-options {
1534 display: inline !important;
1537 /* Rules for the oauth settings page */
1539 .oauth_clients .buttons .oauth-edit {
1540 border-radius: 2px 0 0 2px;
1543 .oauth_clients .buttons .oauth-delete {
1544 border-radius: 0 2px 2px 0;
1547 /* Rules for the oauth authorization page */
1549 .oauth-authorize ul {
1553 /* Rules for messages pages */
1556 input[type="submit"] {
1561 background: $offwhite;
1565 background: #CBEEA7;
1573 .inbox-row .inbox-mark-read {
1578 margin-bottom: $lineheight;
1579 padding: $lineheight/4 0px 4px 0px;
1580 border-bottom: 1px solid $grey;
1587 .info-line .user_thumbnail_tiny {
1588 vertical-align: middle;
1592 white-space: nowrap;
1601 .inbox-row-unread .inbox-mark-unread {
1605 /* Rules for "flash" notice boxes shown at the top of the content area */
1608 padding: $lineheight;
1611 background-color: #ff7070;
1615 background-color: #ffe0cc;
1619 background-color: #CBEEA7;
1623 display: inline-block;
1624 margin-left: $lineheight / 2;
1625 vertical-align: middle;
1628 margin-top: $lineheight * 0.5;
1629 margin-bottom: $lineheight * 0.5;
1642 /* Rules for highlighting fields with rails validation errors */
1645 display: inline-block;
1651 background-color: #ff7070;
1654 /* Rules for rails validation error boxes */
1658 border: 2px solid #ff7070;
1659 padding: 0 $lineheight/2;
1660 margin-bottom: $lineheight;
1661 background-color: #f0f0f0;
1664 margin: 0 -10px 10px -10px;
1665 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1668 background-color: #c00;
1676 padding: $lineheight/4;
1680 /* Rules for forms */
1684 margin-bottom: $lineheight;
1686 label.standard-label {
1688 margin-bottom: $lineheight/4;
1689 font-size: $typeheight;
1693 label.standard-label.secondary {
1694 display: inline-block;
1695 font-weight: normal;
1698 font-weight: normal;
1705 margin-top: $lineheight;
1706 padding-top: $lineheight;
1707 border-top: 1px solid $lightgrey;
1709 .horizontal-list .standard-form-row {
1711 padding-right: 10px;
1713 .standard-form-row {
1714 margin-bottom: $lineheight/2;
1721 list-style-type: none;
1723 input[type="checkbox"],
1724 input[type="radio"] {
1730 #remember_me_openid {
1738 input[type="checkbox"],
1739 input[type="radio"] {
1744 input[type="email"],
1746 input[type="password"],
1749 background-color: #fff;
1750 border: 1px solid $grey;
1756 &.field_with_errors {
1757 border: 2px solid #ff7070;
1768 /* Rules for user images */
1773 border: 1px solid $grey;
1774 margin-bottom: $lineheight;
1776 margin-right: $lineheight;
1779 img.user_thumbnail {
1782 border: 1px solid $grey;
1783 margin-right: $lineheight;
1786 img.user_thumbnail_tiny {
1791 border: 1px solid $grey;
1794 /* Rules for geo microformats */
1797 border-bottom: none;
1800 /* General styles for action lists / subnavs / pager navs */
1802 ul.secondary-actions {
1808 display: inline-block;
1815 border-left: 1px solid $grey;
1816 padding-left: $lineheight/2;
1817 margin-right: $lineheight/2;
1828 div.secondary-actions {
1833 /* Utility for managing inner content areas */
1835 .inner22 { padding: $lineheight;}
1837 .inner12 { padding: $lineheight/2 $lineheight;}
1839 .inner11 { padding: $lineheight/2;}
1841 .inner20 { padding: $lineheight 0;}
1843 .inner02 { padding: 0 $lineheight;}
1845 /* Utility for general button styles */
1847 input[type="button"],
1848 input[type="submit"],
1849 input[type="reset"],
1853 display: inline-block;
1854 padding: $lineheight/4 $lineheight/2;
1855 min-height: 20px + $lineheight/2;
1857 margin: 0 0 $lineheight/2 0;
1863 background: darken($blue, $hovercolor);
1864 text-decoration: none;
1867 background: $lightblue;
1869 background: darken($lightblue, $hovercolor);
1873 background: $lightgrey;
1875 background: $lightgrey;
1883 input[type="button"],
1884 input[type="submit"],
1885 input[type="reset"] {
1886 line-height: normal;
1895 input[type="submit"],
1896 input[type="button"],
1897 input[type="reset"],
1900 box-sizing: border-box;
1906 border-right:1px solid white;
1907 text-overflow: ellipsis;
1908 white-space: nowrap;
1912 .button:first-child,
1913 .button_to:first-child {
1914 border-radius:2px 0 0 2px;
1918 .button_to:last-child {
1919 border-radius:0 2px 2px 0;
1920 border-right-width: 0;
1924 .button_to:only-child,
1925 *[value="Hide"] + input:last-child,
1926 *[value="Hide"] + .button:last-child,
1927 *[value="Hide"] + .button_to:last-child {
1929 border-right-width: 0;
1931 /* if a 3-button set has a hidden middle button */
1932 *[value="Hide"] + input:nth-child(3),
1933 *[value="Hide"] + .button:nth-child(3),
1934 *[value="Hide"] + .button_to:nth-child(3) {
1935 border-radius:0 2px 2px 0;
1936 border-right-width: 0;
1938 /* if a 3-button set starts with a hidden button */
1939 *[value="Hide"] + input:nth-child(2):not(:last-child),
1940 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1941 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1942 border-radius:2px 0 0 2px;
1943 border-right-width: 1px;
1947 /* Customise the background colour of striped tables */
1949 .table-striped > tbody > tr:nth-child(2n+1) > td,
1950 .table-striped > tbody > tr:nth-child(2n+1) > th {
1951 background-color: $offwhite;
1954 /* Rules for OpenID logo */
1957 vertical-align: text-bottom;
1961 /* Rules for rich text */
1967 background: $lightgrey;
1973 background: $lightgrey;
1975 white-space: pre-wrap;
1983 padding: $lineheight;
1984 background-color: $offwhite;
1991 border-left: $lineheight solid $offwhite;
1992 padding-left: $lineheight;
1998 .diary_post .richtext {
1999 margin-top: $lineheight;
2002 .comments .richtext {
2007 /* Rules for rich text editors */
2009 input.richtext_title[type="text"] {
2011 width: calc(100% - 235px);
2013 @media only screen and (max-width:768px) {
2018 .richtext_container {
2019 margin-bottom: $lineheight;
2023 width: calc(100% - 235px);
2024 display: inline-block;
2025 vertical-align: top;
2027 @media only screen and (max-width:768px) {
2032 display: inline-block;
2033 padding: $lineheight;
2034 background-color: $offwhite;
2038 background-image: image-url("loading.gif");
2039 background-repeat: no-repeat;
2040 background-position: center;
2050 display: inline-block;
2051 vertical-align: top;
2053 background-color: $offwhite;
2054 padding: $lineheight/2;
2062 border-bottom: 1px solid $grey;
2063 margin-bottom: $lineheight/4;
2064 padding-bottom: $lineheight/4;
2067 li h4, li span, li p {
2068 display: inline-block;
2069 vertical-align: top;
2080 margin-left: $lineheight/2;
2081 margin-bottom: $lineheight/4;
2082 white-space: nowrap;
2087 /* Rules for the user notes list */
2091 background-color: $offwhite;
2095 /* Rules for the iD editor */
2102 /* Rules for the "Welcome" page */
2103 .site-welcome, .site-fixthemap {
2113 background-image: image-url("welcome-sprite.png");
2114 background-size: 500px 250px;
2120 padding-bottom: 20px;
2122 margin-bottom: 10px;
2134 /* no-r2 */ background-position: -50px 0;
2139 vertical-align: middle;
2143 /* no-r2 */ background-position: -100px 0;
2147 /* no-r2 */ background-position: -150px 0;
2151 /* no-r2 */ background-position: -200px 0;
2155 /* no-r2 */ background-position: -250px 0;
2159 /* no-r2 */ background-position: -300px 0;
2163 /* no-r2 */ background-position: -350px 0;
2172 text-decoration: none;
2176 background-color: #333;
2181 .site-about #content {
2182 background-color: $lightgrey;
2183 background-position: 50% 50%;
2184 background-repeat: no-repeat;
2185 background-size: cover;
2186 background-attachment: fixed;
2203 padding: 170px 40px 20px;
2205 background: rgba(0, 0, 0, .8);
2215 color: $vibrant-green;
2219 @include media-breakpoint-up(sm) {
2231 background-position: 0 50%;
2232 background-repeat: no-repeat;
2233 background-image: image-url('about/osm.png');
2234 background-size: cover;
2235 background-color: $vibrant-green;
2245 padding: 20px 20px 20px 40px;
2246 font: 500 20px/24px Helvetica, Arial, sans-serif;
2247 white-space: nowrap;
2249 background: $vibrant-green;
2253 display: inline-block;
2263 vertical-align: middle;
2264 background: 40px 40px image-url('about/sprite.png') no-repeat;
2268 background-position: 0px 0px;
2272 background-position: 0px -40px;
2276 background-position: 0px -80px;
2280 background-position: 0px -120px;
2284 background-position: 0px -160px;
2288 background-position: -45px -160px;
2295 @media only screen and (max-width:960px) {
2296 .header-illustration.new-user-arm {
2302 background: $lightgrey;