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;
373 padding: $lineheight $lineheight $lineheight/2;
378 margin-top: $lineheight;
379 margin-bottom: $lineheight/2;
392 pointer-events: none;
417 .overlay-sidebar #sidebar {
454 width: $sidebarWidth;
470 .leaflet-marker-draggable {
485 border-bottom: 1px solid $grey;
495 border:1px solid $grey;
500 border: 1px solid $grey;
502 border-top-color: $grey;
526 border: 2px solid #fff;
529 transition: border-color 0.08s ease-in;
536 border-bottom-right-radius: 3px;
540 text-stroke: 2px #fff;
541 background: rgba(255,255,255,.9);
543 input[type="radio"] {
548 &.active { border-color: darken($green, 10%); }
551 &.active { border-color: darken($green, 20%); }
561 li.disabled { color: $darkgrey; }
571 text-decoration: none;
572 background-color: $lightblue;
574 border-right: 1px solid #fff;
578 border-right: 1px solid #fff;
579 border-radius: 4px 0 0 4px;
583 border-radius: 0 4px 4px 0;
587 background-color: $blue;
599 font-family: monospace;
621 top: $lineheight/2 !important;
623 margin-right: 0px !important;
624 margin-top: 0px !important;
628 .leaflet-popup-scrolled {
629 padding-right: $lineheight;
630 border-bottom: 0px !important;
631 border-top: 0px !important;
634 .leaflet-popup-content-wrapper {
635 border-radius: 4px !important;
638 /* Rules for attribution text under the main map shown on printouts */
648 .attribution_license,
649 .attribution_project {
653 .attribution_notice {
657 .donate-attr { color: darken($green, 10%) !important; }
659 /* Rules for the sidebar */
663 padding: $lineheight/2 $lineheight;
664 // background: $offwhite;
665 // 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 */
742 #sidebar_content>table {
743 padding: 5px 20px 10px 15px;
745 border-collapse: separate;
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; }
760 padding: 0 $lineheight $lineheight/4;
763 td.instruction, td.distance {
764 padding-top: $lineheight/5;
765 padding-bottom: $lineheight/5;
766 border-bottom: 1px solid $grey;
777 background: $list-highlight;
780 .routing_marker { width: 15px; cursor: move; }
782 /* Rules for entity history */
787 border-bottom: $keyline;
795 /* Rules for the history sidebar */
797 #sidebar .changesets {
801 &.selected { background: $list-highlight; }
802 /* color is derived from changeset bbox fillColor in history.js */
814 .changeset_more .loader {
820 /* Rules for the browse sidebar */
824 padding: $lineheight/2 $lineheight;
825 border-bottom: 1px solid $grey;
829 word-wrap: break-word;
833 .browse-section:last-of-type {
840 border: 1px solid $lightgrey;
848 padding: 5px 0 5px 10px;
850 border: 1px solid $grey;
851 border-radius: 4px 4px 0 0;
852 background-color: $offwhite;
858 background-color: #FFF;
859 border: 1px solid $grey;
861 border-radius: 0 0 4px 4px;
866 background-color: $offwhite;
867 border: 1px solid $grey;
870 border-collapse: separate;
875 border-bottom: 1px solid $grey;
878 tr:last-child th, tr:last-child td {
886 word-wrap: break-word;
887 white-space: pre-wrap;
892 background-color: $offwhite;
896 border-left: 1px solid $grey;
897 background-color: #fff;
900 .colour-preview-box {
905 border: 1px solid rgba(0, 0, 0, .1);
906 // add color via inline css on element: background-color: <tag value>;
910 .note-comments li, .changeset-comments li {
911 margin: $lineheight/2 0;
914 margin: 10px 6px 0 6px;
925 margin: 18px 10px 10px;
929 .subscribe-buttons input {
935 span.action-button:hover {
937 text-decoration: underline;
942 margin: 0 0 10px 10px;
946 padding: $lineheight $lineheight $lineheight/2;
951 padding-bottom: $lineheight/2;
954 padding: 0 $lineheight;
964 background: $list-highlight;
971 /* Bootstrap buttons don't have any vertical margin, so
972 they touch when adjacent buttons wrap onto a new line
973 e.g. wide form buttons on a narrow sidebar */
977 margin-bottom: $spacer * 0.25;
981 /* Rules for export sidebar */
984 padding: $lineheight;
991 .export_area_inputs {
992 margin-bottom: $lineheight/2;
1000 background: $lightgrey;
1001 border: 1px solid $grey;
1004 #maxlat { margin-top: -1px; }
1007 /* no-r2 */ margin-left: -1px;
1011 /* no-r2 */ margin-right: -1px;
1013 #minlat { margin-bottom: -1px; }
1017 margin: $lineheight/4;
1021 padding-left: $lineheight/2;
1024 margin-bottom: 10px;
1029 /* Rules for edit pages */
1045 /* Rules for non-map content pages */
1048 background: $lightgrey;
1055 padding: $lineheight;
1058 /* Overrides for pages that use new layout conventions */
1064 .content-heading .content-inner {
1069 .header-illustration {
1070 background-position: 0 0;
1071 background-repeat: no-repeat;
1079 background-image: image-url("sign-up-illustration.png");
1083 background-image: image-url("confirm-illustration.png");
1087 background-image: image-url("terms-illustration.png");
1095 background-image: image-url("sign-up-illustration-arm.png");
1100 [dir=rtl] .header-illustration {
1101 transform: scaleX(-1);
1104 #content.maximised {
1113 /* Rules for small maps in content areas */
1117 border: 1px solid $grey;
1118 margin-bottom: $lineheight;
1121 @include media-breakpoint-up(md) {
1127 /* Rules for the user profile page */
1131 .userinformation-inner {
1140 .admin-user-info small {
1141 margin-bottom: $lineheight/2;
1143 margin-right: $lineheight;
1147 margin-top: $lineheight;
1151 .activity-details p {
1157 // Silly exception; remove when user page is redesigned.
1161 p#no_home_location {
1162 margin: $lineheight;
1165 margin-top: $lineheight/4;
1170 /* Rules for the user map */
1172 .content_map .leaflet-popup-content {
1173 margin: $lineheight/2;
1177 /* Rules for user popups on maps */
1183 margin-top: 0 0 0 60px;
1186 img.user_thumbnail {
1188 margin: 0 $lineheight/2 0 0;
1192 /* Rules for the user list */
1198 vertical-align: middle;
1207 #user_list_actions {
1209 margin-top: $lineheight/2;
1212 /* Rules for the diary list page */
1216 padding-top: $lineheight;
1217 padding-bottom: $lineheight/2;
1218 border-top: 1px solid $grey;
1221 margin-top: $lineheight/2;
1225 background-color: #fee;
1229 margin-bottom: $lineheight;
1233 margin-bottom: $lineheight/2;
1237 img.user_thumbnail {
1242 /* Rules for the diary entry page */
1247 border: 1px solid $grey;
1249 margin-bottom: $lineheight;
1255 border-top: 1px dashed $grey;
1256 padding-top: $lineheight/2;
1257 padding-bottom: $lineheight/2;
1259 margin-top: $lineheight/2;
1260 padding-top: $lineheight;
1261 border-top: 1px solid $grey;
1264 background-color: #fee;
1267 margin-bottom: $lineheight/2;
1276 .diary_entries-show img.user_thumbnail {
1280 /* Rules for the log in page */
1282 #login_auth_buttons {
1287 padding: $lineheight/4 $lineheight/2;
1291 /* Rules for the account confirmation page */
1295 border: 1px solid $grey;
1296 padding: $lineheight;
1297 margin-bottom: $lineheight;
1302 list-style: inherit;
1306 list-style-type: lower-alpha;
1311 /* Rules for the account settings page */
1313 #accountForm .user_image {
1317 #accountForm #user_image {
1321 #accountForm ul.accountImage-options {
1334 display: inline !important;
1337 /* Rules for the oauth settings page */
1339 .oauth_clients .buttons .oauth-edit {
1340 border-radius: 2px 0 0 2px;
1343 .oauth_clients .buttons .oauth-delete {
1344 border-radius: 0 2px 2px 0;
1347 /* Rules for the oauth authorization page */
1349 .oauth-authorize ul {
1353 /* Rules for messages pages */
1356 input[type="submit"] {
1361 background: $offwhite;
1365 background: #CBEEA7;
1373 .inbox-row .inbox-mark-read {
1378 margin-bottom: $lineheight;
1379 padding: $lineheight/4 0px 4px 0px;
1380 border-bottom: 1px solid $grey;
1387 .info-line .user_thumbnail_tiny {
1388 vertical-align: middle;
1392 white-space: nowrap;
1401 .inbox-row-unread .inbox-mark-unread {
1405 /* Rules for "flash" notice boxes shown at the top of the content area */
1408 padding: $lineheight;
1411 background-color: #ff7070;
1415 background-color: #ffe0cc;
1419 background-color: #CBEEA7;
1423 display: inline-block;
1424 margin-left: $lineheight / 2;
1425 vertical-align: middle;
1428 margin-top: $lineheight * 0.5;
1429 margin-bottom: $lineheight * 0.5;
1442 /* Rules for highlighting fields with rails validation errors */
1445 display: inline-block;
1451 background-color: #ff7070;
1454 /* Rules for rails validation error boxes */
1458 border: 2px solid #ff7070;
1459 padding: 0 $lineheight/2;
1460 margin-bottom: $lineheight;
1461 background-color: #f0f0f0;
1464 margin: 0 -10px 10px -10px;
1465 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1468 background-color: #c00;
1476 padding: $lineheight/4;
1481 background-color: $lightgrey;
1483 .describe_location {
1492 background-color: $lightgrey;
1498 vertical-align: middle;
1502 a.reverse_directions {
1507 /* Rules for user images */
1512 border: 1px solid $grey;
1513 margin-bottom: $lineheight;
1515 margin-right: $lineheight;
1518 img.user_thumbnail {
1521 border: 1px solid $grey;
1522 margin-right: $lineheight;
1525 img.user_thumbnail_tiny {
1530 border: 1px solid $grey;
1533 /* Rules for geo microformats */
1536 border-bottom: none;
1539 /* General styles for action lists / subnavs / pager navs */
1541 ul.secondary-actions {
1547 display: inline-block;
1554 border-left: 1px solid $grey;
1555 padding-left: $lineheight/2;
1556 margin-right: $lineheight/2;
1567 div.secondary-actions {
1572 /* Utility for managing inner content areas */
1574 .inner22 { padding: $lineheight;}
1576 .inner12 { padding: $lineheight/2 $lineheight;}
1578 .inner11 { padding: $lineheight/2;}
1580 .inner20 { padding: $lineheight 0;}
1582 .inner02 { padding: 0 $lineheight;}
1586 input[type="submit"],
1587 input[type="button"],
1588 input[type="reset"],
1591 box-sizing: border-box;
1597 border-right:1px solid white;
1598 text-overflow: ellipsis;
1599 white-space: nowrap;
1603 .button:first-child,
1604 .button_to:first-child {
1605 border-radius:2px 0 0 2px;
1609 .button_to:last-child {
1610 border-radius:0 2px 2px 0;
1611 border-right-width: 0;
1615 .button_to:only-child,
1616 *[value="Hide"] + input:last-child,
1617 *[value="Hide"] + .button:last-child,
1618 *[value="Hide"] + .button_to:last-child {
1620 border-right-width: 0;
1622 /* if a 3-button set has a hidden middle button */
1623 *[value="Hide"] + input:nth-child(3),
1624 *[value="Hide"] + .button:nth-child(3),
1625 *[value="Hide"] + .button_to:nth-child(3) {
1626 border-radius:0 2px 2px 0;
1627 border-right-width: 0;
1629 /* if a 3-button set starts with a hidden button */
1630 *[value="Hide"] + input:nth-child(2):not(:last-child),
1631 *[value="Hide"] + .button:nth-child(2):not(:last-child),
1632 *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
1633 border-radius:2px 0 0 2px;
1634 border-right-width: 1px;
1638 /* Customise the background colour of striped tables */
1640 .table-striped > tbody > tr:nth-child(2n+1) > td,
1641 .table-striped > tbody > tr:nth-child(2n+1) > th {
1642 background-color: $offwhite;
1645 /* Rules for OpenID logo */
1648 vertical-align: text-bottom;
1652 /* Rules for rich text */
1658 background: $lightgrey;
1664 background: $lightgrey;
1666 white-space: pre-wrap;
1674 padding: $lineheight;
1675 background-color: $offwhite;
1682 border-left: $lineheight solid $offwhite;
1683 padding-left: $lineheight;
1689 .comments .richtext {
1693 /* Rules for the user notes list */
1697 background-color: $offwhite;
1701 /* Rules for the iD editor */
1708 /* Rules for the "Welcome" page */
1709 .site-welcome, .site-fixthemap {
1719 background-image: image-url("welcome-sprite.png");
1720 background-size: 500px 250px;
1726 padding-bottom: 20px;
1728 margin-bottom: 10px;
1740 /* no-r2 */ background-position: -50px 0;
1745 vertical-align: middle;
1749 /* no-r2 */ background-position: -100px 0;
1753 /* no-r2 */ background-position: -150px 0;
1757 /* no-r2 */ background-position: -200px 0;
1761 /* no-r2 */ background-position: -250px 0;
1765 /* no-r2 */ background-position: -300px 0;
1769 /* no-r2 */ background-position: -350px 0;
1778 text-decoration: none;
1782 background-color: #333;
1787 .site-about #content {
1788 background-color: $lightgrey;
1789 background-position: 50% 50%;
1790 background-repeat: no-repeat;
1791 background-size: cover;
1792 background-attachment: fixed;
1809 padding: 170px 40px 20px;
1811 background: rgba(0, 0, 0, .8);
1821 color: $vibrant-green;
1825 @include media-breakpoint-up(sm) {
1837 background-position: 0 50%;
1838 background-repeat: no-repeat;
1839 background-image: image-url('about/osm.png');
1840 background-size: cover;
1841 background-color: $vibrant-green;
1851 padding: 20px 20px 20px 40px;
1852 font: 500 20px/24px Helvetica, Arial, sans-serif;
1853 white-space: nowrap;
1855 background: $vibrant-green;
1859 display: inline-block;
1869 vertical-align: middle;
1870 background: 40px 40px image-url('about/sprite.png') no-repeat;
1874 background-position: 0px 0px;
1878 background-position: 0px -40px;
1882 background-position: 0px -80px;
1886 background-position: 0px -120px;
1890 background-position: 0px -160px;
1894 background-position: -45px -160px;
1901 @media only screen and (max-width:960px) {
1902 .header-illustration.new-user-arm {