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 bootstrap tooltips */
566 display: inline-block;
569 background-color: white;
576 border-color: transparent;
580 .tooltip.top .tooltip-arrow {
584 border-top-color: white;
585 border-width: 5px 5px 0;
588 .tooltip.right .tooltip-arrow {
592 border-right-color: white;
593 border-width: 5px 5px 5px 0;
596 .tooltip.left .tooltip-arrow {
600 border-left-color: white;
601 border-width: 5px 0 5px 5px;
604 .tooltip.bottom .tooltip-arrow {
608 border-bottom-color: white;
609 border-width: 0 5px 5px;
612 /* Rules for Leaflet maps */
614 .leaflet-control .control-button {
618 background-color: #333;
619 background-color: rgba(0,0,0,.6);
620 -bottom: 1px solid #333;
621 border-radius: 4px 0 0 4px;
626 background-color: black;
630 background-color: #9ed485;
634 background-color: #333;
635 background-color: rgba(0,0,0,.5);
644 .leaflet-control .zoomin,
645 .control-layers .control-button {
647 border-radius: 4px 0 0 0;
650 .site .leaflet-control .zoomout,
651 .control-key .control-button {
656 .leaflet-control .zoomout, // For non-main page maps
657 .control-locate .control-button,
658 .control-share .control-button {
659 border-radius: 0 0 0 4px;
662 /* Rules for the home page */
678 border-left: 1px solid #CCC;
682 border-bottom: 1px solid #DDD;
692 border:1px solid #ddd;
698 ul, li:last-child, p:last-child {
712 padding: 5px 5px 5px 7px;
713 background-color: #eee;
718 background-color: #ccc;
736 text-decoration: none;
737 background-color: $lightblue;
742 border-right: 1px solid #fff;
743 border-radius: 4px 0 0 4px;
747 border-left: 1px solid #fff;
748 border-radius: 0 4px 4px 0;
752 background-color: $blue;
764 font-family: monospace;
785 .leaflet-top.leaflet-right {
786 top: $lineheight/2 !important;
788 margin-right: 0px !important;
789 margin-top: 0px !important;
793 .leaflet-popup-scrolled {
794 padding-right: $lineheight;
795 border-bottom: 0px !important;
796 border-top: 0px !important;
799 .leaflet-popup-content-wrapper {
800 border-radius: 4px !important;
801 -webkit-border-radius: 4px !important;
804 /* Rules for edit menu */
807 padding: 0 $lineheight/4;
809 display: inline-block;
811 text-decoration: none !important;
819 background-color: #ffffff;
820 border: 1px solid $lightgrey;
826 padding: 2px $lineheight/4;
827 border-top: 1px solid #eee;
832 /* Rules for attribution text under the main map shown on printouts */
838 .attribution_license,
839 .attribution_project {
843 .attribution_notice {
847 /* Rules for the popout map sidebar */
853 border-right: 1px solid $lightgrey;
859 border-bottom: 1px solid #ccc;
862 margin-bottom: $lineheight/4;
872 padding: $lineheight/2 $lineheight;
874 background: $offwhite;
875 border-bottom: 1px solid #ccc;
897 padding: 0 $lineheight $lineheight/2 $lineheight;
898 margin-top: $lineheight/2;
900 border-bottom: 1px solid #ddd;
904 /* Rules for the map key which appears in the popout sidebar */
907 .mapkey-table-key img {
913 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
917 /* Rules for search results which appear in the popout sidebar */
920 margin-top: $lineheight/4;
921 margin-bottom: $lineheight/4;
924 .search_results_entry {
933 .search_results_entry .search_searching {
935 margin: $lineheight auto;
940 ul.results-list li { border-bottom: 1px solid #ccc; }
942 .search_results_error {
946 /* Rules for data browser information which appears in the popout sidebar */
950 .browse_show_list.button {
975 /* Rules for export information which appears in the popout sidebar */
981 .export_area_inputs {
982 margin-bottom: $lineheight/2;
990 margin: $lineheight/4;
993 /* Rules for the main content area */
996 padding: $lineheight;
1000 .site-edit #content,
1001 .site-index #content,
1002 .site-export #content {
1005 top: 30px; bottom: 0;
1006 left: 184px; right: 0;
1007 border-left: 1px solid #ccc;
1012 border-left: 1px solid #ccc;
1016 .site-edit #content {
1020 #content.maximised {
1033 #slim_container_content {
1035 background-color: #FFFFFF;
1036 margin: $lineheight/2 auto;
1038 border-radius: 25px;
1039 -moz-border-radius: 25px;
1040 border: 1px solid #e6e6e6;
1044 margin: $lineheight/2;
1049 margin-bottom: 15px;
1054 margin: 30px $lineheight/2;
1057 margin-right: $lineheight/4;
1059 vertical-align: middle;
1060 margin-bottom: $lineheight/4;
1061 margin-right: $lineheight/4;
1067 padding: $lineheight;
1068 background: $offwhite;
1070 margin-bottom: $lineheight/2;
1077 margin-top: $lineheight/2;
1082 /* Rules for small maps in content areas */
1088 border: 1px solid #ccc;
1089 margin-bottom: $lineheight;
1093 .content_map #small_map {
1096 margin-bottom: $lineheight;
1099 /* Rules for the changeset list shown by the history tab etc */
1104 padding: $lineheight/2 0;
1106 border-top: 1px solid #ccc;
1108 border-bottom: 1px solid #ccc;
1112 background: #FFFFC0;
1116 border-left: 1px solid #ccc;
1117 padding-left: $lineheight/4;
1118 margin-right: $lineheight/4;
1122 #changeset_list_map_wrapper {
1130 #changeset_list_map_wrapper.scrolled {
1134 #changeset_list_map {
1136 bottom: $lineheight;
1140 border: 1px solid #ccc;
1143 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1147 /* Rules for the data browser */
1150 border-top: 1px solid #ccc;
1151 margin-top: $lineheight/2;
1152 padding-top: $lineheight/2;
1157 background-color: #ffe0cc;
1163 margin-bottom: $lineheight/4;
1166 display: inline-block;
1167 vertical-align: top;
1177 display: inline-block;
1178 vertical-align: top;
1186 padding: $lineheight/4 0;
1188 text-overflow: ellipsis;
1199 #browse_map .geolink {
1203 #browse_map .secondary-actions {
1204 margin-bottom: $lineheight/2;
1207 /* Rules for the trace list shown by the traces tab etc */
1210 font-size: $lineheight/2;
1227 .trace_identifiable {
1240 /* Rules for the user profile page */
1245 .userinformation-inner {
1260 .admin-user-info small {
1261 margin-bottom: $lineheight/2;
1263 margin-right: $lineheight;
1268 border-bottom: 1px solid #ccc;
1269 padding-bottom: $lineheight;
1272 margin-bottom: $lineheight/2;
1277 margin-top: $lineheight;
1281 .activity-details p {
1286 #friends-container .contact-activity ul {
1291 p#no_home_location {
1292 margin: $lineheight;
1295 margin-top: $lineheight/4;
1300 /* Rules for the user map */
1302 .content_map .leaflet-popup-content {
1303 margin: $lineheight/2;
1307 /* Rules for user popups on maps */
1313 margin-top: 0 0 0 60px;
1316 img.user_thumbnail {
1318 margin: 0 $lineheight/2 0 0;
1322 /* Rules for the user list */
1325 font-size: $lineheight/2;
1329 vertical-align: middle;
1338 #user_list_actions {
1340 margin-top: $lineheight/2;
1343 /* Rules for the diary list page */
1345 .diary_entry-list img.user_thumbnail {
1352 margin-top: $lineheight/2;
1353 padding-top: $lineheight;
1354 border-top: 1px solid #ccc;
1369 ul.secondary-actions { display: inline-block;}
1372 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1376 #content .post_heading {
1377 margin-bottom: $lineheight;
1380 margin-bottom: $lineheight/2;
1385 /* Rules for the diary entry page */
1392 border: 1px solid #ccc;
1394 margin-bottom: $lineheight;
1397 border-top: 1px solid #ccc;
1398 padding-top: $lineheight;
1399 margin-top: $lineheight/2;
1405 margin-top: $lineheight/2;
1406 border-top: 1px dashed #ccc;
1407 padding-top: $lineheight/2;
1409 margin-top: $lineheight;
1410 padding-top: $lineheight;
1411 border-top: 1px solid #ccc;
1414 margin-bottom: $lineheight/2;
1423 .diary_entry-view img.user_thumbnail {
1427 /* Rules for the login page */
1429 #login_openid_buttons {
1433 #login_openid_buttons li {
1435 padding: $lineheight/4 $lineheight/2;
1438 /* Rules for the account confirmation page */
1442 border: 1px solid #ccc;
1443 padding: $lineheight;
1444 margin-bottom: $lineheight;
1458 margin: $lineheight auto inherit auto;
1463 input[type=submit] {
1469 background: darken($grey, $hovercolor);
1474 margin-bottom: $lineheight;
1476 #contributorGuidance {
1477 background-color: $offwhite;
1479 -moz-border-radius: 4px;
1486 /* Rules for the account settings page */
1488 #accountForm .user_map {
1492 border: 1px solid #ccc;
1495 #accountForm .user_image {
1499 #accountForm #user_image {
1503 #accountForm ul.accountImage-options {
1516 display: inline !important;
1519 .content_map.settings_map {
1524 /* Rules for the oauth settings page */
1526 .oauth_clients .buttons .oauth-edit {
1527 border-radius: 2px 0 0 2px;
1530 .oauth_clients .buttons .oauth-delete {
1531 border-radius: 0 2px 2px 0;
1534 /* Rules for messages pages */
1538 border: 1px solid #ddd;
1540 input[type="submit"] {
1544 border-top: 1px solid #ccc;
1548 background: #f8f8ff;
1561 padding: $lineheight/4;
1572 border-right: 1px solid $lightgrey;
1576 .inbox-row .inbox-mark-read {
1581 margin-bottom: $lineheight;
1582 padding: $lineheight/4 0px 4px 0px;
1583 border-bottom: 1px solid #ccc;
1590 .info-line .user_thumbnail_tiny {
1591 vertical-align: middle;
1600 .inbox-row-unread .inbox-mark-unread {
1604 .message-read .message-buttons {
1605 margin-top: $lineheight;
1606 padding-top: $lineheight;
1607 border-top: 1px solid $lightgrey;
1610 .message-read .buttons .mark-unread-button {
1614 /* Rules for "flash" notice boxes shown at the top of the content area */
1617 padding: $lineheight;
1619 background-color: #ff7070;
1622 background-color: #ffe0cc;
1625 background-color: #CBEEA7;
1629 /* Rules for highlighting fields with rails validation errors */
1631 .field_with_errors {
1633 background-color: #ff7070;
1637 /* Rules for rails validation error boxes */
1641 border: 2px solid #ff7070;
1642 padding: 0 $lineheight/2;
1643 margin-bottom: $lineheight;
1644 background-color: #f0f0f0;
1647 margin: 0 -10px 10px -10px;
1648 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1651 background-color: #c00;
1659 padding: $lineheight/4;
1663 padding-left: $lineheight;
1672 /* Rules for forms */
1676 margin-bottom: $lineheight;
1678 label.standard-label {
1680 margin-bottom: $lineheight/4;
1681 font-size: $typeheight;
1685 label.standard-label.secondary {
1686 display: inline-block;
1687 font-weight: normal;
1690 font-weight: normal;
1697 margin-top: $lineheight;
1698 padding-top: $lineheight;
1699 border-top: 1px solid $lightgrey;
1702 margin-bottom: $lineheight/2;
1710 input[type="checkbox"],
1711 input[type="radio"] {
1717 #remember_me_openid {
1721 input[type="checkbox"],
1722 input[type="radio"] {
1727 input[type="email"],
1729 input[type="password"],
1731 border: 1px solid #ccc;
1742 /* Rules for user images */
1747 border: 1px solid #ccc;
1748 margin-bottom: $lineheight;
1750 margin-right: $lineheight;
1753 img.user_thumbnail {
1756 border: 1px solid #ccc;
1757 margin-right: $lineheight;
1760 img.user_thumbnail_tiny {
1763 border: 1px solid #ccc;
1766 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1769 white-space: nowrap;
1772 /* Rules for geo microformats */
1775 border-bottom: none;
1778 /* Rules for RSS buttons */
1785 /* General styles for action lists / subnavs / pager navs */
1787 ul.secondary-actions {
1792 display: inline-block;
1799 border-left: 1px solid #ccc;
1800 padding-left: $lineheight/4;
1801 margin-right: $lineheight/4;
1812 /* Utility for managing inner content areas */
1814 .inner22 { padding: $lineheight;}
1816 .inner12 { padding: $lineheight/2 $lineheight;}
1818 .inner11 { padding: $lineheight/2;}
1820 .inner02 { padding: 0 $lineheight;}
1822 /* Utility for general button styles */
1824 input[type="button"],
1825 input[type="submit"],
1826 input[type="reset"],
1830 display: inline-block;
1832 padding: $lineheight/4 $lineheight/2;
1833 min-height: 20px + $lineheight/2;
1835 margin: 0 0 $lineheight/2 0;
1840 -moz-border-radius: 2px;
1842 background: darken($blue, $hovercolor);
1843 text-decoration: none;
1846 background: $lightblue;
1848 background: darken($lightblue, $hovercolor);
1852 background: $lightgrey;
1854 background: $lightgrey;
1864 input[type="submit"],
1865 input[type="button"],
1866 input[type="reset"],
1868 box-sizing: border-box;
1874 border-right:1px solid white;
1875 text-overflow: ellipsis;
1876 white-space: nowrap;
1880 .button:first-child {
1881 border-radius:2px 0 0 2px;
1884 .button:last-child {
1885 border-radius:0 2px 2px 0;
1886 border-right-width: 0;
1890 *[value="Hide"] + input:last-child,
1891 *[value="Hide"] + .button:last-child {
1893 border-right-width: 0;
1895 /* if a 3-button set has a hidden middle button */
1896 *[value="Hide"] + input:nth-child(3),
1897 *[value="Hide"] + .button:nth-child(3) {
1898 border-radius:0 2px 2px 0;
1899 border-right-width: 0;
1901 /* if a 3-button set starts with a hidden button */
1902 *[value="Hide"] + input:nth-child(2):not(:last-child),
1903 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1904 border-radius:2px 0 0 2px;
1905 border-right-width: 1px solid white;
1909 /* Rules for doing distinct colour of alternate table rows */
1913 background: $offwhite;
1921 /* Rules for OpenID logo */
1924 vertical-align: text-bottom;
1928 /* Rules for rich text */
1933 padding-bottom: $lineheight/2;
1934 border-bottom: 1px dashed #cccccc;
1935 margin-bottom: $lineheight/2;
1947 font-size: $typeheight;
1952 background: #e8e8e8;
1958 background: #e8e8e8;
1967 padding: $lineheight;
1968 background-color: $offwhite;
1975 border-left: $lineheight solid $offwhite;
1976 padding-left: $lineheight;
1982 padding-left: $lineheight;
1983 margin-bottom: $lineheight;
1984 margin-left: $lineheight;
1992 list-style: decimal;
1996 .diary_post .richtext {
1997 margin-top: $lineheight;
2000 .comments .richtext {
2005 /* Rules for rich text editors */
2007 .richtext_container {
2008 margin-bottom: $lineheight;
2012 display: inline-block;
2013 vertical-align: top;
2016 display: inline-block;
2017 padding: $lineheight;
2018 background-color: $offwhite;
2022 background-image: image-url("loading.gif");
2023 background-repeat: no-repeat;
2024 background-position: center;
2034 display: inline-block;
2035 vertical-align: top;
2037 background-color: #f8f8ff;
2038 padding: $lineheight/2;
2046 border-bottom: 1px solid #ccc;
2047 margin-bottom: $lineheight/4;
2048 padding-bottom: $lineheight/4;
2051 li h4, li span, li p {
2052 display: inline-block;
2053 vertical-align: top;
2064 margin-left: $lineheight/2;
2065 margin-bottom: $lineheight/4;
2066 white-space: nowrap;
2071 /* Rules for the user notes list */
2075 background-color: #eeeeee;
2087 /* Rules for the notes interface */
2089 .leaflet-popup-content .note {
2090 padding-top: $lineheight/2;
2093 .leaflet-popup-content .note {
2095 margin-bottom: $lineheight/2;
2099 margin-top: $lineheight/2;
2105 left: $lineheight/4;
2112 padding-left: $lineheight;
2115 .permalink:hover span {
2121 background-color: #ffe0cc;
2123 margin-bottom: $lineheight/2;
2142 margin-top: $lineheight/4;
2148 * Rules for the iD editor
2155 /* Rules for rotating sidebar ads */
2161 border-bottom: 1px solid #ccc;