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;
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;
1198 padding: $lineheight;
1201 /* Overrides for pages that use new layout conventions */
1207 .content-heading .content-inner {
1212 .header-illustration {
1213 background-position: 0 0;
1214 background-repeat: no-repeat;
1222 background-image: image-url("sign-up-illustration.png");
1226 background-image: image-url("confirm-illustration.png");
1230 background-image: image-url("terms-illustration.png");
1238 background-image: image-url("sign-up-illustration-arm.png");
1243 [dir=rtl] .header-illustration {
1244 transform: scaleX(-1);
1247 #content.maximised {
1256 /* Rules for small maps in content areas */
1260 border: 1px solid $grey;
1261 margin-bottom: $lineheight;
1264 @include media-breakpoint-up(md) {
1270 /* Rules for the new trace form */
1275 width: calc(100% - 150px);
1280 /* Rules for the edit trace form */
1283 .standard-form-row p {
1289 width: calc(100% - 150px);
1294 /* Rules for the user profile page */
1298 .userinformation-inner {
1307 .admin-user-info small {
1308 margin-bottom: $lineheight/2;
1310 margin-right: $lineheight;
1314 margin-top: $lineheight;
1318 .activity-details p {
1324 // Silly exception; remove when user page is redesigned.
1328 p#no_home_location {
1329 margin: $lineheight;
1332 margin-top: $lineheight/4;
1337 /* Rules for the user map */
1339 .content_map .leaflet-popup-content {
1340 margin: $lineheight/2;
1344 /* Rules for user popups on maps */
1350 margin-top: 0 0 0 60px;
1353 img.user_thumbnail {
1355 margin: 0 $lineheight/2 0 0;
1359 /* Rules for the user list */
1365 vertical-align: middle;
1374 #user_list_actions {
1376 margin-top: $lineheight/2;
1379 /* Rules for the diary list page */
1383 padding-top: $lineheight;
1384 padding-bottom: $lineheight/2;
1385 border-top: 1px solid $grey;
1388 margin-top: $lineheight/2;
1392 background-color: #fee;
1396 margin-bottom: $lineheight;
1400 margin-bottom: $lineheight/2;
1404 img.user_thumbnail {
1415 padding-top: $lineheight;
1418 /* Rules for the diary entry page */
1425 border: 1px solid $grey;
1427 margin-bottom: $lineheight;
1430 border-top: 1px solid $grey;
1431 padding-top: $lineheight;
1432 margin-top: $lineheight/2;
1438 border-top: 1px dashed $grey;
1439 padding-top: $lineheight/2;
1440 padding-bottom: $lineheight/2;
1442 margin-top: $lineheight/2;
1443 padding-top: $lineheight;
1444 border-top: 1px solid $grey;
1447 background-color: #fee;
1450 margin-bottom: $lineheight/2;
1459 .diary_entries-show img.user_thumbnail {
1464 .diary-subscribe-buttons {
1470 /* Rules for the log in page */
1472 #login_auth_buttons {
1476 #login_auth_buttons li {
1478 padding: $lineheight/4 $lineheight/2;
1481 /* Rules for the account confirmation page */
1485 border: 1px solid $grey;
1486 padding: $lineheight;
1487 margin-bottom: $lineheight;
1492 list-style: inherit;
1496 list-style-type: lower-alpha;
1501 background: $lightblue;
1503 background: darken($lightblue, $hovercolor);
1508 /* Rules for the account settings page */
1510 #accountForm .user_map {
1514 border: 1px solid $grey;
1517 #accountForm .user_image {
1521 #accountForm #user_image {
1525 #accountForm ul.accountImage-options {
1538 display: inline !important;
1541 /* Rules for the oauth settings page */
1543 .oauth_clients .buttons .oauth-edit {
1544 border-radius: 2px 0 0 2px;
1547 .oauth_clients .buttons .oauth-delete {
1548 border-radius: 0 2px 2px 0;
1551 /* Rules for the oauth authorization page */
1553 .oauth-authorize ul {
1557 /* Rules for messages pages */
1560 input[type="submit"] {
1565 background: $offwhite;
1569 background: #CBEEA7;
1577 .inbox-row .inbox-mark-read {
1582 margin-bottom: $lineheight;
1583 padding: $lineheight/4 0px 4px 0px;
1584 border-bottom: 1px solid $grey;
1591 .info-line .user_thumbnail_tiny {
1592 vertical-align: middle;
1596 white-space: nowrap;
1605 .inbox-row-unread .inbox-mark-unread {
1609 /* Rules for "flash" notice boxes shown at the top of the content area */
1612 padding: $lineheight;
1615 background-color: #ff7070;
1619 background-color: #ffe0cc;
1623 background-color: #CBEEA7;
1627 display: inline-block;
1628 margin-left: $lineheight / 2;
1629 vertical-align: middle;
1632 margin-top: $lineheight * 0.5;
1633 margin-bottom: $lineheight * 0.5;
1646 /* Rules for highlighting fields with rails validation errors */
1649 display: inline-block;
1655 background-color: #ff7070;
1658 /* Rules for rails validation error boxes */
1662 border: 2px solid #ff7070;
1663 padding: 0 $lineheight/2;
1664 margin-bottom: $lineheight;
1665 background-color: #f0f0f0;
1668 margin: 0 -10px 10px -10px;
1669 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1672 background-color: #c00;
1680 padding: $lineheight/4;
1684 /* Rules for forms */
1688 margin-bottom: $lineheight;
1690 label.standard-label {
1692 margin-bottom: $lineheight/4;
1693 font-size: $typeheight;
1697 label.standard-label.secondary {
1698 display: inline-block;
1699 font-weight: normal;
1702 font-weight: normal;
1709 margin-top: $lineheight;
1710 padding-top: $lineheight;
1711 border-top: 1px solid $lightgrey;
1713 .horizontal-list .standard-form-row {
1715 padding-right: 10px;
1717 .standard-form-row {
1718 margin-bottom: $lineheight/2;
1725 list-style-type: none;
1727 input[type="checkbox"],
1728 input[type="radio"] {
1734 #remember_me_openid {
1742 input[type="checkbox"],
1743 input[type="radio"] {
1748 input[type="email"],
1750 input[type="password"],
1753 background-color: #fff;
1754 border: 1px solid $grey;
1760 &.field_with_errors {
1761 border: 2px solid #ff7070;
1772 /* Rules for user images */
1777 border: 1px solid $grey;
1778 margin-bottom: $lineheight;
1780 margin-right: $lineheight;
1783 img.user_thumbnail {
1786 border: 1px solid $grey;
1787 margin-right: $lineheight;
1790 img.user_thumbnail_tiny {
1795 border: 1px solid $grey;
1798 /* Rules for geo microformats */
1801 border-bottom: none;
1804 /* General styles for action lists / subnavs / pager navs */
1806 ul.secondary-actions {
1812 display: inline-block;
1819 border-left: 1px solid $grey;
1820 padding-left: $lineheight/2;
1821 margin-right: $lineheight/2;
1832 div.secondary-actions {
1837 /* Utility for managing inner content areas */
1839 .inner22 { padding: $lineheight;}
1841 .inner12 { padding: $lineheight/2 $lineheight;}
1843 .inner11 { padding: $lineheight/2;}
1845 .inner20 { padding: $lineheight 0;}
1847 .inner02 { padding: 0 $lineheight;}
1849 /* Utility for general button styles */
1851 input[type="button"],
1852 input[type="submit"],
1853 input[type="reset"],
1857 display: inline-block;
1858 padding: $lineheight/4 $lineheight/2;
1859 min-height: 20px + $lineheight/2;
1861 margin: 0 0 $lineheight/2 0;
1867 background: darken($blue, $hovercolor);
1868 text-decoration: none;
1871 background: $lightblue;
1873 background: darken($lightblue, $hovercolor);
1877 background: $lightgrey;
1879 background: $lightgrey;
1887 input[type="button"],
1888 input[type="submit"],
1889 input[type="reset"] {
1890 line-height: normal;
1899 input[type="submit"],
1900 input[type="button"],
1901 input[type="reset"],
1904 box-sizing: border-box;
1910 border-right:1px solid white;
1911 text-overflow: ellipsis;
1912 white-space: nowrap;
1916 .button:first-child,
1917 .button_to:first-child {
1918 border-radius:2px 0 0 2px;
1922 .button_to:last-child {
1923 border-radius:0 2px 2px 0;
1924 border-right-width: 0;
1928 .button_to:only-child,
1929 *[value="Hide"] + input:last-child,
1930 *[value="Hide"] + .button:last-child,
1931 *[value="Hide"] + .button_to:last-child {
1933 border-right-width: 0;
1935 /* if a 3-button set has a hidden middle button */
1936 *[value="Hide"] + input:nth-child(3),
1937 *[value="Hide"] + .button:nth-child(3),
1938 *[value="Hide"] + .button_to:nth-child(3) {
1939 border-radius:0 2px 2px 0;
1940 border-right-width: 0;
1942 /* if a 3-button set starts with a hidden button */
1943 *[value="Hide"] + input:nth-child(2):not(:last-child),
1944 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1945 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1946 border-radius:2px 0 0 2px;
1947 border-right-width: 1px;
1951 /* Customise the background colour of striped tables */
1953 .table-striped > tbody > tr:nth-child(2n+1) > td,
1954 .table-striped > tbody > tr:nth-child(2n+1) > th {
1955 background-color: $offwhite;
1958 /* Rules for OpenID logo */
1961 vertical-align: text-bottom;
1965 /* Rules for rich text */
1971 background: $lightgrey;
1977 background: $lightgrey;
1979 white-space: pre-wrap;
1987 padding: $lineheight;
1988 background-color: $offwhite;
1995 border-left: $lineheight solid $offwhite;
1996 padding-left: $lineheight;
2002 .diary_post .richtext {
2003 margin-top: $lineheight;
2006 .comments .richtext {
2011 /* Rules for rich text editors */
2013 input.richtext_title[type="text"] {
2015 width: calc(100% - 235px);
2017 @media only screen and (max-width:768px) {
2022 .richtext_container {
2023 margin-bottom: $lineheight;
2027 width: calc(100% - 235px);
2028 display: inline-block;
2029 vertical-align: top;
2031 @media only screen and (max-width:768px) {
2036 display: inline-block;
2037 padding: $lineheight;
2038 background-color: $offwhite;
2042 background-image: image-url("loading.gif");
2043 background-repeat: no-repeat;
2044 background-position: center;
2054 display: inline-block;
2055 vertical-align: top;
2057 background-color: $offwhite;
2058 padding: $lineheight/2;
2066 border-bottom: 1px solid $grey;
2067 margin-bottom: $lineheight/4;
2068 padding-bottom: $lineheight/4;
2071 li h4, li span, li p {
2072 display: inline-block;
2073 vertical-align: top;
2084 margin-left: $lineheight/2;
2085 margin-bottom: $lineheight/4;
2086 white-space: nowrap;
2091 /* Rules for the user notes list */
2095 background-color: $offwhite;
2099 /* Rules for the iD editor */
2106 /* Rules for the "Welcome" page */
2107 .site-welcome, .site-fixthemap {
2117 background-image: image-url("welcome-sprite.png");
2118 background-size: 500px 250px;
2124 padding-bottom: 20px;
2126 margin-bottom: 10px;
2138 /* no-r2 */ background-position: -50px 0;
2143 vertical-align: middle;
2147 /* no-r2 */ background-position: -100px 0;
2151 /* no-r2 */ background-position: -150px 0;
2155 /* no-r2 */ background-position: -200px 0;
2159 /* no-r2 */ background-position: -250px 0;
2163 /* no-r2 */ background-position: -300px 0;
2167 /* no-r2 */ background-position: -350px 0;
2176 text-decoration: none;
2180 background-color: #333;
2185 .site-about #content {
2186 background-color: $lightgrey;
2187 background-position: 50% 50%;
2188 background-repeat: no-repeat;
2189 background-size: cover;
2190 background-attachment: fixed;
2207 padding: 170px 40px 20px;
2209 background: rgba(0, 0, 0, .8);
2219 color: $vibrant-green;
2229 background-position: 0 50%;
2230 background-repeat: no-repeat;
2231 background-image: image-url('about/osm.png');
2232 background-size: cover;
2233 background-color: $vibrant-green;
2243 padding: 20px 20px 20px 40px;
2244 font: 500 20px/24px Helvetica, Arial, sans-serif;
2245 white-space: nowrap;
2247 background: $vibrant-green;
2251 display: inline-block;
2261 vertical-align: middle;
2262 background: 40px 40px image-url('about/sprite.png') no-repeat;
2266 background-position: 0px 0px;
2270 background-position: 0px -40px;
2274 background-position: 0px -80px;
2278 background-position: 0px -120px;
2282 background-position: 0px -160px;
2286 background-position: -45px -160px;
2293 @media only screen and (max-width:960px) {
2294 .header-illustration.new-user-arm {
2300 background: $lightgrey;