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;
14 background-color: #fff;
30 #container { position: relative; }
33 vertical-align: middle;
34 margin-right: $lineheight/4;
37 [dir=rtl] { /* no-r2 */ text-align: right; }
39 [dir=ltr] { /* no-r2 */ text-align: left; }
44 display: inline-block;
48 background: transparent image-url("sprite.png") no-repeat 0 0;
49 background-image: image-url("sprite.svg");
54 .icon.search { /* no-r2 */ background-position: 0 0; }
55 .icon.donate { /* no-r2 */ background-position: -20px 0; }
56 .icon.zoomin { /* no-r2 */ background-position: -40px 0; }
57 .icon.zoomout { /* no-r2 */ background-position: -60px 0; }
58 .icon.geolocate { /* no-r2 */ background-position: -80px 0; }
59 .active .icon.geolocate { /* no-r2 */ background-position: -80px -20px; }
60 .icon.layers { /* no-r2 */ background-position: -100px 0; }
61 .icon.key { /* no-r2 */ background-position: -120px 0; }
62 .icon.share { /* no-r2 */ background-position: -140px 0; }
63 .icon.clipboard { /* no-r2 */ background-position: -160px 0; }
64 .icon.link { /* no-r2 */ background-position: -180px 0; }
65 .icon.close { /* no-r2 */ background-position: -200px 0; }
66 .close-wrap:hover .icon.close,
67 .icon.close:hover { /* no-r2 */ background-position: -200px -20px; }
68 .icon.check { /* no-r2 */ background-position: -220px 0; }
69 .icon.note { /* no-r2 */ background-position: -240px 0; }
70 .icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
71 .icon.query { /* no-r2 */ background-position: -260px 0; }
77 text-decoration: none;
80 text-decoration: underline;
84 /* Utility for de-emphasizing content */
90 /* Rules for the header */
93 display: none !important;
95 background: image-url("menu-icon.png") no-repeat;
96 background-size: 30px 30px;
100 margin: 14px 10px 0 0;
105 height: $headerHeight;
110 h1, nav, nav > ul, nav > ul > li {
111 display: inline-block;
116 padding: $lineheight/2;
124 text-decoration: none;
131 vertical-align: middle;
157 .btn-outline-primary {
158 @include button-outline-variant($green, $white);
162 .btn-outline-primary {
167 border-top-color: $grey;
171 background-color: lighten($green, 30%);
176 // Small tweaks to the toggle to stop the primary colour showing through
177 // when the menu is shown
178 .show > .btn-outline-primary.dropdown-toggle {
179 background-color: $green;
180 border-color: $green;
183 box-shadow: 0 0 0 0.2rem fade-out($green, 0.5);
198 color: darken($darkgrey, 25%);
202 .btn-outline-secondary {
203 @include button-outline-variant($darkgrey);
208 .btn-outline-secondary {
209 @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey);
215 background-color: white;
219 &.show .btn-outline-secondary {
220 background-color: white;
227 img.user_thumbnail_tiny {
233 display: inline-block;
235 margin: 3px 0 3px 3px;
236 background-color: lighten($grey, 10%);
248 nav.primary, nav.secondary {
251 background-color: $green;
257 #compact-secondary-nav {
262 #compact-secondary-nav {
263 display: inline-block;
270 /* Utility for styling notification numbers */
273 padding: 2px $lineheight/4;
275 background: lighten($green, 30%);
281 /* Rules for the message shown in place of the map when javascript is disabled */
289 /* Rules for Leaflet maps */
291 .leaflet-control .control-button {
295 background-color: #333;
296 background-color: rgba(0,0,0,.6);
297 border-radius: 4px 0 0 4px;
302 background-color: black;
307 background-color: #333;
308 background-color: rgba(0,0,0,.5);
313 background-color: $vibrant-green;
321 .leaflet-control .zoomin,
322 .control-layers .control-button {
324 border-radius: 4px 0 0 0;
327 .leaflet-control .zoomout,
328 .control-key .control-button {
333 .control-locate .control-button,
334 .control-share .control-button {
335 border-radius: 0 0 0 4px;
338 /* Rules for the sidebar and main map area */
358 width: $sidebarWidth;
381 margin-top: $lineheight;
382 margin-bottom: $lineheight/2;
395 pointer-events: none;
420 .overlay-sidebar #sidebar {
457 width: $sidebarWidth;
473 .leaflet-marker-draggable {
488 border-bottom: 1px solid $grey;
498 border:1px solid $grey;
503 border: 1px solid $grey;
505 border-top-color: $grey;
529 border: 2px solid #fff;
532 transition: border-color 0.08s ease-in;
539 border-bottom-right-radius: 3px;
543 text-stroke: 2px #fff;
544 background: rgba(255,255,255,.9);
546 input[type="radio"] {
551 &.active { border-color: darken($green, 10%); }
554 &.active { border-color: darken($green, 20%); }
564 li.disabled { color: $darkgrey; }
574 text-decoration: none;
575 background-color: $lightblue;
577 border-right: 1px solid #fff;
581 border-right: 1px solid #fff;
582 border-radius: 4px 0 0 4px;
586 border-radius: 0 4px 4px 0;
590 background-color: $blue;
602 font-family: monospace;
624 top: $lineheight/2 !important;
626 margin-right: 0px !important;
627 margin-top: 0px !important;
631 .leaflet-popup-scrolled {
632 padding-right: $lineheight;
633 border-bottom: 0px !important;
634 border-top: 0px !important;
637 .leaflet-popup-content-wrapper {
638 border-radius: 4px !important;
641 /* Rules for attribution text under the main map shown on printouts */
651 .attribution_license,
652 .attribution_project {
656 .attribution_notice {
660 .donate-attr { color: darken($green, 10%) !important; }
662 /* Rules for the sidebar */
666 padding: $lineheight/2 $lineheight;
667 // background: $offwhite;
668 // border-bottom: 1px solid $grey;
692 margin: $lineheight auto;
703 /* Temporary label size override until we remove site-wide font customisation */
711 /* Rules for the search and direction forms */
713 header .search_forms,
718 /* Rules for the map key which appears in the popout sidebar */
721 .mapkey-table-key img {
728 /* Rules for search sidebar */
730 #sidebar .search_results_entry {
733 &.selected { background: $list-highlight; }
736 .search_more .loader {
742 .search_results_error {
747 /* Rules for routing */
750 background-image: image-url('routing-sprite.png');
753 background-repeat: no-repeat;
755 @for $i from 0 through 25 {
756 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
759 td.instruction, td.distance {
760 padding-top: $lineheight/5;
761 padding-bottom: $lineheight/5;
762 border-bottom: 1px solid $grey;
773 background: $list-highlight;
776 .routing_marker { width: 15px; cursor: move; }
778 /* Rules for entity history */
783 border-bottom: $keyline;
791 /* Rules for the history sidebar */
793 #sidebar .changesets {
797 &.selected { background: $list-highlight; }
798 /* color is derived from changeset bbox fillColor in history.js */
810 .changeset_more .loader {
816 /* Rules for the browse sidebar */
820 padding-bottom: $spacer;
821 margin-bottom: $spacer;
822 border-bottom: 1px solid $grey;
826 word-wrap: break-word;
830 .browse-section:last-of-type {
837 border: 1px solid $lightgrey;
845 padding: 5px 0 5px 10px;
847 border: 1px solid $grey;
848 border-radius: 4px 4px 0 0;
849 background-color: $offwhite;
855 background-color: #FFF;
856 border: 1px solid $grey;
858 border-radius: 0 0 4px 4px;
863 background-color: $offwhite;
864 border: 1px solid $grey;
867 border-collapse: separate;
872 border-bottom: 1px solid $grey;
875 tr:last-child th, tr:last-child td {
883 word-wrap: break-word;
884 white-space: pre-wrap;
889 background-color: $offwhite;
893 border-left: 1px solid $grey;
894 background-color: #fff;
897 .colour-preview-box {
902 border: 1px solid rgba(0, 0, 0, .1);
903 // add color via inline css on element: background-color: <tag value>;
907 .note-comments li, .changeset-comments li {
908 margin: $lineheight/2 0;
911 margin: 10px 6px 0 6px;
922 margin: 18px 10px 10px;
926 .subscribe-buttons input {
932 span.action-button:hover {
934 text-decoration: underline;
939 margin: 0 0 10px 10px;
952 background: $list-highlight;
959 /* Bootstrap buttons don't have any vertical margin, so
960 they touch when adjacent buttons wrap onto a new line
961 e.g. wide form buttons on a narrow sidebar */
965 margin-bottom: $spacer * 0.25;
969 /* Rules for export sidebar */
977 .export_area_inputs {
978 margin-bottom: $lineheight/2;
986 background: $lightgrey;
987 border: 1px solid $grey;
990 #maxlat { margin-top: -1px; }
993 /* no-r2 */ margin-left: -1px;
997 /* no-r2 */ margin-right: -1px;
999 #minlat { margin-bottom: -1px; }
1003 margin: $lineheight/4;
1007 padding-left: $lineheight/2;
1010 margin-bottom: 10px;
1015 /* Rules for edit pages */
1031 /* Rules for non-map content pages */
1034 background: $lightgrey;
1041 padding: $lineheight;
1044 /* Overrides for pages that use new layout conventions */
1050 .content-heading .content-inner {
1055 .header-illustration {
1056 background-position: 0 0;
1057 background-repeat: no-repeat;
1065 background-image: image-url("sign-up-illustration.png");
1069 background-image: image-url("confirm-illustration.png");
1073 background-image: image-url("terms-illustration.png");
1081 background-image: image-url("sign-up-illustration-arm.png");
1086 [dir=rtl] .header-illustration {
1087 transform: scaleX(-1);
1090 #content.maximised {
1099 /* Rules for small maps in content areas */
1103 border: 1px solid $grey;
1104 margin-bottom: $lineheight;
1107 @include media-breakpoint-up(md) {
1113 /* Rules for the user profile page */
1117 .userinformation-inner {
1126 .admin-user-info small {
1127 margin-bottom: $lineheight/2;
1129 margin-right: $lineheight;
1133 margin-top: $lineheight;
1137 .activity-details p {
1143 // Silly exception; remove when user page is redesigned.
1147 p#no_home_location {
1148 margin: $lineheight;
1151 margin-top: $lineheight/4;
1156 /* Rules for the user map */
1158 .content_map .leaflet-popup-content {
1159 margin: $lineheight/2;
1163 /* Rules for user popups on maps */
1169 margin-top: 0 0 0 60px;
1172 img.user_thumbnail {
1174 margin: 0 $lineheight/2 0 0;
1178 /* Rules for the user list */
1184 vertical-align: middle;
1193 #user_list_actions {
1195 margin-top: $lineheight/2;
1198 /* Rules for the diary list page */
1202 padding-top: $lineheight;
1203 padding-bottom: $lineheight/2;
1204 border-top: 1px solid $grey;
1207 margin-top: $lineheight/2;
1211 background-color: #fee;
1215 margin-bottom: $lineheight;
1219 margin-bottom: $lineheight/2;
1223 img.user_thumbnail {
1228 /* Rules for the diary entry page */
1233 border: 1px solid $grey;
1235 margin-bottom: $lineheight;
1241 border-top: 1px dashed $grey;
1242 padding-top: $lineheight/2;
1243 padding-bottom: $lineheight/2;
1245 margin-top: $lineheight/2;
1246 padding-top: $lineheight;
1247 border-top: 1px solid $grey;
1250 background-color: #fee;
1253 margin-bottom: $lineheight/2;
1262 .diary_entries-show img.user_thumbnail {
1266 /* Rules for the log in page */
1268 #login_auth_buttons {
1273 padding: $lineheight/4 $lineheight/2;
1277 /* Rules for the account confirmation page */
1281 border: 1px solid $grey;
1282 padding: $lineheight;
1283 margin-bottom: $lineheight;
1288 list-style: inherit;
1292 list-style-type: lower-alpha;
1297 /* Rules for the account settings page */
1299 #accountForm .user_image {
1303 #accountForm #user_image {
1307 #accountForm ul.accountImage-options {
1320 display: inline !important;
1323 /* Rules for the oauth settings page */
1325 .oauth_clients .buttons .oauth-edit {
1326 border-radius: 2px 0 0 2px;
1329 .oauth_clients .buttons .oauth-delete {
1330 border-radius: 0 2px 2px 0;
1333 /* Rules for the oauth authorization page */
1335 .oauth-authorize ul {
1339 /* Rules for messages pages */
1342 input[type="submit"] {
1347 background: $offwhite;
1351 background: #CBEEA7;
1359 .inbox-row .inbox-mark-read {
1364 margin-bottom: $lineheight;
1365 padding: $lineheight/4 0px 4px 0px;
1366 border-bottom: 1px solid $grey;
1373 .info-line .user_thumbnail_tiny {
1374 vertical-align: middle;
1378 white-space: nowrap;
1387 .inbox-row-unread .inbox-mark-unread {
1391 /* Rules for "flash" notice boxes shown at the top of the content area */
1394 padding: $lineheight;
1397 background-color: #ff7070;
1401 background-color: #ffe0cc;
1405 background-color: #CBEEA7;
1409 display: inline-block;
1410 margin-left: $lineheight / 2;
1411 vertical-align: middle;
1414 margin-top: $lineheight * 0.5;
1415 margin-bottom: $lineheight * 0.5;
1428 /* Rules for highlighting fields with rails validation errors */
1431 display: inline-block;
1437 background-color: #ff7070;
1440 /* Rules for rails validation error boxes */
1444 border: 2px solid #ff7070;
1445 padding: 0 $lineheight/2;
1446 margin-bottom: $lineheight;
1447 background-color: #f0f0f0;
1450 margin: 0 -10px 10px -10px;
1451 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1454 background-color: #c00;
1462 padding: $lineheight/4;
1467 background-color: $lightgrey;
1469 .describe_location {
1478 background-color: $lightgrey;
1484 vertical-align: middle;
1488 a.reverse_directions {
1493 /* Rules for user images */
1498 border: 1px solid $grey;
1499 margin-bottom: $lineheight;
1501 margin-right: $lineheight;
1504 img.user_thumbnail {
1507 border: 1px solid $grey;
1508 margin-right: $lineheight;
1511 img.user_thumbnail_tiny {
1516 border: 1px solid $grey;
1519 /* Rules for geo microformats */
1522 border-bottom: none;
1525 /* General styles for action lists / subnavs / pager navs */
1527 ul.secondary-actions {
1533 display: inline-block;
1540 border-left: 1px solid $grey;
1541 padding-left: $lineheight/2;
1542 margin-right: $lineheight/2;
1553 div.secondary-actions {
1560 input[type="submit"],
1561 input[type="button"],
1562 input[type="reset"],
1565 box-sizing: border-box;
1571 border-right:1px solid white;
1572 text-overflow: ellipsis;
1573 white-space: nowrap;
1577 .button:first-child,
1578 .button_to:first-child {
1579 border-radius:2px 0 0 2px;
1583 .button_to:last-child {
1584 border-radius:0 2px 2px 0;
1585 border-right-width: 0;
1589 .button_to:only-child,
1590 *[value="Hide"] + input:last-child,
1591 *[value="Hide"] + .button:last-child,
1592 *[value="Hide"] + .button_to:last-child {
1594 border-right-width: 0;
1596 /* if a 3-button set has a hidden middle button */
1597 *[value="Hide"] + input:nth-child(3),
1598 *[value="Hide"] + .button:nth-child(3),
1599 *[value="Hide"] + .button_to:nth-child(3) {
1600 border-radius:0 2px 2px 0;
1601 border-right-width: 0;
1603 /* if a 3-button set starts with a hidden button */
1604 *[value="Hide"] + input:nth-child(2):not(:last-child),
1605 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1606 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1607 border-radius:2px 0 0 2px;
1608 border-right-width: 1px;
1612 /* Customise the background colour of striped tables */
1614 .table-striped > tbody > tr:nth-child(2n+1) > td,
1615 .table-striped > tbody > tr:nth-child(2n+1) > th {
1616 background-color: $offwhite;
1619 /* Rules for OpenID logo */
1622 vertical-align: text-bottom;
1626 /* Rules for rich text */
1632 background: $lightgrey;
1638 background: $lightgrey;
1640 white-space: pre-wrap;
1648 padding: $lineheight;
1649 background-color: $offwhite;
1656 border-left: $lineheight solid $offwhite;
1657 padding-left: $lineheight;
1663 .comments .richtext {
1667 /* Rules for the user notes list */
1671 background-color: $offwhite;
1675 /* Rules for the iD editor */
1682 /* Rules for the "Welcome" page */
1683 .site-welcome, .site-fixthemap {
1693 background-image: image-url("welcome-sprite.png");
1694 background-size: 500px 250px;
1700 padding-bottom: 20px;
1702 margin-bottom: 10px;
1714 /* no-r2 */ background-position: -50px 0;
1719 vertical-align: middle;
1723 /* no-r2 */ background-position: -100px 0;
1727 /* no-r2 */ background-position: -150px 0;
1731 /* no-r2 */ background-position: -200px 0;
1735 /* no-r2 */ background-position: -250px 0;
1739 /* no-r2 */ background-position: -300px 0;
1743 /* no-r2 */ background-position: -350px 0;
1752 text-decoration: none;
1756 background-color: #333;
1761 .site-about #content {
1762 background-color: $lightgrey;
1763 background-position: 50% 50%;
1764 background-repeat: no-repeat;
1765 background-size: cover;
1766 background-attachment: fixed;
1783 padding: 170px 40px 20px;
1785 background: rgba(0, 0, 0, .8);
1795 color: $vibrant-green;
1799 @include media-breakpoint-up(sm) {
1811 background-position: 0 50%;
1812 background-repeat: no-repeat;
1813 background-image: image-url('about/osm.png');
1814 background-size: cover;
1815 background-color: $vibrant-green;
1825 padding: 20px 20px 20px 40px;
1826 font: 500 20px/24px Helvetica, Arial, sans-serif;
1827 white-space: nowrap;
1829 background: $vibrant-green;
1833 display: inline-block;
1843 vertical-align: middle;
1844 background: 40px 40px image-url('about/sprite.png') no-repeat;
1848 background-position: 0px 0px;
1852 background-position: 0px -40px;
1856 background-position: 0px -80px;
1860 background-position: 0px -120px;
1864 background-position: 0px -160px;
1868 background-position: -45px -160px;
1875 @media only screen and (max-width:960px) {
1876 .header-illustration.new-user-arm {