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 .icon.layers { background-position: -100px 0; }
166 .icon.key { background-position: -120px 0; }
167 .icon.share { background-position: -140px 0; }
168 .icon.clipboard { background-position: -160px 0; }
169 .icon.link { background-position: -180px 0; }
170 .icon.close { background-position: -200px 0; }
171 .icon.check { background-position: -220px 0; }
172 .icon.note { background-position: -240px 0; }
174 /* Rules for links */
178 text-decoration: none;
180 text-decoration: underline;
184 /* Rules for horizontal lines */
188 background-color: #ccc;
193 /* General styles for tables */
197 margin-bottom: $lineheight;
200 padding: $lineheight/4;
201 line-height: $lineheight;
208 vertical-align: middle;
212 /* Rules for the whole left sidebar, including the logo */
221 border-right: 1px solid #ccc;
224 /* Rules for the OpenStreetMap logo in the top left corner */
230 padding: $lineheight $lineheight/4;
243 font-size: $lineheight/2;
248 /* Rules for the site name */
254 /* Rules for the introductory text displayed in the left sidebar to new users */
257 padding: $lineheight/4 $lineheight/2;
259 margin: $lineheight/4 0;
262 .sidebar-copy.intro {
263 border-top: 1px solid #ccc;
267 * Rules for alert boxes shown in the left sidebar when important
268 * information needs to be conveyed such as when the site is
269 * undergoing maintenance.
273 padding: $lineheight/4;
274 border-top: 1px solid #ccc;
281 margin: $lineheight/4;
286 * Rules for notice boxes shown in the left sidebar when important, but
287 * non-critical information needs to be conveyed such as notices about
292 padding: $lineheight/4;
293 border-top: 1px solid #ccc;
299 margin: $lineheight/4;
303 /* Rules for the menu displayed in the left sidebar */
308 padding: $lineheight/4 $lineheight/2;
311 list-style-type: none;
312 border-bottom: 1px solid #ccc;
313 border-top: 1px solid #ccc;
315 margin: $lineheight/2 0px;
324 list-style-type: none;
330 padding: $lineheight/4 0 $lineheight/4 0;
340 /* Rules for SOTM advert */
344 margin: $lineheight/2;
354 * Rules for "optional boxes" which appear in the left sidebar on
355 * certain pages. Current users are the seach box on the main page
356 * and the tag cloud on the traces pages.
361 padding: $lineheight/4 $lineheight/2;
362 margin: $lineheight/4 0;
366 /* Rules for the search box */
378 font-size: $typeheight;
381 padding: 2px 0px 2px $lineheight/4;
382 box-shadow: inset #DDD 0px 1px 3px;
385 input[type="text"]:focus {
387 border: 1px solid #000;
390 input[type="submit"] {
397 text-indent: -1000px;
399 background: image-url("sprite.png") 0 0 no-repeat;
402 right: $lineheight/4;
408 margin: $lineheight/4 0 0 0;
411 /* Utility for de-emphasizing content */
420 /* Rules for donation request box */
425 padding: $lineheight/4;
426 border: 1px solid #AED1A0;
428 font-size: $typeheight;
433 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
437 text-decoration: none;
441 /* Rules for Creative Commons logo button */
444 margin: $lineheight/2 0;
448 /* Rules for tabbed navigation bar */
454 border-bottom: 1px solid #ccc;
460 .site-index #top-bar,
461 .site-export #top-bar {
474 a, a:link, a:visited {
477 padding: 3px $lineheight/2;
478 text-decoration: none;
482 -webkit-transition: color 200ms ease-in;
483 -moz-transition: color 200ms ease-in;
484 -o-transition: color 200ms ease-in;
485 transition: color 200ms ease-in;
489 .site-index #tabnav a#viewanchor,
490 .site-edit #tabnav a#editanchor,
491 .changeset-list #tabnav a#historyanchor,
492 .site-export #tabnav a#exportanchor {
493 border-bottom: 1px solid #aaa;
498 #tabnav a:link:hover, #tabnav a:visited:hover {
499 text-decoration: underline;
502 #tabnav a:link.disabled,
503 #tabnav a:visited.disabled,
504 #tabnav a:link:hover.disabled,
505 #tabnav a:visited:hover.disabled {
509 text-decoration: none;
513 /* Utility for styling notification numbers */
516 padding: 2px $lineheight/4;
524 /* Rules for greeting bar in the top right corner */
529 margin-right: $lineheight/4;
532 .greeting-bar-unread {
536 /* Rules for the message shown in place of the map when javascript is disabled */
545 /* Rules for Leaflet maps */
551 background-color: white;
552 background-color: rgba(255,255,255,.8);
557 .leaflet-control a.zoomin,
561 border-radius: 4px 4px 0px 0px;
564 .leaflet-control a.zoomout {
572 border-radius: 0px 0px 4px 4px;
575 .leaflet-control a:hover {
576 background-color: white;
579 .leaflet-control a .icon {
594 border-top: 1px solid #868e85;
607 background-color: #868e85;
612 background-color: #68c879;
624 .leaflet-control-attribution {
628 text-decoration: none;
631 ul.secondary-actions {
633 margin-right: $lineheight/4;
641 .site-index .leaflet-top,
642 .site-export .leaflet-top {
643 top: $lineheight/2 !important;
645 margin-top: 0px !important;
649 .site-index #map .olControlScaleLine,
650 .site-export #map .olControlScaleLine {
651 left: $lineheight/2 !important;
654 .leaflet-popup-scrolled {
655 padding-right: $lineheight;
656 border-bottom: 0px !important;
657 border-top: 0px !important;
660 .leaflet-popup-content-wrapper {
661 border-radius: 4px !important;
662 -webkit-border-radius: 4px !important;
665 /* Rules for edit menu */
668 padding: 0 $lineheight/4;
670 display: inline-block;
672 text-decoration: none !important;
680 background-color: #ffffff;
681 border: 1px solid $keyline;
687 padding: 2px $lineheight/4;
688 border-top: 1px solid #eee;
693 /* Rules for attribution text under the main map shown on printouts */
699 .attribution_license,
700 .attribution_project {
704 .attribution_notice {
708 /* Rules for the popout map sidebar */
717 border-right: 1px solid $keyline;
721 padding: $lineheight/2 $lineheight;
723 background: $offwhite;
724 border-bottom: 1px solid #ccc;
732 border-bottom: 1px solid #ccc;
735 margin-bottom: $lineheight/4;
757 padding: 0 $lineheight $lineheight/2 $lineheight;
758 margin-top: $lineheight/2;
760 border-bottom: 1px solid #ddd;
764 /* Rules for the map key which appears in the popout sidebar */
767 padding: $lineheight $lineheight 0 $lineheight;
768 .mapkey-table-key img {
774 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
778 /* Rules for search results which appear in the popout sidebar */
781 margin-top: $lineheight/4;
782 margin-bottom: $lineheight/4;
785 .search_results_entry {
794 .search_results_entry .search_searching {
796 margin: $lineheight auto;
801 ul.results-list li { border-bottom: 1px solid #ccc; }
803 .search_results_error {
807 /* Rules for data browser information which appears in the popout sidebar */
811 .browse_show_list.button {
836 /* Rules for export information which appears in the popout sidebar */
842 .export_area_inputs {
843 margin-bottom: $lineheight/2;
851 margin: $lineheight/4;
854 .export_details input[type="text"]#export_html_text {
858 #sidebar #marker_inputs li:last-child {
859 margin-bottom: $lineheight/2;
868 /* Rules for the main content area */
871 padding: $lineheight;
876 .site-index #content,
877 .site-export #content {
880 top: 30px; bottom: 0;
881 left: 184px; right: 0;
882 border-left: 1px solid #ccc;
887 border-left: 1px solid #ccc;
891 .site-edit #content {
908 #slim_container_content {
910 background-color: #FFFFFF;
911 margin: $lineheight/2 auto;
914 -moz-border-radius: 25px;
915 border: 1px solid #e6e6e6;
919 margin: $lineheight/2;
929 margin: 30px $lineheight/2;
932 margin-right: $lineheight/4;
934 vertical-align: middle;
935 margin-bottom: $lineheight/4;
936 margin-right: $lineheight/4;
942 padding: $lineheight;
943 background: $offwhite;
945 margin-bottom: $lineheight/2;
952 margin-top: $lineheight/2;
957 /* Rules for small maps in content areas */
963 border: 1px solid #ccc;
964 margin-bottom: $lineheight;
968 .content_map #small_map {
971 margin-bottom: $lineheight;
974 /* Rules for the home page */
985 /* Rules for the edit page */
996 /* Rules for the changeset list shown by the history tab etc */
1001 padding: $lineheight/2 0;
1003 border-top: 1px solid #ccc;
1005 border-bottom: 1px solid #ccc;
1009 background: #FFFFC0;
1013 border-left: 1px solid #ccc;
1014 padding-left: $lineheight/4;
1015 margin-right: $lineheight/4;
1019 #changeset_list_map_wrapper {
1027 #changeset_list_map_wrapper.scrolled {
1031 #changeset_list_map {
1033 bottom: $lineheight;
1037 border: 1px solid #ccc;
1040 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1044 /* Rules for the data browser */
1047 border-top: 1px solid #ccc;
1048 margin-top: $lineheight/2;
1049 padding-top: $lineheight/2;
1054 background-color: #ffe0cc;
1060 margin-bottom: $lineheight/4;
1062 p, ul, .bbox, .geo {
1063 display: inline-block;
1064 vertical-align: top;
1073 display: inline-block;
1074 vertical-align: top;
1082 padding: $lineheight/4 0;
1084 text-overflow: ellipsis;
1095 #browse_map .geolink {
1099 #browse_map .secondary-actions {
1100 margin-bottom: $lineheight/2;
1103 /* Rules for the trace list shown by the traces tab etc */
1106 font-size: $lineheight/2;
1123 .trace_identifiable {
1136 /* Rules for the user profile page */
1141 .userinformation-inner {
1156 .admin-user-info small {
1157 margin-bottom: $lineheight/2;
1159 margin-right: $lineheight;
1164 border-bottom: 1px solid #ccc;
1165 padding-bottom: $lineheight;
1168 margin-bottom: $lineheight/2;
1173 margin-top: $lineheight;
1177 .activity-details p {
1182 #friends-container .contact-activity ul {
1187 p#no_home_location {
1188 margin: $lineheight;
1191 margin-top: $lineheight/4;
1196 /* Rules for the user map */
1198 .content_map .leaflet-popup-content {
1199 margin: $lineheight/2;
1203 /* Rules for user popups on maps */
1209 margin-top: 0 0 0 60px;
1212 img.user_thumbnail {
1214 margin: 0 $lineheight/2 0 0;
1218 /* Rules for the user list */
1221 font-size: $lineheight/2;
1225 vertical-align: middle;
1234 #user_list_actions {
1236 margin-top: $lineheight/2;
1239 /* Rules for the diary list page */
1241 .diary_entry-list img.user_thumbnail {
1248 margin-top: $lineheight/2;
1249 padding-top: $lineheight;
1250 border-top: 1px solid #ccc;
1265 ul.secondary-actions { display: inline-block;}
1268 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1272 #content .post_heading {
1273 margin-bottom: $lineheight;
1276 margin-bottom: $lineheight/2;
1281 /* Rules for the diary entry page */
1288 border: 1px solid #ccc;
1290 margin-bottom: $lineheight;
1293 border-top: 1px solid #ccc;
1294 padding-top: $lineheight;
1295 margin-top: $lineheight/2;
1301 margin-top: $lineheight/2;
1302 border-top: 1px dashed #ccc;
1303 padding-top: $lineheight/2;
1305 margin-top: $lineheight;
1306 padding-top: $lineheight;
1307 border-top: 1px solid #ccc;
1310 margin-bottom: $lineheight/2;
1319 .diary_entry-view img.user_thumbnail {
1323 /* Rules for the login page */
1325 #login_openid_buttons {
1329 #login_openid_buttons li {
1331 padding: $lineheight/4 $lineheight/2;
1334 /* Rules for the account confirmation page */
1338 border: 1px solid #ccc;
1339 padding: $lineheight;
1340 margin-bottom: $lineheight;
1354 margin: $lineheight auto inherit auto;
1359 input[type=submit] {
1365 background: darken($grey, $hovercolor);
1370 margin-bottom: $lineheight;
1372 #contributorGuidance {
1373 background-color: $offwhite;
1375 -moz-border-radius: 4px;
1382 /* Rules for the account settings page */
1384 #accountForm .user_map {
1388 border: 1px solid #ccc;
1391 #accountForm .user_image {
1395 #accountForm #user_image {
1399 #accountForm ul.accountImage-options {
1412 display: inline !important;
1415 .content_map.settings_map {
1420 /* Rules for the oauth settings page */
1422 .oauth_clients .buttons .oauth-edit {
1423 border-radius: 2px 0 0 2px;
1426 .oauth_clients .buttons .oauth-delete {
1427 border-radius: 0 2px 2px 0;
1430 /* Rules for messages pages */
1434 border: 1px solid #ddd;
1436 input[type="submit"] {
1440 border-top: 1px solid #ccc;
1444 background: #f8f8ff;
1457 padding: $lineheight/4;
1468 border-right: 1px solid $keyline;
1472 .inbox-row .inbox-mark-read {
1477 margin-bottom: $lineheight;
1478 padding: $lineheight/4 0px 4px 0px;
1479 border-bottom: 1px solid #ccc;
1486 .info-line .user_thumbnail_tiny {
1487 vertical-align: middle;
1496 .inbox-row-unread .inbox-mark-unread {
1500 .message-read .message-buttons {
1501 margin-top: $lineheight;
1502 padding-top: $lineheight;
1503 border-top: 1px solid $keyline;
1506 .message-read .buttons .mark-unread-button {
1510 /* Rules for "flash" notice boxes shown at the top of the content area */
1513 padding: $lineheight;
1515 background-color: #ff7070;
1518 background-color: #ffe0cc;
1521 background-color: #CBEEA7;
1525 /* Rules for highlighting fields with rails validation errors */
1527 .field_with_errors {
1529 background-color: #ff7070;
1533 /* Rules for rails validation error boxes */
1537 border: 2px solid #ff7070;
1538 padding: 0 $lineheight/2;
1539 margin-bottom: $lineheight;
1540 background-color: #f0f0f0;
1543 margin: 0 -10px 10px -10px;
1544 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1547 background-color: #c00;
1555 padding: $lineheight/4;
1559 padding-left: $lineheight;
1568 /* Rules for forms */
1572 margin-bottom: $lineheight;
1574 label.standard-label {
1576 margin-bottom: $lineheight/4;
1577 font-size: $typeheight;
1581 label.standard-label.secondary {
1582 display: inline-block;
1583 font-weight: normal;
1586 font-weight: normal;
1593 margin-top: $lineheight;
1594 padding-top: $lineheight;
1595 border-top: 1px solid $keyline;
1598 margin-bottom: $lineheight/2;
1606 input[type="checkbox"],
1607 input[type="radio"] {
1613 #remember_me_openid {
1617 input[type="checkbox"],
1618 input[type="radio"] {
1623 input[type="email"],
1625 input[type="password"],
1627 border: 1px solid #ccc;
1636 height: 100% !important;
1639 /* Rules for user images */
1644 border: 1px solid #ccc;
1645 margin-bottom: $lineheight;
1647 margin-right: $lineheight;
1650 img.user_thumbnail {
1653 border: 1px solid #ccc;
1654 margin-right: $lineheight;
1657 img.user_thumbnail_tiny {
1660 border: 1px solid #ccc;
1663 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1666 white-space: nowrap;
1669 /* Rules for geo microformats */
1672 border-bottom: none;
1675 /* Rules for RSS buttons */
1682 /* General styles for action lists / subnavs / pager navs */
1684 ul.secondary-actions {
1689 display: inline-block;
1696 border-left: 1px solid #ccc;
1697 padding-left: $lineheight/4;
1698 margin-right: $lineheight/4;
1709 /* Utility for managing inner content areas */
1711 .inner22 { padding: $lineheight;}
1713 .inner12 { padding: $lineheight/2 $lineheight;}
1715 .inner11 { padding: $lineheight/2;}
1717 .inner02 { padding: 0 $lineheight;}
1719 /* Utility for general button styles */
1721 input[type="button"],
1722 input[type="submit"],
1723 input[type="reset"],
1727 display: inline-block;
1729 padding: $lineheight/4 $lineheight/2;
1731 margin: 0 0 $lineheight/2 0;
1736 -moz-border-radius: 2px;
1738 background: darken($blue, $hovercolor);
1739 text-decoration: none;
1742 background: $lightblue;
1744 background: darken($lightblue, $hovercolor);
1748 background: $lightblue;
1757 input[type="submit"],
1758 input[type="button"],
1759 input[type="reset"],
1761 box-sizing: border-box;
1767 border-right:1px solid white;
1770 .button:first-child {
1771 border-radius:2px 0 0 2px;
1774 .button:last-child {
1775 border-radius:0 2px 2px 0;
1776 border-right-width: 0;
1780 *[value="Hide"] + input:last-child,
1781 *[value="Hide"] + .button:last-child {
1783 border-right-width: 0;
1785 /* if a 3-button set has a hidden middle button */
1786 *[value="Hide"] + input:nth-child(3),
1787 *[value="Hide"] + .button:nth-child(3) {
1788 border-radius:0 2px 2px 0;
1789 border-right-width: 0;
1791 /* if a 3-button set starts with a hidden button */
1792 *[value="Hide"] + input:nth-child(2):not(:last-child),
1793 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1794 border-radius:2px 0 0 2px;
1795 border-right-width: 1px solid white;
1799 /* Rules for doing distinct colour of alternate table rows */
1803 background: $offwhite;
1811 /* Rules for OpenID logo */
1814 vertical-align: text-bottom;
1818 /* Rules for rich text */
1823 padding-bottom: $lineheight/2;
1824 border-bottom: 1px dashed #cccccc;
1825 margin-bottom: $lineheight/2;
1837 font-size: $typeheight;
1842 background: #e8e8e8;
1848 background: #e8e8e8;
1857 padding: $lineheight;
1858 background-color: $offwhite;
1865 border-left: $lineheight solid $offwhite;
1866 padding-left: $lineheight;
1873 padding-left: $lineheight;
1874 margin-bottom: $lineheight;
1875 margin-left: $lineheight;
1883 list-style: decimal;
1887 .diary_post .richtext {
1888 margin-top: $lineheight;
1891 .comments .richtext {
1896 /* Rules for rich text editors */
1898 .richtext_container {
1899 margin-bottom: $lineheight;
1903 display: inline-block;
1904 vertical-align: top;
1907 display: inline-block;
1908 padding: $lineheight;
1909 background-color: $offwhite;
1913 background-image: image-url("loading.gif");
1914 background-repeat: no-repeat;
1915 background-position: center;
1925 display: inline-block;
1926 vertical-align: top;
1928 background-color: #f8f8ff;
1929 padding: $lineheight/2;
1937 border-bottom: 1px solid #ccc;
1938 margin-bottom: $lineheight/4;
1939 padding-bottom: $lineheight/4;
1942 li h4, li span, li p {
1943 display: inline-block;
1944 vertical-align: top;
1955 margin-left: $lineheight/2;
1956 margin-bottom: $lineheight/4;
1957 white-space: nowrap;
1962 /* Rules for the user notes list */
1966 background-color: #eeeeee;
1978 /* Rules for the notes interface */
1980 .leaflet-popup-content .note {
1981 padding-top: $lineheight/2;
1984 .leaflet-popup-content .note {
1986 margin-bottom: $lineheight/2;
1990 margin-top: $lineheight/2;
1996 left: $lineheight/4;
1999 background: image-url("sprite.png") 0 -45px no-repeat;
2004 padding-left: $lineheight;
2007 .permalink:hover span {
2013 background-color: #ffe0cc;
2015 margin-bottom: $lineheight/2;
2034 margin-top: $lineheight/4;
2040 * Rules for the iD editor
2047 /* Rules for rotating sidebar ads */
2053 border-bottom: 1px solid #ccc;