12 /* Styles common to large and small screens */
14 /* Minimal CSS reset */
16 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input {
23 fieldset,img { border: 0; }
25 legend { color: #000; }
27 sup { vertical-align: text-top; }
29 sub { vertical-align: text-bottom; }
32 border-collapse: collapse;
36 li { list-style: none; }
41 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
44 border-bottom: .1em dotted;
48 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
62 .col0 { float:left; width:04.1666%; }
63 .col1 { float:left; width:08.3333%; }
64 .col2 { float:left; width:16.6666%; }
65 .col3 { float:left; width:25.0000%; }
66 .col4 { float:left; width:33.3333%; }
67 .col5 { float:left; width:41.6666%; }
68 .col6 { float:left; width:50.0000%; }
69 .col7 { float:left; width:58.3333%; }
70 .col8 { float:left; width:66.6666%; }
71 .col9 { float:left; width:75.0000%; }
72 .col10 { float:left; width:83.3333%; }
73 .col11 { float:left; width:91.6666%; }
74 .col12 { width:100%; }
76 /* Default rules for the body of every page */
79 -moz-box-sizing: border-box;
80 -webkit-box-sizing: border-box;
81 box-sizing: border-box;
85 font-family: 'Helvetica Neue',Arial,sans-serif;
86 font-size: $typeheight;
89 background-color: #fff;
96 background-color: #f0f0f0;
100 margin-top: $lineheight/2;
101 margin-bottom: $lineheight;
116 margin-top: $lineheight/2;
117 margin-bottom: $lineheight;
121 font-size: $typeheight;
122 margin-top: $lineheight/2;
123 margin-bottom: $lineheight/2;
129 margin-bottom: $lineheight;
152 margin: 0 0 $lineheight/2 0;
156 vertical-align: middle;
157 margin-right: $lineheight/4;
160 /* Rules for icons */
163 display:inline-block;
167 background:transparent image-url("sprite.png") no-repeat 0 0;
176 .icon.search { background-position: 0 0; }
177 .icon.donate { background-position: -20px 0; }
178 .icon.zoomin { background-position: -40px 0; }
179 .icon.zoomout { background-position: -60px 0; }
180 .icon.geolocate { background-position: -80px 0; }
181 .active .icon.geolocate { background-position: -80px -20px; }
182 .icon.layers { background-position: -100px 0; }
183 .icon.key { background-position: -120px 0; }
184 .icon.share { background-position: -140px 0; }
185 .icon.clipboard { background-position: -160px 0; }
186 .icon.link { background-position: -180px 0; }
187 .icon.close { background-position: -200px 0; }
188 .icon.check { background-position: -220px 0; }
189 .icon.note { background-position: -240px 0; }
191 /* Rules for links */
195 text-decoration: none;
197 text-decoration: underline;
201 /* Rules for horizontal lines */
205 background-color: #ccc;
210 /* General styles for tables */
214 margin-bottom: $lineheight;
217 padding: $lineheight/4;
218 line-height: $lineheight;
225 vertical-align: middle;
229 /* Rules for the whole left sidebar, including the logo */
238 border-right: 1px solid #ccc;
241 /* Rules for the OpenStreetMap logo in the top left corner */
247 padding: $lineheight $lineheight/4;
260 font-size: $lineheight/2;
265 /* Rules for the site name */
271 vertical-align: text-bottom;
275 /* Rules for the introductory text displayed in the left sidebar to new users */
278 padding: $lineheight/4 $lineheight/2;
280 margin: $lineheight/4 0;
283 .sidebar-copy.intro {
284 border-top: 1px solid #ccc;
288 * Rules for alert boxes shown in the left sidebar when important
289 * information needs to be conveyed such as when the site is
290 * undergoing maintenance.
294 padding: $lineheight/4;
295 border-top: 1px solid #ccc;
302 margin: $lineheight/4;
307 * Rules for notice boxes shown in the left sidebar when important, but
308 * non-critical information needs to be conveyed such as notices about
313 padding: $lineheight/4;
314 border-top: 1px solid #ccc;
320 margin: $lineheight/4;
324 /* Rules for the menu displayed in the left sidebar */
329 padding: $lineheight/4 $lineheight/2 $lineheight/2 $lineheight/2;
332 list-style-type: none;
333 border-bottom: 1px solid #ccc;
334 border-top: 1px solid #ccc;
336 margin: $lineheight/2 0px;
345 list-style-type: none;
351 padding: $lineheight/4 0 $lineheight/4 0;
358 * Rules for "optional boxes" which appear in the left sidebar on
359 * certain pages. Current users are the seach box on the main page
360 * and the tag cloud on the traces pages.
365 padding: $lineheight/4 $lineheight/2;
366 margin: $lineheight/4 0;
370 /* Rules for the search box */
382 font-size: $typeheight;
385 padding: 2px 0px 2px $lineheight/4;
386 box-shadow: inset #DDD 0px 1px 3px;
389 input[type="text"]:focus {
391 border: 1px solid #000;
394 input[type="submit"] {
401 text-indent: -1000px;
403 background: image-url("sprite.png") -2px -2px no-repeat;
406 right: $lineheight/4;
412 margin: $lineheight/4 0 0 0;
415 /* Utility for de-emphasizing content */
424 /* Rules for donation request box */
429 padding: $lineheight/4;
430 border: 1px solid #AED1A0;
432 font-size: $typeheight;
437 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
441 text-decoration: none;
445 /* Rules for Creative Commons logo button */
448 margin: $lineheight/2 0;
452 /* Rules for tabbed navigation bar */
458 border-bottom: 1px solid #ccc;
464 .site-index #top-bar,
465 .site-export #top-bar {
479 a, a:link, a:visited {
482 padding: 3px $lineheight/2;
483 text-decoration: none;
487 -webkit-transition: color 200ms ease-in;
488 -moz-transition: color 200ms ease-in;
489 -o-transition: color 200ms ease-in;
490 transition: color 200ms ease-in;
494 .site-index #tabnav a#viewanchor,
495 .site-edit #tabnav a#editanchor,
496 .changeset-list #tabnav a#historyanchor {
497 border-bottom: 1px solid #aaa;
502 #tabnav a:link:hover, #tabnav a:visited:hover {
503 text-decoration: underline;
506 #tabnav a:link.disabled,
507 #tabnav a:visited.disabled,
508 #tabnav a:link:hover.disabled,
509 #tabnav a:visited:hover.disabled {
513 text-decoration: none;
517 /* Utility for styling notification numbers */
520 padding: 2px $lineheight/4;
528 /* Rules for greeting bar in the top right corner */
533 margin-right: $lineheight/4;
536 .greeting-bar-unread {
540 /* Rules for the message shown in place of the map when javascript is disabled */
549 /* Rules for bootstrap tooltips */
587 display: inline-block;
590 background-color: white;
597 border-color: transparent;
601 .tooltip.top .tooltip-arrow {
605 border-top-color: white;
606 border-width: 5px 5px 0;
609 .tooltip.right .tooltip-arrow {
613 border-right-color: white;
614 border-width: 5px 5px 5px 0;
617 .tooltip.left .tooltip-arrow {
621 border-left-color: white;
622 border-width: 5px 0 5px 5px;
625 .tooltip.bottom .tooltip-arrow {
629 border-bottom-color: white;
630 border-width: 0 5px 5px;
633 /* Rules for Leaflet maps */
635 .leaflet-control .control-button {
639 background-color: #333;
640 background-color: rgba(0,0,0,.6);
641 -bottom: 1px solid #333;
642 border-radius: 4px 0 0 4px;
647 background-color: black;
651 background-color: #9ed485;
655 background-color: #333;
656 background-color: rgba(0,0,0,.5);
665 .leaflet-control .zoomin,
666 .control-layers .control-button {
668 border-radius: 4px 0 0 0;
671 .site .leaflet-control .zoomout,
672 .control-key .control-button {
677 .leaflet-control .zoomout, // For non-main page maps
678 .control-locate .control-button,
679 .control-share .control-button {
680 border-radius: 0 0 0 4px;
683 /* Rules for the home page */
699 border-left: 1px solid #CCC;
703 border-bottom: 1px solid #DDD;
713 border:1px solid #ddd;
719 ul, li:last-child, p:last-child {
733 padding: 5px 5px 5px 7px;
734 background-color: #eee;
739 background-color: #ccc;
757 text-decoration: none;
758 background-color: $lightblue;
763 border-right: 1px solid #fff;
764 border-radius: 4px 0 0 4px;
768 border-left: 1px solid #fff;
769 border-radius: 0 4px 4px 0;
773 background-color: $blue;
785 font-family: monospace;
806 .leaflet-top.leaflet-right {
807 top: $lineheight/2 !important;
809 margin-right: 0px !important;
810 margin-top: 0px !important;
814 .leaflet-popup-scrolled {
815 padding-right: $lineheight;
816 border-bottom: 0px !important;
817 border-top: 0px !important;
820 .leaflet-popup-content-wrapper {
821 border-radius: 4px !important;
822 -webkit-border-radius: 4px !important;
825 /* Rules for edit menu */
828 padding: 0 $lineheight/4;
830 display: inline-block;
832 text-decoration: none !important;
840 background-color: #ffffff;
841 border: 1px solid $lightgrey;
847 padding: 2px $lineheight/4;
848 border-top: 1px solid #eee;
853 /* Rules for attribution text under the main map shown on printouts */
859 .attribution_license,
860 .attribution_project {
864 .attribution_notice {
868 /* Rules for the popout map sidebar */
874 border-right: 1px solid $lightgrey;
880 border-bottom: 1px solid #ccc;
883 margin-bottom: $lineheight/4;
893 padding: $lineheight/2 $lineheight;
895 background: $offwhite;
896 border-bottom: 1px solid #ccc;
918 padding: 0 $lineheight $lineheight/2 $lineheight;
919 margin-top: $lineheight/2;
921 border-bottom: 1px solid #ddd;
925 /* Rules for the map key which appears in the popout sidebar */
928 .mapkey-table-key img {
934 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
938 /* Rules for search results which appear in the popout sidebar */
941 margin-top: $lineheight/4;
942 margin-bottom: $lineheight/4;
945 .search_results_entry {
954 .search_results_entry .search_searching {
956 margin: $lineheight auto;
961 ul.results-list li { border-bottom: 1px solid #ccc; }
963 .search_results_error {
967 /* Rules for data browser information which appears in the popout sidebar */
971 .browse_show_list.button {
996 /* Rules for export information which appears in the popout sidebar */
1002 .export_area_inputs {
1003 margin-bottom: $lineheight/2;
1004 input[type="text"] {
1011 margin: $lineheight/4;
1014 /* Rules for the main content area */
1017 padding: $lineheight;
1021 .site-edit #content,
1022 .site-index #content,
1023 .site-export #content {
1026 top: 30px; bottom: 0;
1027 left: 184px; right: 0;
1028 border-left: 1px solid #ccc;
1046 border-left: 1px solid #ccc;
1050 #content.maximised {
1063 #slim_container_content {
1065 background-color: #FFFFFF;
1066 margin: $lineheight/2 auto;
1068 border-radius: 25px;
1069 -moz-border-radius: 25px;
1070 border: 1px solid #e6e6e6;
1074 margin: $lineheight/2;
1079 margin-bottom: 15px;
1084 margin: 30px $lineheight/2;
1087 margin-right: $lineheight/4;
1089 vertical-align: middle;
1090 margin-bottom: $lineheight/4;
1091 margin-right: $lineheight/4;
1097 padding: $lineheight;
1098 background: $offwhite;
1100 margin-bottom: $lineheight/2;
1107 margin-top: $lineheight/2;
1112 /* Rules for small maps in content areas */
1118 border: 1px solid #ccc;
1119 margin-bottom: $lineheight;
1123 .content_map #small_map {
1126 margin-bottom: $lineheight;
1129 /* Rules for the changeset list shown by the history tab etc */
1134 padding: $lineheight/2 0;
1136 border-top: 1px solid #ccc;
1138 border-bottom: 1px solid #ccc;
1142 background: #FFFFC0;
1146 border-left: 1px solid #ccc;
1147 padding-left: $lineheight/4;
1148 margin-right: $lineheight/4;
1152 #changeset_list_map_wrapper {
1160 #changeset_list_map_wrapper.scrolled {
1164 #changeset_list_map {
1166 bottom: $lineheight;
1170 border: 1px solid #ccc;
1173 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1177 /* Rules for the data browser */
1180 border-top: 1px solid #ccc;
1181 margin-top: $lineheight/2;
1182 padding-top: $lineheight/2;
1187 background-color: #ffe0cc;
1193 margin-bottom: $lineheight/4;
1196 display: inline-block;
1197 vertical-align: top;
1207 display: inline-block;
1208 vertical-align: top;
1216 padding: $lineheight/4 0;
1218 text-overflow: ellipsis;
1229 #browse_map .geolink {
1233 #browse_map .secondary-actions {
1234 margin-bottom: $lineheight/2;
1237 /* Rules for the trace list shown by the traces tab etc */
1240 font-size: $lineheight/2;
1257 .trace_identifiable {
1270 /* Rules for the user profile page */
1275 .userinformation-inner {
1290 .admin-user-info small {
1291 margin-bottom: $lineheight/2;
1293 margin-right: $lineheight;
1298 border-bottom: 1px solid #ccc;
1299 padding-bottom: $lineheight;
1302 margin-bottom: $lineheight/2;
1307 margin-top: $lineheight;
1311 .activity-details p {
1316 #friends-container .contact-activity ul {
1321 p#no_home_location {
1322 margin: $lineheight;
1325 margin-top: $lineheight/4;
1330 /* Rules for the user map */
1332 .content_map .leaflet-popup-content {
1333 margin: $lineheight/2;
1337 /* Rules for user popups on maps */
1343 margin-top: 0 0 0 60px;
1346 img.user_thumbnail {
1348 margin: 0 $lineheight/2 0 0;
1352 /* Rules for the user list */
1355 font-size: $lineheight/2;
1359 vertical-align: middle;
1368 #user_list_actions {
1370 margin-top: $lineheight/2;
1373 /* Rules for the diary list page */
1375 .diary_entry-list img.user_thumbnail {
1382 margin-top: $lineheight/2;
1383 padding-top: $lineheight;
1384 border-top: 1px solid #ccc;
1399 ul.secondary-actions { display: inline-block;}
1402 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1406 #content .post_heading {
1407 margin-bottom: $lineheight;
1410 margin-bottom: $lineheight/2;
1415 /* Rules for the diary entry page */
1422 border: 1px solid #ccc;
1424 margin-bottom: $lineheight;
1427 border-top: 1px solid #ccc;
1428 padding-top: $lineheight;
1429 margin-top: $lineheight/2;
1435 margin-top: $lineheight/2;
1436 border-top: 1px dashed #ccc;
1437 padding-top: $lineheight/2;
1439 margin-top: $lineheight;
1440 padding-top: $lineheight;
1441 border-top: 1px solid #ccc;
1444 margin-bottom: $lineheight/2;
1453 .diary_entry-view img.user_thumbnail {
1457 /* Rules for the login page */
1459 #login_openid_buttons {
1463 #login_openid_buttons li {
1465 padding: $lineheight/4 $lineheight/2;
1468 /* Rules for the account confirmation page */
1472 border: 1px solid #ccc;
1473 padding: $lineheight;
1474 margin-bottom: $lineheight;
1488 margin: $lineheight auto inherit auto;
1493 input[type=submit] {
1499 background: darken($grey, $hovercolor);
1504 margin-bottom: $lineheight;
1506 #contributorGuidance {
1507 background-color: $offwhite;
1509 -moz-border-radius: 4px;
1516 /* Rules for the account settings page */
1518 #accountForm .user_map {
1522 border: 1px solid #ccc;
1525 #accountForm .user_image {
1529 #accountForm #user_image {
1533 #accountForm ul.accountImage-options {
1546 display: inline !important;
1549 .content_map.settings_map {
1554 /* Rules for the oauth settings page */
1556 .oauth_clients .buttons .oauth-edit {
1557 border-radius: 2px 0 0 2px;
1560 .oauth_clients .buttons .oauth-delete {
1561 border-radius: 0 2px 2px 0;
1564 /* Rules for messages pages */
1568 border: 1px solid #ddd;
1570 input[type="submit"] {
1574 border-top: 1px solid #ccc;
1578 background: #f8f8ff;
1591 padding: $lineheight/4;
1602 border-right: 1px solid $lightgrey;
1606 .inbox-row .inbox-mark-read {
1611 margin-bottom: $lineheight;
1612 padding: $lineheight/4 0px 4px 0px;
1613 border-bottom: 1px solid #ccc;
1620 .info-line .user_thumbnail_tiny {
1621 vertical-align: middle;
1630 .inbox-row-unread .inbox-mark-unread {
1634 .message-read .message-buttons {
1635 margin-top: $lineheight;
1636 padding-top: $lineheight;
1637 border-top: 1px solid $lightgrey;
1640 .message-read .buttons .mark-unread-button {
1644 /* Rules for "flash" notice boxes shown at the top of the content area */
1647 padding: $lineheight;
1649 background-color: #ff7070;
1652 background-color: #ffe0cc;
1655 background-color: #CBEEA7;
1659 /* Rules for highlighting fields with rails validation errors */
1661 .field_with_errors {
1663 background-color: #ff7070;
1667 /* Rules for rails validation error boxes */
1671 border: 2px solid #ff7070;
1672 padding: 0 $lineheight/2;
1673 margin-bottom: $lineheight;
1674 background-color: #f0f0f0;
1677 margin: 0 -10px 10px -10px;
1678 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1681 background-color: #c00;
1689 padding: $lineheight/4;
1693 padding-left: $lineheight;
1702 /* Rules for forms */
1706 margin-bottom: $lineheight;
1708 label.standard-label {
1710 margin-bottom: $lineheight/4;
1711 font-size: $typeheight;
1715 label.standard-label.secondary {
1716 display: inline-block;
1717 font-weight: normal;
1720 font-weight: normal;
1727 margin-top: $lineheight;
1728 padding-top: $lineheight;
1729 border-top: 1px solid $lightgrey;
1732 margin-bottom: $lineheight/2;
1740 input[type="checkbox"],
1741 input[type="radio"] {
1747 #remember_me_openid {
1751 input[type="checkbox"],
1752 input[type="radio"] {
1757 input[type="email"],
1759 input[type="password"],
1761 border: 1px solid #ccc;
1772 /* Rules for user images */
1777 border: 1px solid #ccc;
1778 margin-bottom: $lineheight;
1780 margin-right: $lineheight;
1783 img.user_thumbnail {
1786 border: 1px solid #ccc;
1787 margin-right: $lineheight;
1790 img.user_thumbnail_tiny {
1793 border: 1px solid #ccc;
1796 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1799 white-space: nowrap;
1802 /* Rules for geo microformats */
1805 border-bottom: none;
1808 /* Rules for RSS buttons */
1815 /* General styles for action lists / subnavs / pager navs */
1817 ul.secondary-actions {
1822 display: inline-block;
1829 border-left: 1px solid #ccc;
1830 padding-left: $lineheight/4;
1831 margin-right: $lineheight/4;
1842 /* Utility for managing inner content areas */
1844 .inner22 { padding: $lineheight;}
1846 .inner12 { padding: $lineheight/2 $lineheight;}
1848 .inner11 { padding: $lineheight/2;}
1850 .inner02 { padding: 0 $lineheight;}
1852 /* Utility for general button styles */
1854 input[type="button"],
1855 input[type="submit"],
1856 input[type="reset"],
1860 display: inline-block;
1862 padding: $lineheight/4 $lineheight/2;
1863 min-height: 20px + $lineheight/2;
1865 margin: 0 0 $lineheight/2 0;
1870 -moz-border-radius: 2px;
1872 background: darken($blue, $hovercolor);
1873 text-decoration: none;
1876 background: $lightblue;
1878 background: darken($lightblue, $hovercolor);
1882 background: $lightgrey;
1884 background: $lightgrey;
1894 input[type="submit"],
1895 input[type="button"],
1896 input[type="reset"],
1898 box-sizing: border-box;
1904 border-right:1px solid white;
1905 text-overflow: ellipsis;
1906 white-space: nowrap;
1910 .button:first-child {
1911 border-radius:2px 0 0 2px;
1914 .button:last-child {
1915 border-radius:0 2px 2px 0;
1916 border-right-width: 0;
1920 *[value="Hide"] + input:last-child,
1921 *[value="Hide"] + .button:last-child {
1923 border-right-width: 0;
1925 /* if a 3-button set has a hidden middle button */
1926 *[value="Hide"] + input:nth-child(3),
1927 *[value="Hide"] + .button:nth-child(3) {
1928 border-radius:0 2px 2px 0;
1929 border-right-width: 0;
1931 /* if a 3-button set starts with a hidden button */
1932 *[value="Hide"] + input:nth-child(2):not(:last-child),
1933 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1934 border-radius:2px 0 0 2px;
1935 border-right-width: 1px solid white;
1939 /* Rules for doing distinct colour of alternate table rows */
1943 background: $offwhite;
1951 /* Rules for OpenID logo */
1954 vertical-align: text-bottom;
1958 /* Rules for rich text */
1963 padding-bottom: $lineheight/2;
1964 border-bottom: 1px dashed #cccccc;
1965 margin-bottom: $lineheight/2;
1977 font-size: $typeheight;
1982 background: #e8e8e8;
1988 background: #e8e8e8;
1997 padding: $lineheight;
1998 background-color: $offwhite;
2005 border-left: $lineheight solid $offwhite;
2006 padding-left: $lineheight;
2012 padding-left: $lineheight;
2013 margin-bottom: $lineheight;
2014 margin-left: $lineheight;
2022 list-style: decimal;
2026 .diary_post .richtext {
2027 margin-top: $lineheight;
2030 .comments .richtext {
2035 /* Rules for rich text editors */
2037 .richtext_container {
2038 margin-bottom: $lineheight;
2042 display: inline-block;
2043 vertical-align: top;
2046 display: inline-block;
2047 padding: $lineheight;
2048 background-color: $offwhite;
2052 background-image: image-url("loading.gif");
2053 background-repeat: no-repeat;
2054 background-position: center;
2064 display: inline-block;
2065 vertical-align: top;
2067 background-color: #f8f8ff;
2068 padding: $lineheight/2;
2076 border-bottom: 1px solid #ccc;
2077 margin-bottom: $lineheight/4;
2078 padding-bottom: $lineheight/4;
2081 li h4, li span, li p {
2082 display: inline-block;
2083 vertical-align: top;
2094 margin-left: $lineheight/2;
2095 margin-bottom: $lineheight/4;
2096 white-space: nowrap;
2101 /* Rules for the user notes list */
2105 background-color: #eeeeee;
2117 /* Rules for the notes interface */
2119 .leaflet-popup-content .note {
2120 padding-top: $lineheight/2;
2123 .leaflet-popup-content .note {
2125 margin-bottom: $lineheight/2;
2129 margin-top: $lineheight/2;
2135 left: $lineheight/4;
2142 padding-left: $lineheight;
2145 .permalink:hover span {
2151 background-color: #ffe0cc;
2153 margin-bottom: $lineheight/2;
2172 margin-top: $lineheight/4;
2178 * Rules for the iD editor
2188 display: inline-block;
2193 background-color: #eee;
2194 border-bottom: 1px solid #ccc;
2209 /* Rules for rotating sidebar ads */
2215 border-bottom: 1px solid #ccc;
2224 /* Rules for the "Welcome" page */
2235 background-image: image-url("welcome-sprite.png");
2236 background-size: 500px 250px;
2237 display: inline-block;
2246 background-position: -50px 0;
2251 vertical-align: middle;
2255 background-position: -100px 0;
2259 background-position: -150px 0;
2263 background-position: -200px 0;
2267 background-position: -250px 0;
2271 background-position: -300px 0;
2283 background: #EB6F67;
2289 border-bottom: 1px solid #A53931;
2292 text-decoration: none;
2296 background-color: $offwhite;