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 {
463 width: $sidebarWidth;
479 .leaflet-marker-draggable {
494 border-bottom: 1px solid $grey;
504 border:1px solid $grey;
509 border: 1px solid $grey;
511 border-top-color: $grey;
535 border: 2px solid #fff;
538 transition: border-color 0.08s ease-in;
545 border-bottom-right-radius: 3px;
549 text-stroke: 2px #fff;
550 background: rgba(255,255,255,.9);
552 input[type="radio"] {
557 &.active { border-color: darken($green, 10%); }
560 &.active { border-color: darken($green, 20%); }
570 li.disabled { color: $darkgrey; }
580 text-decoration: none;
581 background-color: $lightblue;
583 border-right: 1px solid #fff;
587 border-right: 1px solid #fff;
588 border-radius: 4px 0 0 4px;
592 border-radius: 0 4px 4px 0;
596 background-color: $blue;
608 font-family: monospace;
630 top: $lineheight/2 !important;
632 margin-right: 0px !important;
633 margin-top: 0px !important;
637 .leaflet-popup-scrolled {
638 padding-right: $lineheight;
639 border-bottom: 0px !important;
640 border-top: 0px !important;
643 .leaflet-popup-content-wrapper {
644 border-radius: 4px !important;
647 /* Rules for attribution text under the main map shown on printouts */
657 .attribution_license,
658 .attribution_project {
662 .attribution_notice {
666 .donate-attr { color: darken($green, 10%) !important; }
668 /* Rules for the sidebar */
672 padding: $lineheight/2 $lineheight;
673 // background: $offwhite;
674 // border-bottom: 1px solid $grey;
694 margin: $lineheight auto;
705 /* Temporary label size override until we remove site-wide font customisation */
713 /* Rules for the search and direction forms */
715 header .search_forms,
720 /* Rules for the map key which appears in the popout sidebar */
723 .mapkey-table-key img {
730 /* Rules for search sidebar */
732 #sidebar .search_results_entry {
735 &.selected { background: $list-highlight; }
738 .search_more .loader {
744 .search_results_error {
749 /* Rules for routing */
751 #sidebar_content>table {
752 padding: 5px 20px 10px 15px;
754 border-collapse: separate;
759 background-image: image-url('routing-sprite.png');
762 background-repeat: no-repeat;
764 @for $i from 0 through 25 {
765 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
769 padding: 0 $lineheight $lineheight/4;
772 td.instruction, td.distance {
773 padding-top: $lineheight/5;
774 padding-bottom: $lineheight/5;
775 border-bottom: 1px solid $grey;
786 background: $list-highlight;
788 .routing_engines, #route_from, #route_to { margin-left: 25px; }
789 .routing_marker { width: 15px; position: absolute; cursor: move; }
791 /* Rules for entity history */
796 border-bottom: $keyline;
804 /* Rules for the history sidebar */
806 #sidebar .changesets {
810 &.selected { background: $list-highlight; }
811 /* color is derived from changeset bbox fillColor in history.js */
823 .changeset_more .loader {
829 /* Rules for the browse sidebar */
833 padding: $lineheight/2 $lineheight;
834 border-bottom: 1px solid $grey;
838 word-wrap: break-word;
842 .browse-section:last-of-type {
849 border: 1px solid $lightgrey;
857 padding: 5px 0 5px 10px;
859 border: 1px solid $grey;
860 border-radius: 4px 4px 0 0;
861 background-color: $offwhite;
867 background-color: #FFF;
868 border: 1px solid $grey;
870 border-radius: 0 0 4px 4px;
875 background-color: $offwhite;
876 border: 1px solid $grey;
879 border-collapse: separate;
884 border-bottom: 1px solid $grey;
887 tr:last-child th, tr:last-child td {
895 word-wrap: break-word;
896 white-space: pre-wrap;
901 background-color: $offwhite;
905 border-left: 1px solid $grey;
906 background-color: #fff;
909 .colour-preview-box {
914 border: 1px solid rgba(0, 0, 0, .1);
915 // add color via inline css on element: background-color: <tag value>;
919 .note-comments li, .changeset-comments li {
920 margin: $lineheight/2 0;
923 margin: 10px 6px 0 6px;
934 margin: 18px 10px 10px;
938 .subscribe-buttons input {
944 span.action-button:hover {
946 text-decoration: underline;
951 margin: 0 0 10px 10px;
955 padding: $lineheight $lineheight $lineheight/2;
960 padding-bottom: $lineheight/2;
963 padding: 0 $lineheight;
973 background: $list-highlight;
980 /* Rules for export sidebar */
983 padding: $lineheight;
990 .export_area_inputs {
991 margin-bottom: $lineheight/2;
999 background: $lightgrey;
1000 border: 1px solid $grey;
1003 #maxlat { margin-top: -1px; }
1006 /* no-r2 */ margin-left: -1px;
1010 /* no-r2 */ margin-right: -1px;
1012 #minlat { margin-bottom: -1px; }
1016 margin: $lineheight/4;
1020 padding-left: $lineheight/2;
1023 margin-bottom: 10px;
1028 /* Rules for the routing sidebar */
1037 /* Rules for edit pages */
1053 /* Rules for non-map content pages */
1056 background: $lightgrey;
1063 padding: $lineheight;
1066 /* Overrides for pages that use new layout conventions */
1072 .content-heading .content-inner {
1077 .header-illustration {
1078 background-position: 0 0;
1079 background-repeat: no-repeat;
1087 background-image: image-url("sign-up-illustration.png");
1091 background-image: image-url("confirm-illustration.png");
1095 background-image: image-url("terms-illustration.png");
1103 background-image: image-url("sign-up-illustration-arm.png");
1108 [dir=rtl] .header-illustration {
1109 transform: scaleX(-1);
1112 #content.maximised {
1121 /* Rules for small maps in content areas */
1125 border: 1px solid $grey;
1126 margin-bottom: $lineheight;
1129 @include media-breakpoint-up(md) {
1135 /* Rules for the user profile page */
1139 .userinformation-inner {
1148 .admin-user-info small {
1149 margin-bottom: $lineheight/2;
1151 margin-right: $lineheight;
1155 margin-top: $lineheight;
1159 .activity-details p {
1165 // Silly exception; remove when user page is redesigned.
1169 p#no_home_location {
1170 margin: $lineheight;
1173 margin-top: $lineheight/4;
1178 /* Rules for the user map */
1180 .content_map .leaflet-popup-content {
1181 margin: $lineheight/2;
1185 /* Rules for user popups on maps */
1191 margin-top: 0 0 0 60px;
1194 img.user_thumbnail {
1196 margin: 0 $lineheight/2 0 0;
1200 /* Rules for the user list */
1206 vertical-align: middle;
1215 #user_list_actions {
1217 margin-top: $lineheight/2;
1220 /* Rules for the diary list page */
1224 padding-top: $lineheight;
1225 padding-bottom: $lineheight/2;
1226 border-top: 1px solid $grey;
1229 margin-top: $lineheight/2;
1233 background-color: #fee;
1237 margin-bottom: $lineheight;
1241 margin-bottom: $lineheight/2;
1245 img.user_thumbnail {
1255 /* Rules for the diary entry page */
1260 border: 1px solid $grey;
1262 margin-bottom: $lineheight;
1268 border-top: 1px dashed $grey;
1269 padding-top: $lineheight/2;
1270 padding-bottom: $lineheight/2;
1272 margin-top: $lineheight/2;
1273 padding-top: $lineheight;
1274 border-top: 1px solid $grey;
1277 background-color: #fee;
1280 margin-bottom: $lineheight/2;
1289 .diary_entries-show img.user_thumbnail {
1293 /* Rules for the log in page */
1295 #login_auth_buttons {
1300 padding: $lineheight/4 $lineheight/2;
1304 /* Rules for the account confirmation page */
1308 border: 1px solid $grey;
1309 padding: $lineheight;
1310 margin-bottom: $lineheight;
1315 list-style: inherit;
1319 list-style-type: lower-alpha;
1324 background: $lightblue;
1326 background: darken($lightblue, $hovercolor);
1331 /* Rules for the account settings page */
1333 #accountForm .user_image {
1337 #accountForm #user_image {
1341 #accountForm ul.accountImage-options {
1354 display: inline !important;
1357 /* Rules for the oauth settings page */
1359 .oauth_clients .buttons .oauth-edit {
1360 border-radius: 2px 0 0 2px;
1363 .oauth_clients .buttons .oauth-delete {
1364 border-radius: 0 2px 2px 0;
1367 /* Rules for the oauth authorization page */
1369 .oauth-authorize ul {
1373 /* Rules for messages pages */
1376 input[type="submit"] {
1381 background: $offwhite;
1385 background: #CBEEA7;
1393 .inbox-row .inbox-mark-read {
1398 margin-bottom: $lineheight;
1399 padding: $lineheight/4 0px 4px 0px;
1400 border-bottom: 1px solid $grey;
1407 .info-line .user_thumbnail_tiny {
1408 vertical-align: middle;
1412 white-space: nowrap;
1421 .inbox-row-unread .inbox-mark-unread {
1425 /* Rules for "flash" notice boxes shown at the top of the content area */
1428 padding: $lineheight;
1431 background-color: #ff7070;
1435 background-color: #ffe0cc;
1439 background-color: #CBEEA7;
1443 display: inline-block;
1444 margin-left: $lineheight / 2;
1445 vertical-align: middle;
1448 margin-top: $lineheight * 0.5;
1449 margin-bottom: $lineheight * 0.5;
1462 /* Rules for highlighting fields with rails validation errors */
1465 display: inline-block;
1471 background-color: #ff7070;
1474 /* Rules for rails validation error boxes */
1478 border: 2px solid #ff7070;
1479 padding: 0 $lineheight/2;
1480 margin-bottom: $lineheight;
1481 background-color: #f0f0f0;
1484 margin: 0 -10px 10px -10px;
1485 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1488 background-color: #c00;
1496 padding: $lineheight/4;
1500 /* Rules for forms */
1504 margin-bottom: $lineheight;
1506 label.standard-label {
1508 margin-bottom: $lineheight/4;
1509 font-size: $typeheight;
1513 label.standard-label.secondary {
1514 display: inline-block;
1515 font-weight: normal;
1518 font-weight: normal;
1525 margin-top: $lineheight;
1526 padding-top: $lineheight;
1527 border-top: 1px solid $lightgrey;
1529 .horizontal-list .standard-form-row {
1531 padding-right: 10px;
1533 .standard-form-row {
1534 margin-bottom: $lineheight/2;
1541 list-style-type: none;
1543 input[type="checkbox"],
1544 input[type="radio"] {
1549 #remember_me_openid {
1557 input[type="checkbox"],
1558 input[type="radio"] {
1563 input[type="email"],
1565 input[type="password"],
1568 background-color: #fff;
1569 border: 1px solid $grey;
1575 &.field_with_errors {
1576 border: 2px solid #ff7070;
1588 /* Utility for general button styles */
1590 input[type="button"],
1591 input[type="submit"],
1592 input[type="reset"],
1596 display: inline-block;
1597 padding: $lineheight/4 $lineheight/2;
1598 min-height: 20px + $lineheight/2;
1600 margin: 0 0 $lineheight/2 0;
1606 background: darken($blue, $hovercolor);
1607 text-decoration: none;
1610 background: $lightblue;
1612 background: darken($lightblue, $hovercolor);
1616 background: $lightgrey;
1618 background: $lightgrey;
1626 input[type="button"],
1627 input[type="submit"],
1628 input[type="reset"] {
1629 line-height: normal;
1639 padding: $lineheight/2;
1640 background-color: $lightgrey;
1645 border-radius: 2px 0 0 2px;
1651 transition: 300ms linear;
1654 input[type=text].overflow {
1656 border-radius: 3px 0px 0px 3px;
1661 box-shadow: 0px 0px 7px $vibrant-green;
1664 input[type=submit].float {
1668 border-radius: 0 2px 2px 0;
1672 background-color: rgba($red, 0.4);
1676 /* this next line is to polyfill the vertical alignment of text within a select element,
1677 * which is different between firefox and chrome. */
1687 .describe_location {
1710 padding-right: 25px;
1714 select.routing_engines {
1716 margin: 0px 0px 5px 25px;
1731 margin: 0px 0px 5px 0px;
1738 vertical-align: middle;
1742 a.reverse_directions {
1744 margin: 0px 0px 5px 25px;
1749 /* Rules for user images */
1754 border: 1px solid $grey;
1755 margin-bottom: $lineheight;
1757 margin-right: $lineheight;
1760 img.user_thumbnail {
1763 border: 1px solid $grey;
1764 margin-right: $lineheight;
1767 img.user_thumbnail_tiny {
1772 border: 1px solid $grey;
1775 /* Rules for geo microformats */
1778 border-bottom: none;
1781 /* General styles for action lists / subnavs / pager navs */
1783 ul.secondary-actions {
1789 display: inline-block;
1796 border-left: 1px solid $grey;
1797 padding-left: $lineheight/2;
1798 margin-right: $lineheight/2;
1809 div.secondary-actions {
1814 /* Utility for managing inner content areas */
1816 .inner22 { padding: $lineheight;}
1818 .inner12 { padding: $lineheight/2 $lineheight;}
1820 .inner11 { padding: $lineheight/2;}
1822 .inner20 { padding: $lineheight 0;}
1824 .inner02 { padding: 0 $lineheight;}
1828 input[type="submit"],
1829 input[type="button"],
1830 input[type="reset"],
1833 box-sizing: border-box;
1839 border-right:1px solid white;
1840 text-overflow: ellipsis;
1841 white-space: nowrap;
1845 .button:first-child,
1846 .button_to:first-child {
1847 border-radius:2px 0 0 2px;
1851 .button_to:last-child {
1852 border-radius:0 2px 2px 0;
1853 border-right-width: 0;
1857 .button_to:only-child,
1858 *[value="Hide"] + input:last-child,
1859 *[value="Hide"] + .button:last-child,
1860 *[value="Hide"] + .button_to:last-child {
1862 border-right-width: 0;
1864 /* if a 3-button set has a hidden middle button */
1865 *[value="Hide"] + input:nth-child(3),
1866 *[value="Hide"] + .button:nth-child(3),
1867 *[value="Hide"] + .button_to:nth-child(3) {
1868 border-radius:0 2px 2px 0;
1869 border-right-width: 0;
1871 /* if a 3-button set starts with a hidden button */
1872 *[value="Hide"] + input:nth-child(2):not(:last-child),
1873 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1874 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1875 border-radius:2px 0 0 2px;
1876 border-right-width: 1px;
1880 /* Customise the background colour of striped tables */
1882 .table-striped > tbody > tr:nth-child(2n+1) > td,
1883 .table-striped > tbody > tr:nth-child(2n+1) > th {
1884 background-color: $offwhite;
1887 /* Rules for OpenID logo */
1890 vertical-align: text-bottom;
1894 /* Rules for rich text */
1900 background: $lightgrey;
1906 background: $lightgrey;
1908 white-space: pre-wrap;
1916 padding: $lineheight;
1917 background-color: $offwhite;
1924 border-left: $lineheight solid $offwhite;
1925 padding-left: $lineheight;
1931 .diary_post .richtext {
1932 margin-top: $lineheight;
1935 .comments .richtext {
1940 /* Rules for rich text editors */
1943 input.richtext_title[type="text"] {
1945 width: calc(100% - 235px);
1947 @media only screen and (max-width:768px) {
1952 .richtext_container {
1953 margin-bottom: $lineheight;
1957 width: calc(100% - 235px);
1958 display: inline-block;
1959 vertical-align: top;
1961 @media only screen and (max-width:768px) {
1966 display: inline-block;
1967 padding: $lineheight;
1968 background-color: $offwhite;
1972 background-image: image-url("loading.gif");
1973 background-repeat: no-repeat;
1974 background-position: center;
1984 display: inline-block;
1985 vertical-align: top;
1987 background-color: $offwhite;
1988 padding: $lineheight/2;
1996 border-bottom: 1px solid $grey;
1997 margin-bottom: $lineheight/4;
1998 padding-bottom: $lineheight/4;
2001 li h4, li span, li p {
2002 display: inline-block;
2003 vertical-align: top;
2014 margin-left: $lineheight/2;
2015 margin-bottom: $lineheight/4;
2016 white-space: nowrap;
2022 /* Rules for the user notes list */
2026 background-color: $offwhite;
2030 /* Rules for the iD editor */
2037 /* Rules for the "Welcome" page */
2038 .site-welcome, .site-fixthemap {
2048 background-image: image-url("welcome-sprite.png");
2049 background-size: 500px 250px;
2055 padding-bottom: 20px;
2057 margin-bottom: 10px;
2069 /* no-r2 */ background-position: -50px 0;
2074 vertical-align: middle;
2078 /* no-r2 */ background-position: -100px 0;
2082 /* no-r2 */ background-position: -150px 0;
2086 /* no-r2 */ background-position: -200px 0;
2090 /* no-r2 */ background-position: -250px 0;
2094 /* no-r2 */ background-position: -300px 0;
2098 /* no-r2 */ background-position: -350px 0;
2107 text-decoration: none;
2111 background-color: #333;
2116 .site-about #content {
2117 background-color: $lightgrey;
2118 background-position: 50% 50%;
2119 background-repeat: no-repeat;
2120 background-size: cover;
2121 background-attachment: fixed;
2138 padding: 170px 40px 20px;
2140 background: rgba(0, 0, 0, .8);
2150 color: $vibrant-green;
2154 @include media-breakpoint-up(sm) {
2166 background-position: 0 50%;
2167 background-repeat: no-repeat;
2168 background-image: image-url('about/osm.png');
2169 background-size: cover;
2170 background-color: $vibrant-green;
2180 padding: 20px 20px 20px 40px;
2181 font: 500 20px/24px Helvetica, Arial, sans-serif;
2182 white-space: nowrap;
2184 background: $vibrant-green;
2188 display: inline-block;
2198 vertical-align: middle;
2199 background: 40px 40px image-url('about/sprite.png') no-repeat;
2203 background-position: 0px 0px;
2207 background-position: 0px -40px;
2211 background-position: 0px -80px;
2215 background-position: 0px -120px;
2219 background-position: 0px -160px;
2223 background-position: -45px -160px;
2230 @media only screen and (max-width:960px) {
2231 .header-illustration.new-user-arm {