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;
1289 border-top: 1px dashed $grey;
1290 padding-top: $lineheight/2;
1291 padding-bottom: $lineheight/2;
1293 margin-top: $lineheight/2;
1294 padding-top: $lineheight;
1295 border-top: 1px solid $grey;
1298 background-color: #fee;
1301 margin-bottom: $lineheight/2;
1310 .diary_entries-show img.user_thumbnail {
1314 /* Rules for the log in page */
1316 #login_auth_buttons {
1321 padding: $lineheight/4 $lineheight/2;
1325 /* Rules for the account confirmation page */
1329 border: 1px solid $grey;
1330 padding: $lineheight;
1331 margin-bottom: $lineheight;
1336 list-style: inherit;
1340 list-style-type: lower-alpha;
1345 background: $lightblue;
1347 background: darken($lightblue, $hovercolor);
1352 /* Rules for the account settings page */
1354 #accountForm .user_image {
1358 #accountForm #user_image {
1362 #accountForm ul.accountImage-options {
1375 display: inline !important;
1378 /* Rules for the oauth settings page */
1380 .oauth_clients .buttons .oauth-edit {
1381 border-radius: 2px 0 0 2px;
1384 .oauth_clients .buttons .oauth-delete {
1385 border-radius: 0 2px 2px 0;
1388 /* Rules for the oauth authorization page */
1390 .oauth-authorize ul {
1394 /* Rules for messages pages */
1397 input[type="submit"] {
1402 background: $offwhite;
1406 background: #CBEEA7;
1414 .inbox-row .inbox-mark-read {
1419 margin-bottom: $lineheight;
1420 padding: $lineheight/4 0px 4px 0px;
1421 border-bottom: 1px solid $grey;
1428 .info-line .user_thumbnail_tiny {
1429 vertical-align: middle;
1433 white-space: nowrap;
1442 .inbox-row-unread .inbox-mark-unread {
1446 /* Rules for "flash" notice boxes shown at the top of the content area */
1449 padding: $lineheight;
1452 background-color: #ff7070;
1456 background-color: #ffe0cc;
1460 background-color: #CBEEA7;
1464 display: inline-block;
1465 margin-left: $lineheight / 2;
1466 vertical-align: middle;
1469 margin-top: $lineheight * 0.5;
1470 margin-bottom: $lineheight * 0.5;
1483 /* Rules for highlighting fields with rails validation errors */
1486 display: inline-block;
1492 background-color: #ff7070;
1495 /* Rules for rails validation error boxes */
1499 border: 2px solid #ff7070;
1500 padding: 0 $lineheight/2;
1501 margin-bottom: $lineheight;
1502 background-color: #f0f0f0;
1505 margin: 0 -10px 10px -10px;
1506 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1509 background-color: #c00;
1517 padding: $lineheight/4;
1521 /* Rules for forms */
1525 margin-bottom: $lineheight;
1527 label.standard-label {
1529 margin-bottom: $lineheight/4;
1530 font-size: $typeheight;
1534 label.standard-label.secondary {
1535 display: inline-block;
1536 font-weight: normal;
1539 font-weight: normal;
1546 margin-top: $lineheight;
1547 padding-top: $lineheight;
1548 border-top: 1px solid $lightgrey;
1550 .horizontal-list .standard-form-row {
1552 padding-right: 10px;
1554 .standard-form-row {
1555 margin-bottom: $lineheight/2;
1562 list-style-type: none;
1564 input[type="checkbox"],
1565 input[type="radio"] {
1570 #remember_me_openid {
1578 input[type="checkbox"],
1579 input[type="radio"] {
1584 input[type="email"],
1586 input[type="password"],
1589 background-color: #fff;
1590 border: 1px solid $grey;
1596 &.field_with_errors {
1597 border: 2px solid #ff7070;
1609 /* Utility for general button styles */
1611 input[type="button"],
1612 input[type="submit"],
1613 input[type="reset"],
1617 display: inline-block;
1618 padding: $lineheight/4 $lineheight/2;
1619 min-height: 20px + $lineheight/2;
1621 margin: 0 0 $lineheight/2 0;
1627 background: darken($blue, $hovercolor);
1628 text-decoration: none;
1631 background: $lightblue;
1633 background: darken($lightblue, $hovercolor);
1637 background: $lightgrey;
1639 background: $lightgrey;
1647 input[type="button"],
1648 input[type="submit"],
1649 input[type="reset"] {
1650 line-height: normal;
1660 padding: $lineheight/2;
1661 background-color: $lightgrey;
1666 border-radius: 2px 0 0 2px;
1672 transition: 300ms linear;
1675 input[type=text].overflow {
1677 border-radius: 3px 0px 0px 3px;
1682 box-shadow: 0px 0px 7px $vibrant-green;
1685 input[type=submit].float {
1689 border-radius: 0 2px 2px 0;
1693 background-color: rgba($red, 0.4);
1697 /* this next line is to polyfill the vertical alignment of text within a select element,
1698 * which is different between firefox and chrome. */
1708 .describe_location {
1731 padding-right: 25px;
1735 select.routing_engines {
1737 margin: 0px 0px 5px 25px;
1752 margin: 0px 0px 5px 0px;
1759 vertical-align: middle;
1763 a.reverse_directions {
1765 margin: 0px 0px 5px 25px;
1770 /* Rules for user images */
1775 border: 1px solid $grey;
1776 margin-bottom: $lineheight;
1778 margin-right: $lineheight;
1781 img.user_thumbnail {
1784 border: 1px solid $grey;
1785 margin-right: $lineheight;
1788 img.user_thumbnail_tiny {
1793 border: 1px solid $grey;
1796 /* Rules for geo microformats */
1799 border-bottom: none;
1802 /* General styles for action lists / subnavs / pager navs */
1804 ul.secondary-actions {
1810 display: inline-block;
1817 border-left: 1px solid $grey;
1818 padding-left: $lineheight/2;
1819 margin-right: $lineheight/2;
1830 div.secondary-actions {
1835 /* Utility for managing inner content areas */
1837 .inner22 { padding: $lineheight;}
1839 .inner12 { padding: $lineheight/2 $lineheight;}
1841 .inner11 { padding: $lineheight/2;}
1843 .inner20 { padding: $lineheight 0;}
1845 .inner02 { padding: 0 $lineheight;}
1849 input[type="submit"],
1850 input[type="button"],
1851 input[type="reset"],
1854 box-sizing: border-box;
1860 border-right:1px solid white;
1861 text-overflow: ellipsis;
1862 white-space: nowrap;
1866 .button:first-child,
1867 .button_to:first-child {
1868 border-radius:2px 0 0 2px;
1872 .button_to:last-child {
1873 border-radius:0 2px 2px 0;
1874 border-right-width: 0;
1878 .button_to:only-child,
1879 *[value="Hide"] + input:last-child,
1880 *[value="Hide"] + .button:last-child,
1881 *[value="Hide"] + .button_to:last-child {
1883 border-right-width: 0;
1885 /* if a 3-button set has a hidden middle button */
1886 *[value="Hide"] + input:nth-child(3),
1887 *[value="Hide"] + .button:nth-child(3),
1888 *[value="Hide"] + .button_to:nth-child(3) {
1889 border-radius:0 2px 2px 0;
1890 border-right-width: 0;
1892 /* if a 3-button set starts with a hidden button */
1893 *[value="Hide"] + input:nth-child(2):not(:last-child),
1894 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1895 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1896 border-radius:2px 0 0 2px;
1897 border-right-width: 1px;
1901 /* Customise the background colour of striped tables */
1903 .table-striped > tbody > tr:nth-child(2n+1) > td,
1904 .table-striped > tbody > tr:nth-child(2n+1) > th {
1905 background-color: $offwhite;
1908 /* Rules for OpenID logo */
1911 vertical-align: text-bottom;
1915 /* Rules for rich text */
1921 background: $lightgrey;
1927 background: $lightgrey;
1929 white-space: pre-wrap;
1937 padding: $lineheight;
1938 background-color: $offwhite;
1945 border-left: $lineheight solid $offwhite;
1946 padding-left: $lineheight;
1952 .diary_post .richtext {
1953 margin-top: $lineheight;
1956 .comments .richtext {
1961 /* Rules for rich text editors */
1964 input.richtext_title[type="text"] {
1966 width: calc(100% - 235px);
1968 @media only screen and (max-width:768px) {
1973 .richtext_container {
1974 margin-bottom: $lineheight;
1978 width: calc(100% - 235px);
1979 display: inline-block;
1980 vertical-align: top;
1982 @media only screen and (max-width:768px) {
1987 display: inline-block;
1988 padding: $lineheight;
1989 background-color: $offwhite;
1993 background-image: image-url("loading.gif");
1994 background-repeat: no-repeat;
1995 background-position: center;
2005 display: inline-block;
2006 vertical-align: top;
2008 background-color: $offwhite;
2009 padding: $lineheight/2;
2017 border-bottom: 1px solid $grey;
2018 margin-bottom: $lineheight/4;
2019 padding-bottom: $lineheight/4;
2022 li h4, li span, li p {
2023 display: inline-block;
2024 vertical-align: top;
2035 margin-left: $lineheight/2;
2036 margin-bottom: $lineheight/4;
2037 white-space: nowrap;
2043 /* Rules for the user notes list */
2047 background-color: $offwhite;
2051 /* Rules for the iD editor */
2058 /* Rules for the "Welcome" page */
2059 .site-welcome, .site-fixthemap {
2069 background-image: image-url("welcome-sprite.png");
2070 background-size: 500px 250px;
2076 padding-bottom: 20px;
2078 margin-bottom: 10px;
2090 /* no-r2 */ background-position: -50px 0;
2095 vertical-align: middle;
2099 /* no-r2 */ background-position: -100px 0;
2103 /* no-r2 */ background-position: -150px 0;
2107 /* no-r2 */ background-position: -200px 0;
2111 /* no-r2 */ background-position: -250px 0;
2115 /* no-r2 */ background-position: -300px 0;
2119 /* no-r2 */ background-position: -350px 0;
2128 text-decoration: none;
2132 background-color: #333;
2137 .site-about #content {
2138 background-color: $lightgrey;
2139 background-position: 50% 50%;
2140 background-repeat: no-repeat;
2141 background-size: cover;
2142 background-attachment: fixed;
2159 padding: 170px 40px 20px;
2161 background: rgba(0, 0, 0, .8);
2171 color: $vibrant-green;
2175 @include media-breakpoint-up(sm) {
2187 background-position: 0 50%;
2188 background-repeat: no-repeat;
2189 background-image: image-url('about/osm.png');
2190 background-size: cover;
2191 background-color: $vibrant-green;
2201 padding: 20px 20px 20px 40px;
2202 font: 500 20px/24px Helvetica, Arial, sans-serif;
2203 white-space: nowrap;
2205 background: $vibrant-green;
2209 display: inline-block;
2219 vertical-align: middle;
2220 background: 40px 40px image-url('about/sprite.png') no-repeat;
2224 background-position: 0px 0px;
2228 background-position: 0px -40px;
2232 background-position: 0px -80px;
2236 background-position: 0px -120px;
2240 background-position: 0px -160px;
2244 background-position: -45px -160px;
2251 @media only screen and (max-width:960px) {
2252 .header-illustration.new-user-arm {