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;
1045 border-left: 1px solid #ccc;
1049 #content.maximised {
1062 #slim_container_content {
1064 background-color: #FFFFFF;
1065 margin: $lineheight/2 auto;
1067 border-radius: 25px;
1068 -moz-border-radius: 25px;
1069 border: 1px solid #e6e6e6;
1073 margin: $lineheight/2;
1078 margin-bottom: 15px;
1083 margin: 30px $lineheight/2;
1086 margin-right: $lineheight/4;
1088 vertical-align: middle;
1089 margin-bottom: $lineheight/4;
1090 margin-right: $lineheight/4;
1096 padding: $lineheight;
1097 background: $offwhite;
1099 margin-bottom: $lineheight/2;
1106 margin-top: $lineheight/2;
1111 /* Rules for small maps in content areas */
1117 border: 1px solid #ccc;
1118 margin-bottom: $lineheight;
1122 .content_map #small_map {
1125 margin-bottom: $lineheight;
1128 /* Rules for the changeset list shown by the history tab etc */
1133 padding: $lineheight/2 0;
1135 border-top: 1px solid #ccc;
1137 border-bottom: 1px solid #ccc;
1141 background: #FFFFC0;
1145 border-left: 1px solid #ccc;
1146 padding-left: $lineheight/4;
1147 margin-right: $lineheight/4;
1151 #changeset_list_map_wrapper {
1159 #changeset_list_map_wrapper.scrolled {
1163 #changeset_list_map {
1165 bottom: $lineheight;
1169 border: 1px solid #ccc;
1172 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1176 /* Rules for the data browser */
1179 border-top: 1px solid #ccc;
1180 margin-top: $lineheight/2;
1181 padding-top: $lineheight/2;
1186 background-color: #ffe0cc;
1192 margin-bottom: $lineheight/4;
1195 display: inline-block;
1196 vertical-align: top;
1206 display: inline-block;
1207 vertical-align: top;
1215 padding: $lineheight/4 0;
1217 text-overflow: ellipsis;
1228 #browse_map .geolink {
1232 #browse_map .secondary-actions {
1233 margin-bottom: $lineheight/2;
1236 /* Rules for the trace list shown by the traces tab etc */
1239 font-size: $lineheight/2;
1256 .trace_identifiable {
1269 /* Rules for the user profile page */
1274 .userinformation-inner {
1289 .admin-user-info small {
1290 margin-bottom: $lineheight/2;
1292 margin-right: $lineheight;
1297 border-bottom: 1px solid #ccc;
1298 padding-bottom: $lineheight;
1301 margin-bottom: $lineheight/2;
1306 margin-top: $lineheight;
1310 .activity-details p {
1315 #friends-container .contact-activity ul {
1320 p#no_home_location {
1321 margin: $lineheight;
1324 margin-top: $lineheight/4;
1329 /* Rules for the user map */
1331 .content_map .leaflet-popup-content {
1332 margin: $lineheight/2;
1336 /* Rules for user popups on maps */
1342 margin-top: 0 0 0 60px;
1345 img.user_thumbnail {
1347 margin: 0 $lineheight/2 0 0;
1351 /* Rules for the user list */
1354 font-size: $lineheight/2;
1358 vertical-align: middle;
1367 #user_list_actions {
1369 margin-top: $lineheight/2;
1372 /* Rules for the diary list page */
1374 .diary_entry-list img.user_thumbnail {
1381 margin-top: $lineheight/2;
1382 padding-top: $lineheight;
1383 border-top: 1px solid #ccc;
1398 ul.secondary-actions { display: inline-block;}
1401 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1405 #content .post_heading {
1406 margin-bottom: $lineheight;
1409 margin-bottom: $lineheight/2;
1414 /* Rules for the diary entry page */
1421 border: 1px solid #ccc;
1423 margin-bottom: $lineheight;
1426 border-top: 1px solid #ccc;
1427 padding-top: $lineheight;
1428 margin-top: $lineheight/2;
1434 margin-top: $lineheight/2;
1435 border-top: 1px dashed #ccc;
1436 padding-top: $lineheight/2;
1438 margin-top: $lineheight;
1439 padding-top: $lineheight;
1440 border-top: 1px solid #ccc;
1443 margin-bottom: $lineheight/2;
1452 .diary_entry-view img.user_thumbnail {
1456 /* Rules for the login page */
1458 #login_openid_buttons {
1462 #login_openid_buttons li {
1464 padding: $lineheight/4 $lineheight/2;
1467 /* Rules for the account confirmation page */
1471 border: 1px solid #ccc;
1472 padding: $lineheight;
1473 margin-bottom: $lineheight;
1487 margin: $lineheight auto inherit auto;
1492 input[type=submit] {
1498 background: darken($grey, $hovercolor);
1503 margin-bottom: $lineheight;
1505 #contributorGuidance {
1506 background-color: $offwhite;
1508 -moz-border-radius: 4px;
1515 /* Rules for the account settings page */
1517 #accountForm .user_map {
1521 border: 1px solid #ccc;
1524 #accountForm .user_image {
1528 #accountForm #user_image {
1532 #accountForm ul.accountImage-options {
1545 display: inline !important;
1548 .content_map.settings_map {
1553 /* Rules for the oauth settings page */
1555 .oauth_clients .buttons .oauth-edit {
1556 border-radius: 2px 0 0 2px;
1559 .oauth_clients .buttons .oauth-delete {
1560 border-radius: 0 2px 2px 0;
1563 /* Rules for messages pages */
1567 border: 1px solid #ddd;
1569 input[type="submit"] {
1573 border-top: 1px solid #ccc;
1577 background: #f8f8ff;
1590 padding: $lineheight/4;
1601 border-right: 1px solid $lightgrey;
1605 .inbox-row .inbox-mark-read {
1610 margin-bottom: $lineheight;
1611 padding: $lineheight/4 0px 4px 0px;
1612 border-bottom: 1px solid #ccc;
1619 .info-line .user_thumbnail_tiny {
1620 vertical-align: middle;
1629 .inbox-row-unread .inbox-mark-unread {
1633 .message-read .message-buttons {
1634 margin-top: $lineheight;
1635 padding-top: $lineheight;
1636 border-top: 1px solid $lightgrey;
1639 .message-read .buttons .mark-unread-button {
1643 /* Rules for "flash" notice boxes shown at the top of the content area */
1646 padding: $lineheight;
1648 background-color: #ff7070;
1651 background-color: #ffe0cc;
1654 background-color: #CBEEA7;
1658 /* Rules for highlighting fields with rails validation errors */
1660 .field_with_errors {
1662 background-color: #ff7070;
1666 /* Rules for rails validation error boxes */
1670 border: 2px solid #ff7070;
1671 padding: 0 $lineheight/2;
1672 margin-bottom: $lineheight;
1673 background-color: #f0f0f0;
1676 margin: 0 -10px 10px -10px;
1677 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1680 background-color: #c00;
1688 padding: $lineheight/4;
1692 padding-left: $lineheight;
1701 /* Rules for forms */
1705 margin-bottom: $lineheight;
1707 label.standard-label {
1709 margin-bottom: $lineheight/4;
1710 font-size: $typeheight;
1714 label.standard-label.secondary {
1715 display: inline-block;
1716 font-weight: normal;
1719 font-weight: normal;
1726 margin-top: $lineheight;
1727 padding-top: $lineheight;
1728 border-top: 1px solid $lightgrey;
1731 margin-bottom: $lineheight/2;
1739 input[type="checkbox"],
1740 input[type="radio"] {
1746 #remember_me_openid {
1750 input[type="checkbox"],
1751 input[type="radio"] {
1756 input[type="email"],
1758 input[type="password"],
1760 border: 1px solid #ccc;
1771 /* Rules for user images */
1776 border: 1px solid #ccc;
1777 margin-bottom: $lineheight;
1779 margin-right: $lineheight;
1782 img.user_thumbnail {
1785 border: 1px solid #ccc;
1786 margin-right: $lineheight;
1789 img.user_thumbnail_tiny {
1792 border: 1px solid #ccc;
1795 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1798 white-space: nowrap;
1801 /* Rules for geo microformats */
1804 border-bottom: none;
1807 /* Rules for RSS buttons */
1814 /* General styles for action lists / subnavs / pager navs */
1816 ul.secondary-actions {
1821 display: inline-block;
1828 border-left: 1px solid #ccc;
1829 padding-left: $lineheight/4;
1830 margin-right: $lineheight/4;
1841 /* Utility for managing inner content areas */
1843 .inner22 { padding: $lineheight;}
1845 .inner12 { padding: $lineheight/2 $lineheight;}
1847 .inner11 { padding: $lineheight/2;}
1849 .inner02 { padding: 0 $lineheight;}
1851 /* Utility for general button styles */
1853 input[type="button"],
1854 input[type="submit"],
1855 input[type="reset"],
1859 display: inline-block;
1861 padding: $lineheight/4 $lineheight/2;
1862 min-height: 20px + $lineheight/2;
1864 margin: 0 0 $lineheight/2 0;
1869 -moz-border-radius: 2px;
1871 background: darken($blue, $hovercolor);
1872 text-decoration: none;
1875 background: $lightblue;
1877 background: darken($lightblue, $hovercolor);
1881 background: $lightgrey;
1883 background: $lightgrey;
1893 input[type="submit"],
1894 input[type="button"],
1895 input[type="reset"],
1897 box-sizing: border-box;
1903 border-right:1px solid white;
1904 text-overflow: ellipsis;
1905 white-space: nowrap;
1909 .button:first-child {
1910 border-radius:2px 0 0 2px;
1913 .button:last-child {
1914 border-radius:0 2px 2px 0;
1915 border-right-width: 0;
1919 *[value="Hide"] + input:last-child,
1920 *[value="Hide"] + .button:last-child {
1922 border-right-width: 0;
1924 /* if a 3-button set has a hidden middle button */
1925 *[value="Hide"] + input:nth-child(3),
1926 *[value="Hide"] + .button:nth-child(3) {
1927 border-radius:0 2px 2px 0;
1928 border-right-width: 0;
1930 /* if a 3-button set starts with a hidden button */
1931 *[value="Hide"] + input:nth-child(2):not(:last-child),
1932 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1933 border-radius:2px 0 0 2px;
1934 border-right-width: 1px solid white;
1938 /* Rules for doing distinct colour of alternate table rows */
1942 background: $offwhite;
1950 /* Rules for OpenID logo */
1953 vertical-align: text-bottom;
1957 /* Rules for rich text */
1962 padding-bottom: $lineheight/2;
1963 border-bottom: 1px dashed #cccccc;
1964 margin-bottom: $lineheight/2;
1976 font-size: $typeheight;
1981 background: #e8e8e8;
1987 background: #e8e8e8;
1996 padding: $lineheight;
1997 background-color: $offwhite;
2004 border-left: $lineheight solid $offwhite;
2005 padding-left: $lineheight;
2011 padding-left: $lineheight;
2012 margin-bottom: $lineheight;
2013 margin-left: $lineheight;
2021 list-style: decimal;
2025 .diary_post .richtext {
2026 margin-top: $lineheight;
2029 .comments .richtext {
2034 /* Rules for rich text editors */
2036 .richtext_container {
2037 margin-bottom: $lineheight;
2041 display: inline-block;
2042 vertical-align: top;
2045 display: inline-block;
2046 padding: $lineheight;
2047 background-color: $offwhite;
2051 background-image: image-url("loading.gif");
2052 background-repeat: no-repeat;
2053 background-position: center;
2063 display: inline-block;
2064 vertical-align: top;
2066 background-color: #f8f8ff;
2067 padding: $lineheight/2;
2075 border-bottom: 1px solid #ccc;
2076 margin-bottom: $lineheight/4;
2077 padding-bottom: $lineheight/4;
2080 li h4, li span, li p {
2081 display: inline-block;
2082 vertical-align: top;
2093 margin-left: $lineheight/2;
2094 margin-bottom: $lineheight/4;
2095 white-space: nowrap;
2100 /* Rules for the user notes list */
2104 background-color: #eeeeee;
2116 /* Rules for the notes interface */
2118 .leaflet-popup-content .note {
2119 padding-top: $lineheight/2;
2122 .leaflet-popup-content .note {
2124 margin-bottom: $lineheight/2;
2128 margin-top: $lineheight/2;
2134 left: $lineheight/4;
2141 padding-left: $lineheight;
2144 .permalink:hover span {
2150 background-color: #ffe0cc;
2152 margin-bottom: $lineheight/2;
2171 margin-top: $lineheight/4;
2177 * Rules for the iD editor
2187 display: inline-block;
2192 background-color: #eee;
2193 border-bottom: 1px solid #ccc;
2208 /* Rules for rotating sidebar ads */
2214 border-bottom: 1px solid #ccc;
2223 /* Rules for the "Welcome" page */
2234 background-image: image-url("welcome-sprite.png");
2235 background-size: 500px 250px;
2236 display: inline-block;
2245 background-position: -50px 0;
2254 background-position: 0 -50px;
2259 vertical-align: middle;
2263 background-position: -100px 0;
2267 background-position: -150px 0;
2271 background-position: -200px 0;
2275 background-position: -250px 0;
2279 background-position: -300px 0;
2291 background-color: $offwhite;