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 */
565 display: inline-block;
568 background-color: white;
575 border-color: transparent;
579 .tooltip.top .tooltip-arrow {
583 border-top-color: white;
584 border-width: 5px 5px 0;
587 .tooltip.right .tooltip-arrow {
591 border-right-color: white;
592 border-width: 5px 5px 5px 0;
595 .tooltip.left .tooltip-arrow {
599 border-left-color: white;
600 border-width: 5px 0 5px 5px;
603 .tooltip.bottom .tooltip-arrow {
607 border-bottom-color: white;
608 border-width: 0 5px 5px;
611 /* Rules for Leaflet maps */
613 .leaflet-control .control-button {
617 background-color: #333;
618 background-color: rgba(0,0,0,.6);
619 -bottom: 1px solid #333;
620 border-radius: 4px 0 0 4px;
625 background-color: black;
629 background-color: #9ed485;
633 background-color: #333;
634 background-color: rgba(0,0,0,.5);
643 .leaflet-control .zoomin,
644 .control-layers .control-button {
646 border-radius: 4px 0 0 0;
649 .site .leaflet-control .zoomout,
650 .control-key .control-button {
655 .leaflet-control .zoomout, // For non-main page maps
656 .control-locate .control-button,
657 .control-share .control-button {
658 border-radius: 0 0 0 4px;
661 /* Rules for the home page */
677 border-left: 1px solid #CCC;
681 border-bottom: 1px solid #DDD;
691 border:1px solid #ddd;
697 ul, li:last-child, p:last-child {
711 padding: 5px 5px 5px 7px;
712 background-color: #eee;
717 background-color: #ccc;
735 text-decoration: none;
736 background-color: $lightblue;
741 border-right: 1px solid #fff;
742 border-radius: 4px 0 0 4px;
746 border-left: 1px solid #fff;
747 border-radius: 0 4px 4px 0;
751 background-color: $blue;
763 font-family: monospace;
784 .leaflet-top.leaflet-right {
785 top: $lineheight/2 !important;
787 margin-right: 0px !important;
788 margin-top: 0px !important;
792 .leaflet-popup-scrolled {
793 padding-right: $lineheight;
794 border-bottom: 0px !important;
795 border-top: 0px !important;
798 .leaflet-popup-content-wrapper {
799 border-radius: 4px !important;
800 -webkit-border-radius: 4px !important;
803 /* Rules for edit menu */
806 padding: 0 $lineheight/4;
808 display: inline-block;
810 text-decoration: none !important;
818 background-color: #ffffff;
819 border: 1px solid $lightgrey;
825 padding: 2px $lineheight/4;
826 border-top: 1px solid #eee;
831 /* Rules for attribution text under the main map shown on printouts */
837 .attribution_license,
838 .attribution_project {
842 .attribution_notice {
846 /* Rules for the popout map sidebar */
852 border-right: 1px solid $lightgrey;
858 border-bottom: 1px solid #ccc;
861 margin-bottom: $lineheight/4;
871 padding: $lineheight/2 $lineheight;
873 background: $offwhite;
874 border-bottom: 1px solid #ccc;
896 padding: 0 $lineheight $lineheight/2 $lineheight;
897 margin-top: $lineheight/2;
899 border-bottom: 1px solid #ddd;
903 /* Rules for the map key which appears in the popout sidebar */
906 .mapkey-table-key img {
912 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
916 /* Rules for search results which appear in the popout sidebar */
919 margin-top: $lineheight/4;
920 margin-bottom: $lineheight/4;
923 .search_results_entry {
932 .search_results_entry .search_searching {
934 margin: $lineheight auto;
939 ul.results-list li { border-bottom: 1px solid #ccc; }
941 .search_results_error {
945 /* Rules for data browser information which appears in the popout sidebar */
949 .browse_show_list.button {
974 /* Rules for export information which appears in the popout sidebar */
980 .export_area_inputs {
981 margin-bottom: $lineheight/2;
989 margin: $lineheight/4;
992 /* Rules for the main content area */
995 padding: $lineheight;
1000 .site-index #content,
1001 .site-export #content {
1004 top: 30px; bottom: 0;
1005 left: 184px; right: 0;
1006 border-left: 1px solid #ccc;
1011 border-left: 1px solid #ccc;
1015 .site-edit #content {
1019 #content.maximised {
1032 #slim_container_content {
1034 background-color: #FFFFFF;
1035 margin: $lineheight/2 auto;
1037 border-radius: 25px;
1038 -moz-border-radius: 25px;
1039 border: 1px solid #e6e6e6;
1043 margin: $lineheight/2;
1048 margin-bottom: 15px;
1053 margin: 30px $lineheight/2;
1056 margin-right: $lineheight/4;
1058 vertical-align: middle;
1059 margin-bottom: $lineheight/4;
1060 margin-right: $lineheight/4;
1066 padding: $lineheight;
1067 background: $offwhite;
1069 margin-bottom: $lineheight/2;
1076 margin-top: $lineheight/2;
1081 /* Rules for small maps in content areas */
1087 border: 1px solid #ccc;
1088 margin-bottom: $lineheight;
1092 .content_map #small_map {
1095 margin-bottom: $lineheight;
1098 /* Rules for the changeset list shown by the history tab etc */
1103 padding: $lineheight/2 0;
1105 border-top: 1px solid #ccc;
1107 border-bottom: 1px solid #ccc;
1111 background: #FFFFC0;
1115 border-left: 1px solid #ccc;
1116 padding-left: $lineheight/4;
1117 margin-right: $lineheight/4;
1121 #changeset_list_map_wrapper {
1129 #changeset_list_map_wrapper.scrolled {
1133 #changeset_list_map {
1135 bottom: $lineheight;
1139 border: 1px solid #ccc;
1142 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1146 /* Rules for the data browser */
1149 border-top: 1px solid #ccc;
1150 margin-top: $lineheight/2;
1151 padding-top: $lineheight/2;
1156 background-color: #ffe0cc;
1162 margin-bottom: $lineheight/4;
1165 display: inline-block;
1166 vertical-align: top;
1176 display: inline-block;
1177 vertical-align: top;
1185 padding: $lineheight/4 0;
1187 text-overflow: ellipsis;
1198 #browse_map .geolink {
1202 #browse_map .secondary-actions {
1203 margin-bottom: $lineheight/2;
1206 /* Rules for the trace list shown by the traces tab etc */
1209 font-size: $lineheight/2;
1226 .trace_identifiable {
1239 /* Rules for the user profile page */
1244 .userinformation-inner {
1259 .admin-user-info small {
1260 margin-bottom: $lineheight/2;
1262 margin-right: $lineheight;
1267 border-bottom: 1px solid #ccc;
1268 padding-bottom: $lineheight;
1271 margin-bottom: $lineheight/2;
1276 margin-top: $lineheight;
1280 .activity-details p {
1285 #friends-container .contact-activity ul {
1290 p#no_home_location {
1291 margin: $lineheight;
1294 margin-top: $lineheight/4;
1299 /* Rules for the user map */
1301 .content_map .leaflet-popup-content {
1302 margin: $lineheight/2;
1306 /* Rules for user popups on maps */
1312 margin-top: 0 0 0 60px;
1315 img.user_thumbnail {
1317 margin: 0 $lineheight/2 0 0;
1321 /* Rules for the user list */
1324 font-size: $lineheight/2;
1328 vertical-align: middle;
1337 #user_list_actions {
1339 margin-top: $lineheight/2;
1342 /* Rules for the diary list page */
1344 .diary_entry-list img.user_thumbnail {
1351 margin-top: $lineheight/2;
1352 padding-top: $lineheight;
1353 border-top: 1px solid #ccc;
1368 ul.secondary-actions { display: inline-block;}
1371 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1375 #content .post_heading {
1376 margin-bottom: $lineheight;
1379 margin-bottom: $lineheight/2;
1384 /* Rules for the diary entry page */
1391 border: 1px solid #ccc;
1393 margin-bottom: $lineheight;
1396 border-top: 1px solid #ccc;
1397 padding-top: $lineheight;
1398 margin-top: $lineheight/2;
1404 margin-top: $lineheight/2;
1405 border-top: 1px dashed #ccc;
1406 padding-top: $lineheight/2;
1408 margin-top: $lineheight;
1409 padding-top: $lineheight;
1410 border-top: 1px solid #ccc;
1413 margin-bottom: $lineheight/2;
1422 .diary_entry-view img.user_thumbnail {
1426 /* Rules for the login page */
1428 #login_openid_buttons {
1432 #login_openid_buttons li {
1434 padding: $lineheight/4 $lineheight/2;
1437 /* Rules for the account confirmation page */
1441 border: 1px solid #ccc;
1442 padding: $lineheight;
1443 margin-bottom: $lineheight;
1457 margin: $lineheight auto inherit auto;
1462 input[type=submit] {
1468 background: darken($grey, $hovercolor);
1473 margin-bottom: $lineheight;
1475 #contributorGuidance {
1476 background-color: $offwhite;
1478 -moz-border-radius: 4px;
1485 /* Rules for the account settings page */
1487 #accountForm .user_map {
1491 border: 1px solid #ccc;
1494 #accountForm .user_image {
1498 #accountForm #user_image {
1502 #accountForm ul.accountImage-options {
1515 display: inline !important;
1518 .content_map.settings_map {
1523 /* Rules for the oauth settings page */
1525 .oauth_clients .buttons .oauth-edit {
1526 border-radius: 2px 0 0 2px;
1529 .oauth_clients .buttons .oauth-delete {
1530 border-radius: 0 2px 2px 0;
1533 /* Rules for messages pages */
1537 border: 1px solid #ddd;
1539 input[type="submit"] {
1543 border-top: 1px solid #ccc;
1547 background: #f8f8ff;
1560 padding: $lineheight/4;
1571 border-right: 1px solid $lightgrey;
1575 .inbox-row .inbox-mark-read {
1580 margin-bottom: $lineheight;
1581 padding: $lineheight/4 0px 4px 0px;
1582 border-bottom: 1px solid #ccc;
1589 .info-line .user_thumbnail_tiny {
1590 vertical-align: middle;
1599 .inbox-row-unread .inbox-mark-unread {
1603 .message-read .message-buttons {
1604 margin-top: $lineheight;
1605 padding-top: $lineheight;
1606 border-top: 1px solid $lightgrey;
1609 .message-read .buttons .mark-unread-button {
1613 /* Rules for "flash" notice boxes shown at the top of the content area */
1616 padding: $lineheight;
1618 background-color: #ff7070;
1621 background-color: #ffe0cc;
1624 background-color: #CBEEA7;
1628 /* Rules for highlighting fields with rails validation errors */
1630 .field_with_errors {
1632 background-color: #ff7070;
1636 /* Rules for rails validation error boxes */
1640 border: 2px solid #ff7070;
1641 padding: 0 $lineheight/2;
1642 margin-bottom: $lineheight;
1643 background-color: #f0f0f0;
1646 margin: 0 -10px 10px -10px;
1647 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1650 background-color: #c00;
1658 padding: $lineheight/4;
1662 padding-left: $lineheight;
1671 /* Rules for forms */
1675 margin-bottom: $lineheight;
1677 label.standard-label {
1679 margin-bottom: $lineheight/4;
1680 font-size: $typeheight;
1684 label.standard-label.secondary {
1685 display: inline-block;
1686 font-weight: normal;
1689 font-weight: normal;
1696 margin-top: $lineheight;
1697 padding-top: $lineheight;
1698 border-top: 1px solid $lightgrey;
1701 margin-bottom: $lineheight/2;
1709 input[type="checkbox"],
1710 input[type="radio"] {
1716 #remember_me_openid {
1720 input[type="checkbox"],
1721 input[type="radio"] {
1726 input[type="email"],
1728 input[type="password"],
1730 border: 1px solid #ccc;
1741 /* Rules for user images */
1746 border: 1px solid #ccc;
1747 margin-bottom: $lineheight;
1749 margin-right: $lineheight;
1752 img.user_thumbnail {
1755 border: 1px solid #ccc;
1756 margin-right: $lineheight;
1759 img.user_thumbnail_tiny {
1762 border: 1px solid #ccc;
1765 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1768 white-space: nowrap;
1771 /* Rules for geo microformats */
1774 border-bottom: none;
1777 /* Rules for RSS buttons */
1784 /* General styles for action lists / subnavs / pager navs */
1786 ul.secondary-actions {
1791 display: inline-block;
1798 border-left: 1px solid #ccc;
1799 padding-left: $lineheight/4;
1800 margin-right: $lineheight/4;
1811 /* Utility for managing inner content areas */
1813 .inner22 { padding: $lineheight;}
1815 .inner12 { padding: $lineheight/2 $lineheight;}
1817 .inner11 { padding: $lineheight/2;}
1819 .inner02 { padding: 0 $lineheight;}
1821 /* Utility for general button styles */
1823 input[type="button"],
1824 input[type="submit"],
1825 input[type="reset"],
1829 display: inline-block;
1831 padding: $lineheight/4 $lineheight/2;
1832 min-height: 20px + $lineheight/2;
1834 margin: 0 0 $lineheight/2 0;
1839 -moz-border-radius: 2px;
1841 background: darken($blue, $hovercolor);
1842 text-decoration: none;
1845 background: $lightblue;
1847 background: darken($lightblue, $hovercolor);
1851 background: $lightgrey;
1853 background: $lightgrey;
1863 input[type="submit"],
1864 input[type="button"],
1865 input[type="reset"],
1867 box-sizing: border-box;
1873 border-right:1px solid white;
1874 text-overflow: ellipsis;
1875 white-space: nowrap;
1879 .button:first-child {
1880 border-radius:2px 0 0 2px;
1883 .button:last-child {
1884 border-radius:0 2px 2px 0;
1885 border-right-width: 0;
1889 *[value="Hide"] + input:last-child,
1890 *[value="Hide"] + .button:last-child {
1892 border-right-width: 0;
1894 /* if a 3-button set has a hidden middle button */
1895 *[value="Hide"] + input:nth-child(3),
1896 *[value="Hide"] + .button:nth-child(3) {
1897 border-radius:0 2px 2px 0;
1898 border-right-width: 0;
1900 /* if a 3-button set starts with a hidden button */
1901 *[value="Hide"] + input:nth-child(2):not(:last-child),
1902 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1903 border-radius:2px 0 0 2px;
1904 border-right-width: 1px solid white;
1908 /* Rules for doing distinct colour of alternate table rows */
1912 background: $offwhite;
1920 /* Rules for OpenID logo */
1923 vertical-align: text-bottom;
1927 /* Rules for rich text */
1932 padding-bottom: $lineheight/2;
1933 border-bottom: 1px dashed #cccccc;
1934 margin-bottom: $lineheight/2;
1946 font-size: $typeheight;
1951 background: #e8e8e8;
1957 background: #e8e8e8;
1966 padding: $lineheight;
1967 background-color: $offwhite;
1974 border-left: $lineheight solid $offwhite;
1975 padding-left: $lineheight;
1981 padding-left: $lineheight;
1982 margin-bottom: $lineheight;
1983 margin-left: $lineheight;
1991 list-style: decimal;
1995 .diary_post .richtext {
1996 margin-top: $lineheight;
1999 .comments .richtext {
2004 /* Rules for rich text editors */
2006 .richtext_container {
2007 margin-bottom: $lineheight;
2011 display: inline-block;
2012 vertical-align: top;
2015 display: inline-block;
2016 padding: $lineheight;
2017 background-color: $offwhite;
2021 background-image: image-url("loading.gif");
2022 background-repeat: no-repeat;
2023 background-position: center;
2033 display: inline-block;
2034 vertical-align: top;
2036 background-color: #f8f8ff;
2037 padding: $lineheight/2;
2045 border-bottom: 1px solid #ccc;
2046 margin-bottom: $lineheight/4;
2047 padding-bottom: $lineheight/4;
2050 li h4, li span, li p {
2051 display: inline-block;
2052 vertical-align: top;
2063 margin-left: $lineheight/2;
2064 margin-bottom: $lineheight/4;
2065 white-space: nowrap;
2070 /* Rules for the user notes list */
2074 background-color: #eeeeee;
2086 /* Rules for the notes interface */
2088 .leaflet-popup-content .note {
2089 padding-top: $lineheight/2;
2092 .leaflet-popup-content .note {
2094 margin-bottom: $lineheight/2;
2098 margin-top: $lineheight/2;
2104 left: $lineheight/4;
2111 padding-left: $lineheight;
2114 .permalink:hover span {
2120 background-color: #ffe0cc;
2122 margin-bottom: $lineheight/2;
2141 margin-top: $lineheight/4;
2147 * Rules for the iD editor
2154 /* Rules for rotating sidebar ads */
2160 border-bottom: 1px solid #ccc;