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: #333;
535 background-color: rgba(0,0,0,.6);
536 -bottom: 1px solid #333;
537 border-radius: 4px 0 0 4px;
542 .leaflet-control .zoomin,
543 .control-layers .control-button {
545 border-radius: 4px 0 0 0;
548 .site .leaflet-control .zoomout,
549 .control-key .control-button {
554 .control-locate .control-button,
555 .control-share .control-button {
556 border-radius: 0 0 0 4px;
559 .leaflet-control .control-button:hover {
560 background-color: black;
563 .leaflet-control .control-button.active {
564 background-color: #9ed485;
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;
607 ul, li:last-child, p:last-child {
621 padding: 5px 5px 5px 7px;
622 background-color: #eee;
627 background-color: #ccc;
647 font-family: monospace;
661 .site-index .leaflet-top,
662 .site-export .leaflet-top {
663 top: $lineheight/2 !important;
665 margin-right: 0px !important;
666 margin-top: 0px !important;
670 .leaflet-popup-scrolled {
671 padding-right: $lineheight;
672 border-bottom: 0px !important;
673 border-top: 0px !important;
676 .leaflet-popup-content-wrapper {
677 border-radius: 4px !important;
678 -webkit-border-radius: 4px !important;
681 /* Rules for edit menu */
684 padding: 0 $lineheight/4;
686 display: inline-block;
688 text-decoration: none !important;
696 background-color: #ffffff;
697 border: 1px solid $lightgrey;
703 padding: 2px $lineheight/4;
704 border-top: 1px solid #eee;
709 /* Rules for attribution text under the main map shown on printouts */
715 .attribution_license,
716 .attribution_project {
720 .attribution_notice {
724 /* Rules for the popout map sidebar */
730 border-right: 1px solid $lightgrey;
736 border-bottom: 1px solid #ccc;
739 margin-bottom: $lineheight/4;
749 padding: $lineheight/2 $lineheight;
751 background: $offwhite;
752 border-bottom: 1px solid #ccc;
774 padding: 0 $lineheight $lineheight/2 $lineheight;
775 margin-top: $lineheight/2;
777 border-bottom: 1px solid #ddd;
781 /* Rules for the map key which appears in the popout sidebar */
784 .mapkey-table-key img {
790 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
794 /* Rules for search results which appear in the popout sidebar */
797 margin-top: $lineheight/4;
798 margin-bottom: $lineheight/4;
801 .search_results_entry {
810 .search_results_entry .search_searching {
812 margin: $lineheight auto;
817 ul.results-list li { border-bottom: 1px solid #ccc; }
819 .search_results_error {
823 /* Rules for data browser information which appears in the popout sidebar */
827 .browse_show_list.button {
852 /* Rules for export information which appears in the popout sidebar */
858 .export_area_inputs {
859 margin-bottom: $lineheight/2;
867 margin: $lineheight/4;
870 /* Rules for the main content area */
873 padding: $lineheight;
878 .site-index #content,
879 .site-export #content {
882 top: 30px; bottom: 0;
883 left: 184px; right: 0;
884 border-left: 1px solid #ccc;
889 border-left: 1px solid #ccc;
893 .site-edit #content {
910 #slim_container_content {
912 background-color: #FFFFFF;
913 margin: $lineheight/2 auto;
916 -moz-border-radius: 25px;
917 border: 1px solid #e6e6e6;
921 margin: $lineheight/2;
931 margin: 30px $lineheight/2;
934 margin-right: $lineheight/4;
936 vertical-align: middle;
937 margin-bottom: $lineheight/4;
938 margin-right: $lineheight/4;
944 padding: $lineheight;
945 background: $offwhite;
947 margin-bottom: $lineheight/2;
954 margin-top: $lineheight/2;
959 /* Rules for small maps in content areas */
965 border: 1px solid #ccc;
966 margin-bottom: $lineheight;
970 .content_map #small_map {
973 margin-bottom: $lineheight;
976 /* Rules for the changeset list shown by the history tab etc */
981 padding: $lineheight/2 0;
983 border-top: 1px solid #ccc;
985 border-bottom: 1px solid #ccc;
993 border-left: 1px solid #ccc;
994 padding-left: $lineheight/4;
995 margin-right: $lineheight/4;
999 #changeset_list_map_wrapper {
1007 #changeset_list_map_wrapper.scrolled {
1011 #changeset_list_map {
1013 bottom: $lineheight;
1017 border: 1px solid #ccc;
1020 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1024 /* Rules for the data browser */
1027 border-top: 1px solid #ccc;
1028 margin-top: $lineheight/2;
1029 padding-top: $lineheight/2;
1034 background-color: #ffe0cc;
1040 margin-bottom: $lineheight/4;
1043 display: inline-block;
1044 vertical-align: top;
1054 display: inline-block;
1055 vertical-align: top;
1063 padding: $lineheight/4 0;
1065 text-overflow: ellipsis;
1076 #browse_map .geolink {
1080 #browse_map .secondary-actions {
1081 margin-bottom: $lineheight/2;
1084 /* Rules for the trace list shown by the traces tab etc */
1087 font-size: $lineheight/2;
1104 .trace_identifiable {
1117 /* Rules for the user profile page */
1122 .userinformation-inner {
1137 .admin-user-info small {
1138 margin-bottom: $lineheight/2;
1140 margin-right: $lineheight;
1145 border-bottom: 1px solid #ccc;
1146 padding-bottom: $lineheight;
1149 margin-bottom: $lineheight/2;
1154 margin-top: $lineheight;
1158 .activity-details p {
1163 #friends-container .contact-activity ul {
1168 p#no_home_location {
1169 margin: $lineheight;
1172 margin-top: $lineheight/4;
1177 /* Rules for the user map */
1179 .content_map .leaflet-popup-content {
1180 margin: $lineheight/2;
1184 /* Rules for user popups on maps */
1190 margin-top: 0 0 0 60px;
1193 img.user_thumbnail {
1195 margin: 0 $lineheight/2 0 0;
1199 /* Rules for the user list */
1202 font-size: $lineheight/2;
1206 vertical-align: middle;
1215 #user_list_actions {
1217 margin-top: $lineheight/2;
1220 /* Rules for the diary list page */
1222 .diary_entry-list img.user_thumbnail {
1229 margin-top: $lineheight/2;
1230 padding-top: $lineheight;
1231 border-top: 1px solid #ccc;
1246 ul.secondary-actions { display: inline-block;}
1249 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1253 #content .post_heading {
1254 margin-bottom: $lineheight;
1257 margin-bottom: $lineheight/2;
1262 /* Rules for the diary entry page */
1269 border: 1px solid #ccc;
1271 margin-bottom: $lineheight;
1274 border-top: 1px solid #ccc;
1275 padding-top: $lineheight;
1276 margin-top: $lineheight/2;
1282 margin-top: $lineheight/2;
1283 border-top: 1px dashed #ccc;
1284 padding-top: $lineheight/2;
1286 margin-top: $lineheight;
1287 padding-top: $lineheight;
1288 border-top: 1px solid #ccc;
1291 margin-bottom: $lineheight/2;
1300 .diary_entry-view img.user_thumbnail {
1304 /* Rules for the login page */
1306 #login_openid_buttons {
1310 #login_openid_buttons li {
1312 padding: $lineheight/4 $lineheight/2;
1315 /* Rules for the account confirmation page */
1319 border: 1px solid #ccc;
1320 padding: $lineheight;
1321 margin-bottom: $lineheight;
1335 margin: $lineheight auto inherit auto;
1340 input[type=submit] {
1346 background: darken($grey, $hovercolor);
1351 margin-bottom: $lineheight;
1353 #contributorGuidance {
1354 background-color: $offwhite;
1356 -moz-border-radius: 4px;
1363 /* Rules for the account settings page */
1365 #accountForm .user_map {
1369 border: 1px solid #ccc;
1372 #accountForm .user_image {
1376 #accountForm #user_image {
1380 #accountForm ul.accountImage-options {
1393 display: inline !important;
1396 .content_map.settings_map {
1401 /* Rules for the oauth settings page */
1403 .oauth_clients .buttons .oauth-edit {
1404 border-radius: 2px 0 0 2px;
1407 .oauth_clients .buttons .oauth-delete {
1408 border-radius: 0 2px 2px 0;
1411 /* Rules for messages pages */
1415 border: 1px solid #ddd;
1417 input[type="submit"] {
1421 border-top: 1px solid #ccc;
1425 background: #f8f8ff;
1438 padding: $lineheight/4;
1449 border-right: 1px solid $lightgrey;
1453 .inbox-row .inbox-mark-read {
1458 margin-bottom: $lineheight;
1459 padding: $lineheight/4 0px 4px 0px;
1460 border-bottom: 1px solid #ccc;
1467 .info-line .user_thumbnail_tiny {
1468 vertical-align: middle;
1477 .inbox-row-unread .inbox-mark-unread {
1481 .message-read .message-buttons {
1482 margin-top: $lineheight;
1483 padding-top: $lineheight;
1484 border-top: 1px solid $lightgrey;
1487 .message-read .buttons .mark-unread-button {
1491 /* Rules for "flash" notice boxes shown at the top of the content area */
1494 padding: $lineheight;
1496 background-color: #ff7070;
1499 background-color: #ffe0cc;
1502 background-color: #CBEEA7;
1506 /* Rules for highlighting fields with rails validation errors */
1508 .field_with_errors {
1510 background-color: #ff7070;
1514 /* Rules for rails validation error boxes */
1518 border: 2px solid #ff7070;
1519 padding: 0 $lineheight/2;
1520 margin-bottom: $lineheight;
1521 background-color: #f0f0f0;
1524 margin: 0 -10px 10px -10px;
1525 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1528 background-color: #c00;
1536 padding: $lineheight/4;
1540 padding-left: $lineheight;
1549 /* Rules for forms */
1553 margin-bottom: $lineheight;
1555 label.standard-label {
1557 margin-bottom: $lineheight/4;
1558 font-size: $typeheight;
1562 label.standard-label.secondary {
1563 display: inline-block;
1564 font-weight: normal;
1567 font-weight: normal;
1574 margin-top: $lineheight;
1575 padding-top: $lineheight;
1576 border-top: 1px solid $lightgrey;
1579 margin-bottom: $lineheight/2;
1587 input[type="checkbox"],
1588 input[type="radio"] {
1594 #remember_me_openid {
1598 input[type="checkbox"],
1599 input[type="radio"] {
1604 input[type="email"],
1606 input[type="password"],
1608 border: 1px solid #ccc;
1619 /* Rules for user images */
1624 border: 1px solid #ccc;
1625 margin-bottom: $lineheight;
1627 margin-right: $lineheight;
1630 img.user_thumbnail {
1633 border: 1px solid #ccc;
1634 margin-right: $lineheight;
1637 img.user_thumbnail_tiny {
1640 border: 1px solid #ccc;
1643 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1646 white-space: nowrap;
1649 /* Rules for geo microformats */
1652 border-bottom: none;
1655 /* Rules for RSS buttons */
1662 /* General styles for action lists / subnavs / pager navs */
1664 ul.secondary-actions {
1669 display: inline-block;
1676 border-left: 1px solid #ccc;
1677 padding-left: $lineheight/4;
1678 margin-right: $lineheight/4;
1689 /* Utility for managing inner content areas */
1691 .inner22 { padding: $lineheight;}
1693 .inner12 { padding: $lineheight/2 $lineheight;}
1695 .inner11 { padding: $lineheight/2;}
1697 .inner02 { padding: 0 $lineheight;}
1699 /* Utility for general button styles */
1701 input[type="button"],
1702 input[type="submit"],
1703 input[type="reset"],
1707 display: inline-block;
1709 padding: $lineheight/4 $lineheight/2;
1710 min-height: 20px + $lineheight/2;
1712 margin: 0 0 $lineheight/2 0;
1717 -moz-border-radius: 2px;
1719 background: darken($blue, $hovercolor);
1720 text-decoration: none;
1723 background: $lightblue;
1725 background: darken($lightblue, $hovercolor);
1729 background: $lightgrey;
1731 background: $lightgrey;
1741 input[type="submit"],
1742 input[type="button"],
1743 input[type="reset"],
1745 box-sizing: border-box;
1751 border-right:1px solid white;
1752 text-overflow: ellipsis;
1753 white-space: nowrap;
1757 .button:first-child {
1758 border-radius:2px 0 0 2px;
1761 .button:last-child {
1762 border-radius:0 2px 2px 0;
1763 border-right-width: 0;
1767 *[value="Hide"] + input:last-child,
1768 *[value="Hide"] + .button:last-child {
1770 border-right-width: 0;
1772 /* if a 3-button set has a hidden middle button */
1773 *[value="Hide"] + input:nth-child(3),
1774 *[value="Hide"] + .button:nth-child(3) {
1775 border-radius:0 2px 2px 0;
1776 border-right-width: 0;
1778 /* if a 3-button set starts with a hidden button */
1779 *[value="Hide"] + input:nth-child(2):not(:last-child),
1780 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1781 border-radius:2px 0 0 2px;
1782 border-right-width: 1px solid white;
1786 /* Rules for doing distinct colour of alternate table rows */
1790 background: $offwhite;
1798 /* Rules for OpenID logo */
1801 vertical-align: text-bottom;
1805 /* Rules for rich text */
1810 padding-bottom: $lineheight/2;
1811 border-bottom: 1px dashed #cccccc;
1812 margin-bottom: $lineheight/2;
1824 font-size: $typeheight;
1829 background: #e8e8e8;
1835 background: #e8e8e8;
1844 padding: $lineheight;
1845 background-color: $offwhite;
1852 border-left: $lineheight solid $offwhite;
1853 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;