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") -2px -2px 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);
546 .leaflet-control .zoomin,
547 .control-layers .control-button {
549 border-radius: 4px 4px 0px 0px;
552 .site .leaflet-control .zoomout,
553 .control-key .control-button {
558 .leaflet-control .zoomout,
559 .control-locate .control-button,
560 .control-share .control-button {
561 border-radius: 0px 0px 4px 4px;
564 .leaflet-control .control-button:hover {
565 background-color: white;
568 .leaflet-control .control-button .icon {
572 /* Rules for the home page */
588 border-left: 1px solid #CCC;
592 border-bottom: 1px solid #DDD;
602 border:1px solid #ddd;
619 padding: 5px 5px 5px 7px;
620 background-color: #eee;
625 background-color: #ccc;
640 display: inline-block;
646 .site-index .leaflet-top,
647 .site-export .leaflet-top {
648 top: $lineheight/2 !important;
650 margin-top: 0px !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 $lightgrey;
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 */
714 border-right: 1px solid $lightgrey;
720 border-bottom: 1px solid #ccc;
723 margin-bottom: $lineheight/4;
733 padding: $lineheight/2 $lineheight;
735 background: $offwhite;
736 border-bottom: 1px solid #ccc;
758 padding: 0 $lineheight $lineheight/2 $lineheight;
759 margin-top: $lineheight/2;
761 border-bottom: 1px solid #ddd;
765 /* Rules for the map key which appears in the popout sidebar */
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 changeset list shown by the history tab etc */
979 padding: $lineheight/2 0;
981 border-top: 1px solid #ccc;
983 border-bottom: 1px solid #ccc;
991 border-left: 1px solid #ccc;
992 padding-left: $lineheight/4;
993 margin-right: $lineheight/4;
997 #changeset_list_map_wrapper {
1005 #changeset_list_map_wrapper.scrolled {
1009 #changeset_list_map {
1011 bottom: $lineheight;
1015 border: 1px solid #ccc;
1018 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1022 /* Rules for the data browser */
1025 border-top: 1px solid #ccc;
1026 margin-top: $lineheight/2;
1027 padding-top: $lineheight/2;
1032 background-color: #ffe0cc;
1038 margin-bottom: $lineheight/4;
1041 display: inline-block;
1042 vertical-align: top;
1052 display: inline-block;
1053 vertical-align: top;
1061 padding: $lineheight/4 0;
1063 text-overflow: ellipsis;
1074 #browse_map .geolink {
1078 #browse_map .secondary-actions {
1079 margin-bottom: $lineheight/2;
1082 /* Rules for the trace list shown by the traces tab etc */
1085 font-size: $lineheight/2;
1102 .trace_identifiable {
1115 /* Rules for the user profile page */
1120 .userinformation-inner {
1135 .admin-user-info small {
1136 margin-bottom: $lineheight/2;
1138 margin-right: $lineheight;
1143 border-bottom: 1px solid #ccc;
1144 padding-bottom: $lineheight;
1147 margin-bottom: $lineheight/2;
1152 margin-top: $lineheight;
1156 .activity-details p {
1161 #friends-container .contact-activity ul {
1166 p#no_home_location {
1167 margin: $lineheight;
1170 margin-top: $lineheight/4;
1175 /* Rules for the user map */
1177 .content_map .leaflet-popup-content {
1178 margin: $lineheight/2;
1182 /* Rules for user popups on maps */
1188 margin-top: 0 0 0 60px;
1191 img.user_thumbnail {
1193 margin: 0 $lineheight/2 0 0;
1197 /* Rules for the user list */
1200 font-size: $lineheight/2;
1204 vertical-align: middle;
1213 #user_list_actions {
1215 margin-top: $lineheight/2;
1218 /* Rules for the diary list page */
1220 .diary_entry-list img.user_thumbnail {
1227 margin-top: $lineheight/2;
1228 padding-top: $lineheight;
1229 border-top: 1px solid #ccc;
1244 ul.secondary-actions { display: inline-block;}
1247 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1251 #content .post_heading {
1252 margin-bottom: $lineheight;
1255 margin-bottom: $lineheight/2;
1260 /* Rules for the diary entry page */
1267 border: 1px solid #ccc;
1269 margin-bottom: $lineheight;
1272 border-top: 1px solid #ccc;
1273 padding-top: $lineheight;
1274 margin-top: $lineheight/2;
1280 margin-top: $lineheight/2;
1281 border-top: 1px dashed #ccc;
1282 padding-top: $lineheight/2;
1284 margin-top: $lineheight;
1285 padding-top: $lineheight;
1286 border-top: 1px solid #ccc;
1289 margin-bottom: $lineheight/2;
1298 .diary_entry-view img.user_thumbnail {
1302 /* Rules for the login page */
1304 #login_openid_buttons {
1308 #login_openid_buttons li {
1310 padding: $lineheight/4 $lineheight/2;
1313 /* Rules for the account confirmation page */
1317 border: 1px solid #ccc;
1318 padding: $lineheight;
1319 margin-bottom: $lineheight;
1333 margin: $lineheight auto inherit auto;
1338 input[type=submit] {
1344 background: darken($grey, $hovercolor);
1349 margin-bottom: $lineheight;
1351 #contributorGuidance {
1352 background-color: $offwhite;
1354 -moz-border-radius: 4px;
1361 /* Rules for the account settings page */
1363 #accountForm .user_map {
1367 border: 1px solid #ccc;
1370 #accountForm .user_image {
1374 #accountForm #user_image {
1378 #accountForm ul.accountImage-options {
1391 display: inline !important;
1394 .content_map.settings_map {
1399 /* Rules for the oauth settings page */
1401 .oauth_clients .buttons .oauth-edit {
1402 border-radius: 2px 0 0 2px;
1405 .oauth_clients .buttons .oauth-delete {
1406 border-radius: 0 2px 2px 0;
1409 /* Rules for messages pages */
1413 border: 1px solid #ddd;
1415 input[type="submit"] {
1419 border-top: 1px solid #ccc;
1423 background: #f8f8ff;
1436 padding: $lineheight/4;
1447 border-right: 1px solid $lightgrey;
1451 .inbox-row .inbox-mark-read {
1456 margin-bottom: $lineheight;
1457 padding: $lineheight/4 0px 4px 0px;
1458 border-bottom: 1px solid #ccc;
1465 .info-line .user_thumbnail_tiny {
1466 vertical-align: middle;
1475 .inbox-row-unread .inbox-mark-unread {
1479 .message-read .message-buttons {
1480 margin-top: $lineheight;
1481 padding-top: $lineheight;
1482 border-top: 1px solid $lightgrey;
1485 .message-read .buttons .mark-unread-button {
1489 /* Rules for "flash" notice boxes shown at the top of the content area */
1492 padding: $lineheight;
1494 background-color: #ff7070;
1497 background-color: #ffe0cc;
1500 background-color: #CBEEA7;
1504 /* Rules for highlighting fields with rails validation errors */
1506 .field_with_errors {
1508 background-color: #ff7070;
1512 /* Rules for rails validation error boxes */
1516 border: 2px solid #ff7070;
1517 padding: 0 $lineheight/2;
1518 margin-bottom: $lineheight;
1519 background-color: #f0f0f0;
1522 margin: 0 -10px 10px -10px;
1523 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1526 background-color: #c00;
1534 padding: $lineheight/4;
1538 padding-left: $lineheight;
1547 /* Rules for forms */
1551 margin-bottom: $lineheight;
1553 label.standard-label {
1555 margin-bottom: $lineheight/4;
1556 font-size: $typeheight;
1560 label.standard-label.secondary {
1561 display: inline-block;
1562 font-weight: normal;
1565 font-weight: normal;
1572 margin-top: $lineheight;
1573 padding-top: $lineheight;
1574 border-top: 1px solid $lightgrey;
1577 margin-bottom: $lineheight/2;
1585 input[type="checkbox"],
1586 input[type="radio"] {
1592 #remember_me_openid {
1596 input[type="checkbox"],
1597 input[type="radio"] {
1602 input[type="email"],
1604 input[type="password"],
1606 border: 1px solid #ccc;
1615 height: 100% !important;
1618 /* Rules for user images */
1623 border: 1px solid #ccc;
1624 margin-bottom: $lineheight;
1626 margin-right: $lineheight;
1629 img.user_thumbnail {
1632 border: 1px solid #ccc;
1633 margin-right: $lineheight;
1636 img.user_thumbnail_tiny {
1639 border: 1px solid #ccc;
1642 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1645 white-space: nowrap;
1648 /* Rules for geo microformats */
1651 border-bottom: none;
1654 /* Rules for RSS buttons */
1661 /* General styles for action lists / subnavs / pager navs */
1663 ul.secondary-actions {
1668 display: inline-block;
1675 border-left: 1px solid #ccc;
1676 padding-left: $lineheight/4;
1677 margin-right: $lineheight/4;
1688 /* Utility for managing inner content areas */
1690 .inner22 { padding: $lineheight;}
1692 .inner12 { padding: $lineheight/2 $lineheight;}
1694 .inner11 { padding: $lineheight/2;}
1696 .inner02 { padding: 0 $lineheight;}
1698 /* Utility for general button styles */
1700 input[type="button"],
1701 input[type="submit"],
1702 input[type="reset"],
1706 display: inline-block;
1708 padding: $lineheight/4 $lineheight/2;
1709 min-height: 20px + $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;
1751 text-overflow: ellipsis;
1752 white-space: nowrap;
1756 .button:first-child {
1757 border-radius:2px 0 0 2px;
1760 .button:last-child {
1761 border-radius:0 2px 2px 0;
1762 border-right-width: 0;
1766 *[value="Hide"] + input:last-child,
1767 *[value="Hide"] + .button:last-child {
1769 border-right-width: 0;
1771 /* if a 3-button set has a hidden middle button */
1772 *[value="Hide"] + input:nth-child(3),
1773 *[value="Hide"] + .button:nth-child(3) {
1774 border-radius:0 2px 2px 0;
1775 border-right-width: 0;
1777 /* if a 3-button set starts with a hidden button */
1778 *[value="Hide"] + input:nth-child(2):not(:last-child),
1779 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1780 border-radius:2px 0 0 2px;
1781 border-right-width: 1px solid white;
1785 /* Rules for doing distinct colour of alternate table rows */
1789 background: $offwhite;
1797 /* Rules for OpenID logo */
1800 vertical-align: text-bottom;
1804 /* Rules for rich text */
1809 padding-bottom: $lineheight/2;
1810 border-bottom: 1px dashed #cccccc;
1811 margin-bottom: $lineheight/2;
1823 font-size: $typeheight;
1828 background: #e8e8e8;
1834 background: #e8e8e8;
1843 padding: $lineheight;
1844 background-color: $offwhite;
1851 border-left: $lineheight solid $offwhite;
1852 padding-left: $lineheight;
1859 padding-left: $lineheight;
1860 margin-bottom: $lineheight;
1861 margin-left: $lineheight;
1869 list-style: decimal;
1873 .diary_post .richtext {
1874 margin-top: $lineheight;
1877 .comments .richtext {
1882 /* Rules for rich text editors */
1884 .richtext_container {
1885 margin-bottom: $lineheight;
1889 display: inline-block;
1890 vertical-align: top;
1893 display: inline-block;
1894 padding: $lineheight;
1895 background-color: $offwhite;
1899 background-image: image-url("loading.gif");
1900 background-repeat: no-repeat;
1901 background-position: center;
1911 display: inline-block;
1912 vertical-align: top;
1914 background-color: #f8f8ff;
1915 padding: $lineheight/2;
1923 border-bottom: 1px solid #ccc;
1924 margin-bottom: $lineheight/4;
1925 padding-bottom: $lineheight/4;
1928 li h4, li span, li p {
1929 display: inline-block;
1930 vertical-align: top;
1941 margin-left: $lineheight/2;
1942 margin-bottom: $lineheight/4;
1943 white-space: nowrap;
1948 /* Rules for the user notes list */
1952 background-color: #eeeeee;
1964 /* Rules for the notes interface */
1966 .leaflet-popup-content .note {
1967 padding-top: $lineheight/2;
1970 .leaflet-popup-content .note {
1972 margin-bottom: $lineheight/2;
1976 margin-top: $lineheight/2;
1982 left: $lineheight/4;
1989 padding-left: $lineheight;
1992 .permalink:hover span {
1998 background-color: #ffe0cc;
2000 margin-bottom: $lineheight/2;
2019 margin-top: $lineheight/4;
2025 * Rules for the iD editor
2032 /* Rules for rotating sidebar ads */
2038 border-bottom: 1px solid #ccc;