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 {
1276 /* Rules for the diary entry page */
1281 border: 1px solid $grey;
1283 margin-bottom: $lineheight;
1286 border-top: 1px solid $grey;
1287 padding-top: $lineheight;
1288 margin-top: $lineheight/2;
1294 border-top: 1px dashed $grey;
1295 padding-top: $lineheight/2;
1296 padding-bottom: $lineheight/2;
1298 margin-top: $lineheight/2;
1299 padding-top: $lineheight;
1300 border-top: 1px solid $grey;
1303 background-color: #fee;
1306 margin-bottom: $lineheight/2;
1315 .diary_entries-show img.user_thumbnail {
1320 .diary-subscribe-buttons {
1326 /* Rules for the log in page */
1328 #login_auth_buttons {
1333 padding: $lineheight/4 $lineheight/2;
1337 /* Rules for the account confirmation page */
1341 border: 1px solid $grey;
1342 padding: $lineheight;
1343 margin-bottom: $lineheight;
1348 list-style: inherit;
1352 list-style-type: lower-alpha;
1357 background: $lightblue;
1359 background: darken($lightblue, $hovercolor);
1364 /* Rules for the account settings page */
1366 #accountForm .user_image {
1370 #accountForm #user_image {
1374 #accountForm ul.accountImage-options {
1387 display: inline !important;
1390 /* Rules for the oauth settings page */
1392 .oauth_clients .buttons .oauth-edit {
1393 border-radius: 2px 0 0 2px;
1396 .oauth_clients .buttons .oauth-delete {
1397 border-radius: 0 2px 2px 0;
1400 /* Rules for the oauth authorization page */
1402 .oauth-authorize ul {
1406 /* Rules for messages pages */
1409 input[type="submit"] {
1414 background: $offwhite;
1418 background: #CBEEA7;
1426 .inbox-row .inbox-mark-read {
1431 margin-bottom: $lineheight;
1432 padding: $lineheight/4 0px 4px 0px;
1433 border-bottom: 1px solid $grey;
1440 .info-line .user_thumbnail_tiny {
1441 vertical-align: middle;
1445 white-space: nowrap;
1454 .inbox-row-unread .inbox-mark-unread {
1458 /* Rules for "flash" notice boxes shown at the top of the content area */
1461 padding: $lineheight;
1464 background-color: #ff7070;
1468 background-color: #ffe0cc;
1472 background-color: #CBEEA7;
1476 display: inline-block;
1477 margin-left: $lineheight / 2;
1478 vertical-align: middle;
1481 margin-top: $lineheight * 0.5;
1482 margin-bottom: $lineheight * 0.5;
1495 /* Rules for highlighting fields with rails validation errors */
1498 display: inline-block;
1504 background-color: #ff7070;
1507 /* Rules for rails validation error boxes */
1511 border: 2px solid #ff7070;
1512 padding: 0 $lineheight/2;
1513 margin-bottom: $lineheight;
1514 background-color: #f0f0f0;
1517 margin: 0 -10px 10px -10px;
1518 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1521 background-color: #c00;
1529 padding: $lineheight/4;
1533 /* Rules for forms */
1537 margin-bottom: $lineheight;
1539 label.standard-label {
1541 margin-bottom: $lineheight/4;
1542 font-size: $typeheight;
1546 label.standard-label.secondary {
1547 display: inline-block;
1548 font-weight: normal;
1551 font-weight: normal;
1558 margin-top: $lineheight;
1559 padding-top: $lineheight;
1560 border-top: 1px solid $lightgrey;
1562 .horizontal-list .standard-form-row {
1564 padding-right: 10px;
1566 .standard-form-row {
1567 margin-bottom: $lineheight/2;
1574 list-style-type: none;
1576 input[type="checkbox"],
1577 input[type="radio"] {
1582 #remember_me_openid {
1590 input[type="checkbox"],
1591 input[type="radio"] {
1596 input[type="email"],
1598 input[type="password"],
1601 background-color: #fff;
1602 border: 1px solid $grey;
1608 &.field_with_errors {
1609 border: 2px solid #ff7070;
1621 /* Utility for general button styles */
1623 input[type="button"],
1624 input[type="submit"],
1625 input[type="reset"],
1629 display: inline-block;
1630 padding: $lineheight/4 $lineheight/2;
1631 min-height: 20px + $lineheight/2;
1633 margin: 0 0 $lineheight/2 0;
1639 background: darken($blue, $hovercolor);
1640 text-decoration: none;
1643 background: $lightblue;
1645 background: darken($lightblue, $hovercolor);
1649 background: $lightgrey;
1651 background: $lightgrey;
1659 input[type="button"],
1660 input[type="submit"],
1661 input[type="reset"] {
1662 line-height: normal;
1672 padding: $lineheight/2;
1673 background-color: $lightgrey;
1678 border-radius: 2px 0 0 2px;
1684 transition: 300ms linear;
1687 input[type=text].overflow {
1689 border-radius: 3px 0px 0px 3px;
1694 box-shadow: 0px 0px 7px $vibrant-green;
1697 input[type=submit].float {
1701 border-radius: 0 2px 2px 0;
1705 background-color: rgba($red, 0.4);
1709 /* this next line is to polyfill the vertical alignment of text within a select element,
1710 * which is different between firefox and chrome. */
1720 .describe_location {
1743 padding-right: 25px;
1747 select.routing_engines {
1749 margin: 0px 0px 5px 25px;
1764 margin: 0px 0px 5px 0px;
1771 vertical-align: middle;
1775 a.reverse_directions {
1777 margin: 0px 0px 5px 25px;
1782 /* Rules for user images */
1787 border: 1px solid $grey;
1788 margin-bottom: $lineheight;
1790 margin-right: $lineheight;
1793 img.user_thumbnail {
1796 border: 1px solid $grey;
1797 margin-right: $lineheight;
1800 img.user_thumbnail_tiny {
1805 border: 1px solid $grey;
1808 /* Rules for geo microformats */
1811 border-bottom: none;
1814 /* General styles for action lists / subnavs / pager navs */
1816 ul.secondary-actions {
1822 display: inline-block;
1829 border-left: 1px solid $grey;
1830 padding-left: $lineheight/2;
1831 margin-right: $lineheight/2;
1842 div.secondary-actions {
1847 /* Utility for managing inner content areas */
1849 .inner22 { padding: $lineheight;}
1851 .inner12 { padding: $lineheight/2 $lineheight;}
1853 .inner11 { padding: $lineheight/2;}
1855 .inner20 { padding: $lineheight 0;}
1857 .inner02 { padding: 0 $lineheight;}
1861 input[type="submit"],
1862 input[type="button"],
1863 input[type="reset"],
1866 box-sizing: border-box;
1872 border-right:1px solid white;
1873 text-overflow: ellipsis;
1874 white-space: nowrap;
1878 .button:first-child,
1879 .button_to:first-child {
1880 border-radius:2px 0 0 2px;
1884 .button_to:last-child {
1885 border-radius:0 2px 2px 0;
1886 border-right-width: 0;
1890 .button_to:only-child,
1891 *[value="Hide"] + input:last-child,
1892 *[value="Hide"] + .button:last-child,
1893 *[value="Hide"] + .button_to:last-child {
1895 border-right-width: 0;
1897 /* if a 3-button set has a hidden middle button */
1898 *[value="Hide"] + input:nth-child(3),
1899 *[value="Hide"] + .button:nth-child(3),
1900 *[value="Hide"] + .button_to:nth-child(3) {
1901 border-radius:0 2px 2px 0;
1902 border-right-width: 0;
1904 /* if a 3-button set starts with a hidden button */
1905 *[value="Hide"] + input:nth-child(2):not(:last-child),
1906 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1907 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1908 border-radius:2px 0 0 2px;
1909 border-right-width: 1px;
1913 /* Customise the background colour of striped tables */
1915 .table-striped > tbody > tr:nth-child(2n+1) > td,
1916 .table-striped > tbody > tr:nth-child(2n+1) > th {
1917 background-color: $offwhite;
1920 /* Rules for OpenID logo */
1923 vertical-align: text-bottom;
1927 /* Rules for rich text */
1933 background: $lightgrey;
1939 background: $lightgrey;
1941 white-space: pre-wrap;
1949 padding: $lineheight;
1950 background-color: $offwhite;
1957 border-left: $lineheight solid $offwhite;
1958 padding-left: $lineheight;
1964 .diary_post .richtext {
1965 margin-top: $lineheight;
1968 .comments .richtext {
1973 /* Rules for rich text editors */
1976 input.richtext_title[type="text"] {
1978 width: calc(100% - 235px);
1980 @media only screen and (max-width:768px) {
1985 .richtext_container {
1986 margin-bottom: $lineheight;
1990 width: calc(100% - 235px);
1991 display: inline-block;
1992 vertical-align: top;
1994 @media only screen and (max-width:768px) {
1999 display: inline-block;
2000 padding: $lineheight;
2001 background-color: $offwhite;
2005 background-image: image-url("loading.gif");
2006 background-repeat: no-repeat;
2007 background-position: center;
2017 display: inline-block;
2018 vertical-align: top;
2020 background-color: $offwhite;
2021 padding: $lineheight/2;
2029 border-bottom: 1px solid $grey;
2030 margin-bottom: $lineheight/4;
2031 padding-bottom: $lineheight/4;
2034 li h4, li span, li p {
2035 display: inline-block;
2036 vertical-align: top;
2047 margin-left: $lineheight/2;
2048 margin-bottom: $lineheight/4;
2049 white-space: nowrap;
2055 /* Rules for the user notes list */
2059 background-color: $offwhite;
2063 /* Rules for the iD editor */
2070 /* Rules for the "Welcome" page */
2071 .site-welcome, .site-fixthemap {
2081 background-image: image-url("welcome-sprite.png");
2082 background-size: 500px 250px;
2088 padding-bottom: 20px;
2090 margin-bottom: 10px;
2102 /* no-r2 */ background-position: -50px 0;
2107 vertical-align: middle;
2111 /* no-r2 */ background-position: -100px 0;
2115 /* no-r2 */ background-position: -150px 0;
2119 /* no-r2 */ background-position: -200px 0;
2123 /* no-r2 */ background-position: -250px 0;
2127 /* no-r2 */ background-position: -300px 0;
2131 /* no-r2 */ background-position: -350px 0;
2140 text-decoration: none;
2144 background-color: #333;
2149 .site-about #content {
2150 background-color: $lightgrey;
2151 background-position: 50% 50%;
2152 background-repeat: no-repeat;
2153 background-size: cover;
2154 background-attachment: fixed;
2171 padding: 170px 40px 20px;
2173 background: rgba(0, 0, 0, .8);
2183 color: $vibrant-green;
2187 @include media-breakpoint-up(sm) {
2199 background-position: 0 50%;
2200 background-repeat: no-repeat;
2201 background-image: image-url('about/osm.png');
2202 background-size: cover;
2203 background-color: $vibrant-green;
2213 padding: 20px 20px 20px 40px;
2214 font: 500 20px/24px Helvetica, Arial, sans-serif;
2215 white-space: nowrap;
2217 background: $vibrant-green;
2221 display: inline-block;
2231 vertical-align: middle;
2232 background: 40px 40px image-url('about/sprite.png') no-repeat;
2236 background-position: 0px 0px;
2240 background-position: 0px -40px;
2244 background-position: 0px -80px;
2248 background-position: 0px -120px;
2252 background-position: 0px -160px;
2256 background-position: -45px -160px;
2263 @media only screen and (max-width:960px) {
2264 .header-illustration.new-user-arm {