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 {
1277 padding-top: $lineheight;
1280 /* Rules for the diary entry page */
1285 border: 1px solid $grey;
1287 margin-bottom: $lineheight;
1290 border-top: 1px solid $grey;
1291 padding-top: $lineheight;
1292 margin-top: $lineheight/2;
1298 border-top: 1px dashed $grey;
1299 padding-top: $lineheight/2;
1300 padding-bottom: $lineheight/2;
1302 margin-top: $lineheight/2;
1303 padding-top: $lineheight;
1304 border-top: 1px solid $grey;
1307 background-color: #fee;
1310 margin-bottom: $lineheight/2;
1319 .diary_entries-show img.user_thumbnail {
1324 .diary-subscribe-buttons {
1330 /* Rules for the log in page */
1332 #login_auth_buttons {
1337 padding: $lineheight/4 $lineheight/2;
1341 /* Rules for the account confirmation page */
1345 border: 1px solid $grey;
1346 padding: $lineheight;
1347 margin-bottom: $lineheight;
1352 list-style: inherit;
1356 list-style-type: lower-alpha;
1361 background: $lightblue;
1363 background: darken($lightblue, $hovercolor);
1368 /* Rules for the account settings page */
1370 #accountForm .user_image {
1374 #accountForm #user_image {
1378 #accountForm ul.accountImage-options {
1391 display: inline !important;
1394 /* Rules for the oauth settings page */
1396 .oauth_clients .buttons .oauth-edit {
1397 border-radius: 2px 0 0 2px;
1400 .oauth_clients .buttons .oauth-delete {
1401 border-radius: 0 2px 2px 0;
1404 /* Rules for the oauth authorization page */
1406 .oauth-authorize ul {
1410 /* Rules for messages pages */
1413 input[type="submit"] {
1418 background: $offwhite;
1422 background: #CBEEA7;
1430 .inbox-row .inbox-mark-read {
1435 margin-bottom: $lineheight;
1436 padding: $lineheight/4 0px 4px 0px;
1437 border-bottom: 1px solid $grey;
1444 .info-line .user_thumbnail_tiny {
1445 vertical-align: middle;
1449 white-space: nowrap;
1458 .inbox-row-unread .inbox-mark-unread {
1462 /* Rules for "flash" notice boxes shown at the top of the content area */
1465 padding: $lineheight;
1468 background-color: #ff7070;
1472 background-color: #ffe0cc;
1476 background-color: #CBEEA7;
1480 display: inline-block;
1481 margin-left: $lineheight / 2;
1482 vertical-align: middle;
1485 margin-top: $lineheight * 0.5;
1486 margin-bottom: $lineheight * 0.5;
1499 /* Rules for highlighting fields with rails validation errors */
1502 display: inline-block;
1508 background-color: #ff7070;
1511 /* Rules for rails validation error boxes */
1515 border: 2px solid #ff7070;
1516 padding: 0 $lineheight/2;
1517 margin-bottom: $lineheight;
1518 background-color: #f0f0f0;
1521 margin: 0 -10px 10px -10px;
1522 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1525 background-color: #c00;
1533 padding: $lineheight/4;
1537 /* Rules for forms */
1541 margin-bottom: $lineheight;
1543 label.standard-label {
1545 margin-bottom: $lineheight/4;
1546 font-size: $typeheight;
1550 label.standard-label.secondary {
1551 display: inline-block;
1552 font-weight: normal;
1555 font-weight: normal;
1562 margin-top: $lineheight;
1563 padding-top: $lineheight;
1564 border-top: 1px solid $lightgrey;
1566 .horizontal-list .standard-form-row {
1568 padding-right: 10px;
1570 .standard-form-row {
1571 margin-bottom: $lineheight/2;
1578 list-style-type: none;
1580 input[type="checkbox"],
1581 input[type="radio"] {
1586 #remember_me_openid {
1594 input[type="checkbox"],
1595 input[type="radio"] {
1600 input[type="email"],
1602 input[type="password"],
1605 background-color: #fff;
1606 border: 1px solid $grey;
1612 &.field_with_errors {
1613 border: 2px solid #ff7070;
1625 /* Utility for general button styles */
1627 input[type="button"],
1628 input[type="submit"],
1629 input[type="reset"],
1633 display: inline-block;
1634 padding: $lineheight/4 $lineheight/2;
1635 min-height: 20px + $lineheight/2;
1637 margin: 0 0 $lineheight/2 0;
1643 background: darken($blue, $hovercolor);
1644 text-decoration: none;
1647 background: $lightblue;
1649 background: darken($lightblue, $hovercolor);
1653 background: $lightgrey;
1655 background: $lightgrey;
1663 input[type="button"],
1664 input[type="submit"],
1665 input[type="reset"] {
1666 line-height: normal;
1676 padding: $lineheight/2;
1677 background-color: $lightgrey;
1682 border-radius: 2px 0 0 2px;
1688 transition: 300ms linear;
1691 input[type=text].overflow {
1693 border-radius: 3px 0px 0px 3px;
1698 box-shadow: 0px 0px 7px $vibrant-green;
1701 input[type=submit].float {
1705 border-radius: 0 2px 2px 0;
1709 background-color: rgba($red, 0.4);
1713 /* this next line is to polyfill the vertical alignment of text within a select element,
1714 * which is different between firefox and chrome. */
1724 .describe_location {
1747 padding-right: 25px;
1751 select.routing_engines {
1753 margin: 0px 0px 5px 25px;
1768 margin: 0px 0px 5px 0px;
1775 vertical-align: middle;
1779 a.reverse_directions {
1781 margin: 0px 0px 5px 25px;
1786 /* Rules for user images */
1791 border: 1px solid $grey;
1792 margin-bottom: $lineheight;
1794 margin-right: $lineheight;
1797 img.user_thumbnail {
1800 border: 1px solid $grey;
1801 margin-right: $lineheight;
1804 img.user_thumbnail_tiny {
1809 border: 1px solid $grey;
1812 /* Rules for geo microformats */
1815 border-bottom: none;
1818 /* General styles for action lists / subnavs / pager navs */
1820 ul.secondary-actions {
1826 display: inline-block;
1833 border-left: 1px solid $grey;
1834 padding-left: $lineheight/2;
1835 margin-right: $lineheight/2;
1846 div.secondary-actions {
1851 /* Utility for managing inner content areas */
1853 .inner22 { padding: $lineheight;}
1855 .inner12 { padding: $lineheight/2 $lineheight;}
1857 .inner11 { padding: $lineheight/2;}
1859 .inner20 { padding: $lineheight 0;}
1861 .inner02 { padding: 0 $lineheight;}
1865 input[type="submit"],
1866 input[type="button"],
1867 input[type="reset"],
1870 box-sizing: border-box;
1876 border-right:1px solid white;
1877 text-overflow: ellipsis;
1878 white-space: nowrap;
1882 .button:first-child,
1883 .button_to:first-child {
1884 border-radius:2px 0 0 2px;
1888 .button_to:last-child {
1889 border-radius:0 2px 2px 0;
1890 border-right-width: 0;
1894 .button_to:only-child,
1895 *[value="Hide"] + input:last-child,
1896 *[value="Hide"] + .button:last-child,
1897 *[value="Hide"] + .button_to:last-child {
1899 border-right-width: 0;
1901 /* if a 3-button set has a hidden middle button */
1902 *[value="Hide"] + input:nth-child(3),
1903 *[value="Hide"] + .button:nth-child(3),
1904 *[value="Hide"] + .button_to:nth-child(3) {
1905 border-radius:0 2px 2px 0;
1906 border-right-width: 0;
1908 /* if a 3-button set starts with a hidden button */
1909 *[value="Hide"] + input:nth-child(2):not(:last-child),
1910 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1911 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1912 border-radius:2px 0 0 2px;
1913 border-right-width: 1px;
1917 /* Customise the background colour of striped tables */
1919 .table-striped > tbody > tr:nth-child(2n+1) > td,
1920 .table-striped > tbody > tr:nth-child(2n+1) > th {
1921 background-color: $offwhite;
1924 /* Rules for OpenID logo */
1927 vertical-align: text-bottom;
1931 /* Rules for rich text */
1937 background: $lightgrey;
1943 background: $lightgrey;
1945 white-space: pre-wrap;
1953 padding: $lineheight;
1954 background-color: $offwhite;
1961 border-left: $lineheight solid $offwhite;
1962 padding-left: $lineheight;
1968 .diary_post .richtext {
1969 margin-top: $lineheight;
1972 .comments .richtext {
1977 /* Rules for rich text editors */
1980 input.richtext_title[type="text"] {
1982 width: calc(100% - 235px);
1984 @media only screen and (max-width:768px) {
1989 .richtext_container {
1990 margin-bottom: $lineheight;
1994 width: calc(100% - 235px);
1995 display: inline-block;
1996 vertical-align: top;
1998 @media only screen and (max-width:768px) {
2003 display: inline-block;
2004 padding: $lineheight;
2005 background-color: $offwhite;
2009 background-image: image-url("loading.gif");
2010 background-repeat: no-repeat;
2011 background-position: center;
2021 display: inline-block;
2022 vertical-align: top;
2024 background-color: $offwhite;
2025 padding: $lineheight/2;
2033 border-bottom: 1px solid $grey;
2034 margin-bottom: $lineheight/4;
2035 padding-bottom: $lineheight/4;
2038 li h4, li span, li p {
2039 display: inline-block;
2040 vertical-align: top;
2051 margin-left: $lineheight/2;
2052 margin-bottom: $lineheight/4;
2053 white-space: nowrap;
2059 /* Rules for the user notes list */
2063 background-color: $offwhite;
2067 /* Rules for the iD editor */
2074 /* Rules for the "Welcome" page */
2075 .site-welcome, .site-fixthemap {
2085 background-image: image-url("welcome-sprite.png");
2086 background-size: 500px 250px;
2092 padding-bottom: 20px;
2094 margin-bottom: 10px;
2106 /* no-r2 */ background-position: -50px 0;
2111 vertical-align: middle;
2115 /* no-r2 */ background-position: -100px 0;
2119 /* no-r2 */ background-position: -150px 0;
2123 /* no-r2 */ background-position: -200px 0;
2127 /* no-r2 */ background-position: -250px 0;
2131 /* no-r2 */ background-position: -300px 0;
2135 /* no-r2 */ background-position: -350px 0;
2144 text-decoration: none;
2148 background-color: #333;
2153 .site-about #content {
2154 background-color: $lightgrey;
2155 background-position: 50% 50%;
2156 background-repeat: no-repeat;
2157 background-size: cover;
2158 background-attachment: fixed;
2175 padding: 170px 40px 20px;
2177 background: rgba(0, 0, 0, .8);
2187 color: $vibrant-green;
2191 @include media-breakpoint-up(sm) {
2203 background-position: 0 50%;
2204 background-repeat: no-repeat;
2205 background-image: image-url('about/osm.png');
2206 background-size: cover;
2207 background-color: $vibrant-green;
2217 padding: 20px 20px 20px 40px;
2218 font: 500 20px/24px Helvetica, Arial, sans-serif;
2219 white-space: nowrap;
2221 background: $vibrant-green;
2225 display: inline-block;
2235 vertical-align: middle;
2236 background: 40px 40px image-url('about/sprite.png') no-repeat;
2240 background-position: 0px 0px;
2244 background-position: 0px -40px;
2248 background-position: 0px -80px;
2252 background-position: 0px -120px;
2256 background-position: 0px -160px;
2260 background-position: -45px -160px;
2267 @media only screen and (max-width:960px) {
2268 .header-illustration.new-user-arm {