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 border-bottom: 1px solid #aaa;
485 #tabnav a:link:hover, #tabnav a:visited:hover {
486 text-decoration: underline;
489 #tabnav a:link.disabled,
490 #tabnav a:visited.disabled,
491 #tabnav a:link:hover.disabled,
492 #tabnav a:visited:hover.disabled {
496 text-decoration: none;
500 /* Utility for styling notification numbers */
503 padding: 2px $lineheight/4;
511 /* Rules for greeting bar in the top right corner */
516 margin-right: $lineheight/4;
519 .greeting-bar-unread {
523 /* Rules for the message shown in place of the map when javascript is disabled */
532 /* Rules for Leaflet maps */
534 .leaflet-control .control-button {
538 background-color: white;
539 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 {
571 /* Rules for the home page */
587 border-left: 1px solid #CCC;
591 border-bottom: 1px solid #DDD;
601 border:1px solid #ddd;
618 padding: 5px 5px 5px 7px;
619 background-color: #eee;
624 background-color: #ccc;
639 display: inline-block;
647 font-family: monospace;
656 .site-index .leaflet-top,
657 .site-export .leaflet-top {
658 top: $lineheight/2 !important;
660 margin-top: 0px !important;
664 .leaflet-popup-scrolled {
665 padding-right: $lineheight;
666 border-bottom: 0px !important;
667 border-top: 0px !important;
670 .leaflet-popup-content-wrapper {
671 border-radius: 4px !important;
672 -webkit-border-radius: 4px !important;
675 /* Rules for edit menu */
678 padding: 0 $lineheight/4;
680 display: inline-block;
682 text-decoration: none !important;
690 background-color: #ffffff;
691 border: 1px solid $lightgrey;
697 padding: 2px $lineheight/4;
698 border-top: 1px solid #eee;
703 /* Rules for attribution text under the main map shown on printouts */
709 .attribution_license,
710 .attribution_project {
714 .attribution_notice {
718 /* Rules for the popout map sidebar */
724 border-right: 1px solid $lightgrey;
730 border-bottom: 1px solid #ccc;
733 margin-bottom: $lineheight/4;
743 padding: $lineheight/2 $lineheight;
745 background: $offwhite;
746 border-bottom: 1px solid #ccc;
768 padding: 0 $lineheight $lineheight/2 $lineheight;
769 margin-top: $lineheight/2;
771 border-bottom: 1px solid #ddd;
775 /* Rules for the map key which appears in the popout sidebar */
778 .mapkey-table-key img {
784 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
788 /* Rules for search results which appear in the popout sidebar */
791 margin-top: $lineheight/4;
792 margin-bottom: $lineheight/4;
795 .search_results_entry {
804 .search_results_entry .search_searching {
806 margin: $lineheight auto;
811 ul.results-list li { border-bottom: 1px solid #ccc; }
813 .search_results_error {
817 /* Rules for data browser information which appears in the popout sidebar */
821 .browse_show_list.button {
846 /* Rules for export information which appears in the popout sidebar */
852 .export_area_inputs {
853 margin-bottom: $lineheight/2;
861 margin: $lineheight/4;
864 /* Rules for the main content area */
867 padding: $lineheight;
872 .site-index #content,
873 .site-export #content {
876 top: 30px; bottom: 0;
877 left: 184px; right: 0;
878 border-left: 1px solid #ccc;
883 border-left: 1px solid #ccc;
887 .site-edit #content {
904 #slim_container_content {
906 background-color: #FFFFFF;
907 margin: $lineheight/2 auto;
910 -moz-border-radius: 25px;
911 border: 1px solid #e6e6e6;
915 margin: $lineheight/2;
925 margin: 30px $lineheight/2;
928 margin-right: $lineheight/4;
930 vertical-align: middle;
931 margin-bottom: $lineheight/4;
932 margin-right: $lineheight/4;
938 padding: $lineheight;
939 background: $offwhite;
941 margin-bottom: $lineheight/2;
948 margin-top: $lineheight/2;
953 /* Rules for small maps in content areas */
959 border: 1px solid #ccc;
960 margin-bottom: $lineheight;
964 .content_map #small_map {
967 margin-bottom: $lineheight;
970 /* Rules for the changeset list shown by the history tab etc */
975 padding: $lineheight/2 0;
977 border-top: 1px solid #ccc;
979 border-bottom: 1px solid #ccc;
987 border-left: 1px solid #ccc;
988 padding-left: $lineheight/4;
989 margin-right: $lineheight/4;
993 #changeset_list_map_wrapper {
1001 #changeset_list_map_wrapper.scrolled {
1005 #changeset_list_map {
1007 bottom: $lineheight;
1011 border: 1px solid #ccc;
1014 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1018 /* Rules for the data browser */
1021 border-top: 1px solid #ccc;
1022 margin-top: $lineheight/2;
1023 padding-top: $lineheight/2;
1028 background-color: #ffe0cc;
1034 margin-bottom: $lineheight/4;
1037 display: inline-block;
1038 vertical-align: top;
1048 display: inline-block;
1049 vertical-align: top;
1057 padding: $lineheight/4 0;
1059 text-overflow: ellipsis;
1070 #browse_map .geolink {
1074 #browse_map .secondary-actions {
1075 margin-bottom: $lineheight/2;
1078 /* Rules for the trace list shown by the traces tab etc */
1081 font-size: $lineheight/2;
1098 .trace_identifiable {
1111 /* Rules for the user profile page */
1116 .userinformation-inner {
1131 .admin-user-info small {
1132 margin-bottom: $lineheight/2;
1134 margin-right: $lineheight;
1139 border-bottom: 1px solid #ccc;
1140 padding-bottom: $lineheight;
1143 margin-bottom: $lineheight/2;
1148 margin-top: $lineheight;
1152 .activity-details p {
1157 #friends-container .contact-activity ul {
1162 p#no_home_location {
1163 margin: $lineheight;
1166 margin-top: $lineheight/4;
1171 /* Rules for the user map */
1173 .content_map .leaflet-popup-content {
1174 margin: $lineheight/2;
1178 /* Rules for user popups on maps */
1184 margin-top: 0 0 0 60px;
1187 img.user_thumbnail {
1189 margin: 0 $lineheight/2 0 0;
1193 /* Rules for the user list */
1196 font-size: $lineheight/2;
1200 vertical-align: middle;
1209 #user_list_actions {
1211 margin-top: $lineheight/2;
1214 /* Rules for the diary list page */
1216 .diary_entry-list img.user_thumbnail {
1223 margin-top: $lineheight/2;
1224 padding-top: $lineheight;
1225 border-top: 1px solid #ccc;
1240 ul.secondary-actions { display: inline-block;}
1243 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1247 #content .post_heading {
1248 margin-bottom: $lineheight;
1251 margin-bottom: $lineheight/2;
1256 /* Rules for the diary entry page */
1263 border: 1px solid #ccc;
1265 margin-bottom: $lineheight;
1268 border-top: 1px solid #ccc;
1269 padding-top: $lineheight;
1270 margin-top: $lineheight/2;
1276 margin-top: $lineheight/2;
1277 border-top: 1px dashed #ccc;
1278 padding-top: $lineheight/2;
1280 margin-top: $lineheight;
1281 padding-top: $lineheight;
1282 border-top: 1px solid #ccc;
1285 margin-bottom: $lineheight/2;
1294 .diary_entry-view img.user_thumbnail {
1298 /* Rules for the login page */
1300 #login_openid_buttons {
1304 #login_openid_buttons li {
1306 padding: $lineheight/4 $lineheight/2;
1309 /* Rules for the account confirmation page */
1313 border: 1px solid #ccc;
1314 padding: $lineheight;
1315 margin-bottom: $lineheight;
1329 margin: $lineheight auto inherit auto;
1334 input[type=submit] {
1340 background: darken($grey, $hovercolor);
1345 margin-bottom: $lineheight;
1347 #contributorGuidance {
1348 background-color: $offwhite;
1350 -moz-border-radius: 4px;
1357 /* Rules for the account settings page */
1359 #accountForm .user_map {
1363 border: 1px solid #ccc;
1366 #accountForm .user_image {
1370 #accountForm #user_image {
1374 #accountForm ul.accountImage-options {
1387 display: inline !important;
1390 .content_map.settings_map {
1395 /* Rules for the oauth settings page */
1397 .oauth_clients .buttons .oauth-edit {
1398 border-radius: 2px 0 0 2px;
1401 .oauth_clients .buttons .oauth-delete {
1402 border-radius: 0 2px 2px 0;
1405 /* Rules for messages pages */
1409 border: 1px solid #ddd;
1411 input[type="submit"] {
1415 border-top: 1px solid #ccc;
1419 background: #f8f8ff;
1432 padding: $lineheight/4;
1443 border-right: 1px solid $lightgrey;
1447 .inbox-row .inbox-mark-read {
1452 margin-bottom: $lineheight;
1453 padding: $lineheight/4 0px 4px 0px;
1454 border-bottom: 1px solid #ccc;
1461 .info-line .user_thumbnail_tiny {
1462 vertical-align: middle;
1471 .inbox-row-unread .inbox-mark-unread {
1475 .message-read .message-buttons {
1476 margin-top: $lineheight;
1477 padding-top: $lineheight;
1478 border-top: 1px solid $lightgrey;
1481 .message-read .buttons .mark-unread-button {
1485 /* Rules for "flash" notice boxes shown at the top of the content area */
1488 padding: $lineheight;
1490 background-color: #ff7070;
1493 background-color: #ffe0cc;
1496 background-color: #CBEEA7;
1500 /* Rules for highlighting fields with rails validation errors */
1502 .field_with_errors {
1504 background-color: #ff7070;
1508 /* Rules for rails validation error boxes */
1512 border: 2px solid #ff7070;
1513 padding: 0 $lineheight/2;
1514 margin-bottom: $lineheight;
1515 background-color: #f0f0f0;
1518 margin: 0 -10px 10px -10px;
1519 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1522 background-color: #c00;
1530 padding: $lineheight/4;
1534 padding-left: $lineheight;
1543 /* Rules for forms */
1547 margin-bottom: $lineheight;
1549 label.standard-label {
1551 margin-bottom: $lineheight/4;
1552 font-size: $typeheight;
1556 label.standard-label.secondary {
1557 display: inline-block;
1558 font-weight: normal;
1561 font-weight: normal;
1568 margin-top: $lineheight;
1569 padding-top: $lineheight;
1570 border-top: 1px solid $lightgrey;
1573 margin-bottom: $lineheight/2;
1581 input[type="checkbox"],
1582 input[type="radio"] {
1588 #remember_me_openid {
1592 input[type="checkbox"],
1593 input[type="radio"] {
1598 input[type="email"],
1600 input[type="password"],
1602 border: 1px solid #ccc;
1613 /* Rules for user images */
1618 border: 1px solid #ccc;
1619 margin-bottom: $lineheight;
1621 margin-right: $lineheight;
1624 img.user_thumbnail {
1627 border: 1px solid #ccc;
1628 margin-right: $lineheight;
1631 img.user_thumbnail_tiny {
1634 border: 1px solid #ccc;
1637 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1640 white-space: nowrap;
1643 /* Rules for geo microformats */
1646 border-bottom: none;
1649 /* Rules for RSS buttons */
1656 /* General styles for action lists / subnavs / pager navs */
1658 ul.secondary-actions {
1663 display: inline-block;
1670 border-left: 1px solid #ccc;
1671 padding-left: $lineheight/4;
1672 margin-right: $lineheight/4;
1683 /* Utility for managing inner content areas */
1685 .inner22 { padding: $lineheight;}
1687 .inner12 { padding: $lineheight/2 $lineheight;}
1689 .inner11 { padding: $lineheight/2;}
1691 .inner02 { padding: 0 $lineheight;}
1693 /* Utility for general button styles */
1695 input[type="button"],
1696 input[type="submit"],
1697 input[type="reset"],
1701 display: inline-block;
1703 padding: $lineheight/4 $lineheight/2;
1704 min-height: 20px + $lineheight/2;
1706 margin: 0 0 $lineheight/2 0;
1711 -moz-border-radius: 2px;
1713 background: darken($blue, $hovercolor);
1714 text-decoration: none;
1717 background: $lightblue;
1719 background: darken($lightblue, $hovercolor);
1723 background: $lightgrey;
1725 background: $lightgrey;
1735 input[type="submit"],
1736 input[type="button"],
1737 input[type="reset"],
1739 box-sizing: border-box;
1745 border-right:1px solid white;
1746 text-overflow: ellipsis;
1747 white-space: nowrap;
1751 .button:first-child {
1752 border-radius:2px 0 0 2px;
1755 .button:last-child {
1756 border-radius:0 2px 2px 0;
1757 border-right-width: 0;
1761 *[value="Hide"] + input:last-child,
1762 *[value="Hide"] + .button:last-child {
1764 border-right-width: 0;
1766 /* if a 3-button set has a hidden middle button */
1767 *[value="Hide"] + input:nth-child(3),
1768 *[value="Hide"] + .button:nth-child(3) {
1769 border-radius:0 2px 2px 0;
1770 border-right-width: 0;
1772 /* if a 3-button set starts with a hidden button */
1773 *[value="Hide"] + input:nth-child(2):not(:last-child),
1774 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1775 border-radius:2px 0 0 2px;
1776 border-right-width: 1px solid white;
1780 /* Rules for doing distinct colour of alternate table rows */
1784 background: $offwhite;
1792 /* Rules for OpenID logo */
1795 vertical-align: text-bottom;
1799 /* Rules for rich text */
1804 padding-bottom: $lineheight/2;
1805 border-bottom: 1px dashed #cccccc;
1806 margin-bottom: $lineheight/2;
1818 font-size: $typeheight;
1823 background: #e8e8e8;
1829 background: #e8e8e8;
1838 padding: $lineheight;
1839 background-color: $offwhite;
1846 border-left: $lineheight solid $offwhite;
1847 padding-left: $lineheight;
1853 padding-left: $lineheight;
1854 margin-bottom: $lineheight;
1855 margin-left: $lineheight;
1863 list-style: decimal;
1867 .diary_post .richtext {
1868 margin-top: $lineheight;
1871 .comments .richtext {
1876 /* Rules for rich text editors */
1878 .richtext_container {
1879 margin-bottom: $lineheight;
1883 display: inline-block;
1884 vertical-align: top;
1887 display: inline-block;
1888 padding: $lineheight;
1889 background-color: $offwhite;
1893 background-image: image-url("loading.gif");
1894 background-repeat: no-repeat;
1895 background-position: center;
1905 display: inline-block;
1906 vertical-align: top;
1908 background-color: #f8f8ff;
1909 padding: $lineheight/2;
1917 border-bottom: 1px solid #ccc;
1918 margin-bottom: $lineheight/4;
1919 padding-bottom: $lineheight/4;
1922 li h4, li span, li p {
1923 display: inline-block;
1924 vertical-align: top;
1935 margin-left: $lineheight/2;
1936 margin-bottom: $lineheight/4;
1937 white-space: nowrap;
1942 /* Rules for the user notes list */
1946 background-color: #eeeeee;
1958 /* Rules for the notes interface */
1960 .leaflet-popup-content .note {
1961 padding-top: $lineheight/2;
1964 .leaflet-popup-content .note {
1966 margin-bottom: $lineheight/2;
1970 margin-top: $lineheight/2;
1976 left: $lineheight/4;
1983 padding-left: $lineheight;
1986 .permalink:hover span {
1992 background-color: #ffe0cc;
1994 margin-bottom: $lineheight/2;
2013 margin-top: $lineheight/4;
2019 * Rules for the iD editor
2026 /* Rules for rotating sidebar ads */
2032 border-bottom: 1px solid #ccc;