13 /* Styles common to large and small screens */
15 /* Minimal CSS reset */
17 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input {
24 fieldset,img { border: 0; }
26 legend { color: #000; }
28 sup { vertical-align: text-top; }
30 sub { vertical-align: text-bottom; }
33 border-collapse: collapse;
37 li { list-style: none; }
42 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
45 border-bottom: .1em dotted;
49 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
61 /* Default rules for the body of every page */
64 -moz-box-sizing: border-box;
65 -webkit-box-sizing: border-box;
66 box-sizing: border-box;
70 font-family: 'Helvetica Neue',Arial,sans-serif;
71 font-size: $typeheight;
74 background-color: #fff;
81 background-color: #f0f0f0;
85 margin-top: $lineheight/2;
86 margin-bottom: $lineheight;
101 margin-top: $lineheight/2;
102 margin-bottom: $lineheight;
106 font-size: $typeheight;
107 margin-top: $lineheight/2;
108 margin-bottom: $lineheight/2;
114 margin-bottom: $lineheight;
137 margin: 0 0 $lineheight/2 0;
141 vertical-align: middle;
142 margin-right: $lineheight/4;
145 /* Rules for icons */
148 display:inline-block;
152 background:transparent image-url("sprite.png") no-repeat 0 0;
161 .icon.search { background-position: 0 0; }
162 .icon.donate { background-position: -20px 0; }
163 .icon.zoomin { background-position: -40px 0; }
164 .icon.zoomout { background-position: -60px 0; }
165 .icon.geolocate { background-position: -80px 0; }
166 .active .icon.geolocate { background-position: -80px -20px; }
167 .icon.layers { background-position: -100px 0; }
168 .icon.key { background-position: -120px 0; }
169 .icon.share { background-position: -140px 0; }
170 .icon.clipboard { background-position: -160px 0; }
171 .icon.link { background-position: -180px 0; }
172 .icon.close { background-position: -200px 0; }
173 .icon.check { background-position: -220px 0; }
174 .icon.note { background-position: -240px 0; }
176 /* Rules for links */
180 text-decoration: none;
182 text-decoration: underline;
186 /* Rules for horizontal lines */
190 background-color: #ccc;
195 /* General styles for tables */
199 margin-bottom: $lineheight;
202 padding: $lineheight/4;
203 line-height: $lineheight;
210 vertical-align: middle;
214 /* Rules for the whole left sidebar, including the logo */
223 border-right: 1px solid #ccc;
226 /* Rules for the OpenStreetMap logo in the top left corner */
232 padding: $lineheight $lineheight/4;
245 font-size: $lineheight/2;
250 /* Rules for the site name */
256 /* Rules for the introductory text displayed in the left sidebar to new users */
259 padding: $lineheight/4 $lineheight/2;
261 margin: $lineheight/4 0;
264 .sidebar-copy.intro {
265 border-top: 1px solid #ccc;
269 * Rules for alert boxes shown in the left sidebar when important
270 * information needs to be conveyed such as when the site is
271 * undergoing maintenance.
275 padding: $lineheight/4;
276 border-top: 1px solid #ccc;
283 margin: $lineheight/4;
288 * Rules for notice boxes shown in the left sidebar when important, but
289 * non-critical information needs to be conveyed such as notices about
294 padding: $lineheight/4;
295 border-top: 1px solid #ccc;
301 margin: $lineheight/4;
305 /* Rules for the menu displayed in the left sidebar */
310 padding: $lineheight/4 $lineheight/2;
313 list-style-type: none;
314 border-bottom: 1px solid #ccc;
315 border-top: 1px solid #ccc;
317 margin: $lineheight/2 0px;
326 list-style-type: none;
332 padding: $lineheight/4 0 $lineheight/4 0;
343 * Rules for "optional boxes" which appear in the left sidebar on
344 * certain pages. Current users are the seach box on the main page
345 * and the tag cloud on the traces pages.
350 padding: $lineheight/4 $lineheight/2;
351 margin: $lineheight/4 0;
355 /* Rules for the search box */
367 font-size: $typeheight;
370 padding: 2px 0px 2px $lineheight/4;
371 box-shadow: inset #DDD 0px 1px 3px;
374 input[type="text"]:focus {
376 border: 1px solid #000;
379 input[type="submit"] {
386 text-indent: -1000px;
388 background: image-url("sprite.png") 0 0 no-repeat;
391 right: $lineheight/4;
397 margin: $lineheight/4 0 0 0;
400 /* Utility for de-emphasizing content */
409 /* Rules for donation request box */
414 padding: $lineheight/4;
415 border: 1px solid #AED1A0;
417 font-size: $typeheight;
422 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
426 text-decoration: none;
430 /* Rules for Creative Commons logo button */
433 margin: $lineheight/2 0;
437 /* Rules for tabbed navigation bar */
443 border-bottom: 1px solid #ccc;
449 .site-index #top-bar,
450 .site-export #top-bar {
463 a, a:link, a:visited {
466 padding: 3px $lineheight/2;
467 text-decoration: none;
471 -webkit-transition: color 200ms ease-in;
472 -moz-transition: color 200ms ease-in;
473 -o-transition: color 200ms ease-in;
474 transition: color 200ms ease-in;
478 .site-index #tabnav a#viewanchor,
479 .site-edit #tabnav a#editanchor,
480 .changeset-list #tabnav a#historyanchor,
481 .site-export #tabnav a#exportanchor {
482 border-bottom: 1px solid #aaa;
487 #tabnav a:link:hover, #tabnav a:visited:hover {
488 text-decoration: underline;
491 #tabnav a:link.disabled,
492 #tabnav a:visited.disabled,
493 #tabnav a:link:hover.disabled,
494 #tabnav a:visited:hover.disabled {
498 text-decoration: none;
502 /* Utility for styling notification numbers */
505 padding: 2px $lineheight/4;
513 /* Rules for greeting bar in the top right corner */
518 margin-right: $lineheight/4;
521 .greeting-bar-unread {
525 /* Rules for the message shown in place of the map when javascript is disabled */
534 /* Rules for Leaflet maps */
536 .leaflet-control .control-button {
540 background-color: white;
541 background-color: rgba(255,255,255,.8);
547 .leaflet-control .zoomin,
548 .control-layers .control-button {
550 border-radius: 4px 4px 0px 0px;
553 .site .leaflet-control .zoomout,
554 .control-key .control-button {
559 .leaflet-control .zoomout,
560 .control-locate .control-button,
561 .control-share .control-button {
562 border-radius: 0px 0px 4px 4px;
565 .leaflet-control .control-button:hover {
566 background-color: white;
569 .leaflet-control .control-button .icon {
573 /* Rules for the home page */
589 border-left: 1px solid #CCC;
593 border-bottom: 1px solid #DDD;
603 border:1px solid #ddd;
620 padding: 5px 5px 5px 7px;
621 background-color: #eee;
626 background-color: #ccc;
641 display: inline-block;
647 .site-index .leaflet-top,
648 .site-export .leaflet-top {
649 top: $lineheight/2 !important;
651 margin-top: 0px !important;
655 .leaflet-popup-scrolled {
656 padding-right: $lineheight;
657 border-bottom: 0px !important;
658 border-top: 0px !important;
661 .leaflet-popup-content-wrapper {
662 border-radius: 4px !important;
663 -webkit-border-radius: 4px !important;
666 /* Rules for edit menu */
669 padding: 0 $lineheight/4;
671 display: inline-block;
673 text-decoration: none !important;
681 background-color: #ffffff;
682 border: 1px solid $keyline;
688 padding: 2px $lineheight/4;
689 border-top: 1px solid #eee;
694 /* Rules for attribution text under the main map shown on printouts */
700 .attribution_license,
701 .attribution_project {
705 .attribution_notice {
709 /* Rules for the popout map sidebar */
715 border-right: 1px solid $keyline;
721 border-bottom: 1px solid #ccc;
724 margin-bottom: $lineheight/4;
734 padding: $lineheight/2 $lineheight;
736 background: $offwhite;
737 border-bottom: 1px solid #ccc;
759 padding: 0 $lineheight $lineheight/2 $lineheight;
760 margin-top: $lineheight/2;
762 border-bottom: 1px solid #ddd;
766 /* Rules for the map key which appears in the popout sidebar */
769 .mapkey-table-key img {
775 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
779 /* Rules for search results which appear in the popout sidebar */
782 margin-top: $lineheight/4;
783 margin-bottom: $lineheight/4;
786 .search_results_entry {
795 .search_results_entry .search_searching {
797 margin: $lineheight auto;
802 ul.results-list li { border-bottom: 1px solid #ccc; }
804 .search_results_error {
808 /* Rules for data browser information which appears in the popout sidebar */
812 .browse_show_list.button {
837 /* Rules for export information which appears in the popout sidebar */
843 .export_area_inputs {
844 margin-bottom: $lineheight/2;
852 margin: $lineheight/4;
855 .export_details input[type="text"]#export_html_text {
859 #sidebar #marker_inputs li:last-child {
860 margin-bottom: $lineheight/2;
869 /* Rules for the main content area */
872 padding: $lineheight;
877 .site-index #content,
878 .site-export #content {
881 top: 30px; bottom: 0;
882 left: 184px; right: 0;
883 border-left: 1px solid #ccc;
888 border-left: 1px solid #ccc;
892 .site-edit #content {
909 #slim_container_content {
911 background-color: #FFFFFF;
912 margin: $lineheight/2 auto;
915 -moz-border-radius: 25px;
916 border: 1px solid #e6e6e6;
920 margin: $lineheight/2;
930 margin: 30px $lineheight/2;
933 margin-right: $lineheight/4;
935 vertical-align: middle;
936 margin-bottom: $lineheight/4;
937 margin-right: $lineheight/4;
943 padding: $lineheight;
944 background: $offwhite;
946 margin-bottom: $lineheight/2;
953 margin-top: $lineheight/2;
958 /* Rules for small maps in content areas */
964 border: 1px solid #ccc;
965 margin-bottom: $lineheight;
969 .content_map #small_map {
972 margin-bottom: $lineheight;
975 /* Rules for the changeset list shown by the history tab etc */
980 padding: $lineheight/2 0;
982 border-top: 1px solid #ccc;
984 border-bottom: 1px solid #ccc;
992 border-left: 1px solid #ccc;
993 padding-left: $lineheight/4;
994 margin-right: $lineheight/4;
998 #changeset_list_map_wrapper {
1006 #changeset_list_map_wrapper.scrolled {
1010 #changeset_list_map {
1012 bottom: $lineheight;
1016 border: 1px solid #ccc;
1019 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1023 /* Rules for the data browser */
1026 border-top: 1px solid #ccc;
1027 margin-top: $lineheight/2;
1028 padding-top: $lineheight/2;
1033 background-color: #ffe0cc;
1039 margin-bottom: $lineheight/4;
1042 display: inline-block;
1043 vertical-align: top;
1053 display: inline-block;
1054 vertical-align: top;
1062 padding: $lineheight/4 0;
1064 text-overflow: ellipsis;
1075 #browse_map .geolink {
1079 #browse_map .secondary-actions {
1080 margin-bottom: $lineheight/2;
1083 /* Rules for the trace list shown by the traces tab etc */
1086 font-size: $lineheight/2;
1103 .trace_identifiable {
1116 /* Rules for the user profile page */
1121 .userinformation-inner {
1136 .admin-user-info small {
1137 margin-bottom: $lineheight/2;
1139 margin-right: $lineheight;
1144 border-bottom: 1px solid #ccc;
1145 padding-bottom: $lineheight;
1148 margin-bottom: $lineheight/2;
1153 margin-top: $lineheight;
1157 .activity-details p {
1162 #friends-container .contact-activity ul {
1167 p#no_home_location {
1168 margin: $lineheight;
1171 margin-top: $lineheight/4;
1176 /* Rules for the user map */
1178 .content_map .leaflet-popup-content {
1179 margin: $lineheight/2;
1183 /* Rules for user popups on maps */
1189 margin-top: 0 0 0 60px;
1192 img.user_thumbnail {
1194 margin: 0 $lineheight/2 0 0;
1198 /* Rules for the user list */
1201 font-size: $lineheight/2;
1205 vertical-align: middle;
1214 #user_list_actions {
1216 margin-top: $lineheight/2;
1219 /* Rules for the diary list page */
1221 .diary_entry-list img.user_thumbnail {
1228 margin-top: $lineheight/2;
1229 padding-top: $lineheight;
1230 border-top: 1px solid #ccc;
1245 ul.secondary-actions { display: inline-block;}
1248 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1252 #content .post_heading {
1253 margin-bottom: $lineheight;
1256 margin-bottom: $lineheight/2;
1261 /* Rules for the diary entry page */
1268 border: 1px solid #ccc;
1270 margin-bottom: $lineheight;
1273 border-top: 1px solid #ccc;
1274 padding-top: $lineheight;
1275 margin-top: $lineheight/2;
1281 margin-top: $lineheight/2;
1282 border-top: 1px dashed #ccc;
1283 padding-top: $lineheight/2;
1285 margin-top: $lineheight;
1286 padding-top: $lineheight;
1287 border-top: 1px solid #ccc;
1290 margin-bottom: $lineheight/2;
1299 .diary_entry-view img.user_thumbnail {
1303 /* Rules for the login page */
1305 #login_openid_buttons {
1309 #login_openid_buttons li {
1311 padding: $lineheight/4 $lineheight/2;
1314 /* Rules for the account confirmation page */
1318 border: 1px solid #ccc;
1319 padding: $lineheight;
1320 margin-bottom: $lineheight;
1334 margin: $lineheight auto inherit auto;
1339 input[type=submit] {
1345 background: darken($grey, $hovercolor);
1350 margin-bottom: $lineheight;
1352 #contributorGuidance {
1353 background-color: $offwhite;
1355 -moz-border-radius: 4px;
1362 /* Rules for the account settings page */
1364 #accountForm .user_map {
1368 border: 1px solid #ccc;
1371 #accountForm .user_image {
1375 #accountForm #user_image {
1379 #accountForm ul.accountImage-options {
1392 display: inline !important;
1395 .content_map.settings_map {
1400 /* Rules for the oauth settings page */
1402 .oauth_clients .buttons .oauth-edit {
1403 border-radius: 2px 0 0 2px;
1406 .oauth_clients .buttons .oauth-delete {
1407 border-radius: 0 2px 2px 0;
1410 /* Rules for messages pages */
1414 border: 1px solid #ddd;
1416 input[type="submit"] {
1420 border-top: 1px solid #ccc;
1424 background: #f8f8ff;
1437 padding: $lineheight/4;
1448 border-right: 1px solid $keyline;
1452 .inbox-row .inbox-mark-read {
1457 margin-bottom: $lineheight;
1458 padding: $lineheight/4 0px 4px 0px;
1459 border-bottom: 1px solid #ccc;
1466 .info-line .user_thumbnail_tiny {
1467 vertical-align: middle;
1476 .inbox-row-unread .inbox-mark-unread {
1480 .message-read .message-buttons {
1481 margin-top: $lineheight;
1482 padding-top: $lineheight;
1483 border-top: 1px solid $keyline;
1486 .message-read .buttons .mark-unread-button {
1490 /* Rules for "flash" notice boxes shown at the top of the content area */
1493 padding: $lineheight;
1495 background-color: #ff7070;
1498 background-color: #ffe0cc;
1501 background-color: #CBEEA7;
1505 /* Rules for highlighting fields with rails validation errors */
1507 .field_with_errors {
1509 background-color: #ff7070;
1513 /* Rules for rails validation error boxes */
1517 border: 2px solid #ff7070;
1518 padding: 0 $lineheight/2;
1519 margin-bottom: $lineheight;
1520 background-color: #f0f0f0;
1523 margin: 0 -10px 10px -10px;
1524 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1527 background-color: #c00;
1535 padding: $lineheight/4;
1539 padding-left: $lineheight;
1548 /* Rules for forms */
1552 margin-bottom: $lineheight;
1554 label.standard-label {
1556 margin-bottom: $lineheight/4;
1557 font-size: $typeheight;
1561 label.standard-label.secondary {
1562 display: inline-block;
1563 font-weight: normal;
1566 font-weight: normal;
1573 margin-top: $lineheight;
1574 padding-top: $lineheight;
1575 border-top: 1px solid $keyline;
1578 margin-bottom: $lineheight/2;
1586 input[type="checkbox"],
1587 input[type="radio"] {
1593 #remember_me_openid {
1597 input[type="checkbox"],
1598 input[type="radio"] {
1603 input[type="email"],
1605 input[type="password"],
1607 border: 1px solid #ccc;
1616 height: 100% !important;
1619 /* Rules for user images */
1624 border: 1px solid #ccc;
1625 margin-bottom: $lineheight;
1627 margin-right: $lineheight;
1630 img.user_thumbnail {
1633 border: 1px solid #ccc;
1634 margin-right: $lineheight;
1637 img.user_thumbnail_tiny {
1640 border: 1px solid #ccc;
1643 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1646 white-space: nowrap;
1649 /* Rules for geo microformats */
1652 border-bottom: none;
1655 /* Rules for RSS buttons */
1662 /* General styles for action lists / subnavs / pager navs */
1664 ul.secondary-actions {
1669 display: inline-block;
1676 border-left: 1px solid #ccc;
1677 padding-left: $lineheight/4;
1678 margin-right: $lineheight/4;
1689 /* Utility for managing inner content areas */
1691 .inner22 { padding: $lineheight;}
1693 .inner12 { padding: $lineheight/2 $lineheight;}
1695 .inner11 { padding: $lineheight/2;}
1697 .inner02 { padding: 0 $lineheight;}
1699 /* Utility for general button styles */
1701 input[type="button"],
1702 input[type="submit"],
1703 input[type="reset"],
1707 display: inline-block;
1709 padding: $lineheight/4 $lineheight/2;
1711 margin: 0 0 $lineheight/2 0;
1716 -moz-border-radius: 2px;
1718 background: darken($blue, $hovercolor);
1719 text-decoration: none;
1722 background: $lightblue;
1724 background: darken($lightblue, $hovercolor);
1728 background: $lightgrey;
1730 background: $lightgrey;
1740 input[type="submit"],
1741 input[type="button"],
1742 input[type="reset"],
1744 box-sizing: border-box;
1750 border-right:1px solid white;
1753 .button:first-child {
1754 border-radius:2px 0 0 2px;
1757 .button:last-child {
1758 border-radius:0 2px 2px 0;
1759 border-right-width: 0;
1763 *[value="Hide"] + input:last-child,
1764 *[value="Hide"] + .button:last-child {
1766 border-right-width: 0;
1768 /* if a 3-button set has a hidden middle button */
1769 *[value="Hide"] + input:nth-child(3),
1770 *[value="Hide"] + .button:nth-child(3) {
1771 border-radius:0 2px 2px 0;
1772 border-right-width: 0;
1774 /* if a 3-button set starts with a hidden button */
1775 *[value="Hide"] + input:nth-child(2):not(:last-child),
1776 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1777 border-radius:2px 0 0 2px;
1778 border-right-width: 1px solid white;
1782 /* Rules for doing distinct colour of alternate table rows */
1786 background: $offwhite;
1794 /* Rules for OpenID logo */
1797 vertical-align: text-bottom;
1801 /* Rules for rich text */
1806 padding-bottom: $lineheight/2;
1807 border-bottom: 1px dashed #cccccc;
1808 margin-bottom: $lineheight/2;
1820 font-size: $typeheight;
1825 background: #e8e8e8;
1831 background: #e8e8e8;
1840 padding: $lineheight;
1841 background-color: $offwhite;
1848 border-left: $lineheight solid $offwhite;
1849 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;