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);
195 .btn-outline-primary {
200 border-top-color: $grey;
204 background-color: lighten($green, 30%);
220 color: darken($darkgrey, 25%);
224 .btn-outline-secondary {
225 @include button-outline-variant($darkgrey);
230 .btn-outline-secondary {
231 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
232 // @include button-outline-variant($grey, $grey, white, $grey);
237 img.user_thumbnail_tiny {
243 display: inline-block;
245 margin: 3px 0 3px 3px;
246 background-color: lighten($grey, 10%);
258 #compact-secondary-nav {
263 #compact-secondary-nav {
264 display: inline-block;
271 /* Utility for styling notification numbers */
274 padding: 2px $lineheight/4;
276 background: lighten($green, 30%);
282 /* Rules for the message shown in place of the map when javascript is disabled */
290 /* Rules for Leaflet maps */
292 .leaflet-control .control-button {
296 background-color: #333;
297 background-color: rgba(0,0,0,.6);
298 border-radius: 4px 0 0 4px;
303 background-color: black;
308 background-color: #333;
309 background-color: rgba(0,0,0,.5);
314 background-color: $vibrant-green;
322 .leaflet-control .zoomin,
323 .control-layers .control-button {
325 border-radius: 4px 0 0 0;
328 .leaflet-control .zoomout,
329 .control-key .control-button {
334 .control-locate .control-button,
335 .control-share .control-button {
336 border-radius: 0 0 0 4px;
339 /* Rules for the sidebar and main map area */
359 width: $sidebarWidth;
374 padding: $lineheight $lineheight $lineheight/2;
379 margin-top: $lineheight;
380 margin-bottom: $lineheight/2;
393 pointer-events: none;
418 .overlay-sidebar #sidebar {
446 padding: $lineheight/2 $lineheight $lineheight;
460 border-right: 1px solid #fff;
470 width: $sidebarWidth;
486 .leaflet-marker-draggable {
501 border-bottom: 1px solid $grey;
511 border:1px solid $grey;
516 border: 1px solid $grey;
518 border-top-color: $grey;
542 border: 2px solid #fff;
545 transition: border-color 0.08s ease-in;
552 border-bottom-right-radius: 3px;
556 text-stroke: 2px #fff;
557 background: rgba(255,255,255,.9);
559 input[type="radio"] {
564 &.active { border-color: darken($green, 10%); }
567 &.active { border-color: darken($green, 20%); }
577 li.disabled { color: $darkgrey; }
587 text-decoration: none;
588 background-color: $lightblue;
590 border-right: 1px solid #fff;
594 border-right: 1px solid #fff;
595 border-radius: 4px 0 0 4px;
599 border-radius: 0 4px 4px 0;
603 background-color: $blue;
615 font-family: monospace;
637 top: $lineheight/2 !important;
639 margin-right: 0px !important;
640 margin-top: 0px !important;
644 .leaflet-popup-scrolled {
645 padding-right: $lineheight;
646 border-bottom: 0px !important;
647 border-top: 0px !important;
650 .leaflet-popup-content-wrapper {
651 border-radius: 4px !important;
654 /* Rules for attribution text under the main map shown on printouts */
664 .attribution_license,
665 .attribution_project {
669 .attribution_notice {
673 .donate-attr { color: darken($green, 10%) !important; }
675 /* Rules for the sidebar */
679 padding: $lineheight/2 $lineheight;
680 // background: $offwhite;
681 // border-bottom: 1px solid $grey;
691 padding: $lineheight;
705 margin: $lineheight auto;
717 /* Rules for the search and direction forms */
719 header .search_forms,
727 padding: $lineheight/2;
728 background-color: $lightgrey;
733 border-radius: 2px 0 0 2px;
739 transition: 300ms linear;
742 input[type=text].overflow {
748 box-shadow: 0px 0px 7px $vibrant-green;
751 input[type=submit].float {
755 border-radius: 0 2px 2px 0;
759 background-color: rgba($red, 0.4);
763 /* this next line is to polyfill the vertical alignment of text within a select element,
764 * which is different between firefox and chrome. */
801 select.routing_engines {
803 margin: 0px 0px 5px 25px;
818 margin: 0px 0px 5px 0px;
825 vertical-align: middle;
829 a.reverse_directions {
831 margin: 0px 0px 5px 25px;
835 /* Rules for the map key which appears in the popout sidebar */
838 .mapkey-table-key img {
844 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
848 /* Rules for search sidebar */
850 #sidebar .search_results_entry {
853 &.selected { background: $list-highlight; }
856 .search_more .loader {
862 .search_results_error {
867 /* Rules for routing */
869 #sidebar_content>table {
870 padding: 5px 20px 10px 15px;
872 border-collapse: separate;
876 background-image: image-url('routing-sprite.png');
879 background-repeat: no-repeat;
881 @for $i from 0 through 25 {
882 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
886 padding: 0 $lineheight $lineheight/4;
889 td.instruction, td.distance {
890 padding-top: $lineheight/5;
891 padding-bottom: $lineheight/5;
892 border-bottom: 1px solid $grey;
903 background: $list-highlight;
905 .routing_engines, #route_from, #route_to { margin-left: 25px; }
906 .routing_marker { width: 15px; position: absolute; cursor: move; }
908 /* Rules for entity history */
913 border-bottom: $keyline;
921 /* Rules for the history sidebar */
923 #sidebar .changesets {
927 &.selected { background: $list-highlight; }
928 /* color is derived from changeset bbox fillColor in history.js */
940 .changeset_more .loader {
946 /* Rules for the browse sidebar */
950 padding: $lineheight/2 $lineheight;
951 border-bottom: 1px solid $grey;
955 word-wrap: break-word;
959 .browse-section:last-of-type {
966 border: 1px solid $lightgrey;
974 padding: 5px 0 5px 10px;
976 border: 1px solid $grey;
977 border-radius: 4px 4px 0 0;
978 background-color: $offwhite;
984 background-color: #FFF;
985 border: 1px solid $grey;
987 border-radius: 0 0 4px 4px;
992 background-color: $offwhite;
993 border: 1px solid $grey;
996 border-collapse: separate;
999 border-bottom: 1px solid $grey;
1002 tr:last-child th, tr:last-child td {
1010 word-wrap: break-word;
1011 white-space: pre-wrap;
1016 background-color: $offwhite;
1020 border-left: 1px solid $grey;
1021 background-color: #fff;
1024 .colour-preview-box {
1029 border: 1px solid rgba(0, 0, 0, .1);
1030 // add color via inline css on element: background-color: <tag value>;
1035 margin: 0 0 $lineheight/2 0;
1036 padding: 0 $lineheight/2;
1039 .note-comments li, .changeset-comments li {
1040 margin: $lineheight/2 0;
1043 margin: 10px 6px 0 6px;
1052 .subscribe-buttons {
1054 margin: 18px 10px 10px;
1058 .subscribe-buttons input {
1064 span.action-button:hover {
1066 text-decoration: underline;
1071 margin: 0 0 10px 10px;
1075 padding: $lineheight $lineheight $lineheight/2;
1080 padding-bottom: $lineheight/2;
1083 padding: 0 $lineheight;
1093 background: $list-highlight;
1100 /* Rules for export sidebar */
1103 padding: $lineheight;
1105 .export_area_inputs,
1110 .export_area_inputs {
1111 margin-bottom: $lineheight/2;
1112 input[type="text"] {
1120 background: $lightgrey;
1121 border: 1px solid $grey;
1124 #maxlat { margin-top: -1px; }
1127 /* no-r2 */ margin-left: -1px;
1131 /* no-r2 */ margin-right: -1px;
1133 #minlat { margin-bottom: 0; }
1137 margin: $lineheight/4;
1141 margin-top: $lineheight;
1142 margin-bottom: $lineheight;
1146 padding-left: $lineheight/2;
1149 margin-bottom: 10px;
1154 /* Rules for the routing sidebar */
1163 /* Rules for edit pages */
1179 /* Rules for non-map content pages */
1182 background: $lightgrey;
1186 h1, h2, h3, p, ul, ol {
1187 margin-bottom: $lineheight;
1191 margin-top: $lineheight/2;
1199 padding: $lineheight;
1202 /* Overrides for pages that use new layout conventions */
1208 .content-heading .content-inner {
1213 .header-illustration {
1214 background-position: 0 0;
1215 background-repeat: no-repeat;
1223 background-image: image-url("sign-up-illustration.png");
1227 background-image: image-url("confirm-illustration.png");
1231 background-image: image-url("terms-illustration.png");
1239 background-image: image-url("sign-up-illustration-arm.png");
1244 [dir=rtl] .header-illustration {
1245 transform: scaleX(-1);
1248 #content.maximised {
1257 /* Rules for small maps in content areas */
1263 border: 1px solid $grey;
1264 margin-bottom: $lineheight;
1268 /* Rules for the trace list shown by the traces tab etc */
1280 /* Rules for the new trace form */
1285 width: calc(100% - 150px);
1290 /* Rules for the edit trace form */
1293 .standard-form-row p {
1299 width: calc(100% - 150px);
1304 /* Rules for the user profile page */
1309 .userinformation-inner {
1324 .admin-user-info small {
1325 margin-bottom: $lineheight/2;
1327 margin-right: $lineheight;
1332 border-bottom: 1px solid $grey;
1333 padding-bottom: $lineheight;
1336 margin-bottom: $lineheight/2;
1341 margin-top: $lineheight;
1345 .activity-details p {
1351 // Silly exception; remove when user page is redesigned.
1355 p#no_home_location {
1356 margin: $lineheight;
1359 margin-top: $lineheight/4;
1364 /* Rules for the user map */
1366 .content_map .leaflet-popup-content {
1367 margin: $lineheight/2;
1371 /* Rules for user popups on maps */
1377 margin-top: 0 0 0 60px;
1380 img.user_thumbnail {
1382 margin: 0 $lineheight/2 0 0;
1386 /* Rules for the user list */
1392 vertical-align: middle;
1401 #user_list_actions {
1403 margin-top: $lineheight/2;
1406 /* Rules for the diary list page */
1410 padding-top: $lineheight;
1411 padding-bottom: $lineheight/2;
1412 border-top: 1px solid $grey;
1415 margin-top: $lineheight/2;
1419 background-color: #fee;
1423 margin-bottom: $lineheight;
1427 margin-bottom: $lineheight/2;
1431 img.user_thumbnail {
1442 padding-top: $lineheight;
1445 /* Rules for the diary entry page */
1452 border: 1px solid $grey;
1454 margin-bottom: $lineheight;
1457 border-top: 1px solid $grey;
1458 padding-top: $lineheight;
1459 margin-top: $lineheight/2;
1465 border-top: 1px dashed $grey;
1466 padding-top: $lineheight/2;
1467 padding-bottom: $lineheight/2;
1469 margin-top: $lineheight/2;
1470 padding-top: $lineheight;
1471 border-top: 1px solid $grey;
1474 background-color: #fee;
1477 margin-bottom: $lineheight/2;
1486 .diary_entries-show img.user_thumbnail {
1491 .diary-subscribe-buttons {
1497 /* Rules for the log in page */
1499 #login_auth_buttons {
1503 #login_auth_buttons li {
1505 padding: $lineheight/4 $lineheight/2;
1508 /* Rules for the account confirmation page */
1512 border: 1px solid $grey;
1513 padding: $lineheight;
1514 margin-bottom: $lineheight;
1519 list-style: inherit;
1523 list-style-type: lower-alpha;
1528 background: $lightblue;
1530 background: darken($lightblue, $hovercolor);
1535 /* Rules for the account settings page */
1537 #accountForm .user_map {
1541 border: 1px solid $grey;
1544 #accountForm .user_image {
1548 #accountForm #user_image {
1552 #accountForm ul.accountImage-options {
1565 display: inline !important;
1568 .content_map.settings_map {
1573 /* Rules for the oauth settings page */
1575 .oauth_clients .buttons .oauth-edit {
1576 border-radius: 2px 0 0 2px;
1579 .oauth_clients .buttons .oauth-delete {
1580 border-radius: 0 2px 2px 0;
1583 /* Rules for the oauth authorization page */
1585 .oauth-authorize ul {
1589 /* Rules for messages pages */
1593 border: 1px solid $grey;
1595 input[type="submit"] {
1599 border-top: 1px solid $grey;
1603 background: $offwhite;
1616 padding: $lineheight/4;
1627 border-right: 1px solid $lightgrey;
1631 .inbox-row .inbox-mark-read {
1636 margin-bottom: $lineheight;
1637 padding: $lineheight/4 0px 4px 0px;
1638 border-bottom: 1px solid $grey;
1645 .info-line .user_thumbnail_tiny {
1646 vertical-align: middle;
1650 white-space: nowrap;
1659 .inbox-row-unread .inbox-mark-unread {
1663 .messages-show .message-buttons {
1664 margin-top: $lineheight;
1665 margin-bottom: $lineheight * 1.5;
1666 padding-top: $lineheight;
1667 border-top: 1px solid $lightgrey;
1670 .messages-show .buttons .mark-unread-button {
1674 /* Rules for "flash" notice boxes shown at the top of the content area */
1677 padding: $lineheight;
1680 background-color: #ff7070;
1684 background-color: #ffe0cc;
1688 background-color: #CBEEA7;
1692 display: inline-block;
1693 margin-left: $lineheight / 2;
1694 vertical-align: middle;
1697 margin-top: $lineheight * 0.5;
1698 margin-bottom: $lineheight * 0.5;
1711 /* Rules for highlighting fields with rails validation errors */
1714 display: inline-block;
1720 background-color: #ff7070;
1723 /* Rules for rails validation error boxes */
1727 border: 2px solid #ff7070;
1728 padding: 0 $lineheight/2;
1729 margin-bottom: $lineheight;
1730 background-color: #f0f0f0;
1733 margin: 0 -10px 10px -10px;
1734 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1737 background-color: #c00;
1745 padding: $lineheight/4;
1749 /* Rules for forms */
1753 margin-bottom: $lineheight;
1755 label.standard-label {
1757 margin-bottom: $lineheight/4;
1758 font-size: $typeheight;
1762 label.standard-label.secondary {
1763 display: inline-block;
1764 font-weight: normal;
1767 font-weight: normal;
1774 margin-top: $lineheight;
1775 padding-top: $lineheight;
1776 border-top: 1px solid $lightgrey;
1778 .horizontal-list .standard-form-row {
1780 padding-right: 10px;
1782 .standard-form-row {
1783 margin-bottom: $lineheight/2;
1790 list-style-type: none;
1792 input[type="checkbox"],
1793 input[type="radio"] {
1799 #remember_me_openid {
1807 input[type="checkbox"],
1808 input[type="radio"] {
1813 input[type="email"],
1815 input[type="password"],
1818 background-color: #fff;
1819 border: 1px solid $grey;
1825 &.field_with_errors {
1826 border: 2px solid #ff7070;
1837 /* Rules for user images */
1842 border: 1px solid $grey;
1843 margin-bottom: $lineheight;
1845 margin-right: $lineheight;
1848 img.user_thumbnail {
1851 border: 1px solid $grey;
1852 margin-right: $lineheight;
1855 img.user_thumbnail_tiny {
1860 border: 1px solid $grey;
1863 /* Rules for geo microformats */
1866 border-bottom: none;
1869 /* General styles for action lists / subnavs / pager navs */
1871 ul.secondary-actions {
1877 display: inline-block;
1884 border-left: 1px solid $grey;
1885 padding-left: $lineheight/2;
1886 margin-right: $lineheight/2;
1897 div.secondary-actions {
1902 /* Utility for managing inner content areas */
1904 .inner22 { padding: $lineheight;}
1906 .inner12 { padding: $lineheight/2 $lineheight;}
1908 .inner11 { padding: $lineheight/2;}
1910 .inner20 { padding: $lineheight 0;}
1912 .inner02 { padding: 0 $lineheight;}
1914 /* Utility for general button styles */
1916 input[type="button"],
1917 input[type="submit"],
1918 input[type="reset"],
1922 display: inline-block;
1923 padding: $lineheight/4 $lineheight/2;
1924 min-height: 20px + $lineheight/2;
1926 margin: 0 0 $lineheight/2 0;
1932 background: darken($blue, $hovercolor);
1933 text-decoration: none;
1936 background: $lightblue;
1938 background: darken($lightblue, $hovercolor);
1942 background: $lightgrey;
1944 background: $lightgrey;
1952 input[type="button"],
1953 input[type="submit"],
1954 input[type="reset"] {
1955 line-height: normal;
1964 input[type="submit"],
1965 input[type="button"],
1966 input[type="reset"],
1969 box-sizing: border-box;
1975 border-right:1px solid white;
1976 text-overflow: ellipsis;
1977 white-space: nowrap;
1981 .button:first-child,
1982 .button_to:first-child {
1983 border-radius:2px 0 0 2px;
1987 .button_to:last-child {
1988 border-radius:0 2px 2px 0;
1989 border-right-width: 0;
1993 .button_to:only-child,
1994 *[value="Hide"] + input:last-child,
1995 *[value="Hide"] + .button:last-child,
1996 *[value="Hide"] + .button_to:last-child {
1998 border-right-width: 0;
2000 /* if a 3-button set has a hidden middle button */
2001 *[value="Hide"] + input:nth-child(3),
2002 *[value="Hide"] + .button:nth-child(3),
2003 *[value="Hide"] + .button_to:nth-child(3) {
2004 border-radius:0 2px 2px 0;
2005 border-right-width: 0;
2007 /* if a 3-button set starts with a hidden button */
2008 *[value="Hide"] + input:nth-child(2):not(:last-child),
2009 *[value="Hide"] + .button:nth-child(2):not(:last-child),
2010 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
2011 border-radius:2px 0 0 2px;
2012 border-right-width: 1px;
2016 /* Rules for doing distinct colour of alternate table rows */
2020 background: $offwhite;
2028 /* Rules for OpenID logo */
2031 vertical-align: text-bottom;
2035 /* Rules for rich text */
2041 background: $lightgrey;
2047 background: $lightgrey;
2049 white-space: pre-wrap;
2057 padding: $lineheight;
2058 background-color: $offwhite;
2065 border-left: $lineheight solid $offwhite;
2066 padding-left: $lineheight;
2072 .diary_post .richtext {
2073 margin-top: $lineheight;
2076 .comments .richtext {
2081 /* Rules for rich text editors */
2083 input.richtext_title[type="text"] {
2085 width: calc(100% - 235px);
2087 @media only screen and (max-width:768px) {
2092 .richtext_container {
2093 margin-bottom: $lineheight;
2097 width: calc(100% - 235px);
2098 display: inline-block;
2099 vertical-align: top;
2101 @media only screen and (max-width:768px) {
2106 display: inline-block;
2107 padding: $lineheight;
2108 background-color: $offwhite;
2112 background-image: image-url("loading.gif");
2113 background-repeat: no-repeat;
2114 background-position: center;
2124 display: inline-block;
2125 vertical-align: top;
2127 background-color: $offwhite;
2128 padding: $lineheight/2;
2136 border-bottom: 1px solid $grey;
2137 margin-bottom: $lineheight/4;
2138 padding-bottom: $lineheight/4;
2141 li h4, li span, li p {
2142 display: inline-block;
2143 vertical-align: top;
2154 margin-left: $lineheight/2;
2155 margin-bottom: $lineheight/4;
2156 white-space: nowrap;
2161 /* Rules for the user notes list */
2165 background-color: $lightgrey;
2177 /* Rules for the iD editor */
2184 /* Rules for the "Welcome" page */
2185 .site-welcome, .site-fixthemap {
2195 background-image: image-url("welcome-sprite.png");
2196 background-size: 500px 250px;
2202 padding-bottom: 20px;
2204 margin-bottom: 10px;
2216 /* no-r2 */ background-position: -50px 0;
2221 vertical-align: middle;
2225 /* no-r2 */ background-position: -100px 0;
2229 /* no-r2 */ background-position: -150px 0;
2233 /* no-r2 */ background-position: -200px 0;
2237 /* no-r2 */ background-position: -250px 0;
2241 /* no-r2 */ background-position: -300px 0;
2245 /* no-r2 */ background-position: -350px 0;
2254 text-decoration: none;
2258 background-color: #333;
2263 .site-about #content {
2264 background-color: $lightgrey;
2265 background-position: 50% 50%;
2266 background-repeat: no-repeat;
2267 background-size: cover;
2268 background-attachment: fixed;
2285 padding: 170px 40px 20px;
2287 background: rgba(0, 0, 0, .8);
2297 color: $vibrant-green;
2307 background-position: 0 50%;
2308 background-repeat: no-repeat;
2309 background-image: image-url('about/osm.png');
2310 background-size: cover;
2311 background-color: $vibrant-green;
2321 padding: 20px 20px 20px 40px;
2322 font: 500 20px/24px Helvetica, Arial, sans-serif;
2323 white-space: nowrap;
2325 background: $vibrant-green;
2329 display: inline-block;
2339 vertical-align: middle;
2340 background: 40px 40px image-url('about/sprite.png') no-repeat;
2344 background-position: 0px 0px;
2348 background-position: 0px -40px;
2352 background-position: 0px -80px;
2356 background-position: 0px -120px;
2360 background-position: 0px -160px;
2364 background-position: -45px -160px;
2371 @media only screen and (max-width:960px) {
2372 .header-illustration.new-user-arm {
2378 background: $lightgrey;
2384 white-space: nowrap;