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;
630 display: inline-block;
636 .site-index .leaflet-top,
637 .site-export .leaflet-top {
638 top: $lineheight/2 !important;
640 margin-top: 0px !important;
644 .leaflet-popup-scrolled {
645 padding-right: $lineheight;
646 border-bottom: 0px !important;
647 border-top: 0px !important;
650 .leaflet-popup-content-wrapper {
651 border-radius: 4px !important;
652 -webkit-border-radius: 4px !important;
655 /* Rules for edit menu */
658 padding: 0 $lineheight/4;
660 display: inline-block;
662 text-decoration: none !important;
670 background-color: #ffffff;
671 border: 1px solid $keyline;
677 padding: 2px $lineheight/4;
678 border-top: 1px solid #eee;
683 /* Rules for attribution text under the main map shown on printouts */
689 .attribution_license,
690 .attribution_project {
694 .attribution_notice {
698 /* Rules for the popout map sidebar */
707 border-right: 1px solid $keyline;
712 border-bottom: 1px solid #ccc;
715 margin-bottom: $lineheight/4;
725 padding: $lineheight/2 $lineheight;
727 background: $offwhite;
728 border-bottom: 1px solid #ccc;
748 padding: 0 $lineheight $lineheight/2 $lineheight;
749 margin-top: $lineheight/2;
751 border-bottom: 1px solid #ddd;
755 /* Rules for the map key which appears in the popout sidebar */
758 .mapkey-table-key img {
764 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
768 /* Rules for search results which appear in the popout sidebar */
771 margin-top: $lineheight/4;
772 margin-bottom: $lineheight/4;
775 .search_results_entry {
784 .search_results_entry .search_searching {
786 margin: $lineheight auto;
791 ul.results-list li { border-bottom: 1px solid #ccc; }
793 .search_results_error {
797 /* Rules for data browser information which appears in the popout sidebar */
801 .browse_show_list.button {
826 /* Rules for export information which appears in the popout sidebar */
832 .export_area_inputs {
833 margin-bottom: $lineheight/2;
841 margin: $lineheight/4;
844 .export_details input[type="text"]#export_html_text {
848 #sidebar #marker_inputs li:last-child {
849 margin-bottom: $lineheight/2;
858 /* Rules for the main content area */
861 padding: $lineheight;
866 .site-index #content,
867 .site-export #content {
870 top: 30px; bottom: 0;
871 left: 184px; right: 0;
872 border-left: 1px solid #ccc;
877 border-left: 1px solid #ccc;
881 .site-edit #content {
898 #slim_container_content {
900 background-color: #FFFFFF;
901 margin: $lineheight/2 auto;
904 -moz-border-radius: 25px;
905 border: 1px solid #e6e6e6;
909 margin: $lineheight/2;
919 margin: 30px $lineheight/2;
922 margin-right: $lineheight/4;
924 vertical-align: middle;
925 margin-bottom: $lineheight/4;
926 margin-right: $lineheight/4;
932 padding: $lineheight;
933 background: $offwhite;
935 margin-bottom: $lineheight/2;
942 margin-top: $lineheight/2;
947 /* Rules for small maps in content areas */
953 border: 1px solid #ccc;
954 margin-bottom: $lineheight;
958 .content_map #small_map {
961 margin-bottom: $lineheight;
964 /* Rules for the home page */
975 /* Rules for the edit page */
986 /* Rules for the changeset list shown by the history tab etc */
991 padding: $lineheight/2 0;
993 border-top: 1px solid #ccc;
995 border-bottom: 1px solid #ccc;
1003 border-left: 1px solid #ccc;
1004 padding-left: $lineheight/4;
1005 margin-right: $lineheight/4;
1009 #changeset_list_map_wrapper {
1017 #changeset_list_map_wrapper.scrolled {
1021 #changeset_list_map {
1023 bottom: $lineheight;
1027 border: 1px solid #ccc;
1030 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1034 /* Rules for the data browser */
1037 border-top: 1px solid #ccc;
1038 margin-top: $lineheight/2;
1039 padding-top: $lineheight/2;
1044 background-color: #ffe0cc;
1050 margin-bottom: $lineheight/4;
1052 p, ul, .bbox, .geo {
1053 display: inline-block;
1054 vertical-align: top;
1063 display: inline-block;
1064 vertical-align: top;
1072 padding: $lineheight/4 0;
1074 text-overflow: ellipsis;
1085 #browse_map .geolink {
1089 #browse_map .secondary-actions {
1090 margin-bottom: $lineheight/2;
1093 /* Rules for the trace list shown by the traces tab etc */
1096 font-size: $lineheight/2;
1113 .trace_identifiable {
1126 /* Rules for the user profile page */
1131 .userinformation-inner {
1146 .admin-user-info small {
1147 margin-bottom: $lineheight/2;
1149 margin-right: $lineheight;
1154 border-bottom: 1px solid #ccc;
1155 padding-bottom: $lineheight;
1158 margin-bottom: $lineheight/2;
1163 margin-top: $lineheight;
1167 .activity-details p {
1172 #friends-container .contact-activity ul {
1177 p#no_home_location {
1178 margin: $lineheight;
1181 margin-top: $lineheight/4;
1186 /* Rules for the user map */
1188 .content_map .leaflet-popup-content {
1189 margin: $lineheight/2;
1193 /* Rules for user popups on maps */
1199 margin-top: 0 0 0 60px;
1202 img.user_thumbnail {
1204 margin: 0 $lineheight/2 0 0;
1208 /* Rules for the user list */
1211 font-size: $lineheight/2;
1215 vertical-align: middle;
1224 #user_list_actions {
1226 margin-top: $lineheight/2;
1229 /* Rules for the diary list page */
1231 .diary_entry-list img.user_thumbnail {
1238 margin-top: $lineheight/2;
1239 padding-top: $lineheight;
1240 border-top: 1px solid #ccc;
1255 ul.secondary-actions { display: inline-block;}
1258 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1262 #content .post_heading {
1263 margin-bottom: $lineheight;
1266 margin-bottom: $lineheight/2;
1271 /* Rules for the diary entry page */
1278 border: 1px solid #ccc;
1280 margin-bottom: $lineheight;
1283 border-top: 1px solid #ccc;
1284 padding-top: $lineheight;
1285 margin-top: $lineheight/2;
1291 margin-top: $lineheight/2;
1292 border-top: 1px dashed #ccc;
1293 padding-top: $lineheight/2;
1295 margin-top: $lineheight;
1296 padding-top: $lineheight;
1297 border-top: 1px solid #ccc;
1300 margin-bottom: $lineheight/2;
1309 .diary_entry-view img.user_thumbnail {
1313 /* Rules for the login page */
1315 #login_openid_buttons {
1319 #login_openid_buttons li {
1321 padding: $lineheight/4 $lineheight/2;
1324 /* Rules for the account confirmation page */
1328 border: 1px solid #ccc;
1329 padding: $lineheight;
1330 margin-bottom: $lineheight;
1344 margin: $lineheight auto inherit auto;
1349 input[type=submit] {
1355 background: darken($grey, $hovercolor);
1360 margin-bottom: $lineheight;
1362 #contributorGuidance {
1363 background-color: $offwhite;
1365 -moz-border-radius: 4px;
1372 /* Rules for the account settings page */
1374 #accountForm .user_map {
1378 border: 1px solid #ccc;
1381 #accountForm .user_image {
1385 #accountForm #user_image {
1389 #accountForm ul.accountImage-options {
1402 display: inline !important;
1405 .content_map.settings_map {
1410 /* Rules for the oauth settings page */
1412 .oauth_clients .buttons .oauth-edit {
1413 border-radius: 2px 0 0 2px;
1416 .oauth_clients .buttons .oauth-delete {
1417 border-radius: 0 2px 2px 0;
1420 /* Rules for messages pages */
1424 border: 1px solid #ddd;
1426 input[type="submit"] {
1430 border-top: 1px solid #ccc;
1434 background: #f8f8ff;
1447 padding: $lineheight/4;
1458 border-right: 1px solid $keyline;
1462 .inbox-row .inbox-mark-read {
1467 margin-bottom: $lineheight;
1468 padding: $lineheight/4 0px 4px 0px;
1469 border-bottom: 1px solid #ccc;
1476 .info-line .user_thumbnail_tiny {
1477 vertical-align: middle;
1486 .inbox-row-unread .inbox-mark-unread {
1490 .message-read .message-buttons {
1491 margin-top: $lineheight;
1492 padding-top: $lineheight;
1493 border-top: 1px solid $keyline;
1496 .message-read .buttons .mark-unread-button {
1500 /* Rules for "flash" notice boxes shown at the top of the content area */
1503 padding: $lineheight;
1505 background-color: #ff7070;
1508 background-color: #ffe0cc;
1511 background-color: #CBEEA7;
1515 /* Rules for highlighting fields with rails validation errors */
1517 .field_with_errors {
1519 background-color: #ff7070;
1523 /* Rules for rails validation error boxes */
1527 border: 2px solid #ff7070;
1528 padding: 0 $lineheight/2;
1529 margin-bottom: $lineheight;
1530 background-color: #f0f0f0;
1533 margin: 0 -10px 10px -10px;
1534 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1537 background-color: #c00;
1545 padding: $lineheight/4;
1549 padding-left: $lineheight;
1558 /* Rules for forms */
1562 margin-bottom: $lineheight;
1564 label.standard-label {
1566 margin-bottom: $lineheight/4;
1567 font-size: $typeheight;
1571 label.standard-label.secondary {
1572 display: inline-block;
1573 font-weight: normal;
1576 font-weight: normal;
1583 margin-top: $lineheight;
1584 padding-top: $lineheight;
1585 border-top: 1px solid $keyline;
1588 margin-bottom: $lineheight/2;
1596 input[type="checkbox"],
1597 input[type="radio"] {
1603 #remember_me_openid {
1607 input[type="checkbox"],
1608 input[type="radio"] {
1613 input[type="email"],
1615 input[type="password"],
1617 border: 1px solid #ccc;
1626 height: 100% !important;
1629 /* Rules for user images */
1634 border: 1px solid #ccc;
1635 margin-bottom: $lineheight;
1637 margin-right: $lineheight;
1640 img.user_thumbnail {
1643 border: 1px solid #ccc;
1644 margin-right: $lineheight;
1647 img.user_thumbnail_tiny {
1650 border: 1px solid #ccc;
1653 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1656 white-space: nowrap;
1659 /* Rules for geo microformats */
1662 border-bottom: none;
1665 /* Rules for RSS buttons */
1672 /* General styles for action lists / subnavs / pager navs */
1674 ul.secondary-actions {
1679 display: inline-block;
1686 border-left: 1px solid #ccc;
1687 padding-left: $lineheight/4;
1688 margin-right: $lineheight/4;
1699 /* Utility for managing inner content areas */
1701 .inner22 { padding: $lineheight;}
1703 .inner12 { padding: $lineheight/2 $lineheight;}
1705 .inner11 { padding: $lineheight/2;}
1707 .inner02 { padding: 0 $lineheight;}
1709 /* Utility for general button styles */
1711 input[type="button"],
1712 input[type="submit"],
1713 input[type="reset"],
1717 display: inline-block;
1719 padding: $lineheight/4 $lineheight/2;
1721 margin: 0 0 $lineheight/2 0;
1726 -moz-border-radius: 2px;
1728 background: darken($blue, $hovercolor);
1729 text-decoration: none;
1732 background: $lightblue;
1734 background: darken($lightblue, $hovercolor);
1738 background: $lightblue;
1747 input[type="submit"],
1748 input[type="button"],
1749 input[type="reset"],
1751 box-sizing: border-box;
1757 border-right:1px solid white;
1760 .button:first-child {
1761 border-radius:2px 0 0 2px;
1764 .button:last-child {
1765 border-radius:0 2px 2px 0;
1766 border-right-width: 0;
1770 *[value="Hide"] + input:last-child,
1771 *[value="Hide"] + .button:last-child {
1773 border-right-width: 0;
1775 /* if a 3-button set has a hidden middle button */
1776 *[value="Hide"] + input:nth-child(3),
1777 *[value="Hide"] + .button:nth-child(3) {
1778 border-radius:0 2px 2px 0;
1779 border-right-width: 0;
1781 /* if a 3-button set starts with a hidden button */
1782 *[value="Hide"] + input:nth-child(2):not(:last-child),
1783 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1784 border-radius:2px 0 0 2px;
1785 border-right-width: 1px solid white;
1789 /* Rules for doing distinct colour of alternate table rows */
1793 background: $offwhite;
1801 /* Rules for OpenID logo */
1804 vertical-align: text-bottom;
1808 /* Rules for rich text */
1813 padding-bottom: $lineheight/2;
1814 border-bottom: 1px dashed #cccccc;
1815 margin-bottom: $lineheight/2;
1827 font-size: $typeheight;
1832 background: #e8e8e8;
1838 background: #e8e8e8;
1847 padding: $lineheight;
1848 background-color: $offwhite;
1855 border-left: $lineheight solid $offwhite;
1856 padding-left: $lineheight;
1863 padding-left: $lineheight;
1864 margin-bottom: $lineheight;
1865 margin-left: $lineheight;
1873 list-style: decimal;
1877 .diary_post .richtext {
1878 margin-top: $lineheight;
1881 .comments .richtext {
1886 /* Rules for rich text editors */
1888 .richtext_container {
1889 margin-bottom: $lineheight;
1893 display: inline-block;
1894 vertical-align: top;
1897 display: inline-block;
1898 padding: $lineheight;
1899 background-color: $offwhite;
1903 background-image: image-url("loading.gif");
1904 background-repeat: no-repeat;
1905 background-position: center;
1915 display: inline-block;
1916 vertical-align: top;
1918 background-color: #f8f8ff;
1919 padding: $lineheight/2;
1927 border-bottom: 1px solid #ccc;
1928 margin-bottom: $lineheight/4;
1929 padding-bottom: $lineheight/4;
1932 li h4, li span, li p {
1933 display: inline-block;
1934 vertical-align: top;
1945 margin-left: $lineheight/2;
1946 margin-bottom: $lineheight/4;
1947 white-space: nowrap;
1952 /* Rules for the user notes list */
1956 background-color: #eeeeee;
1968 /* Rules for the notes interface */
1970 .leaflet-popup-content .note {
1971 padding-top: $lineheight/2;
1974 .leaflet-popup-content .note {
1976 margin-bottom: $lineheight/2;
1980 margin-top: $lineheight/2;
1986 left: $lineheight/4;
1989 background: image-url("sprite.png") 0 -45px no-repeat;
1994 padding-left: $lineheight;
1997 .permalink:hover span {
2003 background-color: #ffe0cc;
2005 margin-bottom: $lineheight/2;
2024 margin-top: $lineheight/4;
2030 * Rules for the iD editor
2037 /* Rules for rotating sidebar ads */
2043 border-bottom: 1px solid #ccc;