3 @import "rails_bootstrap_forms";
5 /* Styles common to large and small screens */
7 /* Default rules for the body of every page */
10 font-size: $typeheight;
22 #container { position: relative; }
25 vertical-align: middle;
26 margin-right: $lineheight/4;
29 [dir=rtl] { /* no-r2 */ text-align: right; }
31 [dir=ltr] { /* no-r2 */ text-align: left; }
36 display: inline-block;
40 background: transparent image-url("sprite.png") no-repeat 0 0;
41 background-image: image-url("sprite.svg");
46 .icon.search { /* no-r2 */ background-position: 0 0; }
47 .icon.donate { /* no-r2 */ background-position: -20px 0; }
48 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
49 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
50 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
51 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
52 .icon.layers { /* no-r2 */ background-position: -100px 0; }
53 .icon.key { /* no-r2 */ background-position: -120px 0; }
54 .icon.share { /* no-r2 */ background-position: -140px 0; }
55 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
56 .icon.link { /* no-r2 */ background-position: -180px 0; }
57 .icon.close { /* no-r2 */ background-position: -200px 0; }
58 .close-wrap:hover .icon.close,
59 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
60 .icon.check { /* no-r2 */ background-position: -220px 0; }
61 .icon.note { /* no-r2 */ background-position: -240px 0; }
62 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
63 .icon.query { /* no-r2 */ background-position: -260px 0; }
69 text-decoration: none;
72 text-decoration: underline;
76 /* Utility for de-emphasizing content */
82 /* Rules for the header */
85 display: none !important;
87 background: image-url("menu-icon.png") no-repeat;
88 background-size: 30px 30px;
92 margin: 14px 10px 0 0;
97 height: $headerHeight;
102 h1, nav, nav > ul, nav > ul > li {
103 display: inline-block;
108 padding: $lineheight/2;
116 text-decoration: none;
123 vertical-align: middle;
149 .btn-outline-primary {
150 @include button-outline-variant($green, $white);
154 .btn-outline-primary {
159 border-top-color: $grey;
163 background-color: lighten($green, 30%);
168 // Small tweaks to the toggle to stop the primary colour showing through
169 // when the menu is shown
170 .show > .btn-outline-primary.dropdown-toggle {
171 background-color: $green;
172 border-color: $green;
175 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
190 color: darken($darkgrey, 25%);
194 .btn-outline-secondary {
195 @include button-outline-variant($darkgrey);
200 .btn-outline-secondary {
201 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
207 background-color: white;
211 &.show .btn-outline-secondary {
212 background-color: white;
219 img.user_thumbnail_tiny {
225 display: inline-block;
227 margin: 3px 0 3px 3px;
228 background-color: lighten($grey, 10%);
240 nav.primary, nav.secondary {
243 background-color: $green;
249 #compact-secondary-nav {
254 #compact-secondary-nav {
255 display: inline-block;
262 /* Utility for styling notification numbers */
265 padding: 2px $lineheight/4;
267 background: lighten($green, 30%);
273 /* Rules for the message shown in place of the map when javascript is disabled */
281 /* Rules for Leaflet maps */
283 .leaflet-control .control-button {
287 background-color: #333;
288 background-color: rgba(0,0,0,.6);
289 border-radius: 4px 0 0 4px;
294 background-color: black;
299 background-color: #333;
300 background-color: rgba(0,0,0,.5);
305 background-color: $vibrant-green;
313 .leaflet-control .zoomin,
314 .control-layers .control-button {
316 border-radius: 4px 0 0 0;
319 .leaflet-control .zoomout,
320 .control-key .control-button {
325 .control-locate .control-button,
326 .control-share .control-button {
327 border-radius: 0 0 0 4px;
330 /* Rules for the sidebar and main map area */
350 width: $sidebarWidth;
385 pointer-events: none;
393 .overlay-sidebar #sidebar {
430 width: $sidebarWidth;
446 .leaflet-marker-draggable {
461 border-bottom: 1px solid $grey;
471 border:1px solid $grey;
476 border: 1px solid $grey;
478 border-top-color: $grey;
502 border: 2px solid #fff;
505 transition: border-color 0.08s ease-in;
512 border-bottom-right-radius: 3px;
516 text-stroke: 2px #fff;
517 background: rgba(255,255,255,.9);
519 input[type="radio"] {
524 &.active { border-color: darken($green, 10%); }
527 &.active { border-color: darken($green, 20%); }
537 li.disabled { color: $darkgrey; }
547 text-decoration: none;
548 background-color: $lightblue;
550 border-right: 1px solid #fff;
554 border-right: 1px solid #fff;
555 border-radius: 4px 0 0 4px;
559 border-radius: 0 4px 4px 0;
563 background-color: $blue;
575 font-family: monospace;
597 top: $lineheight/2 !important;
599 margin-right: 0px !important;
600 margin-top: 0px !important;
604 .leaflet-popup-scrolled {
605 padding-right: $lineheight;
606 border-bottom: 0px !important;
607 border-top: 0px !important;
610 .leaflet-popup-content-wrapper {
611 border-radius: 4px !important;
614 /* Rules for attribution text under the main map shown on printouts */
624 .attribution_license,
625 .attribution_project {
629 .attribution_notice {
633 .donate-attr { color: darken($green, 10%) !important; }
635 /* Rules for the sidebar */
639 padding: $lineheight/2 $lineheight;
640 // background: $offwhite;
641 // border-bottom: 1px solid $grey;
665 margin: $lineheight auto;
676 /* Temporary label size override until we remove site-wide font customisation */
684 /* Rules for the search and direction forms */
686 header .search_forms,
691 /* Rules for the map key which appears in the popout sidebar */
694 .mapkey-table-key img {
701 /* Rules for search sidebar */
703 #sidebar .search_results_entry {
706 &.selected { background: $list-highlight; }
709 .search_more .loader {
715 .search_results_error {
720 /* Rules for routing */
723 background-image: image-url('routing-sprite.png');
726 background-repeat: no-repeat;
728 @for $i from 0 through 25 {
729 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
732 td.instruction, td.distance {
733 padding-top: $lineheight/5;
734 padding-bottom: $lineheight/5;
735 border-bottom: 1px solid $grey;
746 background: $list-highlight;
749 .routing_marker { width: 15px; cursor: move; }
751 /* Rules for entity history */
756 border-bottom: $keyline;
764 /* Rules for the history sidebar */
766 #sidebar .changesets {
770 &.selected { background: $list-highlight; }
771 /* color is derived from changeset bbox fillColor in history.js */
782 .changeset_more .loader {
788 /* Rules for the browse sidebar */
792 padding-bottom: $spacer;
793 margin-bottom: $spacer;
794 border-bottom: 1px solid $grey;
797 word-wrap: break-word;
801 .browse-section:last-of-type {
806 border: 1px solid $lightgrey;
814 padding: 5px 0 5px 10px;
816 border: 1px solid $grey;
817 border-radius: 4px 4px 0 0;
818 background-color: $offwhite;
824 background-color: #FFF;
825 border: 1px solid $grey;
827 border-radius: 0 0 4px 4px;
832 background-color: $offwhite;
833 border: 1px solid $grey;
836 border-collapse: separate;
839 margin-bottom: $spacer;
842 border-bottom: 1px solid $grey;
845 tr:last-child th, tr:last-child td {
853 word-wrap: break-word;
854 white-space: pre-wrap;
859 background-color: $offwhite;
863 border-left: 1px solid $grey;
864 background-color: #fff;
867 .colour-preview-box {
872 border: 1px solid rgba(0, 0, 0, .1);
873 // add color via inline css on element: background-color: <tag value>;
877 .note-comments li, .changeset-comments li {
878 margin: $lineheight/2 0;
881 margin: 10px 6px 0 6px;
896 .subscribe-buttons input {
902 span.action-button:hover {
904 text-decoration: underline;
909 margin: 0 0 10px 10px;
922 background: $list-highlight;
929 /* Bootstrap buttons don't have any vertical margin, so
930 they touch when adjacent buttons wrap onto a new line
931 e.g. wide form buttons on a narrow sidebar */
935 margin-bottom: $spacer * 0.25;
939 /* Rules for export sidebar */
947 .export_area_inputs {
948 margin-bottom: $spacer;
956 background: $lightgrey;
957 border: 1px solid $grey;
960 #maxlat { margin-top: -1px; }
963 /* no-r2 */ margin-left: -1px;
967 /* no-r2 */ margin-right: -1px;
969 #minlat { margin-bottom: -1px; }
973 margin: $lineheight/4;
977 padding-left: $lineheight/2;
985 /* Rules for edit pages */
1001 /* Rules for non-map content pages */
1004 background: $lightgrey;
1011 padding: $lineheight;
1014 /* Overrides for pages that use new layout conventions */
1016 .header-illustration {
1017 background-position: 0 0;
1018 background-repeat: no-repeat;
1026 background-image: image-url("sign-up-illustration.png");
1030 background-image: image-url("confirm-illustration.png");
1034 background-image: image-url("terms-illustration.png");
1042 background-image: image-url("sign-up-illustration-arm.png");
1045 pointer-events: none;
1049 [dir=rtl] .header-illustration {
1050 transform: scaleX(-1);
1053 #content.maximised {
1062 /* Rules for small maps in content areas */
1066 border: 1px solid $grey;
1067 margin-bottom: $lineheight;
1070 @include media-breakpoint-up(md) {
1076 /* Rules for the user map */
1078 .content_map .leaflet-popup-content {
1079 margin: $lineheight/2;
1083 /* Rules for user popups on maps */
1089 margin-top: 0 0 0 60px;
1094 /* Rules for the user list */
1100 /* Rules for the diary list page */
1104 padding-top: $lineheight;
1105 padding-bottom: $lineheight/2;
1106 border-top: 1px solid $grey;
1109 margin-top: $lineheight/2;
1113 background-color: #fee;
1117 margin-bottom: $lineheight;
1121 margin-bottom: $lineheight/2;
1125 img.user_thumbnail {
1130 /* Rules for the diary entry page */
1135 border: 1px solid $grey;
1137 margin-bottom: $lineheight;
1143 border-top: 1px dashed $grey;
1144 padding-top: $lineheight/2;
1145 padding-bottom: $lineheight/2;
1147 margin-top: $lineheight/2;
1148 padding-top: $lineheight;
1149 border-top: 1px solid $grey;
1152 background-color: #fee;
1155 margin-bottom: $lineheight/2;
1164 .diary_entries-show img.user_thumbnail {
1168 /* Rules for the log in page */
1170 #login_auth_buttons {
1175 padding: $lineheight/4 $lineheight/2;
1179 /* Rules for the account confirmation page */
1183 border: 1px solid $grey;
1184 padding: $lineheight;
1185 margin-bottom: $lineheight;
1190 list-style: inherit;
1194 list-style-type: lower-alpha;
1199 /* Rules for the account settings page */
1201 #accountForm .user_image {
1205 #accountForm #user_image {
1209 #accountForm ul.accountImage-options {
1222 display: inline !important;
1225 /* Rules for the oauth settings page */
1227 .oauth_clients .buttons .oauth-edit {
1228 border-radius: 2px 0 0 2px;
1231 .oauth_clients .buttons .oauth-delete {
1232 border-radius: 0 2px 2px 0;
1235 /* Rules for the oauth authorization page */
1237 .oauth-authorize ul {
1241 /* Rules for messages pages */
1244 input[type="submit"] {
1249 background: $offwhite;
1253 background: #CBEEA7;
1261 .inbox-row .inbox-mark-read {
1266 margin-bottom: $lineheight;
1267 padding: $lineheight/4 0px 4px 0px;
1268 border-bottom: 1px solid $grey;
1275 .info-line .user_thumbnail_tiny {
1276 vertical-align: middle;
1280 white-space: nowrap;
1289 .inbox-row-unread .inbox-mark-unread {
1293 /* Rules for "flash" notice boxes shown at the top of the content area */
1296 padding: $lineheight;
1299 background-color: #ff7070;
1303 background-color: #ffe0cc;
1307 background-color: #CBEEA7;
1311 /* Rules for highlighting fields with rails validation errors */
1314 display: inline-block;
1320 background-color: #ff7070;
1323 /* Rules for rails validation error boxes */
1327 border: 2px solid #ff7070;
1328 padding: 0 $lineheight/2;
1329 margin-bottom: $lineheight;
1330 background-color: #f0f0f0;
1333 margin: 0 -10px 10px -10px;
1334 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1337 background-color: #c00;
1345 padding: $lineheight/4;
1350 background-color: $lightgrey;
1352 .describe_location {
1361 background-color: $lightgrey;
1367 vertical-align: middle;
1371 a.reverse_directions {
1376 /* Rules for user images */
1381 border: 1px solid $grey;
1384 img.user_thumbnail {
1387 border: 1px solid $grey;
1390 img.user_thumbnail_tiny {
1395 border: 1px solid $grey;
1398 /* Rules for geo microformats */
1401 border-bottom: none;
1404 /* General styles for action lists / subnavs / pager navs */
1407 nav.secondary-actions {
1412 flex-direction: row;
1418 display: inline-block;
1424 border-left: 1px solid $grey;
1425 padding-left: $lineheight/2;
1426 margin-right: $lineheight/2;
1427 margin-bottom: $lineheight/8;
1432 div.secondary-actions {
1439 input[type="submit"],
1440 input[type="button"],
1441 input[type="reset"],
1444 box-sizing: border-box;
1450 border-right:1px solid white;
1451 text-overflow: ellipsis;
1452 white-space: nowrap;
1456 .button:first-child,
1457 .button_to:first-child {
1458 border-radius:2px 0 0 2px;
1462 .button_to:last-child {
1463 border-radius:0 2px 2px 0;
1464 border-right-width: 0;
1468 .button_to:only-child,
1469 *[value="Hide"] + input:last-child,
1470 *[value="Hide"] + .button:last-child,
1471 *[value="Hide"] + .button_to:last-child {
1473 border-right-width: 0;
1475 /* if a 3-button set has a hidden middle button */
1476 *[value="Hide"] + input:nth-child(3),
1477 *[value="Hide"] + .button:nth-child(3),
1478 *[value="Hide"] + .button_to:nth-child(3) {
1479 border-radius:0 2px 2px 0;
1480 border-right-width: 0;
1482 /* if a 3-button set starts with a hidden button */
1483 *[value="Hide"] + input:nth-child(2):not(:last-child),
1484 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1485 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1486 border-radius:2px 0 0 2px;
1487 border-right-width: 1px;
1491 /* Create a single-line dl */
1495 display: inline-block;
1502 /* Customise the background colour of striped tables */
1504 .table-striped > tbody > tr:nth-child(2n+1) > td,
1505 .table-striped > tbody > tr:nth-child(2n+1) > th {
1506 background-color: $offwhite;
1509 /* Rules for OpenID logo */
1512 vertical-align: text-bottom;
1516 /* Rules for rich text */
1522 background: $lightgrey;
1528 background: $lightgrey;
1530 white-space: pre-wrap;
1538 padding: $lineheight;
1539 background-color: $offwhite;
1546 border-left: $lineheight solid $offwhite;
1547 padding-left: $lineheight;
1553 /* Rules for the user notes list */
1557 background-color: $offwhite;
1561 /* Rules for the iD editor */
1568 /* Rules for the "Welcome" page */
1569 .site-welcome, .site-fixthemap {
1579 background-image: image-url("welcome-sprite.png");
1580 background-size: 500px 250px;
1586 padding-bottom: 20px;
1588 margin-bottom: 10px;
1600 /* no-r2 */ background-position: -50px 0;
1605 vertical-align: middle;
1609 /* no-r2 */ background-position: -100px 0;
1613 /* no-r2 */ background-position: -150px 0;
1617 /* no-r2 */ background-position: -200px 0;
1621 /* no-r2 */ background-position: -250px 0;
1625 /* no-r2 */ background-position: -300px 0;
1629 /* no-r2 */ background-position: -350px 0;
1638 text-decoration: none;
1642 background-color: #333;
1647 .site-about #content {
1648 background-color: $lightgrey;
1649 background-position: 50% 50%;
1650 background-repeat: no-repeat;
1651 background-size: cover;
1652 background-attachment: fixed;
1663 color: $vibrant-green;
1669 background-position: 0 50%;
1670 background-repeat: no-repeat;
1671 background-image: image-url('about/osm.png');
1672 background-size: cover;
1673 background-color: $vibrant-green;
1677 background: $vibrant-green;
1681 display: inline-block;
1691 vertical-align: middle;
1692 background: 40px 40px image-url('about/sprite.png') no-repeat;
1696 background-position: 0px 0px;
1700 background-position: 0px -40px;
1704 background-position: 0px -80px;
1708 background-position: 0px -120px;
1712 background-position: 0px -160px;
1716 background-position: -45px -160px;
1723 @media only screen and (max-width:960px) {
1724 .header-illustration.new-user-arm {