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;
721 /* Temporary label size override until we remove site-wide font customisation */
729 /* Rules for the search and direction forms */
731 header .search_forms,
736 /* Rules for the map key which appears in the popout sidebar */
739 .mapkey-table-key img {
746 /* Rules for search sidebar */
748 #sidebar .search_results_entry {
751 &.selected { background: $list-highlight; }
754 .search_more .loader {
760 .search_results_error {
765 /* Rules for routing */
767 #sidebar_content>table {
768 padding: 5px 20px 10px 15px;
770 border-collapse: separate;
775 background-image: image-url('routing-sprite.png');
778 background-repeat: no-repeat;
780 @for $i from 0 through 25 {
781 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
785 padding: 0 $lineheight $lineheight/4;
788 td.instruction, td.distance {
789 padding-top: $lineheight/5;
790 padding-bottom: $lineheight/5;
791 border-bottom: 1px solid $grey;
802 background: $list-highlight;
804 .routing_engines, #route_from, #route_to { margin-left: 25px; }
805 .routing_marker { width: 15px; position: absolute; cursor: move; }
807 /* Rules for entity history */
812 border-bottom: $keyline;
820 /* Rules for the history sidebar */
822 #sidebar .changesets {
826 &.selected { background: $list-highlight; }
827 /* color is derived from changeset bbox fillColor in history.js */
839 .changeset_more .loader {
845 /* Rules for the browse sidebar */
849 padding: $lineheight/2 $lineheight;
850 border-bottom: 1px solid $grey;
854 word-wrap: break-word;
858 .browse-section:last-of-type {
865 border: 1px solid $lightgrey;
873 padding: 5px 0 5px 10px;
875 border: 1px solid $grey;
876 border-radius: 4px 4px 0 0;
877 background-color: $offwhite;
883 background-color: #FFF;
884 border: 1px solid $grey;
886 border-radius: 0 0 4px 4px;
891 background-color: $offwhite;
892 border: 1px solid $grey;
895 border-collapse: separate;
900 border-bottom: 1px solid $grey;
903 tr:last-child th, tr:last-child td {
911 word-wrap: break-word;
912 white-space: pre-wrap;
917 background-color: $offwhite;
921 border-left: 1px solid $grey;
922 background-color: #fff;
925 .colour-preview-box {
930 border: 1px solid rgba(0, 0, 0, .1);
931 // add color via inline css on element: background-color: <tag value>;
935 .note-comments li, .changeset-comments li {
936 margin: $lineheight/2 0;
939 margin: 10px 6px 0 6px;
950 margin: 18px 10px 10px;
954 .subscribe-buttons input {
960 span.action-button:hover {
962 text-decoration: underline;
967 margin: 0 0 10px 10px;
971 padding: $lineheight $lineheight $lineheight/2;
976 padding-bottom: $lineheight/2;
979 padding: 0 $lineheight;
989 background: $list-highlight;
996 /* Rules for export sidebar */
999 padding: $lineheight;
1001 .export_area_inputs,
1006 .export_area_inputs {
1007 margin-bottom: $lineheight/2;
1008 input[type="text"] {
1016 background: $lightgrey;
1017 border: 1px solid $grey;
1020 #maxlat { margin-top: -1px; }
1023 /* no-r2 */ margin-left: -1px;
1027 /* no-r2 */ margin-right: -1px;
1029 #minlat { margin-bottom: 0; }
1033 margin: $lineheight/4;
1037 margin-top: $lineheight;
1038 margin-bottom: $lineheight;
1042 padding-left: $lineheight/2;
1045 margin-bottom: 10px;
1050 /* Rules for the routing sidebar */
1059 /* Rules for edit pages */
1075 /* Rules for non-map content pages */
1078 background: $lightgrey;
1085 padding: $lineheight;
1088 /* Overrides for pages that use new layout conventions */
1094 .content-heading .content-inner {
1099 .header-illustration {
1100 background-position: 0 0;
1101 background-repeat: no-repeat;
1109 background-image: image-url("sign-up-illustration.png");
1113 background-image: image-url("confirm-illustration.png");
1117 background-image: image-url("terms-illustration.png");
1125 background-image: image-url("sign-up-illustration-arm.png");
1130 [dir=rtl] .header-illustration {
1131 transform: scaleX(-1);
1134 #content.maximised {
1143 /* Rules for small maps in content areas */
1147 border: 1px solid $grey;
1148 margin-bottom: $lineheight;
1151 @include media-breakpoint-up(md) {
1157 /* Rules for the user profile page */
1161 .userinformation-inner {
1170 .admin-user-info small {
1171 margin-bottom: $lineheight/2;
1173 margin-right: $lineheight;
1177 margin-top: $lineheight;
1181 .activity-details p {
1187 // Silly exception; remove when user page is redesigned.
1191 p#no_home_location {
1192 margin: $lineheight;
1195 margin-top: $lineheight/4;
1200 /* Rules for the user map */
1202 .content_map .leaflet-popup-content {
1203 margin: $lineheight/2;
1207 /* Rules for user popups on maps */
1213 margin-top: 0 0 0 60px;
1216 img.user_thumbnail {
1218 margin: 0 $lineheight/2 0 0;
1222 /* Rules for the user list */
1228 vertical-align: middle;
1237 #user_list_actions {
1239 margin-top: $lineheight/2;
1242 /* Rules for the diary list page */
1246 padding-top: $lineheight;
1247 padding-bottom: $lineheight/2;
1248 border-top: 1px solid $grey;
1251 margin-top: $lineheight/2;
1255 background-color: #fee;
1259 margin-bottom: $lineheight;
1263 margin-bottom: $lineheight/2;
1267 img.user_thumbnail {
1278 padding-top: $lineheight;
1281 /* Rules for the diary entry page */
1288 border: 1px solid $grey;
1290 margin-bottom: $lineheight;
1293 border-top: 1px solid $grey;
1294 padding-top: $lineheight;
1295 margin-top: $lineheight/2;
1301 border-top: 1px dashed $grey;
1302 padding-top: $lineheight/2;
1303 padding-bottom: $lineheight/2;
1305 margin-top: $lineheight/2;
1306 padding-top: $lineheight;
1307 border-top: 1px solid $grey;
1310 background-color: #fee;
1313 margin-bottom: $lineheight/2;
1322 .diary_entries-show img.user_thumbnail {
1327 .diary-subscribe-buttons {
1333 /* Rules for the log in page */
1335 #login_auth_buttons {
1339 #login_auth_buttons li {
1341 padding: $lineheight/4 $lineheight/2;
1344 /* Rules for the account confirmation page */
1348 border: 1px solid $grey;
1349 padding: $lineheight;
1350 margin-bottom: $lineheight;
1355 list-style: inherit;
1359 list-style-type: lower-alpha;
1364 background: $lightblue;
1366 background: darken($lightblue, $hovercolor);
1371 /* Rules for the account settings page */
1373 #accountForm .user_image {
1377 #accountForm #user_image {
1381 #accountForm ul.accountImage-options {
1394 display: inline !important;
1397 /* Rules for the oauth settings page */
1399 .oauth_clients .buttons .oauth-edit {
1400 border-radius: 2px 0 0 2px;
1403 .oauth_clients .buttons .oauth-delete {
1404 border-radius: 0 2px 2px 0;
1407 /* Rules for the oauth authorization page */
1409 .oauth-authorize ul {
1413 /* Rules for messages pages */
1416 input[type="submit"] {
1421 background: $offwhite;
1425 background: #CBEEA7;
1433 .inbox-row .inbox-mark-read {
1438 margin-bottom: $lineheight;
1439 padding: $lineheight/4 0px 4px 0px;
1440 border-bottom: 1px solid $grey;
1447 .info-line .user_thumbnail_tiny {
1448 vertical-align: middle;
1452 white-space: nowrap;
1461 .inbox-row-unread .inbox-mark-unread {
1465 /* Rules for "flash" notice boxes shown at the top of the content area */
1468 padding: $lineheight;
1471 background-color: #ff7070;
1475 background-color: #ffe0cc;
1479 background-color: #CBEEA7;
1483 display: inline-block;
1484 margin-left: $lineheight / 2;
1485 vertical-align: middle;
1488 margin-top: $lineheight * 0.5;
1489 margin-bottom: $lineheight * 0.5;
1502 /* Rules for highlighting fields with rails validation errors */
1505 display: inline-block;
1511 background-color: #ff7070;
1514 /* Rules for rails validation error boxes */
1518 border: 2px solid #ff7070;
1519 padding: 0 $lineheight/2;
1520 margin-bottom: $lineheight;
1521 background-color: #f0f0f0;
1524 margin: 0 -10px 10px -10px;
1525 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1528 background-color: #c00;
1536 padding: $lineheight/4;
1540 /* Rules for forms */
1544 margin-bottom: $lineheight;
1546 label.standard-label {
1548 margin-bottom: $lineheight/4;
1549 font-size: $typeheight;
1553 label.standard-label.secondary {
1554 display: inline-block;
1555 font-weight: normal;
1558 font-weight: normal;
1565 margin-top: $lineheight;
1566 padding-top: $lineheight;
1567 border-top: 1px solid $lightgrey;
1569 .horizontal-list .standard-form-row {
1571 padding-right: 10px;
1573 .standard-form-row {
1574 margin-bottom: $lineheight/2;
1581 list-style-type: none;
1583 input[type="checkbox"],
1584 input[type="radio"] {
1589 #remember_me_openid {
1597 input[type="checkbox"],
1598 input[type="radio"] {
1603 input[type="email"],
1605 input[type="password"],
1608 background-color: #fff;
1609 border: 1px solid $grey;
1615 &.field_with_errors {
1616 border: 2px solid #ff7070;
1628 /* Utility for general button styles */
1630 input[type="button"],
1631 input[type="submit"],
1632 input[type="reset"],
1636 display: inline-block;
1637 padding: $lineheight/4 $lineheight/2;
1638 min-height: 20px + $lineheight/2;
1640 margin: 0 0 $lineheight/2 0;
1646 background: darken($blue, $hovercolor);
1647 text-decoration: none;
1650 background: $lightblue;
1652 background: darken($lightblue, $hovercolor);
1656 background: $lightgrey;
1658 background: $lightgrey;
1666 input[type="button"],
1667 input[type="submit"],
1668 input[type="reset"] {
1669 line-height: normal;
1679 padding: $lineheight/2;
1680 background-color: $lightgrey;
1685 border-radius: 2px 0 0 2px;
1691 transition: 300ms linear;
1694 input[type=text].overflow {
1696 border-radius: 3px 0px 0px 3px;
1701 box-shadow: 0px 0px 7px $vibrant-green;
1704 input[type=submit].float {
1708 border-radius: 0 2px 2px 0;
1712 background-color: rgba($red, 0.4);
1716 /* this next line is to polyfill the vertical alignment of text within a select element,
1717 * which is different between firefox and chrome. */
1727 .describe_location {
1750 padding-right: 25px;
1754 select.routing_engines {
1756 margin: 0px 0px 5px 25px;
1771 margin: 0px 0px 5px 0px;
1778 vertical-align: middle;
1782 a.reverse_directions {
1784 margin: 0px 0px 5px 25px;
1789 /* Rules for user images */
1794 border: 1px solid $grey;
1795 margin-bottom: $lineheight;
1797 margin-right: $lineheight;
1800 img.user_thumbnail {
1803 border: 1px solid $grey;
1804 margin-right: $lineheight;
1807 img.user_thumbnail_tiny {
1812 border: 1px solid $grey;
1815 /* Rules for geo microformats */
1818 border-bottom: none;
1821 /* General styles for action lists / subnavs / pager navs */
1823 ul.secondary-actions {
1829 display: inline-block;
1836 border-left: 1px solid $grey;
1837 padding-left: $lineheight/2;
1838 margin-right: $lineheight/2;
1849 div.secondary-actions {
1854 /* Utility for managing inner content areas */
1856 .inner22 { padding: $lineheight;}
1858 .inner12 { padding: $lineheight/2 $lineheight;}
1860 .inner11 { padding: $lineheight/2;}
1862 .inner20 { padding: $lineheight 0;}
1864 .inner02 { padding: 0 $lineheight;}
1868 input[type="submit"],
1869 input[type="button"],
1870 input[type="reset"],
1873 box-sizing: border-box;
1879 border-right:1px solid white;
1880 text-overflow: ellipsis;
1881 white-space: nowrap;
1885 .button:first-child,
1886 .button_to:first-child {
1887 border-radius:2px 0 0 2px;
1891 .button_to:last-child {
1892 border-radius:0 2px 2px 0;
1893 border-right-width: 0;
1897 .button_to:only-child,
1898 *[value="Hide"] + input:last-child,
1899 *[value="Hide"] + .button:last-child,
1900 *[value="Hide"] + .button_to:last-child {
1902 border-right-width: 0;
1904 /* if a 3-button set has a hidden middle button */
1905 *[value="Hide"] + input:nth-child(3),
1906 *[value="Hide"] + .button:nth-child(3),
1907 *[value="Hide"] + .button_to:nth-child(3) {
1908 border-radius:0 2px 2px 0;
1909 border-right-width: 0;
1911 /* if a 3-button set starts with a hidden button */
1912 *[value="Hide"] + input:nth-child(2):not(:last-child),
1913 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1914 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1915 border-radius:2px 0 0 2px;
1916 border-right-width: 1px;
1920 /* Customise the background colour of striped tables */
1922 .table-striped > tbody > tr:nth-child(2n+1) > td,
1923 .table-striped > tbody > tr:nth-child(2n+1) > th {
1924 background-color: $offwhite;
1927 /* Rules for OpenID logo */
1930 vertical-align: text-bottom;
1934 /* Rules for rich text */
1940 background: $lightgrey;
1946 background: $lightgrey;
1948 white-space: pre-wrap;
1956 padding: $lineheight;
1957 background-color: $offwhite;
1964 border-left: $lineheight solid $offwhite;
1965 padding-left: $lineheight;
1971 .diary_post .richtext {
1972 margin-top: $lineheight;
1975 .comments .richtext {
1980 /* Rules for rich text editors */
1982 input.richtext_title[type="text"] {
1984 width: calc(100% - 235px);
1986 @media only screen and (max-width:768px) {
1991 .richtext_container {
1992 margin-bottom: $lineheight;
1996 width: calc(100% - 235px);
1997 display: inline-block;
1998 vertical-align: top;
2000 @media only screen and (max-width:768px) {
2005 display: inline-block;
2006 padding: $lineheight;
2007 background-color: $offwhite;
2011 background-image: image-url("loading.gif");
2012 background-repeat: no-repeat;
2013 background-position: center;
2023 display: inline-block;
2024 vertical-align: top;
2026 background-color: $offwhite;
2027 padding: $lineheight/2;
2035 border-bottom: 1px solid $grey;
2036 margin-bottom: $lineheight/4;
2037 padding-bottom: $lineheight/4;
2040 li h4, li span, li p {
2041 display: inline-block;
2042 vertical-align: top;
2053 margin-left: $lineheight/2;
2054 margin-bottom: $lineheight/4;
2055 white-space: nowrap;
2060 /* Rules for the user notes list */
2064 background-color: $offwhite;
2068 /* Rules for the iD editor */
2075 /* Rules for the "Welcome" page */
2076 .site-welcome, .site-fixthemap {
2086 background-image: image-url("welcome-sprite.png");
2087 background-size: 500px 250px;
2093 padding-bottom: 20px;
2095 margin-bottom: 10px;
2107 /* no-r2 */ background-position: -50px 0;
2112 vertical-align: middle;
2116 /* no-r2 */ background-position: -100px 0;
2120 /* no-r2 */ background-position: -150px 0;
2124 /* no-r2 */ background-position: -200px 0;
2128 /* no-r2 */ background-position: -250px 0;
2132 /* no-r2 */ background-position: -300px 0;
2136 /* no-r2 */ background-position: -350px 0;
2145 text-decoration: none;
2149 background-color: #333;
2154 .site-about #content {
2155 background-color: $lightgrey;
2156 background-position: 50% 50%;
2157 background-repeat: no-repeat;
2158 background-size: cover;
2159 background-attachment: fixed;
2176 padding: 170px 40px 20px;
2178 background: rgba(0, 0, 0, .8);
2188 color: $vibrant-green;
2192 @include media-breakpoint-up(sm) {
2204 background-position: 0 50%;
2205 background-repeat: no-repeat;
2206 background-image: image-url('about/osm.png');
2207 background-size: cover;
2208 background-color: $vibrant-green;
2218 padding: 20px 20px 20px 40px;
2219 font: 500 20px/24px Helvetica, Arial, sans-serif;
2220 white-space: nowrap;
2222 background: $vibrant-green;
2226 display: inline-block;
2236 vertical-align: middle;
2237 background: 40px 40px image-url('about/sprite.png') no-repeat;
2241 background-position: 0px 0px;
2245 background-position: 0px -40px;
2249 background-position: 0px -80px;
2253 background-position: 0px -120px;
2257 background-position: 0px -160px;
2261 background-position: -45px -160px;
2268 @media only screen and (max-width:960px) {
2269 .header-illustration.new-user-arm {