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%; }
77 .pad1 { padding: $lineheight/2; }
78 .pad2 { padding: $lineheight; }
80 /* Default rules for the body of every page */
83 -moz-box-sizing: border-box;
84 -webkit-box-sizing: border-box;
85 box-sizing: border-box;
89 font-family: 'Helvetica Neue',Arial,sans-serif;
90 font-size: $typeheight;
93 background-color: #fff;
100 background-color: #f0f0f0;
104 margin-top: $lineheight/2;
105 margin-bottom: $lineheight;
120 margin-top: $lineheight/2;
121 margin-bottom: $lineheight;
125 font-size: $typeheight;
126 margin-top: $lineheight/2;
127 margin-bottom: $lineheight/2;
133 margin-bottom: $lineheight;
156 margin: 0 0 $lineheight/2 0;
160 vertical-align: middle;
161 margin-right: $lineheight/4;
164 /* Rules for icons */
167 display:inline-block;
171 background:transparent image-url("sprite.png") no-repeat 0 0;
180 .icon.search { background-position: 0 0; }
181 .icon.donate { background-position: -20px 0; }
182 .icon.zoomin { background-position: -40px 0; }
183 .icon.zoomout { background-position: -60px 0; }
184 .icon.geolocate { background-position: -80px 0; }
185 .active .icon.geolocate { background-position: -80px -20px; }
186 .icon.layers { background-position: -100px 0; }
187 .icon.key { background-position: -120px 0; }
188 .icon.share { background-position: -140px 0; }
189 .icon.clipboard { background-position: -160px 0; }
190 .icon.link { background-position: -180px 0; }
191 .icon.close { background-position: -200px 0; }
192 .icon.check { background-position: -220px 0; }
193 .icon.note { background-position: -240px 0; }
195 /* Rules for links */
199 text-decoration: none;
201 text-decoration: underline;
205 /* Rules for horizontal lines */
209 background-color: #ccc;
214 /* General styles for tables */
218 margin-bottom: $lineheight;
221 padding: $lineheight/4;
222 line-height: $lineheight;
229 vertical-align: middle;
233 /* Rules for the whole left sidebar, including the logo */
242 border-right: 1px solid #ccc;
245 /* Rules for the OpenStreetMap logo in the top left corner */
251 padding: $lineheight $lineheight/4;
264 font-size: $lineheight/2;
269 /* Rules for the site name */
275 vertical-align: text-bottom;
279 /* Rules for the introductory text displayed in the left sidebar to new users */
282 padding: $lineheight/4 $lineheight/2;
284 margin: $lineheight/4 0;
287 .sidebar-copy.intro {
288 border-top: 1px solid #ccc;
292 * Rules for alert boxes shown in the left sidebar when important
293 * information needs to be conveyed such as when the site is
294 * undergoing maintenance.
298 padding: $lineheight/4;
299 border-top: 1px solid #ccc;
306 margin: $lineheight/4;
311 * Rules for notice boxes shown in the left sidebar when important, but
312 * non-critical information needs to be conveyed such as notices about
317 padding: $lineheight/4;
318 border-top: 1px solid #ccc;
324 margin: $lineheight/4;
328 /* Rules for the menu displayed in the left sidebar */
333 padding: $lineheight/4 $lineheight/2 $lineheight/2 $lineheight/2;
336 list-style-type: none;
337 border-bottom: 1px solid #ccc;
338 border-top: 1px solid #ccc;
340 margin: $lineheight/2 0px;
349 list-style-type: none;
355 padding: $lineheight/4 0 $lineheight/4 0;
362 * Rules for "optional boxes" which appear in the left sidebar on
363 * certain pages. Current users are the seach box on the main page
364 * and the tag cloud on the traces pages.
369 padding: $lineheight/4 $lineheight/2;
370 margin: $lineheight/4 0;
374 /* Rules for the search box */
386 font-size: $typeheight;
389 padding: 2px 0px 2px $lineheight/4;
390 box-shadow: inset #DDD 0px 1px 3px;
393 input[type="text"]:focus {
395 border: 1px solid #000;
398 input[type="submit"] {
405 text-indent: -1000px;
407 background: image-url("sprite.png") -2px -2px no-repeat;
410 right: $lineheight/4;
416 margin: $lineheight/4 0 0 0;
419 /* Utility for de-emphasizing content */
428 /* Rules for donation request box */
433 padding: $lineheight/4;
434 border: 1px solid #AED1A0;
436 font-size: $typeheight;
441 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
445 text-decoration: none;
449 /* Rules for Creative Commons logo button */
452 margin: $lineheight/2 0;
456 /* Rules for tabbed navigation bar */
462 border-bottom: 1px solid #ccc;
468 .site-index #top-bar,
469 .site-export #top-bar {
483 a, a:link, a:visited {
486 padding: 3px $lineheight/2;
487 text-decoration: none;
491 -webkit-transition: color 200ms ease-in;
492 -moz-transition: color 200ms ease-in;
493 -o-transition: color 200ms ease-in;
494 transition: color 200ms ease-in;
498 .site-index #tabnav a#viewanchor,
499 .site-edit #tabnav a#editanchor,
500 .changeset-list #tabnav a#historyanchor {
501 border-bottom: 1px solid #aaa;
506 #tabnav a:link:hover, #tabnav a:visited:hover {
507 text-decoration: underline;
510 #tabnav a:link.disabled,
511 #tabnav a:visited.disabled,
512 #tabnav a:link:hover.disabled,
513 #tabnav a:visited:hover.disabled {
517 text-decoration: none;
521 /* Utility for styling notification numbers */
524 padding: 2px $lineheight/4;
532 /* Rules for greeting bar in the top right corner */
537 margin-right: $lineheight/4;
540 .greeting-bar-unread {
544 /* Rules for the message shown in place of the map when javascript is disabled */
553 /* Rules for bootstrap tooltips */
591 display: inline-block;
594 background-color: white;
601 border-color: transparent;
605 .tooltip.top .tooltip-arrow {
609 border-top-color: white;
610 border-width: 5px 5px 0;
613 .tooltip.right .tooltip-arrow {
617 border-right-color: white;
618 border-width: 5px 5px 5px 0;
621 .tooltip.left .tooltip-arrow {
625 border-left-color: white;
626 border-width: 5px 0 5px 5px;
629 .tooltip.bottom .tooltip-arrow {
633 border-bottom-color: white;
634 border-width: 0 5px 5px;
637 /* Rules for Leaflet maps */
639 .leaflet-control .control-button {
643 background-color: #333;
644 background-color: rgba(0,0,0,.6);
645 -bottom: 1px solid #333;
646 border-radius: 4px 0 0 4px;
651 background-color: black;
655 background-color: #9ed485;
659 background-color: #333;
660 background-color: rgba(0,0,0,.5);
669 .leaflet-control .zoomin,
670 .control-layers .control-button {
672 border-radius: 4px 0 0 0;
675 .site .leaflet-control .zoomout,
676 .control-key .control-button {
681 .leaflet-control .zoomout, // For non-main page maps
682 .control-locate .control-button,
683 .control-share .control-button {
684 border-radius: 0 0 0 4px;
687 /* Rules for the home page */
703 border-left: 1px solid #CCC;
707 border-bottom: 1px solid #DDD;
717 border:1px solid #ddd;
723 ul, li:last-child, p:last-child {
737 padding: 5px 5px 5px 7px;
738 background-color: #eee;
743 background-color: #ccc;
761 text-decoration: none;
762 background-color: $lightblue;
767 border-right: 1px solid #fff;
768 border-radius: 4px 0 0 4px;
772 border-left: 1px solid #fff;
773 border-radius: 0 4px 4px 0;
777 background-color: $blue;
789 font-family: monospace;
810 .leaflet-top.leaflet-right {
811 top: $lineheight/2 !important;
813 margin-right: 0px !important;
814 margin-top: 0px !important;
818 .leaflet-popup-scrolled {
819 padding-right: $lineheight;
820 border-bottom: 0px !important;
821 border-top: 0px !important;
824 .leaflet-popup-content-wrapper {
825 border-radius: 4px !important;
826 -webkit-border-radius: 4px !important;
829 /* Rules for edit menu */
832 padding: 0 $lineheight/4;
834 display: inline-block;
836 text-decoration: none !important;
844 background-color: #ffffff;
845 border: 1px solid $lightgrey;
851 padding: 2px $lineheight/4;
852 border-top: 1px solid #eee;
857 /* Rules for attribution text under the main map shown on printouts */
863 .attribution_license,
864 .attribution_project {
868 .attribution_notice {
872 /* Rules for the popout map sidebar */
878 border-right: 1px solid $lightgrey;
884 border-bottom: 1px solid #ccc;
887 margin-bottom: $lineheight/4;
897 padding: $lineheight/2 $lineheight;
899 background: $offwhite;
900 border-bottom: 1px solid #ccc;
922 padding: 0 $lineheight $lineheight/2 $lineheight;
923 margin-top: $lineheight/2;
925 border-bottom: 1px solid #ddd;
929 /* Rules for the map key which appears in the popout sidebar */
932 .mapkey-table-key img {
938 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
942 /* Rules for search results which appear in the popout sidebar */
945 margin-top: $lineheight/4;
946 margin-bottom: $lineheight/4;
949 .search_results_entry {
958 .search_results_entry .search_searching {
960 margin: $lineheight auto;
965 ul.results-list li { border-bottom: 1px solid #ccc; }
967 .search_results_error {
971 /* Rules for data browser information which appears in the popout sidebar */
975 .browse_show_list.button {
1000 /* Rules for export information which appears in the popout sidebar */
1006 .export_area_inputs {
1007 margin-bottom: $lineheight/2;
1008 input[type="text"] {
1015 margin: $lineheight/4;
1018 /* Rules for the main content area */
1024 .site-edit #content,
1025 .site-index #content,
1026 .site-export #content {
1029 top: 30px; bottom: 0;
1030 left: 184px; right: 0;
1031 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;
2275 background: #EB6F67;
2281 border-bottom: 1px solid #A53931;
2284 text-decoration: none;
2288 background-color: $offwhite;