3 @import "rails_bootstrap_forms";
5 /* Styles common to large and small screens */
7 /* Default rules for the body of every page */
10 font-family: 'Helvetica Neue',Arial,sans-serif;
11 font-size: $typeheight;
14 background-color: #fff;
30 #container { position: relative; }
33 vertical-align: middle;
34 margin-right: $lineheight/4;
37 [dir=rtl] { /* no-r2 */ text-align: right; }
39 [dir=ltr] { /* no-r2 */ text-align: left; }
44 display: inline-block;
48 background: transparent image-url("sprite.png") no-repeat 0 0;
49 background-image: image-url("sprite.svg");
54 .icon.search { /* no-r2 */ background-position: 0 0; }
55 .icon.donate { /* no-r2 */ background-position: -20px 0; }
56 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
57 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
58 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
59 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
60 .icon.layers { /* no-r2 */ background-position: -100px 0; }
61 .icon.key { /* no-r2 */ background-position: -120px 0; }
62 .icon.share { /* no-r2 */ background-position: -140px 0; }
63 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
64 .icon.link { /* no-r2 */ background-position: -180px 0; }
65 .icon.close { /* no-r2 */ background-position: -200px 0; }
66 .close-wrap:hover .icon.close,
67 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
68 .icon.check { /* no-r2 */ background-position: -220px 0; }
69 .icon.note { /* no-r2 */ background-position: -240px 0; }
70 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
71 .icon.query { /* no-r2 */ background-position: -260px 0; }
77 text-decoration: none;
80 text-decoration: underline;
84 /* Utility for de-emphasizing content */
97 /* Rules for the header */
100 display: none !important;
102 background: image-url("menu-icon.png") no-repeat;
103 background-size: 30px 30px;
107 margin: 14px 10px 0 0;
112 height: $headerHeight;
117 h1, nav, nav > ul, nav > ul > li {
118 display: inline-block;
123 padding: $lineheight/2;
131 text-decoration: none;
138 vertical-align: middle;
164 .btn-outline-primary {
165 @include button-outline-variant($green, $white);
169 .btn-outline-primary {
174 border-top-color: $grey;
178 background-color: lighten($green, 30%);
183 // Small tweaks to the toggle to stop the primary colour showing through
184 // when the menu is shown
185 .show > .btn-outline-primary.dropdown-toggle {
186 background-color: $green;
187 border-color: $green;
190 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
205 color: darken($darkgrey, 25%);
209 .btn-outline-secondary {
210 @include button-outline-variant($darkgrey);
215 .btn-outline-secondary {
216 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
222 background-color: white;
226 &.show .btn-outline-secondary {
227 background-color: white;
234 img.user_thumbnail_tiny {
240 display: inline-block;
242 margin: 3px 0 3px 3px;
243 background-color: lighten($grey, 10%);
255 nav.primary, nav.secondary {
258 background-color: $green;
264 #compact-secondary-nav {
269 #compact-secondary-nav {
270 display: inline-block;
277 /* Utility for styling notification numbers */
280 padding: 2px $lineheight/4;
282 background: lighten($green, 30%);
288 /* Rules for the message shown in place of the map when javascript is disabled */
296 /* Rules for Leaflet maps */
298 .leaflet-control .control-button {
302 background-color: #333;
303 background-color: rgba(0,0,0,.6);
304 border-radius: 4px 0 0 4px;
309 background-color: black;
314 background-color: #333;
315 background-color: rgba(0,0,0,.5);
320 background-color: $vibrant-green;
328 .leaflet-control .zoomin,
329 .control-layers .control-button {
331 border-radius: 4px 0 0 0;
334 .leaflet-control .zoomout,
335 .control-key .control-button {
340 .control-locate .control-button,
341 .control-share .control-button {
342 border-radius: 0 0 0 4px;
345 /* Rules for the sidebar and main map area */
365 width: $sidebarWidth;
380 padding: $lineheight $lineheight $lineheight/2;
385 margin-top: $lineheight;
386 margin-bottom: $lineheight/2;
399 pointer-events: none;
424 .overlay-sidebar #sidebar {
461 width: $sidebarWidth;
477 .leaflet-marker-draggable {
492 border-bottom: 1px solid $grey;
502 border:1px solid $grey;
507 border: 1px solid $grey;
509 border-top-color: $grey;
533 border: 2px solid #fff;
536 transition: border-color 0.08s ease-in;
543 border-bottom-right-radius: 3px;
547 text-stroke: 2px #fff;
548 background: rgba(255,255,255,.9);
550 input[type="radio"] {
555 &.active { border-color: darken($green, 10%); }
558 &.active { border-color: darken($green, 20%); }
568 li.disabled { color: $darkgrey; }
578 text-decoration: none;
579 background-color: $lightblue;
581 border-right: 1px solid #fff;
585 border-right: 1px solid #fff;
586 border-radius: 4px 0 0 4px;
590 border-radius: 0 4px 4px 0;
594 background-color: $blue;
606 font-family: monospace;
628 top: $lineheight/2 !important;
630 margin-right: 0px !important;
631 margin-top: 0px !important;
635 .leaflet-popup-scrolled {
636 padding-right: $lineheight;
637 border-bottom: 0px !important;
638 border-top: 0px !important;
641 .leaflet-popup-content-wrapper {
642 border-radius: 4px !important;
645 /* Rules for attribution text under the main map shown on printouts */
655 .attribution_license,
656 .attribution_project {
660 .attribution_notice {
664 .donate-attr { color: darken($green, 10%) !important; }
666 /* Rules for the sidebar */
670 padding: $lineheight/2 $lineheight;
671 // background: $offwhite;
672 // border-bottom: 1px solid $grey;
692 margin: $lineheight auto;
703 /* Temporary label size override until we remove site-wide font customisation */
711 /* Rules for the search and direction forms */
713 header .search_forms,
718 /* Rules for the map key which appears in the popout sidebar */
721 .mapkey-table-key img {
728 /* Rules for search sidebar */
730 #sidebar .search_results_entry {
733 &.selected { background: $list-highlight; }
736 .search_more .loader {
742 .search_results_error {
747 /* Rules for routing */
749 #sidebar_content>table {
750 padding: 5px 20px 10px 15px;
752 border-collapse: separate;
757 background-image: image-url('routing-sprite.png');
760 background-repeat: no-repeat;
762 @for $i from 0 through 25 {
763 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
767 padding: 0 $lineheight $lineheight/4;
770 td.instruction, td.distance {
771 padding-top: $lineheight/5;
772 padding-bottom: $lineheight/5;
773 border-bottom: 1px solid $grey;
784 background: $list-highlight;
786 .routing_engines, #route_from, #route_to { margin-left: 25px; }
787 .routing_marker { width: 15px; position: absolute; cursor: move; }
789 /* Rules for entity history */
794 border-bottom: $keyline;
802 /* Rules for the history sidebar */
804 #sidebar .changesets {
808 &.selected { background: $list-highlight; }
809 /* color is derived from changeset bbox fillColor in history.js */
821 .changeset_more .loader {
827 /* Rules for the browse sidebar */
831 padding: $lineheight/2 $lineheight;
832 border-bottom: 1px solid $grey;
836 word-wrap: break-word;
840 .browse-section:last-of-type {
847 border: 1px solid $lightgrey;
855 padding: 5px 0 5px 10px;
857 border: 1px solid $grey;
858 border-radius: 4px 4px 0 0;
859 background-color: $offwhite;
865 background-color: #FFF;
866 border: 1px solid $grey;
868 border-radius: 0 0 4px 4px;
873 background-color: $offwhite;
874 border: 1px solid $grey;
877 border-collapse: separate;
882 border-bottom: 1px solid $grey;
885 tr:last-child th, tr:last-child td {
893 word-wrap: break-word;
894 white-space: pre-wrap;
899 background-color: $offwhite;
903 border-left: 1px solid $grey;
904 background-color: #fff;
907 .colour-preview-box {
912 border: 1px solid rgba(0, 0, 0, .1);
913 // add color via inline css on element: background-color: <tag value>;
917 .note-comments li, .changeset-comments li {
918 margin: $lineheight/2 0;
921 margin: 10px 6px 0 6px;
932 margin: 18px 10px 10px;
936 .subscribe-buttons input {
942 span.action-button:hover {
944 text-decoration: underline;
949 margin: 0 0 10px 10px;
953 padding: $lineheight $lineheight $lineheight/2;
958 padding-bottom: $lineheight/2;
961 padding: 0 $lineheight;
971 background: $list-highlight;
978 /* Rules for export sidebar */
981 padding: $lineheight;
988 .export_area_inputs {
989 margin-bottom: $lineheight/2;
997 background: $lightgrey;
998 border: 1px solid $grey;
1001 #maxlat { margin-top: -1px; }
1004 /* no-r2 */ margin-left: -1px;
1008 /* no-r2 */ margin-right: -1px;
1010 #minlat { margin-bottom: -1px; }
1014 margin: $lineheight/4;
1018 padding-left: $lineheight/2;
1021 margin-bottom: 10px;
1026 /* Rules for the routing sidebar */
1035 /* Rules for edit pages */
1051 /* Rules for non-map content pages */
1054 background: $lightgrey;
1061 padding: $lineheight;
1064 /* Overrides for pages that use new layout conventions */
1070 .content-heading .content-inner {
1075 .header-illustration {
1076 background-position: 0 0;
1077 background-repeat: no-repeat;
1085 background-image: image-url("sign-up-illustration.png");
1089 background-image: image-url("confirm-illustration.png");
1093 background-image: image-url("terms-illustration.png");
1101 background-image: image-url("sign-up-illustration-arm.png");
1106 [dir=rtl] .header-illustration {
1107 transform: scaleX(-1);
1110 #content.maximised {
1119 /* Rules for small maps in content areas */
1123 border: 1px solid $grey;
1124 margin-bottom: $lineheight;
1127 @include media-breakpoint-up(md) {
1133 /* Rules for the user profile page */
1137 .userinformation-inner {
1146 .admin-user-info small {
1147 margin-bottom: $lineheight/2;
1149 margin-right: $lineheight;
1153 margin-top: $lineheight;
1157 .activity-details p {
1163 // Silly exception; remove when user page is redesigned.
1167 p#no_home_location {
1168 margin: $lineheight;
1171 margin-top: $lineheight/4;
1176 /* Rules for the user map */
1178 .content_map .leaflet-popup-content {
1179 margin: $lineheight/2;
1183 /* Rules for user popups on maps */
1189 margin-top: 0 0 0 60px;
1192 img.user_thumbnail {
1194 margin: 0 $lineheight/2 0 0;
1198 /* Rules for the user list */
1204 vertical-align: middle;
1213 #user_list_actions {
1215 margin-top: $lineheight/2;
1218 /* Rules for the diary list page */
1222 padding-top: $lineheight;
1223 padding-bottom: $lineheight/2;
1224 border-top: 1px solid $grey;
1227 margin-top: $lineheight/2;
1231 background-color: #fee;
1235 margin-bottom: $lineheight;
1239 margin-bottom: $lineheight/2;
1243 img.user_thumbnail {
1253 /* Rules for the diary entry page */
1258 border: 1px solid $grey;
1260 margin-bottom: $lineheight;
1266 border-top: 1px dashed $grey;
1267 padding-top: $lineheight/2;
1268 padding-bottom: $lineheight/2;
1270 margin-top: $lineheight/2;
1271 padding-top: $lineheight;
1272 border-top: 1px solid $grey;
1275 background-color: #fee;
1278 margin-bottom: $lineheight/2;
1287 .diary_entries-show img.user_thumbnail {
1291 /* Rules for the log in page */
1293 #login_auth_buttons {
1298 padding: $lineheight/4 $lineheight/2;
1302 /* Rules for the account confirmation page */
1306 border: 1px solid $grey;
1307 padding: $lineheight;
1308 margin-bottom: $lineheight;
1313 list-style: inherit;
1317 list-style-type: lower-alpha;
1322 /* Rules for the account settings page */
1324 #accountForm .user_image {
1328 #accountForm #user_image {
1332 #accountForm ul.accountImage-options {
1345 display: inline !important;
1348 /* Rules for the oauth settings page */
1350 .oauth_clients .buttons .oauth-edit {
1351 border-radius: 2px 0 0 2px;
1354 .oauth_clients .buttons .oauth-delete {
1355 border-radius: 0 2px 2px 0;
1358 /* Rules for the oauth authorization page */
1360 .oauth-authorize ul {
1364 /* Rules for messages pages */
1367 input[type="submit"] {
1372 background: $offwhite;
1376 background: #CBEEA7;
1384 .inbox-row .inbox-mark-read {
1389 margin-bottom: $lineheight;
1390 padding: $lineheight/4 0px 4px 0px;
1391 border-bottom: 1px solid $grey;
1398 .info-line .user_thumbnail_tiny {
1399 vertical-align: middle;
1403 white-space: nowrap;
1412 .inbox-row-unread .inbox-mark-unread {
1416 /* Rules for "flash" notice boxes shown at the top of the content area */
1419 padding: $lineheight;
1422 background-color: #ff7070;
1426 background-color: #ffe0cc;
1430 background-color: #CBEEA7;
1434 display: inline-block;
1435 margin-left: $lineheight / 2;
1436 vertical-align: middle;
1439 margin-top: $lineheight * 0.5;
1440 margin-bottom: $lineheight * 0.5;
1453 /* Rules for highlighting fields with rails validation errors */
1456 display: inline-block;
1462 background-color: #ff7070;
1465 /* Rules for rails validation error boxes */
1469 border: 2px solid #ff7070;
1470 padding: 0 $lineheight/2;
1471 margin-bottom: $lineheight;
1472 background-color: #f0f0f0;
1475 margin: 0 -10px 10px -10px;
1476 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1479 background-color: #c00;
1487 padding: $lineheight/4;
1491 /* Rules for forms */
1495 margin-bottom: $lineheight;
1497 label.standard-label {
1499 margin-bottom: $lineheight/4;
1500 font-size: $typeheight;
1504 label.standard-label.secondary {
1505 display: inline-block;
1506 font-weight: normal;
1509 font-weight: normal;
1516 margin-top: $lineheight;
1517 padding-top: $lineheight;
1518 border-top: 1px solid $lightgrey;
1520 .horizontal-list .standard-form-row {
1522 padding-right: 10px;
1524 .standard-form-row {
1525 margin-bottom: $lineheight/2;
1532 list-style-type: none;
1534 input[type="checkbox"],
1535 input[type="radio"] {
1540 #remember_me_openid {
1548 input[type="checkbox"],
1549 input[type="radio"] {
1554 input[type="email"],
1556 input[type="password"],
1559 background-color: #fff;
1560 border: 1px solid $grey;
1566 &.field_with_errors {
1567 border: 2px solid #ff7070;
1579 /* Utility for general button styles */
1581 input[type="button"],
1582 input[type="submit"],
1583 input[type="reset"],
1587 display: inline-block;
1588 padding: $lineheight/4 $lineheight/2;
1589 min-height: 20px + $lineheight/2;
1591 margin: 0 0 $lineheight/2 0;
1597 background: darken($blue, $hovercolor);
1598 text-decoration: none;
1601 background: $lightblue;
1603 background: darken($lightblue, $hovercolor);
1607 background: $lightgrey;
1609 background: $lightgrey;
1617 input[type="button"],
1618 input[type="submit"],
1619 input[type="reset"] {
1620 line-height: normal;
1630 padding: $lineheight/2;
1631 background-color: $lightgrey;
1636 border-radius: 2px 0 0 2px;
1642 transition: 300ms linear;
1645 input[type=text].overflow {
1647 border-radius: 3px 0px 0px 3px;
1652 box-shadow: 0px 0px 7px $vibrant-green;
1655 input[type=submit].float {
1659 border-radius: 0 2px 2px 0;
1663 background-color: rgba($red, 0.4);
1667 /* this next line is to polyfill the vertical alignment of text within a select element,
1668 * which is different between firefox and chrome. */
1678 .describe_location {
1701 padding-right: 25px;
1705 select.routing_engines {
1707 margin: 0px 0px 5px 25px;
1722 margin: 0px 0px 5px 0px;
1729 vertical-align: middle;
1733 a.reverse_directions {
1735 margin: 0px 0px 5px 25px;
1740 /* Rules for user images */
1745 border: 1px solid $grey;
1746 margin-bottom: $lineheight;
1748 margin-right: $lineheight;
1751 img.user_thumbnail {
1754 border: 1px solid $grey;
1755 margin-right: $lineheight;
1758 img.user_thumbnail_tiny {
1763 border: 1px solid $grey;
1766 /* Rules for geo microformats */
1769 border-bottom: none;
1772 /* General styles for action lists / subnavs / pager navs */
1774 ul.secondary-actions {
1780 display: inline-block;
1787 border-left: 1px solid $grey;
1788 padding-left: $lineheight/2;
1789 margin-right: $lineheight/2;
1800 div.secondary-actions {
1805 /* Utility for managing inner content areas */
1807 .inner22 { padding: $lineheight;}
1809 .inner12 { padding: $lineheight/2 $lineheight;}
1811 .inner11 { padding: $lineheight/2;}
1813 .inner20 { padding: $lineheight 0;}
1815 .inner02 { padding: 0 $lineheight;}
1819 input[type="submit"],
1820 input[type="button"],
1821 input[type="reset"],
1824 box-sizing: border-box;
1830 border-right:1px solid white;
1831 text-overflow: ellipsis;
1832 white-space: nowrap;
1836 .button:first-child,
1837 .button_to:first-child {
1838 border-radius:2px 0 0 2px;
1842 .button_to:last-child {
1843 border-radius:0 2px 2px 0;
1844 border-right-width: 0;
1848 .button_to:only-child,
1849 *[value="Hide"] + input:last-child,
1850 *[value="Hide"] + .button:last-child,
1851 *[value="Hide"] + .button_to:last-child {
1853 border-right-width: 0;
1855 /* if a 3-button set has a hidden middle button */
1856 *[value="Hide"] + input:nth-child(3),
1857 *[value="Hide"] + .button:nth-child(3),
1858 *[value="Hide"] + .button_to:nth-child(3) {
1859 border-radius:0 2px 2px 0;
1860 border-right-width: 0;
1862 /* if a 3-button set starts with a hidden button */
1863 *[value="Hide"] + input:nth-child(2):not(:last-child),
1864 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1865 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1866 border-radius:2px 0 0 2px;
1867 border-right-width: 1px;
1871 /* Customise the background colour of striped tables */
1873 .table-striped > tbody > tr:nth-child(2n+1) > td,
1874 .table-striped > tbody > tr:nth-child(2n+1) > th {
1875 background-color: $offwhite;
1878 /* Rules for OpenID logo */
1881 vertical-align: text-bottom;
1885 /* Rules for rich text */
1891 background: $lightgrey;
1897 background: $lightgrey;
1899 white-space: pre-wrap;
1907 padding: $lineheight;
1908 background-color: $offwhite;
1915 border-left: $lineheight solid $offwhite;
1916 padding-left: $lineheight;
1922 .diary_post .richtext {
1923 margin-top: $lineheight;
1926 .comments .richtext {
1931 /* Rules for rich text editors */
1934 input.richtext_title[type="text"] {
1936 width: calc(100% - 235px);
1938 @media only screen and (max-width:768px) {
1943 .richtext_container {
1944 margin-bottom: $lineheight;
1948 width: calc(100% - 235px);
1949 display: inline-block;
1950 vertical-align: top;
1952 @media only screen and (max-width:768px) {
1957 display: inline-block;
1958 padding: $lineheight;
1959 background-color: $offwhite;
1963 background-image: image-url("loading.gif");
1964 background-repeat: no-repeat;
1965 background-position: center;
1975 display: inline-block;
1976 vertical-align: top;
1978 background-color: $offwhite;
1979 padding: $lineheight/2;
1987 border-bottom: 1px solid $grey;
1988 margin-bottom: $lineheight/4;
1989 padding-bottom: $lineheight/4;
1992 li h4, li span, li p {
1993 display: inline-block;
1994 vertical-align: top;
2005 margin-left: $lineheight/2;
2006 margin-bottom: $lineheight/4;
2007 white-space: nowrap;
2013 /* Rules for the user notes list */
2017 background-color: $offwhite;
2021 /* Rules for the iD editor */
2028 /* Rules for the "Welcome" page */
2029 .site-welcome, .site-fixthemap {
2039 background-image: image-url("welcome-sprite.png");
2040 background-size: 500px 250px;
2046 padding-bottom: 20px;
2048 margin-bottom: 10px;
2060 /* no-r2 */ background-position: -50px 0;
2065 vertical-align: middle;
2069 /* no-r2 */ background-position: -100px 0;
2073 /* no-r2 */ background-position: -150px 0;
2077 /* no-r2 */ background-position: -200px 0;
2081 /* no-r2 */ background-position: -250px 0;
2085 /* no-r2 */ background-position: -300px 0;
2089 /* no-r2 */ background-position: -350px 0;
2098 text-decoration: none;
2102 background-color: #333;
2107 .site-about #content {
2108 background-color: $lightgrey;
2109 background-position: 50% 50%;
2110 background-repeat: no-repeat;
2111 background-size: cover;
2112 background-attachment: fixed;
2129 padding: 170px 40px 20px;
2131 background: rgba(0, 0, 0, .8);
2141 color: $vibrant-green;
2145 @include media-breakpoint-up(sm) {
2157 background-position: 0 50%;
2158 background-repeat: no-repeat;
2159 background-image: image-url('about/osm.png');
2160 background-size: cover;
2161 background-color: $vibrant-green;
2171 padding: 20px 20px 20px 40px;
2172 font: 500 20px/24px Helvetica, Arial, sans-serif;
2173 white-space: nowrap;
2175 background: $vibrant-green;
2179 display: inline-block;
2189 vertical-align: middle;
2190 background: 40px 40px image-url('about/sprite.png') no-repeat;
2194 background-position: 0px 0px;
2198 background-position: 0px -40px;
2202 background-position: 0px -80px;
2206 background-position: 0px -120px;
2210 background-position: 0px -160px;
2214 background-position: -45px -160px;
2221 @media only screen and (max-width:960px) {
2222 .header-illustration.new-user-arm {