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;
787 .routing_marker { width: 15px; 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 /* Bootstrap buttons don't have any vertical margin, so
979 they touch when adjacent buttons wrap onto a new line
980 e.g. wide form buttons on a narrow sidebar */
984 margin-bottom: $spacer * 0.25;
988 /* Rules for export sidebar */
991 padding: $lineheight;
998 .export_area_inputs {
999 margin-bottom: $lineheight/2;
1000 input[type="text"] {
1007 background: $lightgrey;
1008 border: 1px solid $grey;
1011 #maxlat { margin-top: -1px; }
1014 /* no-r2 */ margin-left: -1px;
1018 /* no-r2 */ margin-right: -1px;
1020 #minlat { margin-bottom: -1px; }
1024 margin: $lineheight/4;
1028 padding-left: $lineheight/2;
1031 margin-bottom: 10px;
1036 /* Rules for the routing sidebar */
1045 /* Rules for edit pages */
1061 /* Rules for non-map content pages */
1064 background: $lightgrey;
1071 padding: $lineheight;
1074 /* Overrides for pages that use new layout conventions */
1080 .content-heading .content-inner {
1085 .header-illustration {
1086 background-position: 0 0;
1087 background-repeat: no-repeat;
1095 background-image: image-url("sign-up-illustration.png");
1099 background-image: image-url("confirm-illustration.png");
1103 background-image: image-url("terms-illustration.png");
1111 background-image: image-url("sign-up-illustration-arm.png");
1116 [dir=rtl] .header-illustration {
1117 transform: scaleX(-1);
1120 #content.maximised {
1129 /* Rules for small maps in content areas */
1133 border: 1px solid $grey;
1134 margin-bottom: $lineheight;
1137 @include media-breakpoint-up(md) {
1143 /* Rules for the user profile page */
1147 .userinformation-inner {
1156 .admin-user-info small {
1157 margin-bottom: $lineheight/2;
1159 margin-right: $lineheight;
1163 margin-top: $lineheight;
1167 .activity-details p {
1173 // Silly exception; remove when user page is redesigned.
1177 p#no_home_location {
1178 margin: $lineheight;
1181 margin-top: $lineheight/4;
1186 /* Rules for the user map */
1188 .content_map .leaflet-popup-content {
1189 margin: $lineheight/2;
1193 /* Rules for user popups on maps */
1199 margin-top: 0 0 0 60px;
1202 img.user_thumbnail {
1204 margin: 0 $lineheight/2 0 0;
1208 /* Rules for the user list */
1214 vertical-align: middle;
1223 #user_list_actions {
1225 margin-top: $lineheight/2;
1228 /* Rules for the diary list page */
1232 padding-top: $lineheight;
1233 padding-bottom: $lineheight/2;
1234 border-top: 1px solid $grey;
1237 margin-top: $lineheight/2;
1241 background-color: #fee;
1245 margin-bottom: $lineheight;
1249 margin-bottom: $lineheight/2;
1253 img.user_thumbnail {
1263 /* Rules for the diary entry page */
1268 border: 1px solid $grey;
1270 margin-bottom: $lineheight;
1276 border-top: 1px dashed $grey;
1277 padding-top: $lineheight/2;
1278 padding-bottom: $lineheight/2;
1280 margin-top: $lineheight/2;
1281 padding-top: $lineheight;
1282 border-top: 1px solid $grey;
1285 background-color: #fee;
1288 margin-bottom: $lineheight/2;
1297 .diary_entries-show img.user_thumbnail {
1301 /* Rules for the log in page */
1303 #login_auth_buttons {
1308 padding: $lineheight/4 $lineheight/2;
1312 /* Rules for the account confirmation page */
1316 border: 1px solid $grey;
1317 padding: $lineheight;
1318 margin-bottom: $lineheight;
1323 list-style: inherit;
1327 list-style-type: lower-alpha;
1332 /* Rules for the account settings page */
1334 #accountForm .user_image {
1338 #accountForm #user_image {
1342 #accountForm ul.accountImage-options {
1355 display: inline !important;
1358 /* Rules for the oauth settings page */
1360 .oauth_clients .buttons .oauth-edit {
1361 border-radius: 2px 0 0 2px;
1364 .oauth_clients .buttons .oauth-delete {
1365 border-radius: 0 2px 2px 0;
1368 /* Rules for the oauth authorization page */
1370 .oauth-authorize ul {
1374 /* Rules for messages pages */
1377 input[type="submit"] {
1382 background: $offwhite;
1386 background: #CBEEA7;
1394 .inbox-row .inbox-mark-read {
1399 margin-bottom: $lineheight;
1400 padding: $lineheight/4 0px 4px 0px;
1401 border-bottom: 1px solid $grey;
1408 .info-line .user_thumbnail_tiny {
1409 vertical-align: middle;
1413 white-space: nowrap;
1422 .inbox-row-unread .inbox-mark-unread {
1426 /* Rules for "flash" notice boxes shown at the top of the content area */
1429 padding: $lineheight;
1432 background-color: #ff7070;
1436 background-color: #ffe0cc;
1440 background-color: #CBEEA7;
1444 display: inline-block;
1445 margin-left: $lineheight / 2;
1446 vertical-align: middle;
1449 margin-top: $lineheight * 0.5;
1450 margin-bottom: $lineheight * 0.5;
1463 /* Rules for highlighting fields with rails validation errors */
1466 display: inline-block;
1472 background-color: #ff7070;
1475 /* Rules for rails validation error boxes */
1479 border: 2px solid #ff7070;
1480 padding: 0 $lineheight/2;
1481 margin-bottom: $lineheight;
1482 background-color: #f0f0f0;
1485 margin: 0 -10px 10px -10px;
1486 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1489 background-color: #c00;
1497 padding: $lineheight/4;
1502 background-color: $lightgrey;
1504 .describe_location {
1513 background-color: $lightgrey;
1519 vertical-align: middle;
1523 a.reverse_directions {
1528 /* Rules for user images */
1533 border: 1px solid $grey;
1534 margin-bottom: $lineheight;
1536 margin-right: $lineheight;
1539 img.user_thumbnail {
1542 border: 1px solid $grey;
1543 margin-right: $lineheight;
1546 img.user_thumbnail_tiny {
1551 border: 1px solid $grey;
1554 /* Rules for geo microformats */
1557 border-bottom: none;
1560 /* General styles for action lists / subnavs / pager navs */
1562 ul.secondary-actions {
1568 display: inline-block;
1575 border-left: 1px solid $grey;
1576 padding-left: $lineheight/2;
1577 margin-right: $lineheight/2;
1588 div.secondary-actions {
1593 /* Utility for managing inner content areas */
1595 .inner22 { padding: $lineheight;}
1597 .inner12 { padding: $lineheight/2 $lineheight;}
1599 .inner11 { padding: $lineheight/2;}
1601 .inner20 { padding: $lineheight 0;}
1603 .inner02 { padding: 0 $lineheight;}
1607 input[type="submit"],
1608 input[type="button"],
1609 input[type="reset"],
1612 box-sizing: border-box;
1618 border-right:1px solid white;
1619 text-overflow: ellipsis;
1620 white-space: nowrap;
1624 .button:first-child,
1625 .button_to:first-child {
1626 border-radius:2px 0 0 2px;
1630 .button_to:last-child {
1631 border-radius:0 2px 2px 0;
1632 border-right-width: 0;
1636 .button_to:only-child,
1637 *[value="Hide"] + input:last-child,
1638 *[value="Hide"] + .button:last-child,
1639 *[value="Hide"] + .button_to:last-child {
1641 border-right-width: 0;
1643 /* if a 3-button set has a hidden middle button */
1644 *[value="Hide"] + input:nth-child(3),
1645 *[value="Hide"] + .button:nth-child(3),
1646 *[value="Hide"] + .button_to:nth-child(3) {
1647 border-radius:0 2px 2px 0;
1648 border-right-width: 0;
1650 /* if a 3-button set starts with a hidden button */
1651 *[value="Hide"] + input:nth-child(2):not(:last-child),
1652 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1653 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1654 border-radius:2px 0 0 2px;
1655 border-right-width: 1px;
1659 /* Customise the background colour of striped tables */
1661 .table-striped > tbody > tr:nth-child(2n+1) > td,
1662 .table-striped > tbody > tr:nth-child(2n+1) > th {
1663 background-color: $offwhite;
1666 /* Rules for OpenID logo */
1669 vertical-align: text-bottom;
1673 /* Rules for rich text */
1679 background: $lightgrey;
1685 background: $lightgrey;
1687 white-space: pre-wrap;
1695 padding: $lineheight;
1696 background-color: $offwhite;
1703 border-left: $lineheight solid $offwhite;
1704 padding-left: $lineheight;
1710 .diary_post .richtext {
1711 margin-top: $lineheight;
1714 .comments .richtext {
1719 /* Rules for the user notes list */
1723 background-color: $offwhite;
1727 /* Rules for the iD editor */
1734 /* Rules for the "Welcome" page */
1735 .site-welcome, .site-fixthemap {
1745 background-image: image-url("welcome-sprite.png");
1746 background-size: 500px 250px;
1752 padding-bottom: 20px;
1754 margin-bottom: 10px;
1766 /* no-r2 */ background-position: -50px 0;
1771 vertical-align: middle;
1775 /* no-r2 */ background-position: -100px 0;
1779 /* no-r2 */ background-position: -150px 0;
1783 /* no-r2 */ background-position: -200px 0;
1787 /* no-r2 */ background-position: -250px 0;
1791 /* no-r2 */ background-position: -300px 0;
1795 /* no-r2 */ background-position: -350px 0;
1804 text-decoration: none;
1808 background-color: #333;
1813 .site-about #content {
1814 background-color: $lightgrey;
1815 background-position: 50% 50%;
1816 background-repeat: no-repeat;
1817 background-size: cover;
1818 background-attachment: fixed;
1835 padding: 170px 40px 20px;
1837 background: rgba(0, 0, 0, .8);
1847 color: $vibrant-green;
1851 @include media-breakpoint-up(sm) {
1863 background-position: 0 50%;
1864 background-repeat: no-repeat;
1865 background-image: image-url('about/osm.png');
1866 background-size: cover;
1867 background-color: $vibrant-green;
1877 padding: 20px 20px 20px 40px;
1878 font: 500 20px/24px Helvetica, Arial, sans-serif;
1879 white-space: nowrap;
1881 background: $vibrant-green;
1885 display: inline-block;
1895 vertical-align: middle;
1896 background: 40px 40px image-url('about/sprite.png') no-repeat;
1900 background-position: 0px 0px;
1904 background-position: 0px -40px;
1908 background-position: 0px -80px;
1912 background-position: 0px -120px;
1916 background-position: 0px -160px;
1920 background-position: -45px -160px;
1927 @media only screen and (max-width:960px) {
1928 .header-illustration.new-user-arm {