3 @import "rails_bootstrap_forms";
5 /* Styles common to large and small screens */
7 .fillL { background-color: white; }
9 /* Default rules for the body of every page */
12 font-family: 'Helvetica Neue',Arial,sans-serif;
13 font-size: $typeheight;
16 background-color: #fff;
32 #container { position: relative; }
35 vertical-align: middle;
36 margin-right: $lineheight/4;
39 [dir=rtl] { /* no-r2 */ text-align: right; }
41 [dir=ltr] { /* no-r2 */ text-align: left; }
46 display: inline-block;
50 background: transparent image-url("sprite.png") no-repeat 0 0;
51 background-image: image-url("sprite.svg");
56 .icon.search { /* no-r2 */ background-position: 0 0; }
57 .icon.donate { /* no-r2 */ background-position: -20px 0; }
58 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
59 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
60 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
61 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
62 .icon.layers { /* no-r2 */ background-position: -100px 0; }
63 .icon.key { /* no-r2 */ background-position: -120px 0; }
64 .icon.share { /* no-r2 */ background-position: -140px 0; }
65 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
66 .icon.link { /* no-r2 */ background-position: -180px 0; }
67 .icon.close { /* no-r2 */ background-position: -200px 0; }
68 .close-wrap:hover .icon.close,
69 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
70 .icon.check { /* no-r2 */ background-position: -220px 0; }
71 .icon.note { /* no-r2 */ background-position: -240px 0; }
72 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
73 .icon.query { /* no-r2 */ background-position: -260px 0; }
79 text-decoration: none;
82 text-decoration: underline;
86 /* 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;
709 margin: $lineheight auto;
720 /* Temporary label size override until we remove site-wide font customisation */
728 /* Rules for the search and direction forms */
730 header .search_forms,
735 /* Rules for the map key which appears in the popout sidebar */
738 .mapkey-table-key img {
745 /* Rules for search sidebar */
747 #sidebar .search_results_entry {
750 &.selected { background: $list-highlight; }
753 .search_more .loader {
759 .search_results_error {
764 /* Rules for routing */
766 #sidebar_content>table {
767 padding: 5px 20px 10px 15px;
769 border-collapse: separate;
774 background-image: image-url('routing-sprite.png');
777 background-repeat: no-repeat;
779 @for $i from 0 through 25 {
780 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
784 padding: 0 $lineheight $lineheight/4;
787 td.instruction, td.distance {
788 padding-top: $lineheight/5;
789 padding-bottom: $lineheight/5;
790 border-bottom: 1px solid $grey;
801 background: $list-highlight;
803 .routing_engines, #route_from, #route_to { margin-left: 25px; }
804 .routing_marker { width: 15px; position: absolute; cursor: move; }
806 /* Rules for entity history */
811 border-bottom: $keyline;
819 /* Rules for the history sidebar */
821 #sidebar .changesets {
825 &.selected { background: $list-highlight; }
826 /* color is derived from changeset bbox fillColor in history.js */
838 .changeset_more .loader {
844 /* Rules for the browse sidebar */
848 padding: $lineheight/2 $lineheight;
849 border-bottom: 1px solid $grey;
853 word-wrap: break-word;
857 .browse-section:last-of-type {
864 border: 1px solid $lightgrey;
872 padding: 5px 0 5px 10px;
874 border: 1px solid $grey;
875 border-radius: 4px 4px 0 0;
876 background-color: $offwhite;
882 background-color: #FFF;
883 border: 1px solid $grey;
885 border-radius: 0 0 4px 4px;
890 background-color: $offwhite;
891 border: 1px solid $grey;
894 border-collapse: separate;
899 border-bottom: 1px solid $grey;
902 tr:last-child th, tr:last-child td {
910 word-wrap: break-word;
911 white-space: pre-wrap;
916 background-color: $offwhite;
920 border-left: 1px solid $grey;
921 background-color: #fff;
924 .colour-preview-box {
929 border: 1px solid rgba(0, 0, 0, .1);
930 // add color via inline css on element: background-color: <tag value>;
934 .note-comments li, .changeset-comments li {
935 margin: $lineheight/2 0;
938 margin: 10px 6px 0 6px;
949 margin: 18px 10px 10px;
953 .subscribe-buttons input {
959 span.action-button:hover {
961 text-decoration: underline;
966 margin: 0 0 10px 10px;
970 padding: $lineheight $lineheight $lineheight/2;
975 padding-bottom: $lineheight/2;
978 padding: 0 $lineheight;
988 background: $list-highlight;
995 /* Rules for export sidebar */
998 padding: $lineheight;
1000 .export_area_inputs,
1005 .export_area_inputs {
1006 margin-bottom: $lineheight/2;
1007 input[type="text"] {
1015 background: $lightgrey;
1016 border: 1px solid $grey;
1019 #maxlat { margin-top: -1px; }
1022 /* no-r2 */ margin-left: -1px;
1026 /* no-r2 */ margin-right: -1px;
1028 #minlat { margin-bottom: 0; }
1032 margin: $lineheight/4;
1036 margin-top: $lineheight;
1037 margin-bottom: $lineheight;
1041 padding-left: $lineheight/2;
1044 margin-bottom: 10px;
1049 /* Rules for the routing sidebar */
1058 /* Rules for edit pages */
1074 /* Rules for non-map content pages */
1077 background: $lightgrey;
1084 padding: $lineheight;
1087 /* Overrides for pages that use new layout conventions */
1093 .content-heading .content-inner {
1098 .header-illustration {
1099 background-position: 0 0;
1100 background-repeat: no-repeat;
1108 background-image: image-url("sign-up-illustration.png");
1112 background-image: image-url("confirm-illustration.png");
1116 background-image: image-url("terms-illustration.png");
1124 background-image: image-url("sign-up-illustration-arm.png");
1129 [dir=rtl] .header-illustration {
1130 transform: scaleX(-1);
1133 #content.maximised {
1142 /* Rules for small maps in content areas */
1146 border: 1px solid $grey;
1147 margin-bottom: $lineheight;
1150 @include media-breakpoint-up(md) {
1156 /* Rules for the user profile page */
1160 .userinformation-inner {
1169 .admin-user-info small {
1170 margin-bottom: $lineheight/2;
1172 margin-right: $lineheight;
1176 margin-top: $lineheight;
1180 .activity-details p {
1186 // Silly exception; remove when user page is redesigned.
1190 p#no_home_location {
1191 margin: $lineheight;
1194 margin-top: $lineheight/4;
1199 /* Rules for the user map */
1201 .content_map .leaflet-popup-content {
1202 margin: $lineheight/2;
1206 /* Rules for user popups on maps */
1212 margin-top: 0 0 0 60px;
1215 img.user_thumbnail {
1217 margin: 0 $lineheight/2 0 0;
1221 /* Rules for the user list */
1227 vertical-align: middle;
1236 #user_list_actions {
1238 margin-top: $lineheight/2;
1241 /* Rules for the diary list page */
1245 padding-top: $lineheight;
1246 padding-bottom: $lineheight/2;
1247 border-top: 1px solid $grey;
1250 margin-top: $lineheight/2;
1254 background-color: #fee;
1258 margin-bottom: $lineheight;
1262 margin-bottom: $lineheight/2;
1266 img.user_thumbnail {
1277 padding-top: $lineheight;
1280 /* Rules for the diary entry page */
1287 border: 1px solid $grey;
1289 margin-bottom: $lineheight;
1292 border-top: 1px solid $grey;
1293 padding-top: $lineheight;
1294 margin-top: $lineheight/2;
1300 border-top: 1px dashed $grey;
1301 padding-top: $lineheight/2;
1302 padding-bottom: $lineheight/2;
1304 margin-top: $lineheight/2;
1305 padding-top: $lineheight;
1306 border-top: 1px solid $grey;
1309 background-color: #fee;
1312 margin-bottom: $lineheight/2;
1321 .diary_entries-show img.user_thumbnail {
1326 .diary-subscribe-buttons {
1332 /* Rules for the log in page */
1334 #login_auth_buttons {
1338 #login_auth_buttons li {
1340 padding: $lineheight/4 $lineheight/2;
1343 /* Rules for the account confirmation page */
1347 border: 1px solid $grey;
1348 padding: $lineheight;
1349 margin-bottom: $lineheight;
1354 list-style: inherit;
1358 list-style-type: lower-alpha;
1363 background: $lightblue;
1365 background: darken($lightblue, $hovercolor);
1370 /* Rules for the account settings page */
1372 #accountForm .user_image {
1376 #accountForm #user_image {
1380 #accountForm ul.accountImage-options {
1393 display: inline !important;
1396 /* Rules for the oauth settings page */
1398 .oauth_clients .buttons .oauth-edit {
1399 border-radius: 2px 0 0 2px;
1402 .oauth_clients .buttons .oauth-delete {
1403 border-radius: 0 2px 2px 0;
1406 /* Rules for the oauth authorization page */
1408 .oauth-authorize ul {
1412 /* Rules for messages pages */
1415 input[type="submit"] {
1420 background: $offwhite;
1424 background: #CBEEA7;
1432 .inbox-row .inbox-mark-read {
1437 margin-bottom: $lineheight;
1438 padding: $lineheight/4 0px 4px 0px;
1439 border-bottom: 1px solid $grey;
1446 .info-line .user_thumbnail_tiny {
1447 vertical-align: middle;
1451 white-space: nowrap;
1460 .inbox-row-unread .inbox-mark-unread {
1464 /* Rules for "flash" notice boxes shown at the top of the content area */
1467 padding: $lineheight;
1470 background-color: #ff7070;
1474 background-color: #ffe0cc;
1478 background-color: #CBEEA7;
1482 display: inline-block;
1483 margin-left: $lineheight / 2;
1484 vertical-align: middle;
1487 margin-top: $lineheight * 0.5;
1488 margin-bottom: $lineheight * 0.5;
1501 /* Rules for highlighting fields with rails validation errors */
1504 display: inline-block;
1510 background-color: #ff7070;
1513 /* Rules for rails validation error boxes */
1517 border: 2px solid #ff7070;
1518 padding: 0 $lineheight/2;
1519 margin-bottom: $lineheight;
1520 background-color: #f0f0f0;
1523 margin: 0 -10px 10px -10px;
1524 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1527 background-color: #c00;
1535 padding: $lineheight/4;
1539 /* Rules for forms */
1543 margin-bottom: $lineheight;
1545 label.standard-label {
1547 margin-bottom: $lineheight/4;
1548 font-size: $typeheight;
1552 label.standard-label.secondary {
1553 display: inline-block;
1554 font-weight: normal;
1557 font-weight: normal;
1564 margin-top: $lineheight;
1565 padding-top: $lineheight;
1566 border-top: 1px solid $lightgrey;
1568 .horizontal-list .standard-form-row {
1570 padding-right: 10px;
1572 .standard-form-row {
1573 margin-bottom: $lineheight/2;
1580 list-style-type: none;
1582 input[type="checkbox"],
1583 input[type="radio"] {
1588 #remember_me_openid {
1596 input[type="checkbox"],
1597 input[type="radio"] {
1602 input[type="email"],
1604 input[type="password"],
1607 background-color: #fff;
1608 border: 1px solid $grey;
1614 &.field_with_errors {
1615 border: 2px solid #ff7070;
1627 /* Utility for general button styles */
1629 input[type="button"],
1630 input[type="submit"],
1631 input[type="reset"],
1635 display: inline-block;
1636 padding: $lineheight/4 $lineheight/2;
1637 min-height: 20px + $lineheight/2;
1639 margin: 0 0 $lineheight/2 0;
1645 background: darken($blue, $hovercolor);
1646 text-decoration: none;
1649 background: $lightblue;
1651 background: darken($lightblue, $hovercolor);
1655 background: $lightgrey;
1657 background: $lightgrey;
1665 input[type="button"],
1666 input[type="submit"],
1667 input[type="reset"] {
1668 line-height: normal;
1678 padding: $lineheight/2;
1679 background-color: $lightgrey;
1684 border-radius: 2px 0 0 2px;
1690 transition: 300ms linear;
1693 input[type=text].overflow {
1695 border-radius: 3px 0px 0px 3px;
1700 box-shadow: 0px 0px 7px $vibrant-green;
1703 input[type=submit].float {
1707 border-radius: 0 2px 2px 0;
1711 background-color: rgba($red, 0.4);
1715 /* this next line is to polyfill the vertical alignment of text within a select element,
1716 * which is different between firefox and chrome. */
1726 .describe_location {
1749 padding-right: 25px;
1753 select.routing_engines {
1755 margin: 0px 0px 5px 25px;
1770 margin: 0px 0px 5px 0px;
1777 vertical-align: middle;
1781 a.reverse_directions {
1783 margin: 0px 0px 5px 25px;
1788 /* Rules for user images */
1793 border: 1px solid $grey;
1794 margin-bottom: $lineheight;
1796 margin-right: $lineheight;
1799 img.user_thumbnail {
1802 border: 1px solid $grey;
1803 margin-right: $lineheight;
1806 img.user_thumbnail_tiny {
1811 border: 1px solid $grey;
1814 /* Rules for geo microformats */
1817 border-bottom: none;
1820 /* General styles for action lists / subnavs / pager navs */
1822 ul.secondary-actions {
1828 display: inline-block;
1835 border-left: 1px solid $grey;
1836 padding-left: $lineheight/2;
1837 margin-right: $lineheight/2;
1848 div.secondary-actions {
1853 /* Utility for managing inner content areas */
1855 .inner22 { padding: $lineheight;}
1857 .inner12 { padding: $lineheight/2 $lineheight;}
1859 .inner11 { padding: $lineheight/2;}
1861 .inner20 { padding: $lineheight 0;}
1863 .inner02 { padding: 0 $lineheight;}
1867 input[type="submit"],
1868 input[type="button"],
1869 input[type="reset"],
1872 box-sizing: border-box;
1878 border-right:1px solid white;
1879 text-overflow: ellipsis;
1880 white-space: nowrap;
1884 .button:first-child,
1885 .button_to:first-child {
1886 border-radius:2px 0 0 2px;
1890 .button_to:last-child {
1891 border-radius:0 2px 2px 0;
1892 border-right-width: 0;
1896 .button_to:only-child,
1897 *[value="Hide"] + input:last-child,
1898 *[value="Hide"] + .button:last-child,
1899 *[value="Hide"] + .button_to:last-child {
1901 border-right-width: 0;
1903 /* if a 3-button set has a hidden middle button */
1904 *[value="Hide"] + input:nth-child(3),
1905 *[value="Hide"] + .button:nth-child(3),
1906 *[value="Hide"] + .button_to:nth-child(3) {
1907 border-radius:0 2px 2px 0;
1908 border-right-width: 0;
1910 /* if a 3-button set starts with a hidden button */
1911 *[value="Hide"] + input:nth-child(2):not(:last-child),
1912 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1913 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1914 border-radius:2px 0 0 2px;
1915 border-right-width: 1px;
1919 /* Customise the background colour of striped tables */
1921 .table-striped > tbody > tr:nth-child(2n+1) > td,
1922 .table-striped > tbody > tr:nth-child(2n+1) > th {
1923 background-color: $offwhite;
1926 /* Rules for OpenID logo */
1929 vertical-align: text-bottom;
1933 /* Rules for rich text */
1939 background: $lightgrey;
1945 background: $lightgrey;
1947 white-space: pre-wrap;
1955 padding: $lineheight;
1956 background-color: $offwhite;
1963 border-left: $lineheight solid $offwhite;
1964 padding-left: $lineheight;
1970 .diary_post .richtext {
1971 margin-top: $lineheight;
1974 .comments .richtext {
1979 /* Rules for rich text editors */
1981 input.richtext_title[type="text"] {
1983 width: calc(100% - 235px);
1985 @media only screen and (max-width:768px) {
1990 .richtext_container {
1991 margin-bottom: $lineheight;
1995 width: calc(100% - 235px);
1996 display: inline-block;
1997 vertical-align: top;
1999 @media only screen and (max-width:768px) {
2004 display: inline-block;
2005 padding: $lineheight;
2006 background-color: $offwhite;
2010 background-image: image-url("loading.gif");
2011 background-repeat: no-repeat;
2012 background-position: center;
2022 display: inline-block;
2023 vertical-align: top;
2025 background-color: $offwhite;
2026 padding: $lineheight/2;
2034 border-bottom: 1px solid $grey;
2035 margin-bottom: $lineheight/4;
2036 padding-bottom: $lineheight/4;
2039 li h4, li span, li p {
2040 display: inline-block;
2041 vertical-align: top;
2052 margin-left: $lineheight/2;
2053 margin-bottom: $lineheight/4;
2054 white-space: nowrap;
2059 /* Rules for the user notes list */
2063 background-color: $offwhite;
2067 /* Rules for the iD editor */
2074 /* Rules for the "Welcome" page */
2075 .site-welcome, .site-fixthemap {
2085 background-image: image-url("welcome-sprite.png");
2086 background-size: 500px 250px;
2092 padding-bottom: 20px;
2094 margin-bottom: 10px;
2106 /* no-r2 */ background-position: -50px 0;
2111 vertical-align: middle;
2115 /* no-r2 */ background-position: -100px 0;
2119 /* no-r2 */ background-position: -150px 0;
2123 /* no-r2 */ background-position: -200px 0;
2127 /* no-r2 */ background-position: -250px 0;
2131 /* no-r2 */ background-position: -300px 0;
2135 /* no-r2 */ background-position: -350px 0;
2144 text-decoration: none;
2148 background-color: #333;
2153 .site-about #content {
2154 background-color: $lightgrey;
2155 background-position: 50% 50%;
2156 background-repeat: no-repeat;
2157 background-size: cover;
2158 background-attachment: fixed;
2175 padding: 170px 40px 20px;
2177 background: rgba(0, 0, 0, .8);
2187 color: $vibrant-green;
2191 @include media-breakpoint-up(sm) {
2203 background-position: 0 50%;
2204 background-repeat: no-repeat;
2205 background-image: image-url('about/osm.png');
2206 background-size: cover;
2207 background-color: $vibrant-green;
2217 padding: 20px 20px 20px 40px;
2218 font: 500 20px/24px Helvetica, Arial, sans-serif;
2219 white-space: nowrap;
2221 background: $vibrant-green;
2225 display: inline-block;
2235 vertical-align: middle;
2236 background: 40px 40px image-url('about/sprite.png') no-repeat;
2240 background-position: 0px 0px;
2244 background-position: 0px -40px;
2248 background-position: 0px -80px;
2252 background-position: 0px -120px;
2256 background-position: 0px -160px;
2260 background-position: -45px -160px;
2267 @media only screen and (max-width:960px) {
2268 .header-illustration.new-user-arm {