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;
23 #container { position: relative; }
26 vertical-align: middle;
27 margin-right: $lineheight/4;
30 [dir=rtl] { /* no-r2 */ text-align: right; }
32 [dir=ltr] { /* no-r2 */ text-align: left; }
37 display: inline-block;
41 background: transparent image-url("sprite.png") no-repeat 0 0;
42 background-image: image-url("sprite.svg");
47 .icon.search { /* no-r2 */ background-position: 0 0; }
48 .icon.donate { /* no-r2 */ background-position: -20px 0; }
49 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
50 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
51 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
52 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
53 .icon.layers { /* no-r2 */ background-position: -100px 0; }
54 .icon.key { /* no-r2 */ background-position: -120px 0; }
55 .icon.share { /* no-r2 */ background-position: -140px 0; }
56 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
57 .icon.link { /* no-r2 */ background-position: -180px 0; }
58 .icon.close { /* no-r2 */ background-position: -200px 0; }
59 .close-wrap:hover .icon.close,
60 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
61 .icon.check { /* no-r2 */ background-position: -220px 0; }
62 .icon.note { /* no-r2 */ background-position: -240px 0; }
63 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
64 .icon.query { /* no-r2 */ background-position: -260px 0; }
70 text-decoration: none;
73 text-decoration: underline;
77 /* Utility for de-emphasizing content */
83 /* Rules for the header */
86 display: none !important;
88 background: image-url("menu-icon.png") no-repeat;
89 background-size: 30px 30px;
93 margin: 14px 10px 0 0;
98 height: $headerHeight;
103 h1, nav, nav > ul, nav > ul > li {
104 display: inline-block;
109 padding: $lineheight/2;
117 text-decoration: none;
124 vertical-align: middle;
150 .btn-outline-primary {
151 @include button-outline-variant($green, $white);
155 .btn-outline-primary {
160 border-top-color: $grey;
164 background-color: lighten($green, 30%);
169 // Small tweaks to the toggle to stop the primary colour showing through
170 // when the menu is shown
171 .show > .btn-outline-primary.dropdown-toggle {
172 background-color: $green;
173 border-color: $green;
176 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
191 color: darken($darkgrey, 25%);
195 .btn-outline-secondary {
196 @include button-outline-variant($darkgrey);
201 .btn-outline-secondary {
202 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
208 background-color: white;
212 &.show .btn-outline-secondary {
213 background-color: white;
220 img.user_thumbnail_tiny {
226 display: inline-block;
228 margin: 3px 0 3px 3px;
229 background-color: lighten($grey, 10%);
241 nav.primary, nav.secondary {
244 background-color: $green;
250 #compact-secondary-nav {
255 #compact-secondary-nav {
256 display: inline-block;
263 /* Utility for styling notification numbers */
266 padding: 2px $lineheight/4;
268 background: lighten($green, 30%);
274 /* Rules for the message shown in place of the map when javascript is disabled */
282 /* Rules for Leaflet maps */
284 .leaflet-control .control-button {
288 background-color: #333;
289 background-color: rgba(0,0,0,.6);
290 border-radius: 4px 0 0 4px;
295 background-color: black;
300 background-color: #333;
301 background-color: rgba(0,0,0,.5);
306 background-color: $vibrant-green;
314 .leaflet-control .zoomin,
315 .control-layers .control-button {
317 border-radius: 4px 0 0 0;
320 .leaflet-control .zoomout,
321 .control-key .control-button {
326 .control-locate .control-button,
327 .control-share .control-button {
328 border-radius: 0 0 0 4px;
331 /* Rules for the sidebar and main map area */
351 width: $sidebarWidth;
374 margin-top: $lineheight;
375 margin-bottom: $lineheight/2;
388 pointer-events: none;
413 .overlay-sidebar #sidebar {
450 width: $sidebarWidth;
466 .leaflet-marker-draggable {
481 border-bottom: 1px solid $grey;
491 border:1px solid $grey;
496 border: 1px solid $grey;
498 border-top-color: $grey;
522 border: 2px solid #fff;
525 transition: border-color 0.08s ease-in;
532 border-bottom-right-radius: 3px;
536 text-stroke: 2px #fff;
537 background: rgba(255,255,255,.9);
539 input[type="radio"] {
544 &.active { border-color: darken($green, 10%); }
547 &.active { border-color: darken($green, 20%); }
557 li.disabled { color: $darkgrey; }
567 text-decoration: none;
568 background-color: $lightblue;
570 border-right: 1px solid #fff;
574 border-right: 1px solid #fff;
575 border-radius: 4px 0 0 4px;
579 border-radius: 0 4px 4px 0;
583 background-color: $blue;
595 font-family: monospace;
617 top: $lineheight/2 !important;
619 margin-right: 0px !important;
620 margin-top: 0px !important;
624 .leaflet-popup-scrolled {
625 padding-right: $lineheight;
626 border-bottom: 0px !important;
627 border-top: 0px !important;
630 .leaflet-popup-content-wrapper {
631 border-radius: 4px !important;
634 /* Rules for attribution text under the main map shown on printouts */
644 .attribution_license,
645 .attribution_project {
649 .attribution_notice {
653 .donate-attr { color: darken($green, 10%) !important; }
655 /* Rules for the sidebar */
659 padding: $lineheight/2 $lineheight;
660 // background: $offwhite;
661 // border-bottom: 1px solid $grey;
685 margin: $lineheight auto;
696 /* Temporary label size override until we remove site-wide font customisation */
704 /* Rules for the search and direction forms */
706 header .search_forms,
711 /* Rules for the map key which appears in the popout sidebar */
714 .mapkey-table-key img {
721 /* Rules for search sidebar */
723 #sidebar .search_results_entry {
726 &.selected { background: $list-highlight; }
729 .search_more .loader {
735 .search_results_error {
740 /* Rules for routing */
743 background-image: image-url('routing-sprite.png');
746 background-repeat: no-repeat;
748 @for $i from 0 through 25 {
749 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
752 td.instruction, td.distance {
753 padding-top: $lineheight/5;
754 padding-bottom: $lineheight/5;
755 border-bottom: 1px solid $grey;
766 background: $list-highlight;
769 .routing_marker { width: 15px; cursor: move; }
771 /* Rules for entity history */
776 border-bottom: $keyline;
784 /* Rules for the history sidebar */
786 #sidebar .changesets {
790 &.selected { background: $list-highlight; }
791 /* color is derived from changeset bbox fillColor in history.js */
803 .changeset_more .loader {
809 /* Rules for the browse sidebar */
813 padding-bottom: $spacer;
814 margin-bottom: $spacer;
815 border-bottom: 1px solid $grey;
819 word-wrap: break-word;
823 .browse-section:last-of-type {
830 border: 1px solid $lightgrey;
838 padding: 5px 0 5px 10px;
840 border: 1px solid $grey;
841 border-radius: 4px 4px 0 0;
842 background-color: $offwhite;
848 background-color: #FFF;
849 border: 1px solid $grey;
851 border-radius: 0 0 4px 4px;
856 background-color: $offwhite;
857 border: 1px solid $grey;
860 border-collapse: separate;
865 border-bottom: 1px solid $grey;
868 tr:last-child th, tr:last-child td {
876 word-wrap: break-word;
877 white-space: pre-wrap;
882 background-color: $offwhite;
886 border-left: 1px solid $grey;
887 background-color: #fff;
890 .colour-preview-box {
895 border: 1px solid rgba(0, 0, 0, .1);
896 // add color via inline css on element: background-color: <tag value>;
900 .note-comments li, .changeset-comments li {
901 margin: $lineheight/2 0;
904 margin: 10px 6px 0 6px;
915 margin: 18px 10px 10px;
919 .subscribe-buttons input {
925 span.action-button:hover {
927 text-decoration: underline;
932 margin: 0 0 10px 10px;
945 background: $list-highlight;
952 /* Bootstrap buttons don't have any vertical margin, so
953 they touch when adjacent buttons wrap onto a new line
954 e.g. wide form buttons on a narrow sidebar */
958 margin-bottom: $spacer * 0.25;
962 /* Rules for export sidebar */
970 .export_area_inputs {
971 margin-bottom: $lineheight/2;
979 background: $lightgrey;
980 border: 1px solid $grey;
983 #maxlat { margin-top: -1px; }
986 /* no-r2 */ margin-left: -1px;
990 /* no-r2 */ margin-right: -1px;
992 #minlat { margin-bottom: -1px; }
996 margin: $lineheight/4;
1000 padding-left: $lineheight/2;
1003 margin-bottom: 10px;
1008 /* Rules for edit pages */
1024 /* Rules for non-map content pages */
1027 background: $lightgrey;
1034 padding: $lineheight;
1037 /* Overrides for pages that use new layout conventions */
1043 .content-heading .content-inner {
1048 .header-illustration {
1049 background-position: 0 0;
1050 background-repeat: no-repeat;
1058 background-image: image-url("sign-up-illustration.png");
1062 background-image: image-url("confirm-illustration.png");
1066 background-image: image-url("terms-illustration.png");
1074 background-image: image-url("sign-up-illustration-arm.png");
1079 [dir=rtl] .header-illustration {
1080 transform: scaleX(-1);
1083 #content.maximised {
1092 /* Rules for small maps in content areas */
1096 border: 1px solid $grey;
1097 margin-bottom: $lineheight;
1100 @include media-breakpoint-up(md) {
1106 /* Rules for the user profile page */
1110 .userinformation-inner {
1119 .admin-user-info small {
1120 margin-bottom: $lineheight/2;
1122 margin-right: $lineheight;
1126 margin-top: $lineheight;
1130 .activity-details p {
1136 // Silly exception; remove when user page is redesigned.
1140 p#no_home_location {
1141 margin: $lineheight;
1144 margin-top: $lineheight/4;
1149 /* Rules for the user map */
1151 .content_map .leaflet-popup-content {
1152 margin: $lineheight/2;
1156 /* Rules for user popups on maps */
1162 margin-top: 0 0 0 60px;
1165 img.user_thumbnail {
1167 margin: 0 $lineheight/2 0 0;
1171 /* Rules for the user list */
1177 vertical-align: middle;
1186 #user_list_actions {
1188 margin-top: $lineheight/2;
1191 /* Rules for the diary list page */
1195 padding-top: $lineheight;
1196 padding-bottom: $lineheight/2;
1197 border-top: 1px solid $grey;
1200 margin-top: $lineheight/2;
1204 background-color: #fee;
1208 margin-bottom: $lineheight;
1212 margin-bottom: $lineheight/2;
1216 img.user_thumbnail {
1221 /* Rules for the diary entry page */
1226 border: 1px solid $grey;
1228 margin-bottom: $lineheight;
1234 border-top: 1px dashed $grey;
1235 padding-top: $lineheight/2;
1236 padding-bottom: $lineheight/2;
1238 margin-top: $lineheight/2;
1239 padding-top: $lineheight;
1240 border-top: 1px solid $grey;
1243 background-color: #fee;
1246 margin-bottom: $lineheight/2;
1255 .diary_entries-show img.user_thumbnail {
1259 /* Rules for the log in page */
1261 #login_auth_buttons {
1266 padding: $lineheight/4 $lineheight/2;
1270 /* Rules for the account confirmation page */
1274 border: 1px solid $grey;
1275 padding: $lineheight;
1276 margin-bottom: $lineheight;
1281 list-style: inherit;
1285 list-style-type: lower-alpha;
1290 /* Rules for the account settings page */
1292 #accountForm .user_image {
1296 #accountForm #user_image {
1300 #accountForm ul.accountImage-options {
1313 display: inline !important;
1316 /* Rules for the oauth settings page */
1318 .oauth_clients .buttons .oauth-edit {
1319 border-radius: 2px 0 0 2px;
1322 .oauth_clients .buttons .oauth-delete {
1323 border-radius: 0 2px 2px 0;
1326 /* Rules for the oauth authorization page */
1328 .oauth-authorize ul {
1332 /* Rules for messages pages */
1335 input[type="submit"] {
1340 background: $offwhite;
1344 background: #CBEEA7;
1352 .inbox-row .inbox-mark-read {
1357 margin-bottom: $lineheight;
1358 padding: $lineheight/4 0px 4px 0px;
1359 border-bottom: 1px solid $grey;
1366 .info-line .user_thumbnail_tiny {
1367 vertical-align: middle;
1371 white-space: nowrap;
1380 .inbox-row-unread .inbox-mark-unread {
1384 /* Rules for "flash" notice boxes shown at the top of the content area */
1387 padding: $lineheight;
1390 background-color: #ff7070;
1394 background-color: #ffe0cc;
1398 background-color: #CBEEA7;
1402 /* Rules for highlighting fields with rails validation errors */
1405 display: inline-block;
1411 background-color: #ff7070;
1414 /* Rules for rails validation error boxes */
1418 border: 2px solid #ff7070;
1419 padding: 0 $lineheight/2;
1420 margin-bottom: $lineheight;
1421 background-color: #f0f0f0;
1424 margin: 0 -10px 10px -10px;
1425 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1428 background-color: #c00;
1436 padding: $lineheight/4;
1441 background-color: $lightgrey;
1443 .describe_location {
1452 background-color: $lightgrey;
1458 vertical-align: middle;
1462 a.reverse_directions {
1467 /* Rules for user images */
1472 border: 1px solid $grey;
1473 margin-bottom: $lineheight;
1475 margin-right: $lineheight;
1478 img.user_thumbnail {
1481 border: 1px solid $grey;
1482 margin-right: $lineheight;
1485 img.user_thumbnail_tiny {
1490 border: 1px solid $grey;
1493 /* Rules for geo microformats */
1496 border-bottom: none;
1499 /* General styles for action lists / subnavs / pager navs */
1501 ul.secondary-actions {
1507 display: inline-block;
1514 border-left: 1px solid $grey;
1515 padding-left: $lineheight/2;
1516 margin-right: $lineheight/2;
1527 div.secondary-actions {
1534 input[type="submit"],
1535 input[type="button"],
1536 input[type="reset"],
1539 box-sizing: border-box;
1545 border-right:1px solid white;
1546 text-overflow: ellipsis;
1547 white-space: nowrap;
1551 .button:first-child,
1552 .button_to:first-child {
1553 border-radius:2px 0 0 2px;
1557 .button_to:last-child {
1558 border-radius:0 2px 2px 0;
1559 border-right-width: 0;
1563 .button_to:only-child,
1564 *[value="Hide"] + input:last-child,
1565 *[value="Hide"] + .button:last-child,
1566 *[value="Hide"] + .button_to:last-child {
1568 border-right-width: 0;
1570 /* if a 3-button set has a hidden middle button */
1571 *[value="Hide"] + input:nth-child(3),
1572 *[value="Hide"] + .button:nth-child(3),
1573 *[value="Hide"] + .button_to:nth-child(3) {
1574 border-radius:0 2px 2px 0;
1575 border-right-width: 0;
1577 /* if a 3-button set starts with a hidden button */
1578 *[value="Hide"] + input:nth-child(2):not(:last-child),
1579 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1580 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1581 border-radius:2px 0 0 2px;
1582 border-right-width: 1px;
1586 /* Customise the background colour of striped tables */
1588 .table-striped > tbody > tr:nth-child(2n+1) > td,
1589 .table-striped > tbody > tr:nth-child(2n+1) > th {
1590 background-color: $offwhite;
1593 /* Rules for OpenID logo */
1596 vertical-align: text-bottom;
1600 /* Rules for rich text */
1606 background: $lightgrey;
1612 background: $lightgrey;
1614 white-space: pre-wrap;
1622 padding: $lineheight;
1623 background-color: $offwhite;
1630 border-left: $lineheight solid $offwhite;
1631 padding-left: $lineheight;
1637 .comments .richtext {
1641 /* Rules for the user notes list */
1645 background-color: $offwhite;
1649 /* Rules for the iD editor */
1656 /* Rules for the "Welcome" page */
1657 .site-welcome, .site-fixthemap {
1667 background-image: image-url("welcome-sprite.png");
1668 background-size: 500px 250px;
1674 padding-bottom: 20px;
1676 margin-bottom: 10px;
1688 /* no-r2 */ background-position: -50px 0;
1693 vertical-align: middle;
1697 /* no-r2 */ background-position: -100px 0;
1701 /* no-r2 */ background-position: -150px 0;
1705 /* no-r2 */ background-position: -200px 0;
1709 /* no-r2 */ background-position: -250px 0;
1713 /* no-r2 */ background-position: -300px 0;
1717 /* no-r2 */ background-position: -350px 0;
1726 text-decoration: none;
1730 background-color: #333;
1735 .site-about #content {
1736 background-color: $lightgrey;
1737 background-position: 50% 50%;
1738 background-repeat: no-repeat;
1739 background-size: cover;
1740 background-attachment: fixed;
1757 padding: 170px 40px 20px;
1759 background: rgba(0, 0, 0, .8);
1769 color: $vibrant-green;
1773 @include media-breakpoint-up(sm) {
1785 background-position: 0 50%;
1786 background-repeat: no-repeat;
1787 background-image: image-url('about/osm.png');
1788 background-size: cover;
1789 background-color: $vibrant-green;
1799 padding: 20px 20px 20px 40px;
1800 font: 500 20px/24px Helvetica, Arial, sans-serif;
1801 white-space: nowrap;
1803 background: $vibrant-green;
1807 display: inline-block;
1817 vertical-align: middle;
1818 background: 40px 40px image-url('about/sprite.png') no-repeat;
1822 background-position: 0px 0px;
1826 background-position: 0px -40px;
1830 background-position: 0px -80px;
1834 background-position: 0px -120px;
1838 background-position: 0px -160px;
1842 background-position: -45px -160px;
1849 @media only screen and (max-width:960px) {
1850 .header-illustration.new-user-arm {