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/ */
60 /* Default rules for the body of every page */
63 -moz-box-sizing: border-box;
64 -webkit-box-sizing: border-box;
65 box-sizing: border-box;
69 font-family: 'Helvetica Neue',Arial,sans-serif;
70 font-size: $typeheight;
73 background-color: #fff;
80 background-color: #f0f0f0;
84 margin-top: $lineheight/2;
85 margin-bottom: $lineheight;
100 margin-top: $lineheight/2;
101 margin-bottom: $lineheight;
105 font-size: $typeheight;
106 margin-top: $lineheight/2;
107 margin-bottom: $lineheight/2;
113 margin-bottom: $lineheight;
136 margin: 0 0 $lineheight/2 0;
140 vertical-align: middle;
141 margin-right: $lineheight/4;
144 /* Rules for icons */
147 display:inline-block;
151 background:transparent image-url("sprite.png") no-repeat 0 0;
160 .icon.search { background-position: 0 0; }
161 .icon.donate { background-position: -20px 0; }
162 .icon.zoomin { background-position: -40px 0; }
163 .icon.zoomout { background-position: -60px 0; }
164 .icon.geolocate { background-position: -80px 0; }
165 .active .icon.geolocate { background-position: -80px -20px; }
166 .icon.layers { background-position: -100px 0; }
167 .icon.key { background-position: -120px 0; }
168 .icon.share { background-position: -140px 0; }
169 .icon.clipboard { background-position: -160px 0; }
170 .icon.link { background-position: -180px 0; }
171 .icon.close { background-position: -200px 0; }
172 .icon.check { background-position: -220px 0; }
173 .icon.note { background-position: -240px 0; }
175 /* Rules for links */
179 text-decoration: none;
181 text-decoration: underline;
185 /* Rules for horizontal lines */
189 background-color: #ccc;
194 /* General styles for tables */
198 margin-bottom: $lineheight;
201 padding: $lineheight/4;
202 line-height: $lineheight;
209 vertical-align: middle;
213 /* Rules for the whole left sidebar, including the logo */
222 border-right: 1px solid #ccc;
225 /* Rules for the OpenStreetMap logo in the top left corner */
231 padding: $lineheight $lineheight/4;
244 font-size: $lineheight/2;
249 /* Rules for the site name */
255 /* Rules for the introductory text displayed in the left sidebar to new users */
258 padding: $lineheight/4 $lineheight/2;
260 margin: $lineheight/4 0;
263 .sidebar-copy.intro {
264 border-top: 1px solid #ccc;
268 * Rules for alert boxes shown in the left sidebar when important
269 * information needs to be conveyed such as when the site is
270 * undergoing maintenance.
274 padding: $lineheight/4;
275 border-top: 1px solid #ccc;
282 margin: $lineheight/4;
287 * Rules for notice boxes shown in the left sidebar when important, but
288 * non-critical information needs to be conveyed such as notices about
293 padding: $lineheight/4;
294 border-top: 1px solid #ccc;
300 margin: $lineheight/4;
304 /* Rules for the menu displayed in the left sidebar */
309 padding: $lineheight/4 $lineheight/2;
312 list-style-type: none;
313 border-bottom: 1px solid #ccc;
314 border-top: 1px solid #ccc;
316 margin: $lineheight/2 0px;
325 list-style-type: none;
331 padding: $lineheight/4 0 $lineheight/4 0;
342 * Rules for "optional boxes" which appear in the left sidebar on
343 * certain pages. Current users are the seach box on the main page
344 * and the tag cloud on the traces pages.
349 padding: $lineheight/4 $lineheight/2;
350 margin: $lineheight/4 0;
354 /* Rules for the search box */
366 font-size: $typeheight;
369 padding: 2px 0px 2px $lineheight/4;
370 box-shadow: inset #DDD 0px 1px 3px;
373 input[type="text"]:focus {
375 border: 1px solid #000;
378 input[type="submit"] {
385 text-indent: -1000px;
387 background: image-url("sprite.png") 0 0 no-repeat;
390 right: $lineheight/4;
396 margin: $lineheight/4 0 0 0;
399 /* Utility for de-emphasizing content */
408 /* Rules for donation request box */
413 padding: $lineheight/4;
414 border: 1px solid #AED1A0;
416 font-size: $typeheight;
421 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
425 text-decoration: none;
429 /* Rules for Creative Commons logo button */
432 margin: $lineheight/2 0;
436 /* Rules for tabbed navigation bar */
442 border-bottom: 1px solid #ccc;
448 .site-index #top-bar,
449 .site-export #top-bar {
462 a, a:link, a:visited {
465 padding: 3px $lineheight/2;
466 text-decoration: none;
470 -webkit-transition: color 200ms ease-in;
471 -moz-transition: color 200ms ease-in;
472 -o-transition: color 200ms ease-in;
473 transition: color 200ms ease-in;
477 .site-index #tabnav a#viewanchor,
478 .site-edit #tabnav a#editanchor,
479 .changeset-list #tabnav a#historyanchor,
480 .site-export #tabnav a#exportanchor {
481 border-bottom: 1px solid #aaa;
486 #tabnav a:link:hover, #tabnav a:visited:hover {
487 text-decoration: underline;
490 #tabnav a:link.disabled,
491 #tabnav a:visited.disabled,
492 #tabnav a:link:hover.disabled,
493 #tabnav a:visited:hover.disabled {
497 text-decoration: none;
501 /* Utility for styling notification numbers */
504 padding: 2px $lineheight/4;
512 /* Rules for greeting bar in the top right corner */
517 margin-right: $lineheight/4;
520 .greeting-bar-unread {
524 /* Rules for the message shown in place of the map when javascript is disabled */
533 /* Rules for Leaflet maps */
535 .leaflet-control .control-button {
539 background-color: white;
540 background-color: rgba(255,255,255,.8);
545 .leaflet-control .zoomin,
546 .control-layers .control-button {
548 border-radius: 4px 4px 0px 0px;
551 .site .leaflet-control .zoomout,
552 .control-key .control-button {
557 .leaflet-control .zoomout,
558 .control-locate .control-button,
559 .control-share .control-button {
560 border-radius: 0px 0px 4px 4px;
563 .leaflet-control .control-button:hover {
564 background-color: white;
567 .leaflet-control .control-button .icon {
571 /* Rules for the home page */
587 border-left: 1px solid #CCC;
591 border-bottom: 1px solid #DDD;
601 border:1px solid #ddd;
614 padding: 5px 5px 5px 7px;
615 background-color: #eee;
620 background-color: #ccc;
635 display: inline-block;
641 .site-index .leaflet-top,
642 .site-export .leaflet-top {
643 top: $lineheight/2 !important;
645 margin-top: 0px !important;
649 .leaflet-popup-scrolled {
650 padding-right: $lineheight;
651 border-bottom: 0px !important;
652 border-top: 0px !important;
655 .leaflet-popup-content-wrapper {
656 border-radius: 4px !important;
657 -webkit-border-radius: 4px !important;
660 /* Rules for edit menu */
663 padding: 0 $lineheight/4;
665 display: inline-block;
667 text-decoration: none !important;
675 background-color: #ffffff;
676 border: 1px solid $keyline;
682 padding: 2px $lineheight/4;
683 border-top: 1px solid #eee;
688 /* Rules for attribution text under the main map shown on printouts */
694 .attribution_license,
695 .attribution_project {
699 .attribution_notice {
703 /* Rules for the popout map sidebar */
710 border-right: 1px solid $keyline;
715 border-bottom: 1px solid #ccc;
718 margin-bottom: $lineheight/4;
728 padding: $lineheight/2 $lineheight;
730 background: $offwhite;
731 border-bottom: 1px solid #ccc;
751 padding: 0 $lineheight $lineheight/2 $lineheight;
752 margin-top: $lineheight/2;
754 border-bottom: 1px solid #ddd;
758 /* Rules for the map key which appears in the popout sidebar */
761 .mapkey-table-key img {
767 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
771 /* Rules for search results which appear in the popout sidebar */
774 margin-top: $lineheight/4;
775 margin-bottom: $lineheight/4;
778 .search_results_entry {
787 .search_results_entry .search_searching {
789 margin: $lineheight auto;
794 ul.results-list li { border-bottom: 1px solid #ccc; }
796 .search_results_error {
800 /* Rules for data browser information which appears in the popout sidebar */
804 .browse_show_list.button {
829 /* Rules for export information which appears in the popout sidebar */
835 .export_area_inputs {
836 margin-bottom: $lineheight/2;
844 margin: $lineheight/4;
847 .export_details input[type="text"]#export_html_text {
851 #sidebar #marker_inputs li:last-child {
852 margin-bottom: $lineheight/2;
861 /* Rules for the main content area */
864 padding: $lineheight;
869 .site-index #content,
870 .site-export #content {
873 top: 30px; bottom: 0;
874 left: 184px; right: 0;
875 border-left: 1px solid #ccc;
880 border-left: 1px solid #ccc;
884 .site-edit #content {
901 #slim_container_content {
903 background-color: #FFFFFF;
904 margin: $lineheight/2 auto;
907 -moz-border-radius: 25px;
908 border: 1px solid #e6e6e6;
912 margin: $lineheight/2;
922 margin: 30px $lineheight/2;
925 margin-right: $lineheight/4;
927 vertical-align: middle;
928 margin-bottom: $lineheight/4;
929 margin-right: $lineheight/4;
935 padding: $lineheight;
936 background: $offwhite;
938 margin-bottom: $lineheight/2;
945 margin-top: $lineheight/2;
950 /* Rules for small maps in content areas */
956 border: 1px solid #ccc;
957 margin-bottom: $lineheight;
961 .content_map #small_map {
964 margin-bottom: $lineheight;
967 /* Rules for the changeset list shown by the history tab etc */
972 padding: $lineheight/2 0;
974 border-top: 1px solid #ccc;
976 border-bottom: 1px solid #ccc;
984 border-left: 1px solid #ccc;
985 padding-left: $lineheight/4;
986 margin-right: $lineheight/4;
990 #changeset_list_map_wrapper {
998 #changeset_list_map_wrapper.scrolled {
1002 #changeset_list_map {
1004 bottom: $lineheight;
1008 border: 1px solid #ccc;
1011 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1015 /* Rules for the data browser */
1018 border-top: 1px solid #ccc;
1019 margin-top: $lineheight/2;
1020 padding-top: $lineheight/2;
1025 background-color: #ffe0cc;
1031 margin-bottom: $lineheight/4;
1033 p, ul, .bbox, .geo {
1034 display: inline-block;
1035 vertical-align: top;
1044 display: inline-block;
1045 vertical-align: top;
1053 padding: $lineheight/4 0;
1055 text-overflow: ellipsis;
1066 #browse_map .geolink {
1070 #browse_map .secondary-actions {
1071 margin-bottom: $lineheight/2;
1074 /* Rules for the trace list shown by the traces tab etc */
1077 font-size: $lineheight/2;
1094 .trace_identifiable {
1107 /* Rules for the user profile page */
1112 .userinformation-inner {
1127 .admin-user-info small {
1128 margin-bottom: $lineheight/2;
1130 margin-right: $lineheight;
1135 border-bottom: 1px solid #ccc;
1136 padding-bottom: $lineheight;
1139 margin-bottom: $lineheight/2;
1144 margin-top: $lineheight;
1148 .activity-details p {
1153 #friends-container .contact-activity ul {
1158 p#no_home_location {
1159 margin: $lineheight;
1162 margin-top: $lineheight/4;
1167 /* Rules for the user map */
1169 .content_map .leaflet-popup-content {
1170 margin: $lineheight/2;
1174 /* Rules for user popups on maps */
1180 margin-top: 0 0 0 60px;
1183 img.user_thumbnail {
1185 margin: 0 $lineheight/2 0 0;
1189 /* Rules for the user list */
1192 font-size: $lineheight/2;
1196 vertical-align: middle;
1205 #user_list_actions {
1207 margin-top: $lineheight/2;
1210 /* Rules for the diary list page */
1212 .diary_entry-list img.user_thumbnail {
1219 margin-top: $lineheight/2;
1220 padding-top: $lineheight;
1221 border-top: 1px solid #ccc;
1236 ul.secondary-actions { display: inline-block;}
1239 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1243 #content .post_heading {
1244 margin-bottom: $lineheight;
1247 margin-bottom: $lineheight/2;
1252 /* Rules for the diary entry page */
1259 border: 1px solid #ccc;
1261 margin-bottom: $lineheight;
1264 border-top: 1px solid #ccc;
1265 padding-top: $lineheight;
1266 margin-top: $lineheight/2;
1272 margin-top: $lineheight/2;
1273 border-top: 1px dashed #ccc;
1274 padding-top: $lineheight/2;
1276 margin-top: $lineheight;
1277 padding-top: $lineheight;
1278 border-top: 1px solid #ccc;
1281 margin-bottom: $lineheight/2;
1290 .diary_entry-view img.user_thumbnail {
1294 /* Rules for the login page */
1296 #login_openid_buttons {
1300 #login_openid_buttons li {
1302 padding: $lineheight/4 $lineheight/2;
1305 /* Rules for the account confirmation page */
1309 border: 1px solid #ccc;
1310 padding: $lineheight;
1311 margin-bottom: $lineheight;
1325 margin: $lineheight auto inherit auto;
1330 input[type=submit] {
1336 background: darken($grey, $hovercolor);
1341 margin-bottom: $lineheight;
1343 #contributorGuidance {
1344 background-color: $offwhite;
1346 -moz-border-radius: 4px;
1353 /* Rules for the account settings page */
1355 #accountForm .user_map {
1359 border: 1px solid #ccc;
1362 #accountForm .user_image {
1366 #accountForm #user_image {
1370 #accountForm ul.accountImage-options {
1383 display: inline !important;
1386 .content_map.settings_map {
1391 /* Rules for the oauth settings page */
1393 .oauth_clients .buttons .oauth-edit {
1394 border-radius: 2px 0 0 2px;
1397 .oauth_clients .buttons .oauth-delete {
1398 border-radius: 0 2px 2px 0;
1401 /* Rules for messages pages */
1405 border: 1px solid #ddd;
1407 input[type="submit"] {
1411 border-top: 1px solid #ccc;
1415 background: #f8f8ff;
1428 padding: $lineheight/4;
1439 border-right: 1px solid $keyline;
1443 .inbox-row .inbox-mark-read {
1448 margin-bottom: $lineheight;
1449 padding: $lineheight/4 0px 4px 0px;
1450 border-bottom: 1px solid #ccc;
1457 .info-line .user_thumbnail_tiny {
1458 vertical-align: middle;
1467 .inbox-row-unread .inbox-mark-unread {
1471 .message-read .message-buttons {
1472 margin-top: $lineheight;
1473 padding-top: $lineheight;
1474 border-top: 1px solid $keyline;
1477 .message-read .buttons .mark-unread-button {
1481 /* Rules for "flash" notice boxes shown at the top of the content area */
1484 padding: $lineheight;
1486 background-color: #ff7070;
1489 background-color: #ffe0cc;
1492 background-color: #CBEEA7;
1496 /* Rules for highlighting fields with rails validation errors */
1498 .field_with_errors {
1500 background-color: #ff7070;
1504 /* Rules for rails validation error boxes */
1508 border: 2px solid #ff7070;
1509 padding: 0 $lineheight/2;
1510 margin-bottom: $lineheight;
1511 background-color: #f0f0f0;
1514 margin: 0 -10px 10px -10px;
1515 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1518 background-color: #c00;
1526 padding: $lineheight/4;
1530 padding-left: $lineheight;
1539 /* Rules for forms */
1543 margin-bottom: $lineheight;
1545 label.standard-label {
1547 margin-bottom: $lineheight/4;
1548 font-size: $typeheight;
1552 label.standard-label.secondary {
1553 display: inline-block;
1554 font-weight: normal;
1557 font-weight: normal;
1564 margin-top: $lineheight;
1565 padding-top: $lineheight;
1566 border-top: 1px solid $keyline;
1569 margin-bottom: $lineheight/2;
1577 input[type="checkbox"],
1578 input[type="radio"] {
1584 #remember_me_openid {
1588 input[type="checkbox"],
1589 input[type="radio"] {
1594 input[type="email"],
1596 input[type="password"],
1598 border: 1px solid #ccc;
1607 height: 100% !important;
1610 /* Rules for user images */
1615 border: 1px solid #ccc;
1616 margin-bottom: $lineheight;
1618 margin-right: $lineheight;
1621 img.user_thumbnail {
1624 border: 1px solid #ccc;
1625 margin-right: $lineheight;
1628 img.user_thumbnail_tiny {
1631 border: 1px solid #ccc;
1634 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1637 white-space: nowrap;
1640 /* Rules for geo microformats */
1643 border-bottom: none;
1646 /* Rules for RSS buttons */
1653 /* General styles for action lists / subnavs / pager navs */
1655 ul.secondary-actions {
1660 display: inline-block;
1667 border-left: 1px solid #ccc;
1668 padding-left: $lineheight/4;
1669 margin-right: $lineheight/4;
1680 /* Utility for managing inner content areas */
1682 .inner22 { padding: $lineheight;}
1684 .inner12 { padding: $lineheight/2 $lineheight;}
1686 .inner11 { padding: $lineheight/2;}
1688 .inner02 { padding: 0 $lineheight;}
1690 /* Utility for general button styles */
1692 input[type="button"],
1693 input[type="submit"],
1694 input[type="reset"],
1698 display: inline-block;
1700 padding: $lineheight/4 $lineheight/2;
1702 margin: 0 0 $lineheight/2 0;
1707 -moz-border-radius: 2px;
1709 background: darken($blue, $hovercolor);
1710 text-decoration: none;
1713 background: $lightblue;
1715 background: darken($lightblue, $hovercolor);
1719 background: $lightblue;
1728 input[type="submit"],
1729 input[type="button"],
1730 input[type="reset"],
1732 box-sizing: border-box;
1738 border-right:1px solid white;
1741 .button:first-child {
1742 border-radius:2px 0 0 2px;
1745 .button:last-child {
1746 border-radius:0 2px 2px 0;
1747 border-right-width: 0;
1751 *[value="Hide"] + input:last-child,
1752 *[value="Hide"] + .button:last-child {
1754 border-right-width: 0;
1756 /* if a 3-button set has a hidden middle button */
1757 *[value="Hide"] + input:nth-child(3),
1758 *[value="Hide"] + .button:nth-child(3) {
1759 border-radius:0 2px 2px 0;
1760 border-right-width: 0;
1762 /* if a 3-button set starts with a hidden button */
1763 *[value="Hide"] + input:nth-child(2):not(:last-child),
1764 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1765 border-radius:2px 0 0 2px;
1766 border-right-width: 1px solid white;
1770 /* Rules for doing distinct colour of alternate table rows */
1774 background: $offwhite;
1782 /* Rules for OpenID logo */
1785 vertical-align: text-bottom;
1789 /* Rules for rich text */
1794 padding-bottom: $lineheight/2;
1795 border-bottom: 1px dashed #cccccc;
1796 margin-bottom: $lineheight/2;
1808 font-size: $typeheight;
1813 background: #e8e8e8;
1819 background: #e8e8e8;
1828 padding: $lineheight;
1829 background-color: $offwhite;
1836 border-left: $lineheight solid $offwhite;
1837 padding-left: $lineheight;
1844 padding-left: $lineheight;
1845 margin-bottom: $lineheight;
1846 margin-left: $lineheight;
1854 list-style: decimal;
1858 .diary_post .richtext {
1859 margin-top: $lineheight;
1862 .comments .richtext {
1867 /* Rules for rich text editors */
1869 .richtext_container {
1870 margin-bottom: $lineheight;
1874 display: inline-block;
1875 vertical-align: top;
1878 display: inline-block;
1879 padding: $lineheight;
1880 background-color: $offwhite;
1884 background-image: image-url("loading.gif");
1885 background-repeat: no-repeat;
1886 background-position: center;
1896 display: inline-block;
1897 vertical-align: top;
1899 background-color: #f8f8ff;
1900 padding: $lineheight/2;
1908 border-bottom: 1px solid #ccc;
1909 margin-bottom: $lineheight/4;
1910 padding-bottom: $lineheight/4;
1913 li h4, li span, li p {
1914 display: inline-block;
1915 vertical-align: top;
1926 margin-left: $lineheight/2;
1927 margin-bottom: $lineheight/4;
1928 white-space: nowrap;
1933 /* Rules for the user notes list */
1937 background-color: #eeeeee;
1949 /* Rules for the notes interface */
1951 .leaflet-popup-content .note {
1952 padding-top: $lineheight/2;
1955 .leaflet-popup-content .note {
1957 margin-bottom: $lineheight/2;
1961 margin-top: $lineheight/2;
1967 left: $lineheight/4;
1970 background: image-url("sprite.png") 0 -45px no-repeat;
1975 padding-left: $lineheight;
1978 .permalink:hover span {
1984 background-color: #ffe0cc;
1986 margin-bottom: $lineheight/2;
2005 margin-top: $lineheight/4;
2011 * Rules for the iD editor
2018 /* Rules for rotating sidebar ads */
2024 border-bottom: 1px solid #ccc;