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 {
578 border-left: 1px solid #CCC;
584 border-bottom: 1px solid #DDD;
594 border:1px solid #ddd;
606 background-color: #eee;
611 background-color: #ccc;
627 .site-index .leaflet-top,
628 .site-export .leaflet-top {
629 top: $lineheight/2 !important;
631 margin-top: 0px !important;
635 .leaflet-popup-scrolled {
636 padding-right: $lineheight;
637 border-bottom: 0px !important;
638 border-top: 0px !important;
641 .leaflet-popup-content-wrapper {
642 border-radius: 4px !important;
643 -webkit-border-radius: 4px !important;
646 /* Rules for edit menu */
649 padding: 0 $lineheight/4;
651 display: inline-block;
653 text-decoration: none !important;
661 background-color: #ffffff;
662 border: 1px solid $keyline;
668 padding: 2px $lineheight/4;
669 border-top: 1px solid #eee;
674 /* Rules for attribution text under the main map shown on printouts */
680 .attribution_license,
681 .attribution_project {
685 .attribution_notice {
689 /* Rules for the popout map sidebar */
698 border-right: 1px solid $keyline;
703 border-bottom: 1px solid #ccc;
706 margin-bottom: $lineheight/4;
716 padding: $lineheight/2 $lineheight;
718 background: $offwhite;
719 border-bottom: 1px solid #ccc;
739 padding: 0 $lineheight $lineheight/2 $lineheight;
740 margin-top: $lineheight/2;
742 border-bottom: 1px solid #ddd;
746 /* Rules for the map key which appears in the popout sidebar */
749 .mapkey-table-key img {
755 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
759 /* Rules for search results which appear in the popout sidebar */
762 margin-top: $lineheight/4;
763 margin-bottom: $lineheight/4;
766 .search_results_entry {
775 .search_results_entry .search_searching {
777 margin: $lineheight auto;
782 ul.results-list li { border-bottom: 1px solid #ccc; }
784 .search_results_error {
788 /* Rules for data browser information which appears in the popout sidebar */
792 .browse_show_list.button {
817 /* Rules for export information which appears in the popout sidebar */
823 .export_area_inputs {
824 margin-bottom: $lineheight/2;
832 margin: $lineheight/4;
835 .export_details input[type="text"]#export_html_text {
839 #sidebar #marker_inputs li:last-child {
840 margin-bottom: $lineheight/2;
849 /* Rules for the main content area */
852 padding: $lineheight;
857 .site-index #content,
858 .site-export #content {
861 top: 30px; bottom: 0;
862 left: 184px; right: 0;
863 border-left: 1px solid #ccc;
868 border-left: 1px solid #ccc;
872 .site-edit #content {
889 #slim_container_content {
891 background-color: #FFFFFF;
892 margin: $lineheight/2 auto;
895 -moz-border-radius: 25px;
896 border: 1px solid #e6e6e6;
900 margin: $lineheight/2;
910 margin: 30px $lineheight/2;
913 margin-right: $lineheight/4;
915 vertical-align: middle;
916 margin-bottom: $lineheight/4;
917 margin-right: $lineheight/4;
923 padding: $lineheight;
924 background: $offwhite;
926 margin-bottom: $lineheight/2;
933 margin-top: $lineheight/2;
938 /* Rules for small maps in content areas */
944 border: 1px solid #ccc;
945 margin-bottom: $lineheight;
949 .content_map #small_map {
952 margin-bottom: $lineheight;
955 /* Rules for the home page */
966 /* Rules for the edit page */
977 /* Rules for the changeset list shown by the history tab etc */
982 padding: $lineheight/2 0;
984 border-top: 1px solid #ccc;
986 border-bottom: 1px solid #ccc;
994 border-left: 1px solid #ccc;
995 padding-left: $lineheight/4;
996 margin-right: $lineheight/4;
1000 #changeset_list_map_wrapper {
1008 #changeset_list_map_wrapper.scrolled {
1012 #changeset_list_map {
1014 bottom: $lineheight;
1018 border: 1px solid #ccc;
1021 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1025 /* Rules for the data browser */
1028 border-top: 1px solid #ccc;
1029 margin-top: $lineheight/2;
1030 padding-top: $lineheight/2;
1035 background-color: #ffe0cc;
1041 margin-bottom: $lineheight/4;
1043 p, ul, .bbox, .geo {
1044 display: inline-block;
1045 vertical-align: top;
1054 display: inline-block;
1055 vertical-align: top;
1063 padding: $lineheight/4 0;
1065 text-overflow: ellipsis;
1076 #browse_map .geolink {
1080 #browse_map .secondary-actions {
1081 margin-bottom: $lineheight/2;
1084 /* Rules for the trace list shown by the traces tab etc */
1087 font-size: $lineheight/2;
1104 .trace_identifiable {
1117 /* Rules for the user profile page */
1122 .userinformation-inner {
1137 .admin-user-info small {
1138 margin-bottom: $lineheight/2;
1140 margin-right: $lineheight;
1145 border-bottom: 1px solid #ccc;
1146 padding-bottom: $lineheight;
1149 margin-bottom: $lineheight/2;
1154 margin-top: $lineheight;
1158 .activity-details p {
1163 #friends-container .contact-activity ul {
1168 p#no_home_location {
1169 margin: $lineheight;
1172 margin-top: $lineheight/4;
1177 /* Rules for the user map */
1179 .content_map .leaflet-popup-content {
1180 margin: $lineheight/2;
1184 /* Rules for user popups on maps */
1190 margin-top: 0 0 0 60px;
1193 img.user_thumbnail {
1195 margin: 0 $lineheight/2 0 0;
1199 /* Rules for the user list */
1202 font-size: $lineheight/2;
1206 vertical-align: middle;
1215 #user_list_actions {
1217 margin-top: $lineheight/2;
1220 /* Rules for the diary list page */
1222 .diary_entry-list img.user_thumbnail {
1229 margin-top: $lineheight/2;
1230 padding-top: $lineheight;
1231 border-top: 1px solid #ccc;
1246 ul.secondary-actions { display: inline-block;}
1249 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1253 #content .post_heading {
1254 margin-bottom: $lineheight;
1257 margin-bottom: $lineheight/2;
1262 /* Rules for the diary entry page */
1269 border: 1px solid #ccc;
1271 margin-bottom: $lineheight;
1274 border-top: 1px solid #ccc;
1275 padding-top: $lineheight;
1276 margin-top: $lineheight/2;
1282 margin-top: $lineheight/2;
1283 border-top: 1px dashed #ccc;
1284 padding-top: $lineheight/2;
1286 margin-top: $lineheight;
1287 padding-top: $lineheight;
1288 border-top: 1px solid #ccc;
1291 margin-bottom: $lineheight/2;
1300 .diary_entry-view img.user_thumbnail {
1304 /* Rules for the login page */
1306 #login_openid_buttons {
1310 #login_openid_buttons li {
1312 padding: $lineheight/4 $lineheight/2;
1315 /* Rules for the account confirmation page */
1319 border: 1px solid #ccc;
1320 padding: $lineheight;
1321 margin-bottom: $lineheight;
1335 margin: $lineheight auto inherit auto;
1340 input[type=submit] {
1346 background: darken($grey, $hovercolor);
1351 margin-bottom: $lineheight;
1353 #contributorGuidance {
1354 background-color: $offwhite;
1356 -moz-border-radius: 4px;
1363 /* Rules for the account settings page */
1365 #accountForm .user_map {
1369 border: 1px solid #ccc;
1372 #accountForm .user_image {
1376 #accountForm #user_image {
1380 #accountForm ul.accountImage-options {
1393 display: inline !important;
1396 .content_map.settings_map {
1401 /* Rules for the oauth settings page */
1403 .oauth_clients .buttons .oauth-edit {
1404 border-radius: 2px 0 0 2px;
1407 .oauth_clients .buttons .oauth-delete {
1408 border-radius: 0 2px 2px 0;
1411 /* Rules for messages pages */
1415 border: 1px solid #ddd;
1417 input[type="submit"] {
1421 border-top: 1px solid #ccc;
1425 background: #f8f8ff;
1438 padding: $lineheight/4;
1449 border-right: 1px solid $keyline;
1453 .inbox-row .inbox-mark-read {
1458 margin-bottom: $lineheight;
1459 padding: $lineheight/4 0px 4px 0px;
1460 border-bottom: 1px solid #ccc;
1467 .info-line .user_thumbnail_tiny {
1468 vertical-align: middle;
1477 .inbox-row-unread .inbox-mark-unread {
1481 .message-read .message-buttons {
1482 margin-top: $lineheight;
1483 padding-top: $lineheight;
1484 border-top: 1px solid $keyline;
1487 .message-read .buttons .mark-unread-button {
1491 /* Rules for "flash" notice boxes shown at the top of the content area */
1494 padding: $lineheight;
1496 background-color: #ff7070;
1499 background-color: #ffe0cc;
1502 background-color: #CBEEA7;
1506 /* Rules for highlighting fields with rails validation errors */
1508 .field_with_errors {
1510 background-color: #ff7070;
1514 /* Rules for rails validation error boxes */
1518 border: 2px solid #ff7070;
1519 padding: 0 $lineheight/2;
1520 margin-bottom: $lineheight;
1521 background-color: #f0f0f0;
1524 margin: 0 -10px 10px -10px;
1525 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1528 background-color: #c00;
1536 padding: $lineheight/4;
1540 padding-left: $lineheight;
1549 /* Rules for forms */
1553 margin-bottom: $lineheight;
1555 label.standard-label {
1557 margin-bottom: $lineheight/4;
1558 font-size: $typeheight;
1562 label.standard-label.secondary {
1563 display: inline-block;
1564 font-weight: normal;
1567 font-weight: normal;
1574 margin-top: $lineheight;
1575 padding-top: $lineheight;
1576 border-top: 1px solid $keyline;
1579 margin-bottom: $lineheight/2;
1587 input[type="checkbox"],
1588 input[type="radio"] {
1594 #remember_me_openid {
1598 input[type="checkbox"],
1599 input[type="radio"] {
1604 input[type="email"],
1606 input[type="password"],
1608 border: 1px solid #ccc;
1617 height: 100% !important;
1620 /* Rules for user images */
1625 border: 1px solid #ccc;
1626 margin-bottom: $lineheight;
1628 margin-right: $lineheight;
1631 img.user_thumbnail {
1634 border: 1px solid #ccc;
1635 margin-right: $lineheight;
1638 img.user_thumbnail_tiny {
1641 border: 1px solid #ccc;
1644 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1647 white-space: nowrap;
1650 /* Rules for geo microformats */
1653 border-bottom: none;
1656 /* Rules for RSS buttons */
1663 /* General styles for action lists / subnavs / pager navs */
1665 ul.secondary-actions {
1670 display: inline-block;
1677 border-left: 1px solid #ccc;
1678 padding-left: $lineheight/4;
1679 margin-right: $lineheight/4;
1690 /* Utility for managing inner content areas */
1692 .inner22 { padding: $lineheight;}
1694 .inner12 { padding: $lineheight/2 $lineheight;}
1696 .inner11 { padding: $lineheight/2;}
1698 .inner02 { padding: 0 $lineheight;}
1700 /* Utility for general button styles */
1702 input[type="button"],
1703 input[type="submit"],
1704 input[type="reset"],
1708 display: inline-block;
1710 padding: $lineheight/4 $lineheight/2;
1712 margin: 0 0 $lineheight/2 0;
1717 -moz-border-radius: 2px;
1719 background: darken($blue, $hovercolor);
1720 text-decoration: none;
1723 background: $lightblue;
1725 background: darken($lightblue, $hovercolor);
1729 background: $lightblue;
1738 input[type="submit"],
1739 input[type="button"],
1740 input[type="reset"],
1742 box-sizing: border-box;
1748 border-right:1px solid white;
1751 .button:first-child {
1752 border-radius:2px 0 0 2px;
1755 .button:last-child {
1756 border-radius:0 2px 2px 0;
1757 border-right-width: 0;
1761 *[value="Hide"] + input:last-child,
1762 *[value="Hide"] + .button:last-child {
1764 border-right-width: 0;
1766 /* if a 3-button set has a hidden middle button */
1767 *[value="Hide"] + input:nth-child(3),
1768 *[value="Hide"] + .button:nth-child(3) {
1769 border-radius:0 2px 2px 0;
1770 border-right-width: 0;
1772 /* if a 3-button set starts with a hidden button */
1773 *[value="Hide"] + input:nth-child(2):not(:last-child),
1774 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1775 border-radius:2px 0 0 2px;
1776 border-right-width: 1px solid white;
1780 /* Rules for doing distinct colour of alternate table rows */
1784 background: $offwhite;
1792 /* Rules for OpenID logo */
1795 vertical-align: text-bottom;
1799 /* Rules for rich text */
1804 padding-bottom: $lineheight/2;
1805 border-bottom: 1px dashed #cccccc;
1806 margin-bottom: $lineheight/2;
1818 font-size: $typeheight;
1823 background: #e8e8e8;
1829 background: #e8e8e8;
1838 padding: $lineheight;
1839 background-color: $offwhite;
1846 border-left: $lineheight solid $offwhite;
1847 padding-left: $lineheight;
1854 padding-left: $lineheight;
1855 margin-bottom: $lineheight;
1856 margin-left: $lineheight;
1864 list-style: decimal;
1868 .diary_post .richtext {
1869 margin-top: $lineheight;
1872 .comments .richtext {
1877 /* Rules for rich text editors */
1879 .richtext_container {
1880 margin-bottom: $lineheight;
1884 display: inline-block;
1885 vertical-align: top;
1888 display: inline-block;
1889 padding: $lineheight;
1890 background-color: $offwhite;
1894 background-image: image-url("loading.gif");
1895 background-repeat: no-repeat;
1896 background-position: center;
1906 display: inline-block;
1907 vertical-align: top;
1909 background-color: #f8f8ff;
1910 padding: $lineheight/2;
1918 border-bottom: 1px solid #ccc;
1919 margin-bottom: $lineheight/4;
1920 padding-bottom: $lineheight/4;
1923 li h4, li span, li p {
1924 display: inline-block;
1925 vertical-align: top;
1936 margin-left: $lineheight/2;
1937 margin-bottom: $lineheight/4;
1938 white-space: nowrap;
1943 /* Rules for the user notes list */
1947 background-color: #eeeeee;
1959 /* Rules for the notes interface */
1961 .leaflet-popup-content .note {
1962 padding-top: $lineheight/2;
1965 .leaflet-popup-content .note {
1967 margin-bottom: $lineheight/2;
1971 margin-top: $lineheight/2;
1977 left: $lineheight/4;
1980 background: image-url("sprite.png") 0 -45px no-repeat;
1985 padding-left: $lineheight;
1988 .permalink:hover span {
1994 background-color: #ffe0cc;
1996 margin-bottom: $lineheight/2;
2015 margin-top: $lineheight/4;
2021 * Rules for the iD editor
2028 /* Rules for rotating sidebar ads */
2034 border-bottom: 1px solid #ccc;