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") -2px -2px 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 border-bottom: 1px solid #aaa;
485 #tabnav a:link:hover, #tabnav a:visited:hover {
486 text-decoration: underline;
489 #tabnav a:link.disabled,
490 #tabnav a:visited.disabled,
491 #tabnav a:link:hover.disabled,
492 #tabnav a:visited:hover.disabled {
496 text-decoration: none;
500 /* Utility for styling notification numbers */
503 padding: 2px $lineheight/4;
511 /* Rules for greeting bar in the top right corner */
516 margin-right: $lineheight/4;
519 .greeting-bar-unread {
523 /* Rules for the message shown in place of the map when javascript is disabled */
532 /* Rules for Leaflet maps */
534 .leaflet-control .control-button {
538 background-color: white;
539 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;
607 ul, li:last-child, p:last-child {
621 padding: 5px 5px 5px 7px;
622 background-color: #eee;
627 background-color: #ccc;
642 display: inline-block;
650 font-family: monospace;
659 .site-index .leaflet-top,
660 .site-export .leaflet-top {
661 top: $lineheight/2 !important;
663 margin-top: 0px !important;
667 .leaflet-popup-scrolled {
668 padding-right: $lineheight;
669 border-bottom: 0px !important;
670 border-top: 0px !important;
673 .leaflet-popup-content-wrapper {
674 border-radius: 4px !important;
675 -webkit-border-radius: 4px !important;
678 /* Rules for edit menu */
681 padding: 0 $lineheight/4;
683 display: inline-block;
685 text-decoration: none !important;
693 background-color: #ffffff;
694 border: 1px solid $lightgrey;
700 padding: 2px $lineheight/4;
701 border-top: 1px solid #eee;
706 /* Rules for attribution text under the main map shown on printouts */
712 .attribution_license,
713 .attribution_project {
717 .attribution_notice {
721 /* Rules for the popout map sidebar */
727 border-right: 1px solid $lightgrey;
733 border-bottom: 1px solid #ccc;
736 margin-bottom: $lineheight/4;
746 padding: $lineheight/2 $lineheight;
748 background: $offwhite;
749 border-bottom: 1px solid #ccc;
771 padding: 0 $lineheight $lineheight/2 $lineheight;
772 margin-top: $lineheight/2;
774 border-bottom: 1px solid #ddd;
778 /* Rules for the map key which appears in the popout sidebar */
781 .mapkey-table-key img {
787 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
791 /* Rules for search results which appear in the popout sidebar */
794 margin-top: $lineheight/4;
795 margin-bottom: $lineheight/4;
798 .search_results_entry {
807 .search_results_entry .search_searching {
809 margin: $lineheight auto;
814 ul.results-list li { border-bottom: 1px solid #ccc; }
816 .search_results_error {
820 /* Rules for data browser information which appears in the popout sidebar */
824 .browse_show_list.button {
849 /* Rules for export information which appears in the popout sidebar */
855 .export_area_inputs {
856 margin-bottom: $lineheight/2;
864 margin: $lineheight/4;
867 /* Rules for the main content area */
870 padding: $lineheight;
875 .site-index #content,
876 .site-export #content {
879 top: 30px; bottom: 0;
880 left: 184px; right: 0;
881 border-left: 1px solid #ccc;
886 border-left: 1px solid #ccc;
890 .site-edit #content {
907 #slim_container_content {
909 background-color: #FFFFFF;
910 margin: $lineheight/2 auto;
913 -moz-border-radius: 25px;
914 border: 1px solid #e6e6e6;
918 margin: $lineheight/2;
928 margin: 30px $lineheight/2;
931 margin-right: $lineheight/4;
933 vertical-align: middle;
934 margin-bottom: $lineheight/4;
935 margin-right: $lineheight/4;
941 padding: $lineheight;
942 background: $offwhite;
944 margin-bottom: $lineheight/2;
951 margin-top: $lineheight/2;
956 /* Rules for small maps in content areas */
962 border: 1px solid #ccc;
963 margin-bottom: $lineheight;
967 .content_map #small_map {
970 margin-bottom: $lineheight;
973 /* Rules for the changeset list shown by the history tab etc */
978 padding: $lineheight/2 0;
980 border-top: 1px solid #ccc;
982 border-bottom: 1px solid #ccc;
990 border-left: 1px solid #ccc;
991 padding-left: $lineheight/4;
992 margin-right: $lineheight/4;
996 #changeset_list_map_wrapper {
1004 #changeset_list_map_wrapper.scrolled {
1008 #changeset_list_map {
1010 bottom: $lineheight;
1014 border: 1px solid #ccc;
1017 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1021 /* Rules for the data browser */
1024 border-top: 1px solid #ccc;
1025 margin-top: $lineheight/2;
1026 padding-top: $lineheight/2;
1031 background-color: #ffe0cc;
1037 margin-bottom: $lineheight/4;
1040 display: inline-block;
1041 vertical-align: top;
1051 display: inline-block;
1052 vertical-align: top;
1060 padding: $lineheight/4 0;
1062 text-overflow: ellipsis;
1073 #browse_map .geolink {
1077 #browse_map .secondary-actions {
1078 margin-bottom: $lineheight/2;
1081 /* Rules for the trace list shown by the traces tab etc */
1084 font-size: $lineheight/2;
1101 .trace_identifiable {
1114 /* Rules for the user profile page */
1119 .userinformation-inner {
1134 .admin-user-info small {
1135 margin-bottom: $lineheight/2;
1137 margin-right: $lineheight;
1142 border-bottom: 1px solid #ccc;
1143 padding-bottom: $lineheight;
1146 margin-bottom: $lineheight/2;
1151 margin-top: $lineheight;
1155 .activity-details p {
1160 #friends-container .contact-activity ul {
1165 p#no_home_location {
1166 margin: $lineheight;
1169 margin-top: $lineheight/4;
1174 /* Rules for the user map */
1176 .content_map .leaflet-popup-content {
1177 margin: $lineheight/2;
1181 /* Rules for user popups on maps */
1187 margin-top: 0 0 0 60px;
1190 img.user_thumbnail {
1192 margin: 0 $lineheight/2 0 0;
1196 /* Rules for the user list */
1199 font-size: $lineheight/2;
1203 vertical-align: middle;
1212 #user_list_actions {
1214 margin-top: $lineheight/2;
1217 /* Rules for the diary list page */
1219 .diary_entry-list img.user_thumbnail {
1226 margin-top: $lineheight/2;
1227 padding-top: $lineheight;
1228 border-top: 1px solid #ccc;
1243 ul.secondary-actions { display: inline-block;}
1246 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1250 #content .post_heading {
1251 margin-bottom: $lineheight;
1254 margin-bottom: $lineheight/2;
1259 /* Rules for the diary entry page */
1266 border: 1px solid #ccc;
1268 margin-bottom: $lineheight;
1271 border-top: 1px solid #ccc;
1272 padding-top: $lineheight;
1273 margin-top: $lineheight/2;
1279 margin-top: $lineheight/2;
1280 border-top: 1px dashed #ccc;
1281 padding-top: $lineheight/2;
1283 margin-top: $lineheight;
1284 padding-top: $lineheight;
1285 border-top: 1px solid #ccc;
1288 margin-bottom: $lineheight/2;
1297 .diary_entry-view img.user_thumbnail {
1301 /* Rules for the login page */
1303 #login_openid_buttons {
1307 #login_openid_buttons li {
1309 padding: $lineheight/4 $lineheight/2;
1312 /* Rules for the account confirmation page */
1316 border: 1px solid #ccc;
1317 padding: $lineheight;
1318 margin-bottom: $lineheight;
1332 margin: $lineheight auto inherit auto;
1337 input[type=submit] {
1343 background: darken($grey, $hovercolor);
1348 margin-bottom: $lineheight;
1350 #contributorGuidance {
1351 background-color: $offwhite;
1353 -moz-border-radius: 4px;
1360 /* Rules for the account settings page */
1362 #accountForm .user_map {
1366 border: 1px solid #ccc;
1369 #accountForm .user_image {
1373 #accountForm #user_image {
1377 #accountForm ul.accountImage-options {
1390 display: inline !important;
1393 .content_map.settings_map {
1398 /* Rules for the oauth settings page */
1400 .oauth_clients .buttons .oauth-edit {
1401 border-radius: 2px 0 0 2px;
1404 .oauth_clients .buttons .oauth-delete {
1405 border-radius: 0 2px 2px 0;
1408 /* Rules for messages pages */
1412 border: 1px solid #ddd;
1414 input[type="submit"] {
1418 border-top: 1px solid #ccc;
1422 background: #f8f8ff;
1435 padding: $lineheight/4;
1446 border-right: 1px solid $lightgrey;
1450 .inbox-row .inbox-mark-read {
1455 margin-bottom: $lineheight;
1456 padding: $lineheight/4 0px 4px 0px;
1457 border-bottom: 1px solid #ccc;
1464 .info-line .user_thumbnail_tiny {
1465 vertical-align: middle;
1474 .inbox-row-unread .inbox-mark-unread {
1478 .message-read .message-buttons {
1479 margin-top: $lineheight;
1480 padding-top: $lineheight;
1481 border-top: 1px solid $lightgrey;
1484 .message-read .buttons .mark-unread-button {
1488 /* Rules for "flash" notice boxes shown at the top of the content area */
1491 padding: $lineheight;
1493 background-color: #ff7070;
1496 background-color: #ffe0cc;
1499 background-color: #CBEEA7;
1503 /* Rules for highlighting fields with rails validation errors */
1505 .field_with_errors {
1507 background-color: #ff7070;
1511 /* Rules for rails validation error boxes */
1515 border: 2px solid #ff7070;
1516 padding: 0 $lineheight/2;
1517 margin-bottom: $lineheight;
1518 background-color: #f0f0f0;
1521 margin: 0 -10px 10px -10px;
1522 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1525 background-color: #c00;
1533 padding: $lineheight/4;
1537 padding-left: $lineheight;
1546 /* Rules for forms */
1550 margin-bottom: $lineheight;
1552 label.standard-label {
1554 margin-bottom: $lineheight/4;
1555 font-size: $typeheight;
1559 label.standard-label.secondary {
1560 display: inline-block;
1561 font-weight: normal;
1564 font-weight: normal;
1571 margin-top: $lineheight;
1572 padding-top: $lineheight;
1573 border-top: 1px solid $lightgrey;
1576 margin-bottom: $lineheight/2;
1584 input[type="checkbox"],
1585 input[type="radio"] {
1591 #remember_me_openid {
1595 input[type="checkbox"],
1596 input[type="radio"] {
1601 input[type="email"],
1603 input[type="password"],
1605 border: 1px solid #ccc;
1616 /* Rules for user images */
1621 border: 1px solid #ccc;
1622 margin-bottom: $lineheight;
1624 margin-right: $lineheight;
1627 img.user_thumbnail {
1630 border: 1px solid #ccc;
1631 margin-right: $lineheight;
1634 img.user_thumbnail_tiny {
1637 border: 1px solid #ccc;
1640 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1643 white-space: nowrap;
1646 /* Rules for geo microformats */
1649 border-bottom: none;
1652 /* Rules for RSS buttons */
1659 /* General styles for action lists / subnavs / pager navs */
1661 ul.secondary-actions {
1666 display: inline-block;
1673 border-left: 1px solid #ccc;
1674 padding-left: $lineheight/4;
1675 margin-right: $lineheight/4;
1686 /* Utility for managing inner content areas */
1688 .inner22 { padding: $lineheight;}
1690 .inner12 { padding: $lineheight/2 $lineheight;}
1692 .inner11 { padding: $lineheight/2;}
1694 .inner02 { padding: 0 $lineheight;}
1696 /* Utility for general button styles */
1698 input[type="button"],
1699 input[type="submit"],
1700 input[type="reset"],
1704 display: inline-block;
1706 padding: $lineheight/4 $lineheight/2;
1707 min-height: 20px + $lineheight/2;
1709 margin: 0 0 $lineheight/2 0;
1714 -moz-border-radius: 2px;
1716 background: darken($blue, $hovercolor);
1717 text-decoration: none;
1720 background: $lightblue;
1722 background: darken($lightblue, $hovercolor);
1726 background: $lightgrey;
1728 background: $lightgrey;
1738 input[type="submit"],
1739 input[type="button"],
1740 input[type="reset"],
1742 box-sizing: border-box;
1748 border-right:1px solid white;
1749 text-overflow: ellipsis;
1750 white-space: nowrap;
1754 .button:first-child {
1755 border-radius:2px 0 0 2px;
1758 .button:last-child {
1759 border-radius:0 2px 2px 0;
1760 border-right-width: 0;
1764 *[value="Hide"] + input:last-child,
1765 *[value="Hide"] + .button:last-child {
1767 border-right-width: 0;
1769 /* if a 3-button set has a hidden middle button */
1770 *[value="Hide"] + input:nth-child(3),
1771 *[value="Hide"] + .button:nth-child(3) {
1772 border-radius:0 2px 2px 0;
1773 border-right-width: 0;
1775 /* if a 3-button set starts with a hidden button */
1776 *[value="Hide"] + input:nth-child(2):not(:last-child),
1777 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1778 border-radius:2px 0 0 2px;
1779 border-right-width: 1px solid white;
1783 /* Rules for doing distinct colour of alternate table rows */
1787 background: $offwhite;
1795 /* Rules for OpenID logo */
1798 vertical-align: text-bottom;
1802 /* Rules for rich text */
1807 padding-bottom: $lineheight/2;
1808 border-bottom: 1px dashed #cccccc;
1809 margin-bottom: $lineheight/2;
1821 font-size: $typeheight;
1826 background: #e8e8e8;
1832 background: #e8e8e8;
1841 padding: $lineheight;
1842 background-color: $offwhite;
1849 border-left: $lineheight solid $offwhite;
1850 padding-left: $lineheight;
1856 padding-left: $lineheight;
1857 margin-bottom: $lineheight;
1858 margin-left: $lineheight;
1866 list-style: decimal;
1870 .diary_post .richtext {
1871 margin-top: $lineheight;
1874 .comments .richtext {
1879 /* Rules for rich text editors */
1881 .richtext_container {
1882 margin-bottom: $lineheight;
1886 display: inline-block;
1887 vertical-align: top;
1890 display: inline-block;
1891 padding: $lineheight;
1892 background-color: $offwhite;
1896 background-image: image-url("loading.gif");
1897 background-repeat: no-repeat;
1898 background-position: center;
1908 display: inline-block;
1909 vertical-align: top;
1911 background-color: #f8f8ff;
1912 padding: $lineheight/2;
1920 border-bottom: 1px solid #ccc;
1921 margin-bottom: $lineheight/4;
1922 padding-bottom: $lineheight/4;
1925 li h4, li span, li p {
1926 display: inline-block;
1927 vertical-align: top;
1938 margin-left: $lineheight/2;
1939 margin-bottom: $lineheight/4;
1940 white-space: nowrap;
1945 /* Rules for the user notes list */
1949 background-color: #eeeeee;
1961 /* Rules for the notes interface */
1963 .leaflet-popup-content .note {
1964 padding-top: $lineheight/2;
1967 .leaflet-popup-content .note {
1969 margin-bottom: $lineheight/2;
1973 margin-top: $lineheight/2;
1979 left: $lineheight/4;
1986 padding-left: $lineheight;
1989 .permalink:hover span {
1995 background-color: #ffe0cc;
1997 margin-bottom: $lineheight/2;
2016 margin-top: $lineheight/4;
2022 * Rules for the iD editor
2029 /* Rules for rotating sidebar ads */
2035 border-bottom: 1px solid #ccc;