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 borders */
83 /* These add additional colours to those provided by bootstrap */
85 border-color: $grey !important;
89 border-color: $lightgrey !important;
92 /* Rules for the header */
95 display: none !important;
97 background: image-url("menu-icon.png") no-repeat;
98 background-size: 30px 30px;
102 margin: 14px 10px 0 0;
107 height: $headerHeight;
112 h1, nav, nav > ul, nav > ul > li {
113 display: inline-block;
118 padding: $lineheight/2;
126 text-decoration: none;
133 vertical-align: middle;
159 .btn-outline-primary {
160 @include button-outline-variant($green, $white);
164 .btn-outline-primary {
169 border-top-color: $grey;
173 background-color: lighten($green, 30%);
178 // Small tweaks to the toggle to stop the primary colour showing through
179 // when the menu is shown
180 .show > .btn-outline-primary.dropdown-toggle {
181 background-color: $green;
182 border-color: $green;
185 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
200 color: darken($darkgrey, 25%);
204 .btn-outline-secondary {
205 @include button-outline-variant($darkgrey);
210 .btn-outline-secondary {
211 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
217 background-color: white;
221 &.show .btn-outline-secondary {
222 background-color: white;
229 img.user_thumbnail_tiny {
235 display: inline-block;
237 margin: 3px 0 3px 3px;
238 background-color: lighten($grey, 10%);
250 nav.primary, nav.secondary {
253 background-color: $green;
259 #compact-secondary-nav {
264 #compact-secondary-nav {
265 display: inline-block;
272 /* Utility for styling notification numbers */
275 padding: 2px $lineheight/4;
277 background: lighten($green, 30%);
283 /* Rules for the message shown in place of the map when javascript is disabled */
291 /* Rules for Leaflet maps */
293 .leaflet-control .control-button {
297 background-color: #333;
298 background-color: rgba(0,0,0,.6);
299 border-radius: 4px 0 0 4px;
304 background-color: black;
309 background-color: #333;
310 background-color: rgba(0,0,0,.5);
315 background-color: $vibrant-green;
323 .leaflet-control .zoomin,
324 .control-layers .control-button {
326 border-radius: 4px 0 0 0;
329 .leaflet-control .zoomout,
330 .control-key .control-button {
335 .control-locate .control-button,
336 .control-share .control-button {
337 border-radius: 0 0 0 4px;
340 /* Rules for the sidebar and main map area */
360 width: $sidebarWidth;
395 pointer-events: none;
403 .overlay-sidebar #sidebar {
440 width: $sidebarWidth;
456 .leaflet-marker-draggable {
471 border-bottom: 1px solid $grey;
481 border:1px solid $grey;
486 border: 1px solid $grey;
488 border-top-color: $grey;
512 border: 2px solid #fff;
515 transition: border-color 0.08s ease-in;
522 border-bottom-right-radius: 3px;
526 text-stroke: 2px #fff;
527 background: rgba(255,255,255,.9);
529 input[type="radio"] {
534 &.active { border-color: darken($green, 10%); }
537 &.active { border-color: darken($green, 20%); }
547 li.disabled { color: $darkgrey; }
557 text-decoration: none;
558 background-color: $lightblue;
560 border-right: 1px solid #fff;
564 border-right: 1px solid #fff;
565 border-radius: 4px 0 0 4px;
569 border-radius: 0 4px 4px 0;
573 background-color: $blue;
585 font-family: monospace;
607 top: $lineheight/2 !important;
609 margin-right: 0px !important;
610 margin-top: 0px !important;
614 .leaflet-popup-scrolled {
615 padding-right: $lineheight;
616 border-bottom: 0px !important;
617 border-top: 0px !important;
620 .leaflet-popup-content-wrapper {
621 border-radius: 4px !important;
624 /* Rules for attribution text under the main map shown on printouts */
634 .attribution_license,
635 .attribution_project {
639 .attribution_notice {
643 .donate-attr { color: darken($green, 10%) !important; }
645 /* Rules for the sidebar */
649 padding: $lineheight/2 $lineheight;
650 // background: $offwhite;
651 // border-bottom: 1px solid $grey;
675 margin: $lineheight auto;
686 /* Temporary label size override until we remove site-wide font customisation */
694 /* Rules for the search and direction forms */
696 header .search_forms,
701 /* Rules for the map key which appears in the popout sidebar */
704 .mapkey-table-key img {
711 /* Rules for search sidebar */
713 #sidebar .search_results_entry {
716 &.selected { background: $list-highlight; }
719 .search_more .loader {
725 .search_results_error {
730 /* Rules for routing */
733 background-image: image-url('routing-sprite.png');
736 background-repeat: no-repeat;
738 @for $i from 0 through 25 {
739 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
742 td.instruction, td.distance {
743 padding-top: $lineheight/5;
744 padding-bottom: $lineheight/5;
745 border-bottom: 1px solid $grey;
756 background: $list-highlight;
759 .routing_marker { width: 15px; cursor: move; }
761 /* Rules for entity history */
766 border-bottom: $keyline;
774 /* Rules for the history sidebar */
776 #sidebar .changesets {
780 &.selected { background: $list-highlight; }
781 /* color is derived from changeset bbox fillColor in history.js */
792 .changeset_more .loader {
798 /* Rules for the browse sidebar */
802 padding-bottom: $spacer;
803 margin-bottom: $spacer;
804 border-bottom: 1px solid $grey;
807 word-wrap: break-word;
811 .browse-section:last-of-type {
819 padding: 5px 0 5px 10px;
821 border: 1px solid $grey;
822 border-radius: 4px 4px 0 0;
823 background-color: $offwhite;
829 background-color: #FFF;
830 border: 1px solid $grey;
832 border-radius: 0 0 4px 4px;
837 background-color: $offwhite;
839 border-collapse: separate;
842 margin-bottom: $spacer;
845 border-bottom: 1px solid $grey;
848 tr:last-child th, tr:last-child td {
856 word-wrap: break-word;
857 white-space: pre-wrap;
862 background-color: $offwhite;
866 border-left: 1px solid $grey;
867 background-color: #fff;
870 .colour-preview-box {
875 border: 1px solid rgba(0, 0, 0, .1);
876 // add color via inline css on element: background-color: <tag value>;
880 .note-comments li, .changeset-comments li {
881 margin: $lineheight/2 0;
884 margin: 10px 6px 0 6px;
899 .subscribe-buttons input {
905 span.action-button:hover {
907 text-decoration: underline;
912 margin: 0 0 10px 10px;
925 background: $list-highlight;
932 /* Bootstrap buttons don't have any vertical margin, so
933 they touch when adjacent buttons wrap onto a new line
934 e.g. wide form buttons on a narrow sidebar */
938 margin-bottom: $spacer * 0.25;
942 /* Rules for export sidebar */
950 .export_area_inputs {
951 margin-bottom: $spacer;
959 background: $lightgrey;
961 #maxlat { margin-top: -1px; }
964 /* no-r2 */ margin-left: -1px;
968 /* no-r2 */ margin-right: -1px;
970 #minlat { margin-bottom: -1px; }
974 margin: $lineheight/4;
978 padding-left: $lineheight/2;
986 /* Rules for edit pages */
1002 /* Rules for non-map content pages */
1005 background: $lightgrey;
1012 padding: $lineheight;
1015 /* Overrides for pages that use new layout conventions */
1017 .header-illustration {
1018 background-position: 0 0;
1019 background-repeat: no-repeat;
1027 background-image: image-url("sign-up-illustration.png");
1031 background-image: image-url("confirm-illustration.png");
1035 background-image: image-url("terms-illustration.png");
1043 background-image: image-url("sign-up-illustration-arm.png");
1046 pointer-events: none;
1050 [dir=rtl] .header-illustration {
1051 transform: scaleX(-1);
1054 #content.maximised {
1063 /* Rules for small maps in content areas */
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 */
1136 margin-bottom: $lineheight;
1142 border-top: 1px dashed $grey;
1143 padding-top: $lineheight/2;
1144 padding-bottom: $lineheight/2;
1146 margin-top: $lineheight/2;
1147 padding-top: $lineheight;
1148 border-top: 1px solid $grey;
1151 background-color: #fee;
1154 margin-bottom: $lineheight/2;
1163 .diary_entries-show img.user_thumbnail {
1167 /* Rules for the log in page */
1169 #login_auth_buttons {
1174 padding: $lineheight/4 $lineheight/2;
1178 /* Rules for the account confirmation page */
1182 padding: $lineheight;
1183 margin-bottom: $lineheight;
1188 list-style: inherit;
1192 list-style-type: lower-alpha;
1197 /* Rules for the account settings page */
1199 #accountForm .user_image {
1203 #accountForm #user_image {
1207 #accountForm ul.accountImage-options {
1220 display: inline !important;
1223 /* Rules for the oauth settings page */
1225 .oauth_clients .buttons .oauth-edit {
1226 border-radius: 2px 0 0 2px;
1229 .oauth_clients .buttons .oauth-delete {
1230 border-radius: 0 2px 2px 0;
1233 /* Rules for the oauth authorization page */
1235 .oauth-authorize ul {
1239 /* Rules for messages pages */
1242 input[type="submit"] {
1247 background: $offwhite;
1251 background: #CBEEA7;
1259 .inbox-row .inbox-mark-read {
1264 margin-bottom: $lineheight;
1265 padding: $lineheight/4 0px 4px 0px;
1266 border-bottom: 1px solid $grey;
1273 .info-line .user_thumbnail_tiny {
1274 vertical-align: middle;
1278 white-space: nowrap;
1287 .inbox-row-unread .inbox-mark-unread {
1291 /* Rules for "flash" notice boxes shown at the top of the content area */
1294 padding: $lineheight;
1297 background-color: #ff7070;
1301 background-color: #ffe0cc;
1305 background-color: #CBEEA7;
1309 /* Rules for highlighting fields with rails validation errors */
1312 display: inline-block;
1318 background-color: #ff7070;
1321 /* Rules for rails validation error boxes */
1325 border: 2px solid #ff7070;
1326 padding: 0 $lineheight/2;
1327 margin-bottom: $lineheight;
1328 background-color: #f0f0f0;
1331 margin: 0 -10px 10px -10px;
1332 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1335 background-color: #c00;
1343 padding: $lineheight/4;
1348 background-color: $lightgrey;
1350 .describe_location {
1359 background-color: $lightgrey;
1365 vertical-align: middle;
1369 a.reverse_directions {
1374 /* Rules for user images */
1381 img.user_thumbnail {
1386 img.user_thumbnail_tiny {
1393 /* Rules for geo microformats */
1396 border-bottom: none;
1399 /* General styles for action lists / subnavs / pager navs */
1402 nav.secondary-actions {
1407 flex-direction: row;
1413 display: inline-block;
1419 border-left: 1px solid $grey;
1420 padding-left: $lineheight/2;
1421 margin-right: $lineheight/2;
1422 margin-bottom: $lineheight/8;
1427 div.secondary-actions {
1434 input[type="submit"],
1435 input[type="button"],
1436 input[type="reset"],
1439 box-sizing: border-box;
1445 border-right:1px solid white;
1446 text-overflow: ellipsis;
1447 white-space: nowrap;
1451 .button:first-child,
1452 .button_to:first-child {
1453 border-radius:2px 0 0 2px;
1457 .button_to:last-child {
1458 border-radius:0 2px 2px 0;
1459 border-right-width: 0;
1463 .button_to:only-child,
1464 *[value="Hide"] + input:last-child,
1465 *[value="Hide"] + .button:last-child,
1466 *[value="Hide"] + .button_to:last-child {
1468 border-right-width: 0;
1470 /* if a 3-button set has a hidden middle button */
1471 *[value="Hide"] + input:nth-child(3),
1472 *[value="Hide"] + .button:nth-child(3),
1473 *[value="Hide"] + .button_to:nth-child(3) {
1474 border-radius:0 2px 2px 0;
1475 border-right-width: 0;
1477 /* if a 3-button set starts with a hidden button */
1478 *[value="Hide"] + input:nth-child(2):not(:last-child),
1479 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1480 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1481 border-radius:2px 0 0 2px;
1482 border-right-width: 1px;
1486 /* Create a single-line dl */
1490 display: inline-block;
1497 /* Customise the background colour of striped tables */
1499 .table-striped > tbody > tr:nth-child(2n+1) > td,
1500 .table-striped > tbody > tr:nth-child(2n+1) > th {
1501 background-color: $offwhite;
1504 /* Rules for OpenID logo */
1507 vertical-align: text-bottom;
1511 /* Rules for rich text */
1517 background: $lightgrey;
1523 background: $lightgrey;
1525 white-space: pre-wrap;
1533 padding: $lineheight;
1534 background-color: $offwhite;
1541 border-left: $lineheight solid $offwhite;
1542 padding-left: $lineheight;
1548 /* Rules for the user notes list */
1552 background-color: $offwhite;
1556 /* Rules for the iD editor */
1563 /* Rules for the "Welcome" page */
1564 .site-welcome, .site-fixthemap {
1574 background-image: image-url("welcome-sprite.png");
1575 background-size: 500px 250px;
1581 padding-bottom: 20px;
1583 margin-bottom: 10px;
1595 /* no-r2 */ background-position: -50px 0;
1600 vertical-align: middle;
1604 /* no-r2 */ background-position: -100px 0;
1608 /* no-r2 */ background-position: -150px 0;
1612 /* no-r2 */ background-position: -200px 0;
1616 /* no-r2 */ background-position: -250px 0;
1620 /* no-r2 */ background-position: -300px 0;
1624 /* no-r2 */ background-position: -350px 0;
1633 text-decoration: none;
1637 background-color: #333;
1642 .site-about #content {
1643 background-color: $lightgrey;
1644 background-position: 50% 50%;
1645 background-repeat: no-repeat;
1646 background-size: cover;
1647 background-attachment: fixed;
1658 color: $vibrant-green;
1664 background-position: 0 50%;
1665 background-repeat: no-repeat;
1666 background-image: image-url('about/osm.png');
1667 background-size: cover;
1668 background-color: $vibrant-green;
1672 background: $vibrant-green;
1676 display: inline-block;
1686 vertical-align: middle;
1687 background: 40px 40px image-url('about/sprite.png') no-repeat;
1691 background-position: 0px 0px;
1695 background-position: 0px -40px;
1699 background-position: 0px -80px;
1703 background-position: 0px -120px;
1707 background-position: 0px -160px;
1711 background-position: -45px -160px;
1718 @media only screen and (max-width:960px) {
1719 .header-illustration.new-user-arm {