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;
410 .overlay-sidebar #sidebar {
447 width: $sidebarWidth;
463 .leaflet-marker-draggable {
478 border-bottom: 1px solid $grey;
488 border:1px solid $grey;
493 border: 1px solid $grey;
495 border-top-color: $grey;
519 border: 2px solid #fff;
522 transition: border-color 0.08s ease-in;
529 border-bottom-right-radius: 3px;
533 text-stroke: 2px #fff;
534 background: rgba(255,255,255,.9);
536 input[type="radio"] {
541 &.active { border-color: darken($green, 10%); }
544 &.active { border-color: darken($green, 20%); }
554 li.disabled { color: $darkgrey; }
564 text-decoration: none;
565 background-color: $lightblue;
567 border-right: 1px solid #fff;
571 border-right: 1px solid #fff;
572 border-radius: 4px 0 0 4px;
576 border-radius: 0 4px 4px 0;
580 background-color: $blue;
592 font-family: monospace;
614 top: $lineheight/2 !important;
616 margin-right: 0px !important;
617 margin-top: 0px !important;
621 .leaflet-popup-scrolled {
622 padding-right: $lineheight;
623 border-bottom: 0px !important;
624 border-top: 0px !important;
627 .leaflet-popup-content-wrapper {
628 border-radius: 4px !important;
631 /* Rules for attribution text under the main map shown on printouts */
641 .attribution_license,
642 .attribution_project {
646 .attribution_notice {
650 .donate-attr { color: darken($green, 10%) !important; }
652 /* Rules for the sidebar */
656 padding: $lineheight/2 $lineheight;
657 // background: $offwhite;
658 // border-bottom: 1px solid $grey;
682 margin: $lineheight auto;
693 /* Temporary label size override until we remove site-wide font customisation */
701 /* Rules for the search and direction forms */
703 header .search_forms,
708 /* Rules for the map key which appears in the popout sidebar */
711 .mapkey-table-key img {
718 /* Rules for search sidebar */
720 #sidebar .search_results_entry {
723 &.selected { background: $list-highlight; }
726 .search_more .loader {
732 .search_results_error {
737 /* Rules for routing */
740 background-image: image-url('routing-sprite.png');
743 background-repeat: no-repeat;
745 @for $i from 0 through 25 {
746 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
749 td.instruction, td.distance {
750 padding-top: $lineheight/5;
751 padding-bottom: $lineheight/5;
752 border-bottom: 1px solid $grey;
763 background: $list-highlight;
766 .routing_marker { width: 15px; cursor: move; }
768 /* Rules for entity history */
773 border-bottom: $keyline;
781 /* Rules for the history sidebar */
783 #sidebar .changesets {
787 &.selected { background: $list-highlight; }
788 /* color is derived from changeset bbox fillColor in history.js */
799 .changeset_more .loader {
805 /* Rules for the browse sidebar */
809 padding-bottom: $spacer;
810 margin-bottom: $spacer;
811 border-bottom: 1px solid $grey;
814 word-wrap: break-word;
818 .browse-section:last-of-type {
825 border: 1px solid $lightgrey;
833 padding: 5px 0 5px 10px;
835 border: 1px solid $grey;
836 border-radius: 4px 4px 0 0;
837 background-color: $offwhite;
843 background-color: #FFF;
844 border: 1px solid $grey;
846 border-radius: 0 0 4px 4px;
851 background-color: $offwhite;
852 border: 1px solid $grey;
855 border-collapse: separate;
858 margin-bottom: $spacer;
861 border-bottom: 1px solid $grey;
864 tr:last-child th, tr:last-child td {
872 word-wrap: break-word;
873 white-space: pre-wrap;
878 background-color: $offwhite;
882 border-left: 1px solid $grey;
883 background-color: #fff;
886 .colour-preview-box {
891 border: 1px solid rgba(0, 0, 0, .1);
892 // add color via inline css on element: background-color: <tag value>;
896 .note-comments li, .changeset-comments li {
897 margin: $lineheight/2 0;
900 margin: 10px 6px 0 6px;
915 .subscribe-buttons input {
921 span.action-button:hover {
923 text-decoration: underline;
928 margin: 0 0 10px 10px;
941 background: $list-highlight;
948 /* Bootstrap buttons don't have any vertical margin, so
949 they touch when adjacent buttons wrap onto a new line
950 e.g. wide form buttons on a narrow sidebar */
954 margin-bottom: $spacer * 0.25;
958 /* Rules for export sidebar */
966 .export_area_inputs {
967 margin-bottom: $spacer;
975 background: $lightgrey;
976 border: 1px solid $grey;
979 #maxlat { margin-top: -1px; }
982 /* no-r2 */ margin-left: -1px;
986 /* no-r2 */ margin-right: -1px;
988 #minlat { margin-bottom: -1px; }
992 margin: $lineheight/4;
996 padding-left: $lineheight/2;
1004 /* Rules for edit pages */
1020 /* Rules for non-map content pages */
1023 background: $lightgrey;
1030 padding: $lineheight;
1033 /* Overrides for pages that use new layout conventions */
1035 .header-illustration {
1036 background-position: 0 0;
1037 background-repeat: no-repeat;
1045 background-image: image-url("sign-up-illustration.png");
1049 background-image: image-url("confirm-illustration.png");
1053 background-image: image-url("terms-illustration.png");
1061 background-image: image-url("sign-up-illustration-arm.png");
1064 pointer-events: none;
1068 [dir=rtl] .header-illustration {
1069 transform: scaleX(-1);
1072 #content.maximised {
1081 /* Rules for small maps in content areas */
1085 border: 1px solid $grey;
1086 margin-bottom: $lineheight;
1089 @include media-breakpoint-up(md) {
1095 /* Rules for the user map */
1097 .content_map .leaflet-popup-content {
1098 margin: $lineheight/2;
1102 /* Rules for user popups on maps */
1108 margin-top: 0 0 0 60px;
1111 img.user_thumbnail {
1113 margin: 0 $lineheight/2 0 0;
1117 /* Rules for the user list */
1123 vertical-align: middle;
1127 #user_list_actions {
1129 margin-top: $lineheight/2;
1132 /* Rules for the diary list page */
1136 padding-top: $lineheight;
1137 padding-bottom: $lineheight/2;
1138 border-top: 1px solid $grey;
1141 margin-top: $lineheight/2;
1145 background-color: #fee;
1149 margin-bottom: $lineheight;
1153 margin-bottom: $lineheight/2;
1157 img.user_thumbnail {
1162 /* Rules for the diary entry page */
1167 border: 1px solid $grey;
1169 margin-bottom: $lineheight;
1175 border-top: 1px dashed $grey;
1176 padding-top: $lineheight/2;
1177 padding-bottom: $lineheight/2;
1179 margin-top: $lineheight/2;
1180 padding-top: $lineheight;
1181 border-top: 1px solid $grey;
1184 background-color: #fee;
1187 margin-bottom: $lineheight/2;
1196 .diary_entries-show img.user_thumbnail {
1200 /* Rules for the log in page */
1202 #login_auth_buttons {
1207 padding: $lineheight/4 $lineheight/2;
1211 /* Rules for the account confirmation page */
1215 border: 1px solid $grey;
1216 padding: $lineheight;
1217 margin-bottom: $lineheight;
1222 list-style: inherit;
1226 list-style-type: lower-alpha;
1231 /* Rules for the account settings page */
1233 #accountForm .user_image {
1237 #accountForm #user_image {
1241 #accountForm ul.accountImage-options {
1254 display: inline !important;
1257 /* Rules for the oauth settings page */
1259 .oauth_clients .buttons .oauth-edit {
1260 border-radius: 2px 0 0 2px;
1263 .oauth_clients .buttons .oauth-delete {
1264 border-radius: 0 2px 2px 0;
1267 /* Rules for the oauth authorization page */
1269 .oauth-authorize ul {
1273 /* Rules for messages pages */
1276 input[type="submit"] {
1281 background: $offwhite;
1285 background: #CBEEA7;
1293 .inbox-row .inbox-mark-read {
1298 margin-bottom: $lineheight;
1299 padding: $lineheight/4 0px 4px 0px;
1300 border-bottom: 1px solid $grey;
1307 .info-line .user_thumbnail_tiny {
1308 vertical-align: middle;
1312 white-space: nowrap;
1321 .inbox-row-unread .inbox-mark-unread {
1325 /* Rules for "flash" notice boxes shown at the top of the content area */
1328 padding: $lineheight;
1331 background-color: #ff7070;
1335 background-color: #ffe0cc;
1339 background-color: #CBEEA7;
1343 /* Rules for highlighting fields with rails validation errors */
1346 display: inline-block;
1352 background-color: #ff7070;
1355 /* Rules for rails validation error boxes */
1359 border: 2px solid #ff7070;
1360 padding: 0 $lineheight/2;
1361 margin-bottom: $lineheight;
1362 background-color: #f0f0f0;
1365 margin: 0 -10px 10px -10px;
1366 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1369 background-color: #c00;
1377 padding: $lineheight/4;
1382 background-color: $lightgrey;
1384 .describe_location {
1393 background-color: $lightgrey;
1399 vertical-align: middle;
1403 a.reverse_directions {
1408 /* Rules for user images */
1413 border: 1px solid $grey;
1414 margin-bottom: $lineheight;
1416 margin-right: $lineheight;
1419 img.user_image_no_margins {
1422 border: 1px solid $grey;
1425 img.user_thumbnail {
1428 border: 1px solid $grey;
1429 margin-right: $lineheight;
1432 img.user_thumbnail_no_margins {
1435 border: 1px solid $grey;
1438 img.user_thumbnail_tiny {
1443 border: 1px solid $grey;
1446 /* Rules for geo microformats */
1449 border-bottom: none;
1452 /* General styles for action lists / subnavs / pager navs */
1455 nav.secondary-actions {
1460 flex-direction: row;
1466 display: inline-block;
1472 border-left: 1px solid $grey;
1473 padding-left: $lineheight/2;
1474 margin-right: $lineheight/2;
1475 margin-bottom: $lineheight/8;
1480 div.secondary-actions {
1487 input[type="submit"],
1488 input[type="button"],
1489 input[type="reset"],
1492 box-sizing: border-box;
1498 border-right:1px solid white;
1499 text-overflow: ellipsis;
1500 white-space: nowrap;
1504 .button:first-child,
1505 .button_to:first-child {
1506 border-radius:2px 0 0 2px;
1510 .button_to:last-child {
1511 border-radius:0 2px 2px 0;
1512 border-right-width: 0;
1516 .button_to:only-child,
1517 *[value="Hide"] + input:last-child,
1518 *[value="Hide"] + .button:last-child,
1519 *[value="Hide"] + .button_to:last-child {
1521 border-right-width: 0;
1523 /* if a 3-button set has a hidden middle button */
1524 *[value="Hide"] + input:nth-child(3),
1525 *[value="Hide"] + .button:nth-child(3),
1526 *[value="Hide"] + .button_to:nth-child(3) {
1527 border-radius:0 2px 2px 0;
1528 border-right-width: 0;
1530 /* if a 3-button set starts with a hidden button */
1531 *[value="Hide"] + input:nth-child(2):not(:last-child),
1532 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1533 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1534 border-radius:2px 0 0 2px;
1535 border-right-width: 1px;
1539 /* Create a single-line dl */
1543 display: inline-block;
1550 /* Customise the background colour of striped tables */
1552 .table-striped > tbody > tr:nth-child(2n+1) > td,
1553 .table-striped > tbody > tr:nth-child(2n+1) > th {
1554 background-color: $offwhite;
1557 /* Rules for OpenID logo */
1560 vertical-align: text-bottom;
1564 /* Rules for rich text */
1570 background: $lightgrey;
1576 background: $lightgrey;
1578 white-space: pre-wrap;
1586 padding: $lineheight;
1587 background-color: $offwhite;
1594 border-left: $lineheight solid $offwhite;
1595 padding-left: $lineheight;
1601 .comments .richtext {
1605 /* Rules for the user notes list */
1609 background-color: $offwhite;
1613 /* Rules for the iD editor */
1620 /* Rules for the "Welcome" page */
1621 .site-welcome, .site-fixthemap {
1631 background-image: image-url("welcome-sprite.png");
1632 background-size: 500px 250px;
1638 padding-bottom: 20px;
1640 margin-bottom: 10px;
1652 /* no-r2 */ background-position: -50px 0;
1657 vertical-align: middle;
1661 /* no-r2 */ background-position: -100px 0;
1665 /* no-r2 */ background-position: -150px 0;
1669 /* no-r2 */ background-position: -200px 0;
1673 /* no-r2 */ background-position: -250px 0;
1677 /* no-r2 */ background-position: -300px 0;
1681 /* no-r2 */ background-position: -350px 0;
1690 text-decoration: none;
1694 background-color: #333;
1699 .site-about #content {
1700 background-color: $lightgrey;
1701 background-position: 50% 50%;
1702 background-repeat: no-repeat;
1703 background-size: cover;
1704 background-attachment: fixed;
1715 color: $vibrant-green;
1721 background-position: 0 50%;
1722 background-repeat: no-repeat;
1723 background-image: image-url('about/osm.png');
1724 background-size: cover;
1725 background-color: $vibrant-green;
1729 background: $vibrant-green;
1733 display: inline-block;
1743 vertical-align: middle;
1744 background: 40px 40px image-url('about/sprite.png') no-repeat;
1748 background-position: 0px 0px;
1752 background-position: 0px -40px;
1756 background-position: 0px -80px;
1760 background-position: 0px -120px;
1764 background-position: 0px -160px;
1768 background-position: -45px -160px;
1775 @media only screen and (max-width:960px) {
1776 .header-illustration.new-user-arm {