2 @import "bootstrap-custom";
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; }
35 margin: 0 0 $lineheight/2 0;
39 vertical-align: middle;
40 margin-right: $lineheight/4;
47 [dir=rtl] { /* no-r2 */ text-align: right; }
49 [dir=ltr] { /* no-r2 */ text-align: left; }
54 display: inline-block;
58 background: transparent image-url("sprite.png") no-repeat 0 0;
59 background-image: image-url("sprite.svg");
64 .icon.search { /* no-r2 */ background-position: 0 0; }
65 .icon.donate { /* no-r2 */ background-position: -20px 0; }
66 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
67 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
68 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
69 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
70 .icon.layers { /* no-r2 */ background-position: -100px 0; }
71 .icon.key { /* no-r2 */ background-position: -120px 0; }
72 .icon.share { /* no-r2 */ background-position: -140px 0; }
73 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
74 .icon.link { /* no-r2 */ background-position: -180px 0; }
75 .icon.close { /* no-r2 */ background-position: -200px 0; }
76 .close-wrap:hover .icon.close,
77 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
78 .icon.check { /* no-r2 */ background-position: -220px 0; }
79 .icon.note { /* no-r2 */ background-position: -240px 0; }
80 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
81 .icon.query { /* no-r2 */ background-position: -260px 0; }
87 text-decoration: none;
88 -webkit-appearance: none;
91 text-decoration: underline;
95 /* General styles for tables */
99 margin-bottom: $lineheight;
102 padding: $lineheight/4;
103 line-height: $lineheight;
110 vertical-align: middle;
114 /* Utility for de-emphasizing content */
123 /* Rules for the header */
126 display: none !important;
128 background: image-url("menu-icon.png") no-repeat;
129 background-size: 30px 30px;
133 margin: 14px 10px 0 0;
138 height: $headerHeight;
143 h1, nav, nav > ul, nav > ul > li {
144 display: inline-block;
149 padding: $lineheight/2;
157 text-decoration: none;
164 vertical-align: middle;
190 .btn-outline-primary {
191 @include button-outline-variant($green, $white);
205 color: darken($darkgrey, 25%);
209 .btn-outline-secondary {
210 @include button-outline-variant($darkgrey);
215 .btn-outline-secondary {
216 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
217 // @include button-outline-variant($grey, $grey, white, $grey);
222 img.user_thumbnail_tiny {
228 display: inline-block;
231 margin: 3px 0 3px 3px;
232 background-color: lighten($grey, 10%);
244 #compact-secondary-nav {
249 #compact-secondary-nav {
250 display: inline-block;
257 /* Utility for styling notification numbers */
260 padding: 2px $lineheight/4;
262 background: lighten($green, 30%);
268 /* Rules for the message shown in place of the map when javascript is disabled */
276 /* Rules for Leaflet maps */
278 .leaflet-control .control-button {
282 background-color: #333;
283 background-color: rgba(0,0,0,.6);
284 border-radius: 4px 0 0 4px;
289 background-color: black;
294 background-color: #333;
295 background-color: rgba(0,0,0,.5);
300 background-color: $vibrant-green;
308 .leaflet-control .zoomin,
309 .control-layers .control-button {
311 border-radius: 4px 0 0 0;
314 .leaflet-control .zoomout,
315 .control-key .control-button {
320 .control-locate .control-button,
321 .control-share .control-button {
322 border-radius: 0 0 0 4px;
325 /* Rules for the sidebar and main map area */
345 width: $sidebarWidth;
360 padding: $lineheight $lineheight $lineheight/2;
365 margin-top: $lineheight;
366 margin-bottom: $lineheight/2;
379 pointer-events: none;
404 .overlay-sidebar #sidebar {
432 padding: $lineheight/2 $lineheight $lineheight;
446 border-right: 1px solid #fff;
456 width: $sidebarWidth;
472 .leaflet-marker-draggable {
487 border-bottom: 1px solid $grey;
497 border:1px solid $grey;
502 border: 1px solid $grey;
504 border-top-color: $grey;
528 border: 2px solid #fff;
531 transition: border-color 0.08s ease-in;
538 border-bottom-right-radius: 3px;
542 text-stroke: 2px #fff;
543 background: rgba(255,255,255,.9);
545 input[type="radio"] {
550 &.active { border-color: darken($green, 10%); }
553 &.active { border-color: darken($green, 20%); }
563 li.disabled { color: $darkgrey; }
573 text-decoration: none;
574 background-color: $lightblue;
576 border-right: 1px solid #fff;
580 border-right: 1px solid #fff;
581 border-radius: 4px 0 0 4px;
585 border-radius: 0 4px 4px 0;
589 background-color: $blue;
601 font-family: monospace;
623 top: $lineheight/2 !important;
625 margin-right: 0px !important;
626 margin-top: 0px !important;
630 .leaflet-popup-scrolled {
631 padding-right: $lineheight;
632 border-bottom: 0px !important;
633 border-top: 0px !important;
636 .leaflet-popup-content-wrapper {
637 border-radius: 4px !important;
640 /* Rules for attribution text under the main map shown on printouts */
650 .attribution_license,
651 .attribution_project {
655 .attribution_notice {
659 .donate-attr { color: darken($green, 10%) !important; }
661 /* Rules for the sidebar */
665 padding: $lineheight/2 $lineheight;
666 // background: $offwhite;
667 // border-bottom: 1px solid $grey;
677 padding: $lineheight;
691 margin: $lineheight auto;
703 /* Rules for the search and direction forms */
705 header .search_forms,
713 padding: $lineheight/2;
714 background-color: $lightgrey;
719 border-radius: 2px 0 0 2px;
725 transition: 300ms linear;
728 input[type=text].overflow {
734 box-shadow: 0px 0px 7px $vibrant-green;
737 input[type=submit].float {
741 border-radius: 0 2px 2px 0;
745 background-color: rgba($red, 0.4);
749 /* this next line is to polyfill the vertical alignment of text within a select element,
750 * which is different between firefox and chrome. */
787 select.routing_engines {
789 margin: 0px 0px 5px 25px;
804 margin: 0px 0px 5px 0px;
811 vertical-align: middle;
815 a.reverse_directions {
817 margin: 0px 0px 5px 25px;
821 /* Rules for the map key which appears in the popout sidebar */
824 .mapkey-table-key img {
830 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
834 /* Rules for search sidebar */
836 #sidebar .search_results_entry {
839 &.selected { background: $list-highlight; }
842 .search_more .loader {
848 .search_results_error {
853 /* Rules for routing */
855 #sidebar_content>table {
856 padding: 5px 20px 10px 15px;
858 border-collapse: separate;
862 background-image: image-url('routing-sprite.png');
865 background-repeat: no-repeat;
867 @for $i from 0 through 25 {
868 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
872 padding: 0 $lineheight $lineheight/4;
875 td.instruction, td.distance {
876 padding-top: $lineheight/5;
877 padding-bottom: $lineheight/5;
878 border-bottom: 1px solid $grey;
889 background: $list-highlight;
891 .routing_engines, #route_from, #route_to { margin-left: 25px; }
892 .routing_marker { width: 15px; position: absolute; cursor: move; }
894 /* Rules for entity history */
899 border-bottom: $keyline;
907 /* Rules for the history sidebar */
909 #sidebar .changesets {
913 &.selected { background: $list-highlight; }
914 /* color is derived from changeset bbox fillColor in history.js */
926 .changeset_more .loader {
932 /* Rules for the browse sidebar */
936 padding: $lineheight/2 $lineheight;
937 border-bottom: 1px solid $grey;
941 word-wrap: break-word;
945 .browse-section:last-of-type {
952 border: 1px solid $lightgrey;
960 padding: 5px 0 5px 10px;
962 border: 1px solid $grey;
963 border-radius: 4px 4px 0 0;
964 background-color: $offwhite;
970 background-color: #FFF;
971 border: 1px solid $grey;
973 border-radius: 0 0 4px 4px;
978 background-color: $offwhite;
979 border: 1px solid $grey;
982 border-collapse: separate;
985 border-bottom: 1px solid $grey;
988 tr:last-child th, tr:last-child td {
996 word-wrap: break-word;
997 white-space: pre-wrap;
1002 background-color: $offwhite;
1006 border-left: 1px solid $grey;
1007 background-color: #fff;
1010 .colour-preview-box {
1015 border: 1px solid rgba(0, 0, 0, .1);
1016 // add color via inline css on element: background-color: <tag value>;
1021 margin: 0 0 $lineheight/2 0;
1022 padding: 0 $lineheight/2;
1025 .note-comments li, .changeset-comments li {
1026 margin: $lineheight/2 0;
1029 margin: 10px 6px 0 6px;
1038 .subscribe-buttons {
1040 margin: 18px 10px 10px;
1044 .subscribe-buttons input {
1050 span.action-button:hover {
1052 text-decoration: underline;
1057 margin: 0 0 10px 10px;
1061 padding: $lineheight $lineheight $lineheight/2;
1066 padding-bottom: $lineheight/2;
1069 padding: 0 $lineheight;
1079 background: $list-highlight;
1086 /* Rules for export sidebar */
1089 padding: $lineheight;
1091 .export_area_inputs,
1096 .export_area_inputs {
1097 margin-bottom: $lineheight/2;
1098 input[type="text"] {
1106 background: $lightgrey;
1107 border: 1px solid $grey;
1110 #maxlat { margin-top: -1px; }
1113 /* no-r2 */ margin-left: -1px;
1117 /* no-r2 */ margin-right: -1px;
1119 #minlat { margin-bottom: 0; }
1123 margin: $lineheight/4;
1127 margin-top: $lineheight;
1128 margin-bottom: $lineheight;
1132 padding-left: $lineheight/2;
1135 margin-bottom: 10px;
1140 /* Rules for the routing sidebar */
1149 /* Rules for edit pages */
1165 /* Rules for non-map content pages */
1168 background: $lightgrey;
1172 h1, h2, h3, p, ul, ol {
1173 margin-bottom: $lineheight;
1177 margin-top: $lineheight/2;
1185 padding: $lineheight;
1188 /* Overrides for pages that use new layout conventions */
1194 .content-heading .content-inner {
1199 .header-illustration {
1200 background-position: 0 0;
1201 background-repeat: no-repeat;
1209 background-image: image-url("sign-up-illustration.png");
1213 background-image: image-url("confirm-illustration.png");
1217 background-image: image-url("terms-illustration.png");
1225 background-image: image-url("sign-up-illustration-arm.png");
1230 [dir=rtl] .header-illustration {
1231 transform: scaleX(-1);
1234 #content.maximised {
1243 /* Rules for small maps in content areas */
1249 border: 1px solid $grey;
1250 margin-bottom: $lineheight;
1254 /* Rules for the trace list shown by the traces tab etc */
1266 /* Rules for the new trace form */
1271 width: calc(100% - 150px);
1276 /* Rules for the edit trace form */
1279 .standard-form-row p {
1285 width: calc(100% - 150px);
1290 /* Rules for the user profile page */
1295 .userinformation-inner {
1310 .admin-user-info small {
1311 margin-bottom: $lineheight/2;
1313 margin-right: $lineheight;
1318 border-bottom: 1px solid $grey;
1319 padding-bottom: $lineheight;
1322 margin-bottom: $lineheight/2;
1327 margin-top: $lineheight;
1331 .activity-details p {
1337 // Silly exception; remove when user page is redesigned.
1341 p#no_home_location {
1342 margin: $lineheight;
1345 margin-top: $lineheight/4;
1350 /* Rules for the user map */
1352 .content_map .leaflet-popup-content {
1353 margin: $lineheight/2;
1357 /* Rules for user popups on maps */
1363 margin-top: 0 0 0 60px;
1366 img.user_thumbnail {
1368 margin: 0 $lineheight/2 0 0;
1372 /* Rules for the user list */
1378 vertical-align: middle;
1387 #user_list_actions {
1389 margin-top: $lineheight/2;
1392 /* Rules for the diary list page */
1396 padding-top: $lineheight;
1397 padding-bottom: $lineheight/2;
1398 border-top: 1px solid $grey;
1401 margin-top: $lineheight/2;
1405 background-color: #fee;
1409 margin-bottom: $lineheight;
1413 margin-bottom: $lineheight/2;
1417 img.user_thumbnail {
1428 padding-top: $lineheight;
1431 /* Rules for the diary entry page */
1438 border: 1px solid $grey;
1440 margin-bottom: $lineheight;
1443 border-top: 1px solid $grey;
1444 padding-top: $lineheight;
1445 margin-top: $lineheight/2;
1451 border-top: 1px dashed $grey;
1452 padding-top: $lineheight/2;
1453 padding-bottom: $lineheight/2;
1455 margin-top: $lineheight/2;
1456 padding-top: $lineheight;
1457 border-top: 1px solid $grey;
1460 background-color: #fee;
1463 margin-bottom: $lineheight/2;
1472 .diary_entries-show img.user_thumbnail {
1477 .diary-subscribe-buttons {
1483 /* Rules for the log in page */
1485 #login_auth_buttons {
1489 #login_auth_buttons li {
1491 padding: $lineheight/4 $lineheight/2;
1494 /* Rules for the account confirmation page */
1498 border: 1px solid $grey;
1499 padding: $lineheight;
1500 margin-bottom: $lineheight;
1505 list-style: inherit;
1509 list-style-type: lower-alpha;
1514 background: $lightblue;
1516 background: darken($lightblue, $hovercolor);
1521 /* Rules for the account settings page */
1523 #accountForm .user_map {
1527 border: 1px solid $grey;
1530 #accountForm .user_image {
1534 #accountForm #user_image {
1538 #accountForm ul.accountImage-options {
1551 display: inline !important;
1554 .content_map.settings_map {
1559 /* Rules for the oauth settings page */
1561 .oauth_clients .buttons .oauth-edit {
1562 border-radius: 2px 0 0 2px;
1565 .oauth_clients .buttons .oauth-delete {
1566 border-radius: 0 2px 2px 0;
1569 /* Rules for the oauth authorization page */
1571 .oauth-authorize ul {
1575 /* Rules for messages pages */
1579 border: 1px solid $grey;
1581 input[type="submit"] {
1585 border-top: 1px solid $grey;
1589 background: $offwhite;
1602 padding: $lineheight/4;
1613 border-right: 1px solid $lightgrey;
1617 .inbox-row .inbox-mark-read {
1622 margin-bottom: $lineheight;
1623 padding: $lineheight/4 0px 4px 0px;
1624 border-bottom: 1px solid $grey;
1631 .info-line .user_thumbnail_tiny {
1632 vertical-align: middle;
1636 white-space: nowrap;
1645 .inbox-row-unread .inbox-mark-unread {
1649 .messages-show .message-buttons {
1650 margin-top: $lineheight;
1651 margin-bottom: $lineheight * 1.5;
1652 padding-top: $lineheight;
1653 border-top: 1px solid $lightgrey;
1656 .messages-show .buttons .mark-unread-button {
1660 /* Rules for "flash" notice boxes shown at the top of the content area */
1663 padding: $lineheight;
1666 background-color: #ff7070;
1670 background-color: #ffe0cc;
1674 background-color: #CBEEA7;
1678 display: inline-block;
1679 margin-left: $lineheight / 2;
1680 vertical-align: middle;
1683 margin-top: $lineheight * 0.5;
1684 margin-bottom: $lineheight * 0.5;
1697 /* Rules for highlighting fields with rails validation errors */
1700 display: inline-block;
1706 background-color: #ff7070;
1709 /* Rules for rails validation error boxes */
1713 border: 2px solid #ff7070;
1714 padding: 0 $lineheight/2;
1715 margin-bottom: $lineheight;
1716 background-color: #f0f0f0;
1719 margin: 0 -10px 10px -10px;
1720 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1723 background-color: #c00;
1731 padding: $lineheight/4;
1735 /* Rules for forms */
1739 margin-bottom: $lineheight;
1741 label.standard-label {
1743 margin-bottom: $lineheight/4;
1744 font-size: $typeheight;
1748 label.standard-label.secondary {
1749 display: inline-block;
1750 font-weight: normal;
1753 font-weight: normal;
1760 margin-top: $lineheight;
1761 padding-top: $lineheight;
1762 border-top: 1px solid $lightgrey;
1764 .horizontal-list .standard-form-row {
1766 padding-right: 10px;
1768 .standard-form-row {
1769 margin-bottom: $lineheight/2;
1776 list-style-type: none;
1778 input[type="checkbox"],
1779 input[type="radio"] {
1785 #remember_me_openid {
1793 input[type="checkbox"],
1794 input[type="radio"] {
1799 input[type="email"],
1801 input[type="password"],
1804 background-color: #fff;
1805 border: 1px solid $grey;
1811 &.field_with_errors {
1812 border: 2px solid #ff7070;
1823 /* Rules for user images */
1828 border: 1px solid $grey;
1829 margin-bottom: $lineheight;
1831 margin-right: $lineheight;
1834 img.user_thumbnail {
1837 border: 1px solid $grey;
1838 margin-right: $lineheight;
1841 img.user_thumbnail_tiny {
1846 border: 1px solid $grey;
1849 /* Rules for geo microformats */
1852 border-bottom: none;
1855 /* General styles for action lists / subnavs / pager navs */
1857 ul.secondary-actions {
1863 display: inline-block;
1870 border-left: 1px solid $grey;
1871 padding-left: $lineheight/2;
1872 margin-right: $lineheight/2;
1883 div.secondary-actions {
1888 /* Utility for managing inner content areas */
1890 .inner22 { padding: $lineheight;}
1892 .inner12 { padding: $lineheight/2 $lineheight;}
1894 .inner11 { padding: $lineheight/2;}
1896 .inner20 { padding: $lineheight 0;}
1898 .inner02 { padding: 0 $lineheight;}
1900 /* Utility for general button styles */
1902 input[type="button"],
1903 input[type="submit"],
1904 input[type="reset"],
1908 display: inline-block;
1909 padding: $lineheight/4 $lineheight/2;
1910 min-height: 20px + $lineheight/2;
1912 margin: 0 0 $lineheight/2 0;
1918 background: darken($blue, $hovercolor);
1919 text-decoration: none;
1922 background: $lightblue;
1924 background: darken($lightblue, $hovercolor);
1928 background: $lightgrey;
1930 background: $lightgrey;
1938 input[type="button"],
1939 input[type="submit"],
1940 input[type="reset"] {
1941 line-height: normal;
1950 input[type="submit"],
1951 input[type="button"],
1952 input[type="reset"],
1955 box-sizing: border-box;
1961 border-right:1px solid white;
1962 text-overflow: ellipsis;
1963 white-space: nowrap;
1967 .button:first-child,
1968 .button_to:first-child {
1969 border-radius:2px 0 0 2px;
1973 .button_to:last-child {
1974 border-radius:0 2px 2px 0;
1975 border-right-width: 0;
1979 .button_to:only-child,
1980 *[value="Hide"] + input:last-child,
1981 *[value="Hide"] + .button:last-child,
1982 *[value="Hide"] + .button_to:last-child {
1984 border-right-width: 0;
1986 /* if a 3-button set has a hidden middle button */
1987 *[value="Hide"] + input:nth-child(3),
1988 *[value="Hide"] + .button:nth-child(3),
1989 *[value="Hide"] + .button_to:nth-child(3) {
1990 border-radius:0 2px 2px 0;
1991 border-right-width: 0;
1993 /* if a 3-button set starts with a hidden button */
1994 *[value="Hide"] + input:nth-child(2):not(:last-child),
1995 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1996 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1997 border-radius:2px 0 0 2px;
1998 border-right-width: 1px;
2002 /* Rules for doing distinct colour of alternate table rows */
2006 background: $offwhite;
2014 /* Rules for OpenID logo */
2017 vertical-align: text-bottom;
2021 /* Rules for rich text */
2027 background: $lightgrey;
2033 background: $lightgrey;
2035 white-space: pre-wrap;
2043 padding: $lineheight;
2044 background-color: $offwhite;
2051 border-left: $lineheight solid $offwhite;
2052 padding-left: $lineheight;
2058 .diary_post .richtext {
2059 margin-top: $lineheight;
2062 .comments .richtext {
2067 /* Rules for rich text editors */
2069 input.richtext_title[type="text"] {
2071 width: calc(100% - 235px);
2073 @media only screen and (max-width:768px) {
2078 .richtext_container {
2079 margin-bottom: $lineheight;
2083 width: calc(100% - 235px);
2084 display: inline-block;
2085 vertical-align: top;
2087 @media only screen and (max-width:768px) {
2092 display: inline-block;
2093 padding: $lineheight;
2094 background-color: $offwhite;
2098 background-image: image-url("loading.gif");
2099 background-repeat: no-repeat;
2100 background-position: center;
2110 display: inline-block;
2111 vertical-align: top;
2113 background-color: $offwhite;
2114 padding: $lineheight/2;
2122 border-bottom: 1px solid $grey;
2123 margin-bottom: $lineheight/4;
2124 padding-bottom: $lineheight/4;
2127 li h4, li span, li p {
2128 display: inline-block;
2129 vertical-align: top;
2140 margin-left: $lineheight/2;
2141 margin-bottom: $lineheight/4;
2142 white-space: nowrap;
2147 /* Rules for the user notes list */
2151 background-color: $lightgrey;
2163 /* Rules for the iD editor */
2170 /* Rules for the "Welcome" page */
2171 .site-welcome, .site-fixthemap {
2181 background-image: image-url("welcome-sprite.png");
2182 background-size: 500px 250px;
2188 padding-bottom: 20px;
2190 margin-bottom: 10px;
2202 /* no-r2 */ background-position: -50px 0;
2207 vertical-align: middle;
2211 /* no-r2 */ background-position: -100px 0;
2215 /* no-r2 */ background-position: -150px 0;
2219 /* no-r2 */ background-position: -200px 0;
2223 /* no-r2 */ background-position: -250px 0;
2227 /* no-r2 */ background-position: -300px 0;
2231 /* no-r2 */ background-position: -350px 0;
2240 text-decoration: none;
2244 background-color: #333;
2249 .site-about #content {
2250 background-color: $lightgrey;
2251 background-position: 50% 50%;
2252 background-repeat: no-repeat;
2253 background-size: cover;
2254 background-attachment: fixed;
2271 padding: 170px 40px 20px;
2273 background: rgba(0, 0, 0, .8);
2283 color: $vibrant-green;
2293 background-position: 0 50%;
2294 background-repeat: no-repeat;
2295 background-image: image-url('about/osm.png');
2296 background-size: cover;
2297 background-color: $vibrant-green;
2307 padding: 20px 20px 20px 40px;
2308 font: 500 20px/24px Helvetica, Arial, sans-serif;
2309 white-space: nowrap;
2311 background: $vibrant-green;
2315 display: inline-block;
2325 vertical-align: middle;
2326 background: 40px 40px image-url('about/sprite.png') no-repeat;
2330 background-position: 0px 0px;
2334 background-position: 0px -40px;
2338 background-position: 0px -80px;
2342 background-position: 0px -120px;
2346 background-position: 0px -160px;
2350 background-position: -45px -160px;
2357 @media only screen and (max-width:960px) {
2358 .header-illustration.new-user-arm {
2364 background: $lightgrey;
2370 white-space: nowrap;