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"] {
1014 background: $lightgrey;
1015 border: 1px solid $grey;
1018 #maxlat { margin-top: -1px; }
1021 /* no-r2 */ margin-left: -1px;
1025 /* no-r2 */ margin-right: -1px;
1027 #minlat { margin-bottom: -1px; }
1031 margin: $lineheight/4;
1035 padding-left: $lineheight/2;
1038 margin-bottom: 10px;
1043 /* Rules for the routing sidebar */
1052 /* Rules for edit pages */
1068 /* Rules for non-map content pages */
1071 background: $lightgrey;
1078 padding: $lineheight;
1081 /* Overrides for pages that use new layout conventions */
1087 .content-heading .content-inner {
1092 .header-illustration {
1093 background-position: 0 0;
1094 background-repeat: no-repeat;
1102 background-image: image-url("sign-up-illustration.png");
1106 background-image: image-url("confirm-illustration.png");
1110 background-image: image-url("terms-illustration.png");
1118 background-image: image-url("sign-up-illustration-arm.png");
1123 [dir=rtl] .header-illustration {
1124 transform: scaleX(-1);
1127 #content.maximised {
1136 /* Rules for small maps in content areas */
1140 border: 1px solid $grey;
1141 margin-bottom: $lineheight;
1144 @include media-breakpoint-up(md) {
1150 /* Rules for the user profile page */
1154 .userinformation-inner {
1163 .admin-user-info small {
1164 margin-bottom: $lineheight/2;
1166 margin-right: $lineheight;
1170 margin-top: $lineheight;
1174 .activity-details p {
1180 // Silly exception; remove when user page is redesigned.
1184 p#no_home_location {
1185 margin: $lineheight;
1188 margin-top: $lineheight/4;
1193 /* Rules for the user map */
1195 .content_map .leaflet-popup-content {
1196 margin: $lineheight/2;
1200 /* Rules for user popups on maps */
1206 margin-top: 0 0 0 60px;
1209 img.user_thumbnail {
1211 margin: 0 $lineheight/2 0 0;
1215 /* Rules for the user list */
1221 vertical-align: middle;
1230 #user_list_actions {
1232 margin-top: $lineheight/2;
1235 /* Rules for the diary list page */
1239 padding-top: $lineheight;
1240 padding-bottom: $lineheight/2;
1241 border-top: 1px solid $grey;
1244 margin-top: $lineheight/2;
1248 background-color: #fee;
1252 margin-bottom: $lineheight;
1256 margin-bottom: $lineheight/2;
1260 img.user_thumbnail {
1270 /* Rules for the diary entry page */
1275 border: 1px solid $grey;
1277 margin-bottom: $lineheight;
1283 border-top: 1px dashed $grey;
1284 padding-top: $lineheight/2;
1285 padding-bottom: $lineheight/2;
1287 margin-top: $lineheight/2;
1288 padding-top: $lineheight;
1289 border-top: 1px solid $grey;
1292 background-color: #fee;
1295 margin-bottom: $lineheight/2;
1304 .diary_entries-show img.user_thumbnail {
1308 /* Rules for the log in page */
1310 #login_auth_buttons {
1315 padding: $lineheight/4 $lineheight/2;
1319 /* Rules for the account confirmation page */
1323 border: 1px solid $grey;
1324 padding: $lineheight;
1325 margin-bottom: $lineheight;
1330 list-style: inherit;
1334 list-style-type: lower-alpha;
1339 background: $lightblue;
1341 background: darken($lightblue, $hovercolor);
1346 /* Rules for the account settings page */
1348 #accountForm .user_image {
1352 #accountForm #user_image {
1356 #accountForm ul.accountImage-options {
1369 display: inline !important;
1372 /* Rules for the oauth settings page */
1374 .oauth_clients .buttons .oauth-edit {
1375 border-radius: 2px 0 0 2px;
1378 .oauth_clients .buttons .oauth-delete {
1379 border-radius: 0 2px 2px 0;
1382 /* Rules for the oauth authorization page */
1384 .oauth-authorize ul {
1388 /* Rules for messages pages */
1391 input[type="submit"] {
1396 background: $offwhite;
1400 background: #CBEEA7;
1408 .inbox-row .inbox-mark-read {
1413 margin-bottom: $lineheight;
1414 padding: $lineheight/4 0px 4px 0px;
1415 border-bottom: 1px solid $grey;
1422 .info-line .user_thumbnail_tiny {
1423 vertical-align: middle;
1427 white-space: nowrap;
1436 .inbox-row-unread .inbox-mark-unread {
1440 /* Rules for "flash" notice boxes shown at the top of the content area */
1443 padding: $lineheight;
1446 background-color: #ff7070;
1450 background-color: #ffe0cc;
1454 background-color: #CBEEA7;
1458 display: inline-block;
1459 margin-left: $lineheight / 2;
1460 vertical-align: middle;
1463 margin-top: $lineheight * 0.5;
1464 margin-bottom: $lineheight * 0.5;
1477 /* Rules for highlighting fields with rails validation errors */
1480 display: inline-block;
1486 background-color: #ff7070;
1489 /* Rules for rails validation error boxes */
1493 border: 2px solid #ff7070;
1494 padding: 0 $lineheight/2;
1495 margin-bottom: $lineheight;
1496 background-color: #f0f0f0;
1499 margin: 0 -10px 10px -10px;
1500 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1503 background-color: #c00;
1511 padding: $lineheight/4;
1515 /* Rules for forms */
1519 margin-bottom: $lineheight;
1521 label.standard-label {
1523 margin-bottom: $lineheight/4;
1524 font-size: $typeheight;
1528 label.standard-label.secondary {
1529 display: inline-block;
1530 font-weight: normal;
1533 font-weight: normal;
1540 margin-top: $lineheight;
1541 padding-top: $lineheight;
1542 border-top: 1px solid $lightgrey;
1544 .horizontal-list .standard-form-row {
1546 padding-right: 10px;
1548 .standard-form-row {
1549 margin-bottom: $lineheight/2;
1556 list-style-type: none;
1558 input[type="checkbox"],
1559 input[type="radio"] {
1564 #remember_me_openid {
1572 input[type="checkbox"],
1573 input[type="radio"] {
1578 input[type="email"],
1580 input[type="password"],
1583 background-color: #fff;
1584 border: 1px solid $grey;
1590 &.field_with_errors {
1591 border: 2px solid #ff7070;
1603 /* Utility for general button styles */
1605 input[type="button"],
1606 input[type="submit"],
1607 input[type="reset"],
1611 display: inline-block;
1612 padding: $lineheight/4 $lineheight/2;
1613 min-height: 20px + $lineheight/2;
1615 margin: 0 0 $lineheight/2 0;
1621 background: darken($blue, $hovercolor);
1622 text-decoration: none;
1625 background: $lightblue;
1627 background: darken($lightblue, $hovercolor);
1631 background: $lightgrey;
1633 background: $lightgrey;
1641 input[type="button"],
1642 input[type="submit"],
1643 input[type="reset"] {
1644 line-height: normal;
1654 padding: $lineheight/2;
1655 background-color: $lightgrey;
1660 border-radius: 2px 0 0 2px;
1666 transition: 300ms linear;
1669 input[type=text].overflow {
1671 border-radius: 3px 0px 0px 3px;
1676 box-shadow: 0px 0px 7px $vibrant-green;
1679 input[type=submit].float {
1683 border-radius: 0 2px 2px 0;
1687 background-color: rgba($red, 0.4);
1691 /* this next line is to polyfill the vertical alignment of text within a select element,
1692 * which is different between firefox and chrome. */
1702 .describe_location {
1725 padding-right: 25px;
1729 select.routing_engines {
1731 margin: 0px 0px 5px 25px;
1746 margin: 0px 0px 5px 0px;
1753 vertical-align: middle;
1757 a.reverse_directions {
1759 margin: 0px 0px 5px 25px;
1764 /* Rules for user images */
1769 border: 1px solid $grey;
1770 margin-bottom: $lineheight;
1772 margin-right: $lineheight;
1775 img.user_thumbnail {
1778 border: 1px solid $grey;
1779 margin-right: $lineheight;
1782 img.user_thumbnail_tiny {
1787 border: 1px solid $grey;
1790 /* Rules for geo microformats */
1793 border-bottom: none;
1796 /* General styles for action lists / subnavs / pager navs */
1798 ul.secondary-actions {
1804 display: inline-block;
1811 border-left: 1px solid $grey;
1812 padding-left: $lineheight/2;
1813 margin-right: $lineheight/2;
1824 div.secondary-actions {
1829 /* Utility for managing inner content areas */
1831 .inner22 { padding: $lineheight;}
1833 .inner12 { padding: $lineheight/2 $lineheight;}
1835 .inner11 { padding: $lineheight/2;}
1837 .inner20 { padding: $lineheight 0;}
1839 .inner02 { padding: 0 $lineheight;}
1843 input[type="submit"],
1844 input[type="button"],
1845 input[type="reset"],
1848 box-sizing: border-box;
1854 border-right:1px solid white;
1855 text-overflow: ellipsis;
1856 white-space: nowrap;
1860 .button:first-child,
1861 .button_to:first-child {
1862 border-radius:2px 0 0 2px;
1866 .button_to:last-child {
1867 border-radius:0 2px 2px 0;
1868 border-right-width: 0;
1872 .button_to:only-child,
1873 *[value="Hide"] + input:last-child,
1874 *[value="Hide"] + .button:last-child,
1875 *[value="Hide"] + .button_to:last-child {
1877 border-right-width: 0;
1879 /* if a 3-button set has a hidden middle button */
1880 *[value="Hide"] + input:nth-child(3),
1881 *[value="Hide"] + .button:nth-child(3),
1882 *[value="Hide"] + .button_to:nth-child(3) {
1883 border-radius:0 2px 2px 0;
1884 border-right-width: 0;
1886 /* if a 3-button set starts with a hidden button */
1887 *[value="Hide"] + input:nth-child(2):not(:last-child),
1888 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1889 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1890 border-radius:2px 0 0 2px;
1891 border-right-width: 1px;
1895 /* Customise the background colour of striped tables */
1897 .table-striped > tbody > tr:nth-child(2n+1) > td,
1898 .table-striped > tbody > tr:nth-child(2n+1) > th {
1899 background-color: $offwhite;
1902 /* Rules for OpenID logo */
1905 vertical-align: text-bottom;
1909 /* Rules for rich text */
1915 background: $lightgrey;
1921 background: $lightgrey;
1923 white-space: pre-wrap;
1931 padding: $lineheight;
1932 background-color: $offwhite;
1939 border-left: $lineheight solid $offwhite;
1940 padding-left: $lineheight;
1946 .diary_post .richtext {
1947 margin-top: $lineheight;
1950 .comments .richtext {
1955 /* Rules for rich text editors */
1958 input.richtext_title[type="text"] {
1960 width: calc(100% - 235px);
1962 @media only screen and (max-width:768px) {
1967 .richtext_container {
1968 margin-bottom: $lineheight;
1972 width: calc(100% - 235px);
1973 display: inline-block;
1974 vertical-align: top;
1976 @media only screen and (max-width:768px) {
1981 display: inline-block;
1982 padding: $lineheight;
1983 background-color: $offwhite;
1987 background-image: image-url("loading.gif");
1988 background-repeat: no-repeat;
1989 background-position: center;
1999 display: inline-block;
2000 vertical-align: top;
2002 background-color: $offwhite;
2003 padding: $lineheight/2;
2011 border-bottom: 1px solid $grey;
2012 margin-bottom: $lineheight/4;
2013 padding-bottom: $lineheight/4;
2016 li h4, li span, li p {
2017 display: inline-block;
2018 vertical-align: top;
2029 margin-left: $lineheight/2;
2030 margin-bottom: $lineheight/4;
2031 white-space: nowrap;
2037 /* Rules for the user notes list */
2041 background-color: $offwhite;
2045 /* Rules for the iD editor */
2052 /* Rules for the "Welcome" page */
2053 .site-welcome, .site-fixthemap {
2063 background-image: image-url("welcome-sprite.png");
2064 background-size: 500px 250px;
2070 padding-bottom: 20px;
2072 margin-bottom: 10px;
2084 /* no-r2 */ background-position: -50px 0;
2089 vertical-align: middle;
2093 /* no-r2 */ background-position: -100px 0;
2097 /* no-r2 */ background-position: -150px 0;
2101 /* no-r2 */ background-position: -200px 0;
2105 /* no-r2 */ background-position: -250px 0;
2109 /* no-r2 */ background-position: -300px 0;
2113 /* no-r2 */ background-position: -350px 0;
2122 text-decoration: none;
2126 background-color: #333;
2131 .site-about #content {
2132 background-color: $lightgrey;
2133 background-position: 50% 50%;
2134 background-repeat: no-repeat;
2135 background-size: cover;
2136 background-attachment: fixed;
2153 padding: 170px 40px 20px;
2155 background: rgba(0, 0, 0, .8);
2165 color: $vibrant-green;
2169 @include media-breakpoint-up(sm) {
2181 background-position: 0 50%;
2182 background-repeat: no-repeat;
2183 background-image: image-url('about/osm.png');
2184 background-size: cover;
2185 background-color: $vibrant-green;
2195 padding: 20px 20px 20px 40px;
2196 font: 500 20px/24px Helvetica, Arial, sans-serif;
2197 white-space: nowrap;
2199 background: $vibrant-green;
2203 display: inline-block;
2213 vertical-align: middle;
2214 background: 40px 40px image-url('about/sprite.png') no-repeat;
2218 background-position: 0px 0px;
2222 background-position: 0px -40px;
2226 background-position: 0px -80px;
2230 background-position: 0px -120px;
2234 background-position: 0px -160px;
2238 background-position: -45px -160px;
2245 @media only screen and (max-width:960px) {
2246 .header-illustration.new-user-arm {