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 $lineheight/2 $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;
338 * Rules for "optional boxes" which appear in the left sidebar on
339 * certain pages. Current users are the seach box on the main page
340 * and the tag cloud on the traces pages.
345 padding: $lineheight/4 $lineheight/2;
346 margin: $lineheight/4 0;
350 /* Rules for the search box */
362 font-size: $typeheight;
365 padding: 2px 0px 2px $lineheight/4;
366 box-shadow: inset #DDD 0px 1px 3px;
369 input[type="text"]:focus {
371 border: 1px solid #000;
374 input[type="submit"] {
381 text-indent: -1000px;
383 background: image-url("sprite.png") -2px -2px no-repeat;
386 right: $lineheight/4;
392 margin: $lineheight/4 0 0 0;
395 /* Utility for de-emphasizing content */
404 /* Rules for donation request box */
409 padding: $lineheight/4;
410 border: 1px solid #AED1A0;
412 font-size: $typeheight;
417 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
421 text-decoration: none;
425 /* Rules for Creative Commons logo button */
428 margin: $lineheight/2 0;
432 /* Rules for tabbed navigation bar */
438 border-bottom: 1px solid #ccc;
444 .site-index #top-bar,
445 .site-export #top-bar {
458 a, a:link, a:visited {
461 padding: 3px $lineheight/2;
462 text-decoration: none;
466 -webkit-transition: color 200ms ease-in;
467 -moz-transition: color 200ms ease-in;
468 -o-transition: color 200ms ease-in;
469 transition: color 200ms ease-in;
473 .site-index #tabnav a#viewanchor,
474 .site-edit #tabnav a#editanchor,
475 .changeset-list #tabnav a#historyanchor {
476 border-bottom: 1px solid #aaa;
481 #tabnav a:link:hover, #tabnav a:visited:hover {
482 text-decoration: underline;
485 #tabnav a:link.disabled,
486 #tabnav a:visited.disabled,
487 #tabnav a:link:hover.disabled,
488 #tabnav a:visited:hover.disabled {
492 text-decoration: none;
496 /* Utility for styling notification numbers */
499 padding: 2px $lineheight/4;
507 /* Rules for greeting bar in the top right corner */
512 margin-right: $lineheight/4;
515 .greeting-bar-unread {
519 /* Rules for the message shown in place of the map when javascript is disabled */
528 /* Rules for Leaflet maps */
530 .leaflet-control .control-button {
534 background-color: white;
535 background-color: rgba(255,255,255,.8);
541 .leaflet-control .zoomin,
542 .control-layers .control-button {
544 border-radius: 4px 4px 0px 0px;
547 .site .leaflet-control .zoomout,
548 .control-key .control-button {
553 .leaflet-control .zoomout,
554 .control-locate .control-button,
555 .control-share .control-button {
556 border-radius: 0px 0px 4px 4px;
559 .leaflet-control .control-button:hover {
560 background-color: white;
563 .leaflet-control .control-button .icon {
567 /* Rules for the home page */
583 border-left: 1px solid #CCC;
587 border-bottom: 1px solid #DDD;
597 border:1px solid #ddd;
603 ul, li:last-child, p:last-child {
617 padding: 5px 5px 5px 7px;
618 background-color: #eee;
623 background-color: #ccc;
643 font-family: monospace;
657 .site-index .leaflet-top,
658 .site-export .leaflet-top {
659 top: $lineheight/2 !important;
661 margin-top: 0px !important;
665 .leaflet-popup-scrolled {
666 padding-right: $lineheight;
667 border-bottom: 0px !important;
668 border-top: 0px !important;
671 .leaflet-popup-content-wrapper {
672 border-radius: 4px !important;
673 -webkit-border-radius: 4px !important;
676 /* Rules for edit menu */
679 padding: 0 $lineheight/4;
681 display: inline-block;
683 text-decoration: none !important;
691 background-color: #ffffff;
692 border: 1px solid $lightgrey;
698 padding: 2px $lineheight/4;
699 border-top: 1px solid #eee;
704 /* Rules for attribution text under the main map shown on printouts */
710 .attribution_license,
711 .attribution_project {
715 .attribution_notice {
719 /* Rules for the popout map sidebar */
725 border-right: 1px solid $lightgrey;
731 border-bottom: 1px solid #ccc;
734 margin-bottom: $lineheight/4;
744 padding: $lineheight/2 $lineheight;
746 background: $offwhite;
747 border-bottom: 1px solid #ccc;
769 padding: 0 $lineheight $lineheight/2 $lineheight;
770 margin-top: $lineheight/2;
772 border-bottom: 1px solid #ddd;
776 /* Rules for the map key which appears in the popout sidebar */
779 .mapkey-table-key img {
785 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
789 /* Rules for search results which appear in the popout sidebar */
792 margin-top: $lineheight/4;
793 margin-bottom: $lineheight/4;
796 .search_results_entry {
805 .search_results_entry .search_searching {
807 margin: $lineheight auto;
812 ul.results-list li { border-bottom: 1px solid #ccc; }
814 .search_results_error {
818 /* Rules for data browser information which appears in the popout sidebar */
822 .browse_show_list.button {
847 /* Rules for export information which appears in the popout sidebar */
853 .export_area_inputs {
854 margin-bottom: $lineheight/2;
862 margin: $lineheight/4;
865 /* Rules for the main content area */
868 padding: $lineheight;
873 .site-index #content,
874 .site-export #content {
877 top: 30px; bottom: 0;
878 left: 184px; right: 0;
879 border-left: 1px solid #ccc;
884 border-left: 1px solid #ccc;
888 .site-edit #content {
905 #slim_container_content {
907 background-color: #FFFFFF;
908 margin: $lineheight/2 auto;
911 -moz-border-radius: 25px;
912 border: 1px solid #e6e6e6;
916 margin: $lineheight/2;
926 margin: 30px $lineheight/2;
929 margin-right: $lineheight/4;
931 vertical-align: middle;
932 margin-bottom: $lineheight/4;
933 margin-right: $lineheight/4;
939 padding: $lineheight;
940 background: $offwhite;
942 margin-bottom: $lineheight/2;
949 margin-top: $lineheight/2;
954 /* Rules for small maps in content areas */
960 border: 1px solid #ccc;
961 margin-bottom: $lineheight;
965 .content_map #small_map {
968 margin-bottom: $lineheight;
971 /* Rules for the changeset list shown by the history tab etc */
976 padding: $lineheight/2 0;
978 border-top: 1px solid #ccc;
980 border-bottom: 1px solid #ccc;
988 border-left: 1px solid #ccc;
989 padding-left: $lineheight/4;
990 margin-right: $lineheight/4;
994 #changeset_list_map_wrapper {
1002 #changeset_list_map_wrapper.scrolled {
1006 #changeset_list_map {
1008 bottom: $lineheight;
1012 border: 1px solid #ccc;
1015 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1019 /* Rules for the data browser */
1022 border-top: 1px solid #ccc;
1023 margin-top: $lineheight/2;
1024 padding-top: $lineheight/2;
1029 background-color: #ffe0cc;
1035 margin-bottom: $lineheight/4;
1038 display: inline-block;
1039 vertical-align: top;
1049 display: inline-block;
1050 vertical-align: top;
1058 padding: $lineheight/4 0;
1060 text-overflow: ellipsis;
1071 #browse_map .geolink {
1075 #browse_map .secondary-actions {
1076 margin-bottom: $lineheight/2;
1079 /* Rules for the trace list shown by the traces tab etc */
1082 font-size: $lineheight/2;
1099 .trace_identifiable {
1112 /* Rules for the user profile page */
1117 .userinformation-inner {
1132 .admin-user-info small {
1133 margin-bottom: $lineheight/2;
1135 margin-right: $lineheight;
1140 border-bottom: 1px solid #ccc;
1141 padding-bottom: $lineheight;
1144 margin-bottom: $lineheight/2;
1149 margin-top: $lineheight;
1153 .activity-details p {
1158 #friends-container .contact-activity ul {
1163 p#no_home_location {
1164 margin: $lineheight;
1167 margin-top: $lineheight/4;
1172 /* Rules for the user map */
1174 .content_map .leaflet-popup-content {
1175 margin: $lineheight/2;
1179 /* Rules for user popups on maps */
1185 margin-top: 0 0 0 60px;
1188 img.user_thumbnail {
1190 margin: 0 $lineheight/2 0 0;
1194 /* Rules for the user list */
1197 font-size: $lineheight/2;
1201 vertical-align: middle;
1210 #user_list_actions {
1212 margin-top: $lineheight/2;
1215 /* Rules for the diary list page */
1217 .diary_entry-list img.user_thumbnail {
1224 margin-top: $lineheight/2;
1225 padding-top: $lineheight;
1226 border-top: 1px solid #ccc;
1241 ul.secondary-actions { display: inline-block;}
1244 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1248 #content .post_heading {
1249 margin-bottom: $lineheight;
1252 margin-bottom: $lineheight/2;
1257 /* Rules for the diary entry page */
1264 border: 1px solid #ccc;
1266 margin-bottom: $lineheight;
1269 border-top: 1px solid #ccc;
1270 padding-top: $lineheight;
1271 margin-top: $lineheight/2;
1277 margin-top: $lineheight/2;
1278 border-top: 1px dashed #ccc;
1279 padding-top: $lineheight/2;
1281 margin-top: $lineheight;
1282 padding-top: $lineheight;
1283 border-top: 1px solid #ccc;
1286 margin-bottom: $lineheight/2;
1295 .diary_entry-view img.user_thumbnail {
1299 /* Rules for the login page */
1301 #login_openid_buttons {
1305 #login_openid_buttons li {
1307 padding: $lineheight/4 $lineheight/2;
1310 /* Rules for the account confirmation page */
1314 border: 1px solid #ccc;
1315 padding: $lineheight;
1316 margin-bottom: $lineheight;
1330 margin: $lineheight auto inherit auto;
1335 input[type=submit] {
1341 background: darken($grey, $hovercolor);
1346 margin-bottom: $lineheight;
1348 #contributorGuidance {
1349 background-color: $offwhite;
1351 -moz-border-radius: 4px;
1358 /* Rules for the account settings page */
1360 #accountForm .user_map {
1364 border: 1px solid #ccc;
1367 #accountForm .user_image {
1371 #accountForm #user_image {
1375 #accountForm ul.accountImage-options {
1388 display: inline !important;
1391 .content_map.settings_map {
1396 /* Rules for the oauth settings page */
1398 .oauth_clients .buttons .oauth-edit {
1399 border-radius: 2px 0 0 2px;
1402 .oauth_clients .buttons .oauth-delete {
1403 border-radius: 0 2px 2px 0;
1406 /* Rules for messages pages */
1410 border: 1px solid #ddd;
1412 input[type="submit"] {
1416 border-top: 1px solid #ccc;
1420 background: #f8f8ff;
1433 padding: $lineheight/4;
1444 border-right: 1px solid $lightgrey;
1448 .inbox-row .inbox-mark-read {
1453 margin-bottom: $lineheight;
1454 padding: $lineheight/4 0px 4px 0px;
1455 border-bottom: 1px solid #ccc;
1462 .info-line .user_thumbnail_tiny {
1463 vertical-align: middle;
1472 .inbox-row-unread .inbox-mark-unread {
1476 .message-read .message-buttons {
1477 margin-top: $lineheight;
1478 padding-top: $lineheight;
1479 border-top: 1px solid $lightgrey;
1482 .message-read .buttons .mark-unread-button {
1486 /* Rules for "flash" notice boxes shown at the top of the content area */
1489 padding: $lineheight;
1491 background-color: #ff7070;
1494 background-color: #ffe0cc;
1497 background-color: #CBEEA7;
1501 /* Rules for highlighting fields with rails validation errors */
1503 .field_with_errors {
1505 background-color: #ff7070;
1509 /* Rules for rails validation error boxes */
1513 border: 2px solid #ff7070;
1514 padding: 0 $lineheight/2;
1515 margin-bottom: $lineheight;
1516 background-color: #f0f0f0;
1519 margin: 0 -10px 10px -10px;
1520 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1523 background-color: #c00;
1531 padding: $lineheight/4;
1535 padding-left: $lineheight;
1544 /* Rules for forms */
1548 margin-bottom: $lineheight;
1550 label.standard-label {
1552 margin-bottom: $lineheight/4;
1553 font-size: $typeheight;
1557 label.standard-label.secondary {
1558 display: inline-block;
1559 font-weight: normal;
1562 font-weight: normal;
1569 margin-top: $lineheight;
1570 padding-top: $lineheight;
1571 border-top: 1px solid $lightgrey;
1574 margin-bottom: $lineheight/2;
1582 input[type="checkbox"],
1583 input[type="radio"] {
1589 #remember_me_openid {
1593 input[type="checkbox"],
1594 input[type="radio"] {
1599 input[type="email"],
1601 input[type="password"],
1603 border: 1px solid #ccc;
1614 /* Rules for user images */
1619 border: 1px solid #ccc;
1620 margin-bottom: $lineheight;
1622 margin-right: $lineheight;
1625 img.user_thumbnail {
1628 border: 1px solid #ccc;
1629 margin-right: $lineheight;
1632 img.user_thumbnail_tiny {
1635 border: 1px solid #ccc;
1638 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1641 white-space: nowrap;
1644 /* Rules for geo microformats */
1647 border-bottom: none;
1650 /* Rules for RSS buttons */
1657 /* General styles for action lists / subnavs / pager navs */
1659 ul.secondary-actions {
1664 display: inline-block;
1671 border-left: 1px solid #ccc;
1672 padding-left: $lineheight/4;
1673 margin-right: $lineheight/4;
1684 /* Utility for managing inner content areas */
1686 .inner22 { padding: $lineheight;}
1688 .inner12 { padding: $lineheight/2 $lineheight;}
1690 .inner11 { padding: $lineheight/2;}
1692 .inner02 { padding: 0 $lineheight;}
1694 /* Utility for general button styles */
1696 input[type="button"],
1697 input[type="submit"],
1698 input[type="reset"],
1702 display: inline-block;
1704 padding: $lineheight/4 $lineheight/2;
1705 min-height: 20px + $lineheight/2;
1707 margin: 0 0 $lineheight/2 0;
1712 -moz-border-radius: 2px;
1714 background: darken($blue, $hovercolor);
1715 text-decoration: none;
1718 background: $lightblue;
1720 background: darken($lightblue, $hovercolor);
1724 background: $lightgrey;
1726 background: $lightgrey;
1736 input[type="submit"],
1737 input[type="button"],
1738 input[type="reset"],
1740 box-sizing: border-box;
1746 border-right:1px solid white;
1747 text-overflow: ellipsis;
1748 white-space: nowrap;
1752 .button:first-child {
1753 border-radius:2px 0 0 2px;
1756 .button:last-child {
1757 border-radius:0 2px 2px 0;
1758 border-right-width: 0;
1762 *[value="Hide"] + input:last-child,
1763 *[value="Hide"] + .button:last-child {
1765 border-right-width: 0;
1767 /* if a 3-button set has a hidden middle button */
1768 *[value="Hide"] + input:nth-child(3),
1769 *[value="Hide"] + .button:nth-child(3) {
1770 border-radius:0 2px 2px 0;
1771 border-right-width: 0;
1773 /* if a 3-button set starts with a hidden button */
1774 *[value="Hide"] + input:nth-child(2):not(:last-child),
1775 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1776 border-radius:2px 0 0 2px;
1777 border-right-width: 1px solid white;
1781 /* Rules for doing distinct colour of alternate table rows */
1785 background: $offwhite;
1793 /* Rules for OpenID logo */
1796 vertical-align: text-bottom;
1800 /* Rules for rich text */
1805 padding-bottom: $lineheight/2;
1806 border-bottom: 1px dashed #cccccc;
1807 margin-bottom: $lineheight/2;
1819 font-size: $typeheight;
1824 background: #e8e8e8;
1830 background: #e8e8e8;
1839 padding: $lineheight;
1840 background-color: $offwhite;
1847 border-left: $lineheight solid $offwhite;
1848 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;
1984 padding-left: $lineheight;
1987 .permalink:hover span {
1993 background-color: #ffe0cc;
1995 margin-bottom: $lineheight/2;
2014 margin-top: $lineheight/4;
2020 * Rules for the iD editor
2027 /* Rules for rotating sidebar ads */
2033 border-bottom: 1px solid #ccc;