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; }
36 margin: 0 0 $lineheight/2 0;
40 vertical-align: middle;
41 margin-right: $lineheight/4;
48 [dir=rtl] { /* no-r2 */ text-align: right; }
50 [dir=ltr] { /* no-r2 */ text-align: left; }
55 display: inline-block;
59 background: transparent image-url("sprite.png") no-repeat 0 0;
60 background-image: image-url("sprite.svg");
65 .icon.search { /* no-r2 */ background-position: 0 0; }
66 .icon.donate { /* no-r2 */ background-position: -20px 0; }
67 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
68 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
69 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
70 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
71 .icon.layers { /* no-r2 */ background-position: -100px 0; }
72 .icon.key { /* no-r2 */ background-position: -120px 0; }
73 .icon.share { /* no-r2 */ background-position: -140px 0; }
74 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
75 .icon.link { /* no-r2 */ background-position: -180px 0; }
76 .icon.close { /* no-r2 */ background-position: -200px 0; }
77 .close-wrap:hover .icon.close,
78 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
79 .icon.check { /* no-r2 */ background-position: -220px 0; }
80 .icon.note { /* no-r2 */ background-position: -240px 0; }
81 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
82 .icon.query { /* no-r2 */ background-position: -260px 0; }
88 text-decoration: none;
89 -webkit-appearance: none;
92 text-decoration: underline;
96 /* Utility for de-emphasizing content */
105 /* Rules for the header */
108 display: none !important;
110 background: image-url("menu-icon.png") no-repeat;
111 background-size: 30px 30px;
115 margin: 14px 10px 0 0;
120 height: $headerHeight;
125 h1, nav, nav > ul, nav > ul > li {
126 display: inline-block;
131 padding: $lineheight/2;
139 text-decoration: none;
146 vertical-align: middle;
172 .btn-outline-primary {
173 @include button-outline-variant($green, $white);
177 .btn-outline-primary {
182 border-top-color: $grey;
186 background-color: lighten($green, 30%);
191 // Small tweaks to the toggle to stop the primary colour showing through
192 // when the menu is shown
193 .show > .btn-outline-primary.dropdown-toggle {
194 background-color: $green;
195 border-color: $green;
198 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
213 color: darken($darkgrey, 25%);
217 .btn-outline-secondary {
218 @include button-outline-variant($darkgrey);
223 .btn-outline-secondary {
224 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
230 background-color: white;
234 &.show .btn-outline-secondary {
235 background-color: white;
242 img.user_thumbnail_tiny {
248 display: inline-block;
250 margin: 3px 0 3px 3px;
251 background-color: lighten($grey, 10%);
263 nav.primary, nav.secondary {
266 background-color: $green;
272 #compact-secondary-nav {
277 #compact-secondary-nav {
278 display: inline-block;
285 /* Utility for styling notification numbers */
288 padding: 2px $lineheight/4;
290 background: lighten($green, 30%);
296 /* Rules for the message shown in place of the map when javascript is disabled */
304 /* Rules for Leaflet maps */
306 .leaflet-control .control-button {
310 background-color: #333;
311 background-color: rgba(0,0,0,.6);
312 border-radius: 4px 0 0 4px;
317 background-color: black;
322 background-color: #333;
323 background-color: rgba(0,0,0,.5);
328 background-color: $vibrant-green;
336 .leaflet-control .zoomin,
337 .control-layers .control-button {
339 border-radius: 4px 0 0 0;
342 .leaflet-control .zoomout,
343 .control-key .control-button {
348 .control-locate .control-button,
349 .control-share .control-button {
350 border-radius: 0 0 0 4px;
353 /* Rules for the sidebar and main map area */
373 width: $sidebarWidth;
388 padding: $lineheight $lineheight $lineheight/2;
393 margin-top: $lineheight;
394 margin-bottom: $lineheight/2;
407 pointer-events: none;
432 .overlay-sidebar #sidebar {
460 padding: $lineheight/2 $lineheight $lineheight;
474 border-right: 1px solid #fff;
484 width: $sidebarWidth;
500 .leaflet-marker-draggable {
515 border-bottom: 1px solid $grey;
525 border:1px solid $grey;
530 border: 1px solid $grey;
532 border-top-color: $grey;
556 border: 2px solid #fff;
559 transition: border-color 0.08s ease-in;
566 border-bottom-right-radius: 3px;
570 text-stroke: 2px #fff;
571 background: rgba(255,255,255,.9);
573 input[type="radio"] {
578 &.active { border-color: darken($green, 10%); }
581 &.active { border-color: darken($green, 20%); }
591 li.disabled { color: $darkgrey; }
601 text-decoration: none;
602 background-color: $lightblue;
604 border-right: 1px solid #fff;
608 border-right: 1px solid #fff;
609 border-radius: 4px 0 0 4px;
613 border-radius: 0 4px 4px 0;
617 background-color: $blue;
629 font-family: monospace;
651 top: $lineheight/2 !important;
653 margin-right: 0px !important;
654 margin-top: 0px !important;
658 .leaflet-popup-scrolled {
659 padding-right: $lineheight;
660 border-bottom: 0px !important;
661 border-top: 0px !important;
664 .leaflet-popup-content-wrapper {
665 border-radius: 4px !important;
668 /* Rules for attribution text under the main map shown on printouts */
678 .attribution_license,
679 .attribution_project {
683 .attribution_notice {
687 .donate-attr { color: darken($green, 10%) !important; }
689 /* Rules for the sidebar */
693 padding: $lineheight/2 $lineheight;
694 // background: $offwhite;
695 // border-bottom: 1px solid $grey;
705 padding: $lineheight;
719 margin: $lineheight auto;
731 /* Rules for the search and direction forms */
733 header .search_forms,
738 /* Rules for the map key which appears in the popout sidebar */
741 .mapkey-table-key img {
748 /* Rules for search sidebar */
750 #sidebar .search_results_entry {
753 &.selected { background: $list-highlight; }
756 .search_more .loader {
762 .search_results_error {
767 /* Rules for routing */
769 #sidebar_content>table {
770 padding: 5px 20px 10px 15px;
772 border-collapse: separate;
777 background-image: image-url('routing-sprite.png');
780 background-repeat: no-repeat;
782 @for $i from 0 through 25 {
783 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
787 padding: 0 $lineheight $lineheight/4;
790 td.instruction, td.distance {
791 padding-top: $lineheight/5;
792 padding-bottom: $lineheight/5;
793 border-bottom: 1px solid $grey;
804 background: $list-highlight;
806 .routing_engines, #route_from, #route_to { margin-left: 25px; }
807 .routing_marker { width: 15px; position: absolute; cursor: move; }
809 /* Rules for entity history */
814 border-bottom: $keyline;
822 /* Rules for the history sidebar */
824 #sidebar .changesets {
828 &.selected { background: $list-highlight; }
829 /* color is derived from changeset bbox fillColor in history.js */
841 .changeset_more .loader {
847 /* Rules for the browse sidebar */
851 padding: $lineheight/2 $lineheight;
852 border-bottom: 1px solid $grey;
856 word-wrap: break-word;
860 .browse-section:last-of-type {
867 border: 1px solid $lightgrey;
875 padding: 5px 0 5px 10px;
877 border: 1px solid $grey;
878 border-radius: 4px 4px 0 0;
879 background-color: $offwhite;
885 background-color: #FFF;
886 border: 1px solid $grey;
888 border-radius: 0 0 4px 4px;
893 background-color: $offwhite;
894 border: 1px solid $grey;
897 border-collapse: separate;
902 border-bottom: 1px solid $grey;
905 tr:last-child th, tr:last-child td {
913 word-wrap: break-word;
914 white-space: pre-wrap;
919 background-color: $offwhite;
923 border-left: 1px solid $grey;
924 background-color: #fff;
927 .colour-preview-box {
932 border: 1px solid rgba(0, 0, 0, .1);
933 // add color via inline css on element: background-color: <tag value>;
938 margin: 0 0 $lineheight/2 0;
939 padding: 0 $lineheight/2;
942 .note-comments li, .changeset-comments li {
943 margin: $lineheight/2 0;
946 margin: 10px 6px 0 6px;
957 margin: 18px 10px 10px;
961 .subscribe-buttons input {
967 span.action-button:hover {
969 text-decoration: underline;
974 margin: 0 0 10px 10px;
978 padding: $lineheight $lineheight $lineheight/2;
983 padding-bottom: $lineheight/2;
986 padding: 0 $lineheight;
996 background: $list-highlight;
1003 /* Rules for export sidebar */
1006 padding: $lineheight;
1008 .export_area_inputs,
1013 .export_area_inputs {
1014 margin-bottom: $lineheight/2;
1015 input[type="text"] {
1023 background: $lightgrey;
1024 border: 1px solid $grey;
1027 #maxlat { margin-top: -1px; }
1030 /* no-r2 */ margin-left: -1px;
1034 /* no-r2 */ margin-right: -1px;
1036 #minlat { margin-bottom: 0; }
1040 margin: $lineheight/4;
1044 margin-top: $lineheight;
1045 margin-bottom: $lineheight;
1049 padding-left: $lineheight/2;
1052 margin-bottom: 10px;
1057 /* Rules for the routing sidebar */
1066 /* Rules for edit pages */
1082 /* Rules for non-map content pages */
1085 background: $lightgrey;
1089 h1, h2, h3, p, ul, ol {
1090 margin-bottom: $lineheight;
1094 margin-top: $lineheight/2;
1102 padding: $lineheight;
1105 /* Overrides for pages that use new layout conventions */
1111 .content-heading .content-inner {
1116 .header-illustration {
1117 background-position: 0 0;
1118 background-repeat: no-repeat;
1126 background-image: image-url("sign-up-illustration.png");
1130 background-image: image-url("confirm-illustration.png");
1134 background-image: image-url("terms-illustration.png");
1142 background-image: image-url("sign-up-illustration-arm.png");
1147 [dir=rtl] .header-illustration {
1148 transform: scaleX(-1);
1151 #content.maximised {
1160 /* Rules for small maps in content areas */
1166 border: 1px solid $grey;
1167 margin-bottom: $lineheight;
1171 /* Rules for the new trace form */
1176 width: calc(100% - 150px);
1181 /* Rules for the edit trace form */
1184 .standard-form-row p {
1190 width: calc(100% - 150px);
1195 /* Rules for the user profile page */
1200 .userinformation-inner {
1215 .admin-user-info small {
1216 margin-bottom: $lineheight/2;
1218 margin-right: $lineheight;
1223 border-bottom: 1px solid $grey;
1224 padding-bottom: $lineheight;
1227 margin-bottom: $lineheight/2;
1232 margin-top: $lineheight;
1236 .activity-details p {
1242 // Silly exception; remove when user page is redesigned.
1246 p#no_home_location {
1247 margin: $lineheight;
1250 margin-top: $lineheight/4;
1255 /* Rules for the user map */
1257 .content_map .leaflet-popup-content {
1258 margin: $lineheight/2;
1262 /* Rules for user popups on maps */
1268 margin-top: 0 0 0 60px;
1271 img.user_thumbnail {
1273 margin: 0 $lineheight/2 0 0;
1277 /* Rules for the user list */
1283 vertical-align: middle;
1292 #user_list_actions {
1294 margin-top: $lineheight/2;
1297 /* Rules for the diary list page */
1301 padding-top: $lineheight;
1302 padding-bottom: $lineheight/2;
1303 border-top: 1px solid $grey;
1306 margin-top: $lineheight/2;
1310 background-color: #fee;
1314 margin-bottom: $lineheight;
1318 margin-bottom: $lineheight/2;
1322 img.user_thumbnail {
1333 padding-top: $lineheight;
1336 /* Rules for the diary entry page */
1343 border: 1px solid $grey;
1345 margin-bottom: $lineheight;
1348 border-top: 1px solid $grey;
1349 padding-top: $lineheight;
1350 margin-top: $lineheight/2;
1356 border-top: 1px dashed $grey;
1357 padding-top: $lineheight/2;
1358 padding-bottom: $lineheight/2;
1360 margin-top: $lineheight/2;
1361 padding-top: $lineheight;
1362 border-top: 1px solid $grey;
1365 background-color: #fee;
1368 margin-bottom: $lineheight/2;
1377 .diary_entries-show img.user_thumbnail {
1382 .diary-subscribe-buttons {
1388 /* Rules for the log in page */
1390 #login_auth_buttons {
1394 #login_auth_buttons li {
1396 padding: $lineheight/4 $lineheight/2;
1399 /* Rules for the account confirmation page */
1403 border: 1px solid $grey;
1404 padding: $lineheight;
1405 margin-bottom: $lineheight;
1410 list-style: inherit;
1414 list-style-type: lower-alpha;
1419 background: $lightblue;
1421 background: darken($lightblue, $hovercolor);
1426 /* Rules for the account settings page */
1428 #accountForm .user_map {
1432 border: 1px solid $grey;
1435 #accountForm .user_image {
1439 #accountForm #user_image {
1443 #accountForm ul.accountImage-options {
1456 display: inline !important;
1459 .content_map.settings_map {
1464 /* Rules for the oauth settings page */
1466 .oauth_clients .buttons .oauth-edit {
1467 border-radius: 2px 0 0 2px;
1470 .oauth_clients .buttons .oauth-delete {
1471 border-radius: 0 2px 2px 0;
1474 /* Rules for the oauth authorization page */
1476 .oauth-authorize ul {
1480 /* Rules for messages pages */
1483 input[type="submit"] {
1488 background: $offwhite;
1492 background: #CBEEA7;
1500 .inbox-row .inbox-mark-read {
1505 margin-bottom: $lineheight;
1506 padding: $lineheight/4 0px 4px 0px;
1507 border-bottom: 1px solid $grey;
1514 .info-line .user_thumbnail_tiny {
1515 vertical-align: middle;
1519 white-space: nowrap;
1528 .inbox-row-unread .inbox-mark-unread {
1532 .messages-show .message-buttons {
1533 margin-top: $lineheight;
1534 margin-bottom: $lineheight * 1.5;
1535 padding-top: $lineheight;
1536 border-top: 1px solid $lightgrey;
1539 .messages-show .buttons .mark-unread-button {
1543 /* Rules for "flash" notice boxes shown at the top of the content area */
1546 padding: $lineheight;
1549 background-color: #ff7070;
1553 background-color: #ffe0cc;
1557 background-color: #CBEEA7;
1561 display: inline-block;
1562 margin-left: $lineheight / 2;
1563 vertical-align: middle;
1566 margin-top: $lineheight * 0.5;
1567 margin-bottom: $lineheight * 0.5;
1580 /* Rules for highlighting fields with rails validation errors */
1583 display: inline-block;
1589 background-color: #ff7070;
1592 /* Rules for rails validation error boxes */
1596 border: 2px solid #ff7070;
1597 padding: 0 $lineheight/2;
1598 margin-bottom: $lineheight;
1599 background-color: #f0f0f0;
1602 margin: 0 -10px 10px -10px;
1603 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1606 background-color: #c00;
1614 padding: $lineheight/4;
1618 /* Rules for forms */
1622 margin-bottom: $lineheight;
1624 label.standard-label {
1626 margin-bottom: $lineheight/4;
1627 font-size: $typeheight;
1631 label.standard-label.secondary {
1632 display: inline-block;
1633 font-weight: normal;
1636 font-weight: normal;
1643 margin-top: $lineheight;
1644 padding-top: $lineheight;
1645 border-top: 1px solid $lightgrey;
1647 .horizontal-list .standard-form-row {
1649 padding-right: 10px;
1651 .standard-form-row {
1652 margin-bottom: $lineheight/2;
1659 list-style-type: none;
1661 input[type="checkbox"],
1662 input[type="radio"] {
1667 #remember_me_openid {
1675 input[type="checkbox"],
1676 input[type="radio"] {
1681 input[type="email"],
1683 input[type="password"],
1686 background-color: #fff;
1687 border: 1px solid $grey;
1693 &.field_with_errors {
1694 border: 2px solid #ff7070;
1706 /* Utility for general button styles */
1708 input[type="button"],
1709 input[type="submit"],
1710 input[type="reset"],
1714 display: inline-block;
1715 padding: $lineheight/4 $lineheight/2;
1716 min-height: 20px + $lineheight/2;
1718 margin: 0 0 $lineheight/2 0;
1724 background: darken($blue, $hovercolor);
1725 text-decoration: none;
1728 background: $lightblue;
1730 background: darken($lightblue, $hovercolor);
1734 background: $lightgrey;
1736 background: $lightgrey;
1744 input[type="button"],
1745 input[type="submit"],
1746 input[type="reset"] {
1747 line-height: normal;
1757 padding: $lineheight/2;
1758 background-color: $lightgrey;
1763 border-radius: 2px 0 0 2px;
1769 transition: 300ms linear;
1772 input[type=text].overflow {
1774 border-radius: 3px 0px 0px 3px;
1779 box-shadow: 0px 0px 7px $vibrant-green;
1782 input[type=submit].float {
1786 border-radius: 0 2px 2px 0;
1790 background-color: rgba($red, 0.4);
1794 /* this next line is to polyfill the vertical alignment of text within a select element,
1795 * which is different between firefox and chrome. */
1805 .describe_location {
1828 padding-right: 25px;
1832 select.routing_engines {
1834 margin: 0px 0px 5px 25px;
1849 margin: 0px 0px 5px 0px;
1856 vertical-align: middle;
1860 a.reverse_directions {
1862 margin: 0px 0px 5px 25px;
1867 /* Rules for user images */
1872 border: 1px solid $grey;
1873 margin-bottom: $lineheight;
1875 margin-right: $lineheight;
1878 img.user_thumbnail {
1881 border: 1px solid $grey;
1882 margin-right: $lineheight;
1885 img.user_thumbnail_tiny {
1890 border: 1px solid $grey;
1893 /* Rules for geo microformats */
1896 border-bottom: none;
1899 /* General styles for action lists / subnavs / pager navs */
1901 ul.secondary-actions {
1907 display: inline-block;
1914 border-left: 1px solid $grey;
1915 padding-left: $lineheight/2;
1916 margin-right: $lineheight/2;
1927 div.secondary-actions {
1932 /* Utility for managing inner content areas */
1934 .inner22 { padding: $lineheight;}
1936 .inner12 { padding: $lineheight/2 $lineheight;}
1938 .inner11 { padding: $lineheight/2;}
1940 .inner20 { padding: $lineheight 0;}
1942 .inner02 { padding: 0 $lineheight;}
1946 input[type="submit"],
1947 input[type="button"],
1948 input[type="reset"],
1951 box-sizing: border-box;
1957 border-right:1px solid white;
1958 text-overflow: ellipsis;
1959 white-space: nowrap;
1963 .button:first-child,
1964 .button_to:first-child {
1965 border-radius:2px 0 0 2px;
1969 .button_to:last-child {
1970 border-radius:0 2px 2px 0;
1971 border-right-width: 0;
1975 .button_to:only-child,
1976 *[value="Hide"] + input:last-child,
1977 *[value="Hide"] + .button:last-child,
1978 *[value="Hide"] + .button_to:last-child {
1980 border-right-width: 0;
1982 /* if a 3-button set has a hidden middle button */
1983 *[value="Hide"] + input:nth-child(3),
1984 *[value="Hide"] + .button:nth-child(3),
1985 *[value="Hide"] + .button_to:nth-child(3) {
1986 border-radius:0 2px 2px 0;
1987 border-right-width: 0;
1989 /* if a 3-button set starts with a hidden button */
1990 *[value="Hide"] + input:nth-child(2):not(:last-child),
1991 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1992 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1993 border-radius:2px 0 0 2px;
1994 border-right-width: 1px;
1998 /* Customise the background colour of striped tables */
2000 .table-striped > tbody > tr:nth-child(2n+1) > td,
2001 .table-striped > tbody > tr:nth-child(2n+1) > th {
2002 background-color: $offwhite;
2005 /* Rules for OpenID logo */
2008 vertical-align: text-bottom;
2012 /* Rules for rich text */
2018 background: $lightgrey;
2024 background: $lightgrey;
2026 white-space: pre-wrap;
2034 padding: $lineheight;
2035 background-color: $offwhite;
2042 border-left: $lineheight solid $offwhite;
2043 padding-left: $lineheight;
2049 .diary_post .richtext {
2050 margin-top: $lineheight;
2053 .comments .richtext {
2058 /* Rules for rich text editors */
2060 input.richtext_title[type="text"] {
2062 width: calc(100% - 235px);
2064 @media only screen and (max-width:768px) {
2069 .richtext_container {
2070 margin-bottom: $lineheight;
2074 width: calc(100% - 235px);
2075 display: inline-block;
2076 vertical-align: top;
2078 @media only screen and (max-width:768px) {
2083 display: inline-block;
2084 padding: $lineheight;
2085 background-color: $offwhite;
2089 background-image: image-url("loading.gif");
2090 background-repeat: no-repeat;
2091 background-position: center;
2101 display: inline-block;
2102 vertical-align: top;
2104 background-color: $offwhite;
2105 padding: $lineheight/2;
2113 border-bottom: 1px solid $grey;
2114 margin-bottom: $lineheight/4;
2115 padding-bottom: $lineheight/4;
2118 li h4, li span, li p {
2119 display: inline-block;
2120 vertical-align: top;
2131 margin-left: $lineheight/2;
2132 margin-bottom: $lineheight/4;
2133 white-space: nowrap;
2138 /* Rules for the user notes list */
2142 background-color: $offwhite;
2146 /* Rules for the iD editor */
2153 /* Rules for the "Welcome" page */
2154 .site-welcome, .site-fixthemap {
2164 background-image: image-url("welcome-sprite.png");
2165 background-size: 500px 250px;
2171 padding-bottom: 20px;
2173 margin-bottom: 10px;
2185 /* no-r2 */ background-position: -50px 0;
2190 vertical-align: middle;
2194 /* no-r2 */ background-position: -100px 0;
2198 /* no-r2 */ background-position: -150px 0;
2202 /* no-r2 */ background-position: -200px 0;
2206 /* no-r2 */ background-position: -250px 0;
2210 /* no-r2 */ background-position: -300px 0;
2214 /* no-r2 */ background-position: -350px 0;
2223 text-decoration: none;
2227 background-color: #333;
2232 .site-about #content {
2233 background-color: $lightgrey;
2234 background-position: 50% 50%;
2235 background-repeat: no-repeat;
2236 background-size: cover;
2237 background-attachment: fixed;
2254 padding: 170px 40px 20px;
2256 background: rgba(0, 0, 0, .8);
2266 color: $vibrant-green;
2276 background-position: 0 50%;
2277 background-repeat: no-repeat;
2278 background-image: image-url('about/osm.png');
2279 background-size: cover;
2280 background-color: $vibrant-green;
2290 padding: 20px 20px 20px 40px;
2291 font: 500 20px/24px Helvetica, Arial, sans-serif;
2292 white-space: nowrap;
2294 background: $vibrant-green;
2298 display: inline-block;
2308 vertical-align: middle;
2309 background: 40px 40px image-url('about/sprite.png') no-repeat;
2313 background-position: 0px 0px;
2317 background-position: 0px -40px;
2321 background-position: 0px -80px;
2325 background-position: 0px -120px;
2329 background-position: 0px -160px;
2333 background-position: -45px -160px;
2340 @media only screen and (max-width:960px) {
2341 .header-illustration.new-user-arm {
2347 background: $lightgrey;