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 {
808 border: 1px solid $lightgrey;
816 padding: 5px 0 5px 10px;
818 border: 1px solid $grey;
819 border-radius: 4px 4px 0 0;
820 background-color: $offwhite;
826 background-color: #FFF;
827 border: 1px solid $grey;
829 border-radius: 0 0 4px 4px;
834 background-color: $offwhite;
835 border: 1px solid $grey;
838 border-collapse: separate;
841 margin-bottom: $spacer;
844 border-bottom: 1px solid $grey;
847 tr:last-child th, tr:last-child td {
855 word-wrap: break-word;
856 white-space: pre-wrap;
861 background-color: $offwhite;
865 border-left: 1px solid $grey;
866 background-color: #fff;
869 .colour-preview-box {
874 border: 1px solid rgba(0, 0, 0, .1);
875 // add color via inline css on element: background-color: <tag value>;
879 .note-comments li, .changeset-comments li {
880 margin: $lineheight/2 0;
883 margin: 10px 6px 0 6px;
898 .subscribe-buttons input {
904 span.action-button:hover {
906 text-decoration: underline;
911 margin: 0 0 10px 10px;
924 background: $list-highlight;
931 /* Bootstrap buttons don't have any vertical margin, so
932 they touch when adjacent buttons wrap onto a new line
933 e.g. wide form buttons on a narrow sidebar */
937 margin-bottom: $spacer * 0.25;
941 /* Rules for export sidebar */
949 .export_area_inputs {
950 margin-bottom: $spacer;
958 background: $lightgrey;
959 border: 1px solid $grey;
962 #maxlat { margin-top: -1px; }
965 /* no-r2 */ margin-left: -1px;
969 /* no-r2 */ margin-right: -1px;
971 #minlat { margin-bottom: -1px; }
975 margin: $lineheight/4;
979 padding-left: $lineheight/2;
987 /* Rules for edit pages */
1003 /* Rules for non-map content pages */
1006 background: $lightgrey;
1013 padding: $lineheight;
1016 /* Overrides for pages that use new layout conventions */
1018 .header-illustration {
1019 background-position: 0 0;
1020 background-repeat: no-repeat;
1028 background-image: image-url("sign-up-illustration.png");
1032 background-image: image-url("confirm-illustration.png");
1036 background-image: image-url("terms-illustration.png");
1044 background-image: image-url("sign-up-illustration-arm.png");
1047 pointer-events: none;
1051 [dir=rtl] .header-illustration {
1052 transform: scaleX(-1);
1055 #content.maximised {
1064 /* Rules for small maps in content areas */
1068 border: 1px solid $grey;
1069 margin-bottom: $lineheight;
1072 @include media-breakpoint-up(md) {
1078 /* Rules for the user map */
1080 .content_map .leaflet-popup-content {
1081 margin: $lineheight/2;
1085 /* Rules for user popups on maps */
1091 margin-top: 0 0 0 60px;
1096 /* Rules for the user list */
1102 /* Rules for the diary list page */
1106 padding-top: $lineheight;
1107 padding-bottom: $lineheight/2;
1108 border-top: 1px solid $grey;
1111 margin-top: $lineheight/2;
1115 background-color: #fee;
1119 margin-bottom: $lineheight;
1123 margin-bottom: $lineheight/2;
1127 img.user_thumbnail {
1132 /* Rules for the diary entry page */
1137 border: 1px solid $grey;
1139 margin-bottom: $lineheight;
1145 border-top: 1px dashed $grey;
1146 padding-top: $lineheight/2;
1147 padding-bottom: $lineheight/2;
1149 margin-top: $lineheight/2;
1150 padding-top: $lineheight;
1151 border-top: 1px solid $grey;
1154 background-color: #fee;
1157 margin-bottom: $lineheight/2;
1166 .diary_entries-show img.user_thumbnail {
1170 /* Rules for the log in page */
1172 #login_auth_buttons {
1177 padding: $lineheight/4 $lineheight/2;
1181 /* Rules for the account confirmation page */
1185 border: 1px solid $grey;
1186 padding: $lineheight;
1187 margin-bottom: $lineheight;
1192 list-style: inherit;
1196 list-style-type: lower-alpha;
1201 /* Rules for the account settings page */
1203 #accountForm .user_image {
1207 #accountForm #user_image {
1211 #accountForm ul.accountImage-options {
1224 display: inline !important;
1227 /* Rules for the oauth settings page */
1229 .oauth_clients .buttons .oauth-edit {
1230 border-radius: 2px 0 0 2px;
1233 .oauth_clients .buttons .oauth-delete {
1234 border-radius: 0 2px 2px 0;
1237 /* Rules for the oauth authorization page */
1239 .oauth-authorize ul {
1243 /* Rules for messages pages */
1246 input[type="submit"] {
1251 background: $offwhite;
1255 background: #CBEEA7;
1263 .inbox-row .inbox-mark-read {
1268 margin-bottom: $lineheight;
1269 padding: $lineheight/4 0px 4px 0px;
1270 border-bottom: 1px solid $grey;
1277 .info-line .user_thumbnail_tiny {
1278 vertical-align: middle;
1282 white-space: nowrap;
1291 .inbox-row-unread .inbox-mark-unread {
1295 /* Rules for "flash" notice boxes shown at the top of the content area */
1298 padding: $lineheight;
1301 background-color: #ff7070;
1305 background-color: #ffe0cc;
1309 background-color: #CBEEA7;
1313 /* Rules for highlighting fields with rails validation errors */
1316 display: inline-block;
1322 background-color: #ff7070;
1325 /* Rules for rails validation error boxes */
1329 border: 2px solid #ff7070;
1330 padding: 0 $lineheight/2;
1331 margin-bottom: $lineheight;
1332 background-color: #f0f0f0;
1335 margin: 0 -10px 10px -10px;
1336 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1339 background-color: #c00;
1347 padding: $lineheight/4;
1352 background-color: $lightgrey;
1354 .describe_location {
1363 background-color: $lightgrey;
1369 vertical-align: middle;
1373 a.reverse_directions {
1378 /* Rules for user images */
1383 border: 1px solid $grey;
1386 img.user_thumbnail {
1389 border: 1px solid $grey;
1392 img.user_thumbnail_tiny {
1397 border: 1px solid $grey;
1400 /* Rules for geo microformats */
1403 border-bottom: none;
1406 /* General styles for action lists / subnavs / pager navs */
1409 nav.secondary-actions {
1414 flex-direction: row;
1420 display: inline-block;
1426 border-left: 1px solid $grey;
1427 padding-left: $lineheight/2;
1428 margin-right: $lineheight/2;
1429 margin-bottom: $lineheight/8;
1434 div.secondary-actions {
1441 input[type="submit"],
1442 input[type="button"],
1443 input[type="reset"],
1446 box-sizing: border-box;
1452 border-right:1px solid white;
1453 text-overflow: ellipsis;
1454 white-space: nowrap;
1458 .button:first-child,
1459 .button_to:first-child {
1460 border-radius:2px 0 0 2px;
1464 .button_to:last-child {
1465 border-radius:0 2px 2px 0;
1466 border-right-width: 0;
1470 .button_to:only-child,
1471 *[value="Hide"] + input:last-child,
1472 *[value="Hide"] + .button:last-child,
1473 *[value="Hide"] + .button_to:last-child {
1475 border-right-width: 0;
1477 /* if a 3-button set has a hidden middle button */
1478 *[value="Hide"] + input:nth-child(3),
1479 *[value="Hide"] + .button:nth-child(3),
1480 *[value="Hide"] + .button_to:nth-child(3) {
1481 border-radius:0 2px 2px 0;
1482 border-right-width: 0;
1484 /* if a 3-button set starts with a hidden button */
1485 *[value="Hide"] + input:nth-child(2):not(:last-child),
1486 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1487 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1488 border-radius:2px 0 0 2px;
1489 border-right-width: 1px;
1493 /* Create a single-line dl */
1497 display: inline-block;
1504 /* Customise the background colour of striped tables */
1506 .table-striped > tbody > tr:nth-child(2n+1) > td,
1507 .table-striped > tbody > tr:nth-child(2n+1) > th {
1508 background-color: $offwhite;
1511 /* Rules for OpenID logo */
1514 vertical-align: text-bottom;
1518 /* Rules for rich text */
1524 background: $lightgrey;
1530 background: $lightgrey;
1532 white-space: pre-wrap;
1540 padding: $lineheight;
1541 background-color: $offwhite;
1548 border-left: $lineheight solid $offwhite;
1549 padding-left: $lineheight;
1555 /* Rules for the user notes list */
1559 background-color: $offwhite;
1563 /* Rules for the iD editor */
1570 /* Rules for the "Welcome" page */
1571 .site-welcome, .site-fixthemap {
1581 background-image: image-url("welcome-sprite.png");
1582 background-size: 500px 250px;
1588 padding-bottom: 20px;
1590 margin-bottom: 10px;
1602 /* no-r2 */ background-position: -50px 0;
1607 vertical-align: middle;
1611 /* no-r2 */ background-position: -100px 0;
1615 /* no-r2 */ background-position: -150px 0;
1619 /* no-r2 */ background-position: -200px 0;
1623 /* no-r2 */ background-position: -250px 0;
1627 /* no-r2 */ background-position: -300px 0;
1631 /* no-r2 */ background-position: -350px 0;
1640 text-decoration: none;
1644 background-color: #333;
1649 .site-about #content {
1650 background-color: $lightgrey;
1651 background-position: 50% 50%;
1652 background-repeat: no-repeat;
1653 background-size: cover;
1654 background-attachment: fixed;
1665 color: $vibrant-green;
1671 background-position: 0 50%;
1672 background-repeat: no-repeat;
1673 background-image: image-url('about/osm.png');
1674 background-size: cover;
1675 background-color: $vibrant-green;
1679 background: $vibrant-green;
1683 display: inline-block;
1693 vertical-align: middle;
1694 background: 40px 40px image-url('about/sprite.png') no-repeat;
1698 background-position: 0px 0px;
1702 background-position: 0px -40px;
1706 background-position: 0px -80px;
1710 background-position: 0px -120px;
1714 background-position: 0px -160px;
1718 background-position: -45px -160px;
1725 @media only screen and (max-width:960px) {
1726 .header-illustration.new-user-arm {