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 */
90 /* Rules for the header */
93 display: none !important;
95 background: image-url("menu-icon.png") no-repeat;
96 background-size: 30px 30px;
100 margin: 14px 10px 0 0;
105 height: $headerHeight;
110 h1, nav, nav > ul, nav > ul > li {
111 display: inline-block;
116 padding: $lineheight/2;
124 text-decoration: none;
131 vertical-align: middle;
157 .btn-outline-primary {
158 @include button-outline-variant($green, $white);
162 .btn-outline-primary {
167 border-top-color: $grey;
171 background-color: lighten($green, 30%);
176 // Small tweaks to the toggle to stop the primary colour showing through
177 // when the menu is shown
178 .show > .btn-outline-primary.dropdown-toggle {
179 background-color: $green;
180 border-color: $green;
183 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
198 color: darken($darkgrey, 25%);
202 .btn-outline-secondary {
203 @include button-outline-variant($darkgrey);
208 .btn-outline-secondary {
209 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
215 background-color: white;
219 &.show .btn-outline-secondary {
220 background-color: white;
227 img.user_thumbnail_tiny {
233 display: inline-block;
235 margin: 3px 0 3px 3px;
236 background-color: lighten($grey, 10%);
248 nav.primary, nav.secondary {
251 background-color: $green;
257 #compact-secondary-nav {
262 #compact-secondary-nav {
263 display: inline-block;
270 /* Utility for styling notification numbers */
273 padding: 2px $lineheight/4;
275 background: lighten($green, 30%);
281 /* Rules for the message shown in place of the map when javascript is disabled */
289 /* Rules for Leaflet maps */
291 .leaflet-control .control-button {
295 background-color: #333;
296 background-color: rgba(0,0,0,.6);
297 border-radius: 4px 0 0 4px;
302 background-color: black;
307 background-color: #333;
308 background-color: rgba(0,0,0,.5);
313 background-color: $vibrant-green;
321 .leaflet-control .zoomin,
322 .control-layers .control-button {
324 border-radius: 4px 0 0 0;
327 .leaflet-control .zoomout,
328 .control-key .control-button {
333 .control-locate .control-button,
334 .control-share .control-button {
335 border-radius: 0 0 0 4px;
338 /* Rules for the sidebar and main map area */
358 width: $sidebarWidth;
381 margin-top: $lineheight;
382 margin-bottom: $lineheight/2;
395 pointer-events: none;
420 .overlay-sidebar #sidebar {
457 width: $sidebarWidth;
473 .leaflet-marker-draggable {
488 border-bottom: 1px solid $grey;
498 border:1px solid $grey;
503 border: 1px solid $grey;
505 border-top-color: $grey;
529 border: 2px solid #fff;
532 transition: border-color 0.08s ease-in;
539 border-bottom-right-radius: 3px;
543 text-stroke: 2px #fff;
544 background: rgba(255,255,255,.9);
546 input[type="radio"] {
551 &.active { border-color: darken($green, 10%); }
554 &.active { border-color: darken($green, 20%); }
564 li.disabled { color: $darkgrey; }
574 text-decoration: none;
575 background-color: $lightblue;
577 border-right: 1px solid #fff;
581 border-right: 1px solid #fff;
582 border-radius: 4px 0 0 4px;
586 border-radius: 0 4px 4px 0;
590 background-color: $blue;
602 font-family: monospace;
624 top: $lineheight/2 !important;
626 margin-right: 0px !important;
627 margin-top: 0px !important;
631 .leaflet-popup-scrolled {
632 padding-right: $lineheight;
633 border-bottom: 0px !important;
634 border-top: 0px !important;
637 .leaflet-popup-content-wrapper {
638 border-radius: 4px !important;
641 /* Rules for attribution text under the main map shown on printouts */
651 .attribution_license,
652 .attribution_project {
656 .attribution_notice {
660 .donate-attr { color: darken($green, 10%) !important; }
662 /* Rules for the sidebar */
666 padding: $lineheight/2 $lineheight;
667 // background: $offwhite;
668 // 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 */
750 background-image: image-url('routing-sprite.png');
753 background-repeat: no-repeat;
755 @for $i from 0 through 25 {
756 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
759 td.instruction, td.distance {
760 padding-top: $lineheight/5;
761 padding-bottom: $lineheight/5;
762 border-bottom: 1px solid $grey;
773 background: $list-highlight;
776 .routing_marker { width: 15px; cursor: move; }
778 /* Rules for entity history */
783 border-bottom: $keyline;
791 /* Rules for the history sidebar */
793 #sidebar .changesets {
797 &.selected { background: $list-highlight; }
798 /* color is derived from changeset bbox fillColor in history.js */
810 .changeset_more .loader {
816 /* Rules for the browse sidebar */
820 padding-bottom: $spacer;
821 margin-bottom: $spacer;
822 border-bottom: 1px solid $grey;
826 word-wrap: break-word;
830 .browse-section:last-of-type {
837 border: 1px solid $lightgrey;
845 padding: 5px 0 5px 10px;
847 border: 1px solid $grey;
848 border-radius: 4px 4px 0 0;
849 background-color: $offwhite;
855 background-color: #FFF;
856 border: 1px solid $grey;
858 border-radius: 0 0 4px 4px;
863 background-color: $offwhite;
864 border: 1px solid $grey;
867 border-collapse: separate;
872 border-bottom: 1px solid $grey;
875 tr:last-child th, tr:last-child td {
883 word-wrap: break-word;
884 white-space: pre-wrap;
889 background-color: $offwhite;
893 border-left: 1px solid $grey;
894 background-color: #fff;
897 .colour-preview-box {
902 border: 1px solid rgba(0, 0, 0, .1);
903 // add color via inline css on element: background-color: <tag value>;
907 .note-comments li, .changeset-comments li {
908 margin: $lineheight/2 0;
911 margin: 10px 6px 0 6px;
922 margin: 18px 10px 10px;
926 .subscribe-buttons input {
932 span.action-button:hover {
934 text-decoration: underline;
939 margin: 0 0 10px 10px;
952 background: $list-highlight;
959 /* Bootstrap buttons don't have any vertical margin, so
960 they touch when adjacent buttons wrap onto a new line
961 e.g. wide form buttons on a narrow sidebar */
965 margin-bottom: $spacer * 0.25;
969 /* Rules for export sidebar */
977 .export_area_inputs {
978 margin-bottom: $lineheight/2;
986 background: $lightgrey;
987 border: 1px solid $grey;
990 #maxlat { margin-top: -1px; }
993 /* no-r2 */ margin-left: -1px;
997 /* no-r2 */ margin-right: -1px;
999 #minlat { margin-bottom: -1px; }
1003 margin: $lineheight/4;
1007 padding-left: $lineheight/2;
1010 margin-bottom: 10px;
1015 /* Rules for edit pages */
1031 /* Rules for non-map content pages */
1034 background: $lightgrey;
1041 padding: $lineheight;
1044 /* Overrides for pages that use new layout conventions */
1050 .content-heading .content-inner {
1055 .header-illustration {
1056 background-position: 0 0;
1057 background-repeat: no-repeat;
1065 background-image: image-url("sign-up-illustration.png");
1069 background-image: image-url("confirm-illustration.png");
1073 background-image: image-url("terms-illustration.png");
1081 background-image: image-url("sign-up-illustration-arm.png");
1086 [dir=rtl] .header-illustration {
1087 transform: scaleX(-1);
1090 #content.maximised {
1099 /* Rules for small maps in content areas */
1103 border: 1px solid $grey;
1104 margin-bottom: $lineheight;
1107 @include media-breakpoint-up(md) {
1113 /* Rules for the user profile page */
1117 .userinformation-inner {
1126 .admin-user-info small {
1127 margin-bottom: $lineheight/2;
1129 margin-right: $lineheight;
1133 margin-top: $lineheight;
1137 .activity-details p {
1143 // Silly exception; remove when user page is redesigned.
1147 p#no_home_location {
1148 margin: $lineheight;
1151 margin-top: $lineheight/4;
1156 /* Rules for the user map */
1158 .content_map .leaflet-popup-content {
1159 margin: $lineheight/2;
1163 /* Rules for user popups on maps */
1169 margin-top: 0 0 0 60px;
1172 img.user_thumbnail {
1174 margin: 0 $lineheight/2 0 0;
1178 /* Rules for the user list */
1184 vertical-align: middle;
1193 #user_list_actions {
1195 margin-top: $lineheight/2;
1198 /* Rules for the diary list page */
1202 padding-top: $lineheight;
1203 padding-bottom: $lineheight/2;
1204 border-top: 1px solid $grey;
1207 margin-top: $lineheight/2;
1211 background-color: #fee;
1215 margin-bottom: $lineheight;
1219 margin-bottom: $lineheight/2;
1223 img.user_thumbnail {
1228 /* Rules for the diary entry page */
1233 border: 1px solid $grey;
1235 margin-bottom: $lineheight;
1241 border-top: 1px dashed $grey;
1242 padding-top: $lineheight/2;
1243 padding-bottom: $lineheight/2;
1245 margin-top: $lineheight/2;
1246 padding-top: $lineheight;
1247 border-top: 1px solid $grey;
1250 background-color: #fee;
1253 margin-bottom: $lineheight/2;
1262 .diary_entries-show img.user_thumbnail {
1266 /* Rules for the log in page */
1268 #login_auth_buttons {
1273 padding: $lineheight/4 $lineheight/2;
1277 /* Rules for the account confirmation page */
1281 border: 1px solid $grey;
1282 padding: $lineheight;
1283 margin-bottom: $lineheight;
1288 list-style: inherit;
1292 list-style-type: lower-alpha;
1297 /* Rules for the account settings page */
1299 #accountForm .user_image {
1303 #accountForm #user_image {
1307 #accountForm ul.accountImage-options {
1320 display: inline !important;
1323 /* Rules for the oauth settings page */
1325 .oauth_clients .buttons .oauth-edit {
1326 border-radius: 2px 0 0 2px;
1329 .oauth_clients .buttons .oauth-delete {
1330 border-radius: 0 2px 2px 0;
1333 /* Rules for the oauth authorization page */
1335 .oauth-authorize ul {
1339 /* Rules for messages pages */
1342 input[type="submit"] {
1347 background: $offwhite;
1351 background: #CBEEA7;
1359 .inbox-row .inbox-mark-read {
1364 margin-bottom: $lineheight;
1365 padding: $lineheight/4 0px 4px 0px;
1366 border-bottom: 1px solid $grey;
1373 .info-line .user_thumbnail_tiny {
1374 vertical-align: middle;
1378 white-space: nowrap;
1387 .inbox-row-unread .inbox-mark-unread {
1391 /* Rules for "flash" notice boxes shown at the top of the content area */
1394 padding: $lineheight;
1397 background-color: #ff7070;
1401 background-color: #ffe0cc;
1405 background-color: #CBEEA7;
1409 /* Rules for highlighting fields with rails validation errors */
1412 display: inline-block;
1418 background-color: #ff7070;
1421 /* Rules for rails validation error boxes */
1425 border: 2px solid #ff7070;
1426 padding: 0 $lineheight/2;
1427 margin-bottom: $lineheight;
1428 background-color: #f0f0f0;
1431 margin: 0 -10px 10px -10px;
1432 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1435 background-color: #c00;
1443 padding: $lineheight/4;
1448 background-color: $lightgrey;
1450 .describe_location {
1459 background-color: $lightgrey;
1465 vertical-align: middle;
1469 a.reverse_directions {
1474 /* Rules for user images */
1479 border: 1px solid $grey;
1480 margin-bottom: $lineheight;
1482 margin-right: $lineheight;
1485 img.user_thumbnail {
1488 border: 1px solid $grey;
1489 margin-right: $lineheight;
1492 img.user_thumbnail_tiny {
1497 border: 1px solid $grey;
1500 /* Rules for geo microformats */
1503 border-bottom: none;
1506 /* General styles for action lists / subnavs / pager navs */
1508 ul.secondary-actions {
1514 display: inline-block;
1521 border-left: 1px solid $grey;
1522 padding-left: $lineheight/2;
1523 margin-right: $lineheight/2;
1534 div.secondary-actions {
1541 input[type="submit"],
1542 input[type="button"],
1543 input[type="reset"],
1546 box-sizing: border-box;
1552 border-right:1px solid white;
1553 text-overflow: ellipsis;
1554 white-space: nowrap;
1558 .button:first-child,
1559 .button_to:first-child {
1560 border-radius:2px 0 0 2px;
1564 .button_to:last-child {
1565 border-radius:0 2px 2px 0;
1566 border-right-width: 0;
1570 .button_to:only-child,
1571 *[value="Hide"] + input:last-child,
1572 *[value="Hide"] + .button:last-child,
1573 *[value="Hide"] + .button_to:last-child {
1575 border-right-width: 0;
1577 /* if a 3-button set has a hidden middle button */
1578 *[value="Hide"] + input:nth-child(3),
1579 *[value="Hide"] + .button:nth-child(3),
1580 *[value="Hide"] + .button_to:nth-child(3) {
1581 border-radius:0 2px 2px 0;
1582 border-right-width: 0;
1584 /* if a 3-button set starts with a hidden button */
1585 *[value="Hide"] + input:nth-child(2):not(:last-child),
1586 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1587 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1588 border-radius:2px 0 0 2px;
1589 border-right-width: 1px;
1593 /* Customise the background colour of striped tables */
1595 .table-striped > tbody > tr:nth-child(2n+1) > td,
1596 .table-striped > tbody > tr:nth-child(2n+1) > th {
1597 background-color: $offwhite;
1600 /* Rules for OpenID logo */
1603 vertical-align: text-bottom;
1607 /* Rules for rich text */
1613 background: $lightgrey;
1619 background: $lightgrey;
1621 white-space: pre-wrap;
1629 padding: $lineheight;
1630 background-color: $offwhite;
1637 border-left: $lineheight solid $offwhite;
1638 padding-left: $lineheight;
1644 .comments .richtext {
1648 /* Rules for the user notes list */
1652 background-color: $offwhite;
1656 /* Rules for the iD editor */
1663 /* Rules for the "Welcome" page */
1664 .site-welcome, .site-fixthemap {
1674 background-image: image-url("welcome-sprite.png");
1675 background-size: 500px 250px;
1681 padding-bottom: 20px;
1683 margin-bottom: 10px;
1695 /* no-r2 */ background-position: -50px 0;
1700 vertical-align: middle;
1704 /* no-r2 */ background-position: -100px 0;
1708 /* no-r2 */ background-position: -150px 0;
1712 /* no-r2 */ background-position: -200px 0;
1716 /* no-r2 */ background-position: -250px 0;
1720 /* no-r2 */ background-position: -300px 0;
1724 /* no-r2 */ background-position: -350px 0;
1733 text-decoration: none;
1737 background-color: #333;
1742 .site-about #content {
1743 background-color: $lightgrey;
1744 background-position: 50% 50%;
1745 background-repeat: no-repeat;
1746 background-size: cover;
1747 background-attachment: fixed;
1764 padding: 170px 40px 20px;
1766 background: rgba(0, 0, 0, .8);
1776 color: $vibrant-green;
1780 @include media-breakpoint-up(sm) {
1792 background-position: 0 50%;
1793 background-repeat: no-repeat;
1794 background-image: image-url('about/osm.png');
1795 background-size: cover;
1796 background-color: $vibrant-green;
1806 padding: 20px 20px 20px 40px;
1807 font: 500 20px/24px Helvetica, Arial, sans-serif;
1808 white-space: nowrap;
1810 background: $vibrant-green;
1814 display: inline-block;
1824 vertical-align: middle;
1825 background: 40px 40px image-url('about/sprite.png') no-repeat;
1829 background-position: 0px 0px;
1833 background-position: 0px -40px;
1837 background-position: 0px -80px;
1841 background-position: 0px -120px;
1845 background-position: 0px -160px;
1849 background-position: -45px -160px;
1856 @media only screen and (max-width:960px) {
1857 .header-illustration.new-user-arm {