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 .icon.layers { background-position: -100px 0; }
166 .icon.key { background-position: -120px 0; }
167 .icon.share { background-position: -140px 0; }
168 .icon.clipboard { background-position: -160px 0; }
169 .icon.link { background-position: -180px 0; }
170 .icon.close { background-position: -200px 0; }
171 .icon.check { background-position: -220px 0; }
172 .icon.note { background-position: -240px 0; }
174 /* Rules for links */
178 text-decoration: none;
180 text-decoration: underline;
184 /* Rules for horizontal lines */
188 background-color: #ccc;
193 /* General styles for tables */
197 margin-bottom: $lineheight;
200 padding: $lineheight/4;
201 line-height: $lineheight;
208 vertical-align: middle;
212 /* Rules for the whole left sidebar, including the logo */
221 border-right: 1px solid #ccc;
224 /* Rules for the OpenStreetMap logo in the top left corner */
230 padding: $lineheight $lineheight/4;
243 font-size: $lineheight/2;
248 /* Rules for the site name */
254 /* Rules for the introductory text displayed in the left sidebar to new users */
257 padding: $lineheight/4 $lineheight/2;
259 margin: $lineheight/4 0;
262 .sidebar-copy.intro {
263 border-top: 1px solid #ccc;
267 * Rules for alert boxes shown in the left sidebar when important
268 * information needs to be conveyed such as when the site is
269 * undergoing maintenance.
273 padding: $lineheight/4;
274 border-top: 1px solid #ccc;
281 margin: $lineheight/4;
286 * Rules for notice boxes shown in the left sidebar when important, but
287 * non-critical information needs to be conveyed such as notices about
292 padding: $lineheight/4;
293 border-top: 1px solid #ccc;
299 margin: $lineheight/4;
303 /* Rules for the menu displayed in the left sidebar */
308 padding: $lineheight/4 $lineheight/2;
311 list-style-type: none;
312 border-bottom: 1px solid #ccc;
313 border-top: 1px solid #ccc;
315 margin: $lineheight/2 0px;
324 list-style-type: none;
330 padding: $lineheight/4 0 $lineheight/4 0;
340 /* Rules for SOTM advert */
344 margin: $lineheight/2;
354 * Rules for "optional boxes" which appear in the left sidebar on
355 * certain pages. Current users are the seach box on the main page
356 * and the tag cloud on the traces pages.
361 padding: $lineheight/4 $lineheight/2;
362 margin: $lineheight/4 0;
366 /* Rules for the search box */
378 font-size: $typeheight;
381 padding: 2px 0px 2px $lineheight/4;
382 box-shadow: inset #DDD 0px 1px 3px;
385 input[type="text"]:focus {
387 border: 1px solid #000;
390 input[type="submit"] {
397 text-indent: -1000px;
399 background: image-url("sprite.png") 0 0 no-repeat;
402 right: $lineheight/4;
408 margin: $lineheight/4 0 0 0;
411 /* Utility for de-emphasizing content */
420 /* Rules for donation request box */
425 padding: $lineheight/4;
426 border: 1px solid #AED1A0;
428 font-size: $typeheight;
433 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
437 text-decoration: none;
441 /* Rules for Creative Commons logo button */
444 margin: $lineheight/2 0;
448 /* Rules for tabbed navigation bar */
454 border-bottom: 1px solid #ccc;
460 .site-index #top-bar,
461 .site-export #top-bar {
474 a, a:link, a:visited {
477 padding: 3px $lineheight/2;
478 text-decoration: none;
482 -webkit-transition: color 200ms ease-in;
483 -moz-transition: color 200ms ease-in;
484 -o-transition: color 200ms ease-in;
485 transition: color 200ms ease-in;
489 .site-index #tabnav a#viewanchor,
490 .site-edit #tabnav a#editanchor,
491 .changeset-list #tabnav a#historyanchor,
492 .site-export #tabnav a#exportanchor {
493 border-bottom: 1px solid #aaa;
498 #tabnav a:link:hover, #tabnav a:visited:hover {
499 text-decoration: underline;
502 #tabnav a:link.disabled,
503 #tabnav a:visited.disabled,
504 #tabnav a:link:hover.disabled,
505 #tabnav a:visited:hover.disabled {
509 text-decoration: none;
513 /* Utility for styling notification numbers */
516 padding: 2px $lineheight/4;
524 /* Rules for greeting bar in the top right corner */
529 margin-right: $lineheight/4;
532 .greeting-bar-unread {
536 /* Rules for the message shown in place of the map when javascript is disabled */
545 /* Rules for Leaflet maps */
551 background-color: white;
552 background-color: rgba(255,255,255,.8);
557 .leaflet-control a:hover {
558 background-color: white;
561 .leaflet-control a .icon {
576 border-top: 1px solid #868e85;
589 background-color: #868e85;
594 background-color: #68c879;
606 .leaflet-control-attribution {
610 text-decoration: none;
613 ul.secondary-actions {
615 margin-right: $lineheight/4;
623 .site-index .leaflet-top,
624 .site-export .leaflet-top {
625 top: $lineheight/2 !important;
627 margin-top: 0px !important;
631 .site-index #map .olControlScaleLine,
632 .site-export #map .olControlScaleLine {
633 left: $lineheight/2 !important;
636 .leaflet-popup-scrolled {
637 padding-right: $lineheight;
638 border-bottom: 0px !important;
639 border-top: 0px !important;
642 .leaflet-popup-content-wrapper {
643 border-radius: 4px !important;
644 -webkit-border-radius: 4px !important;
647 /* Rules for edit menu */
650 padding: 0 $lineheight/4;
652 display: inline-block;
654 text-decoration: none !important;
662 background-color: #ffffff;
663 border: 1px solid $keyline;
669 padding: 2px $lineheight/4;
670 border-top: 1px solid #eee;
675 /* Rules for attribution text under the main map shown on printouts */
681 .attribution_license,
682 .attribution_project {
686 .attribution_notice {
690 /* Rules for the popout map sidebar */
699 border-right: 1px solid $keyline;
703 padding: $lineheight/2 $lineheight;
705 background: $offwhite;
706 border-bottom: 1px solid #ccc;
714 border-bottom: 1px solid #ccc;
717 margin-bottom: $lineheight/4;
739 padding: 0 $lineheight $lineheight/2 $lineheight;
740 margin-top: $lineheight/2;
742 border-bottom: 1px solid #ddd;
746 /* Rules for the map key which appears in the popout sidebar */
749 padding: $lineheight $lineheight 0 $lineheight;
750 .mapkey-table-key img {
756 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
760 /* Rules for search results which appear in the popout sidebar */
763 margin-top: $lineheight/4;
764 margin-bottom: $lineheight/4;
767 .search_results_entry {
776 .search_results_entry .search_searching {
778 margin: $lineheight auto;
783 ul.results-list li { border-bottom: 1px solid #ccc; }
785 .search_results_error {
789 /* Rules for data browser information which appears in the popout sidebar */
793 .browse_show_list.button {
818 /* Rules for export information which appears in the popout sidebar */
824 .export_area_inputs {
825 margin-bottom: $lineheight/2;
833 margin: $lineheight/4;
836 .export_details input[type="text"]#export_html_text {
840 #sidebar #marker_inputs li:last-child {
841 margin-bottom: $lineheight/2;
850 /* Rules for the main content area */
853 padding: $lineheight;
858 .site-index #content,
859 .site-export #content {
862 top: 30px; bottom: 0;
863 left: 184px; right: 0;
864 border-left: 1px solid #ccc;
869 border-left: 1px solid #ccc;
873 .site-edit #content {
890 #slim_container_content {
892 background-color: #FFFFFF;
893 margin: $lineheight/2 auto;
896 -moz-border-radius: 25px;
897 border: 1px solid #e6e6e6;
901 margin: $lineheight/2;
911 margin: 30px $lineheight/2;
914 margin-right: $lineheight/4;
916 vertical-align: middle;
917 margin-bottom: $lineheight/4;
918 margin-right: $lineheight/4;
924 padding: $lineheight;
925 background: $offwhite;
927 margin-bottom: $lineheight/2;
934 margin-top: $lineheight/2;
939 /* Rules for small maps in content areas */
945 border: 1px solid #ccc;
946 margin-bottom: $lineheight;
950 .content_map #small_map {
953 margin-bottom: $lineheight;
956 /* Rules for the home page */
967 /* Rules for the edit page */
978 /* Rules for the changeset list shown by the history tab etc */
983 padding: $lineheight/2 0;
985 border-top: 1px solid #ccc;
987 border-bottom: 1px solid #ccc;
995 border-left: 1px solid #ccc;
996 padding-left: $lineheight/4;
997 margin-right: $lineheight/4;
1001 #changeset_list_map_wrapper {
1009 #changeset_list_map_wrapper.scrolled {
1013 #changeset_list_map {
1015 bottom: $lineheight;
1019 border: 1px solid #ccc;
1022 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1026 /* Rules for the data browser */
1029 border-top: 1px solid #ccc;
1030 margin-top: $lineheight/2;
1031 padding-top: $lineheight/2;
1036 background-color: #ffe0cc;
1042 margin-bottom: $lineheight/4;
1044 p, ul, .bbox, .geo {
1045 display: inline-block;
1046 vertical-align: top;
1055 display: inline-block;
1056 vertical-align: top;
1064 padding: $lineheight/4 0;
1066 text-overflow: ellipsis;
1077 #browse_map .geolink {
1081 #browse_map .secondary-actions {
1082 margin-bottom: $lineheight/2;
1085 /* Rules for the trace list shown by the traces tab etc */
1088 font-size: $lineheight/2;
1105 .trace_identifiable {
1118 /* Rules for the user profile page */
1123 .userinformation-inner {
1138 .admin-user-info small {
1139 margin-bottom: $lineheight/2;
1141 margin-right: $lineheight;
1146 border-bottom: 1px solid #ccc;
1147 padding-bottom: $lineheight;
1150 margin-bottom: $lineheight/2;
1155 margin-top: $lineheight;
1159 .activity-details p {
1164 #friends-container .contact-activity ul {
1169 p#no_home_location {
1170 margin: $lineheight;
1173 margin-top: $lineheight/4;
1178 /* Rules for the user map */
1180 .content_map .leaflet-popup-content {
1181 margin: $lineheight/2;
1185 /* Rules for user popups on maps */
1191 margin-top: 0 0 0 60px;
1194 img.user_thumbnail {
1196 margin: 0 $lineheight/2 0 0;
1200 /* Rules for the user list */
1203 font-size: $lineheight/2;
1207 vertical-align: middle;
1216 #user_list_actions {
1218 margin-top: $lineheight/2;
1221 /* Rules for the diary list page */
1223 .diary_entry-list img.user_thumbnail {
1230 margin-top: $lineheight/2;
1231 padding-top: $lineheight;
1232 border-top: 1px solid #ccc;
1247 ul.secondary-actions { display: inline-block;}
1250 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1254 #content .post_heading {
1255 margin-bottom: $lineheight;
1258 margin-bottom: $lineheight/2;
1263 /* Rules for the diary entry page */
1270 border: 1px solid #ccc;
1272 margin-bottom: $lineheight;
1275 border-top: 1px solid #ccc;
1276 padding-top: $lineheight;
1277 margin-top: $lineheight/2;
1283 margin-top: $lineheight/2;
1284 border-top: 1px dashed #ccc;
1285 padding-top: $lineheight/2;
1287 margin-top: $lineheight;
1288 padding-top: $lineheight;
1289 border-top: 1px solid #ccc;
1292 margin-bottom: $lineheight/2;
1301 .diary_entry-view img.user_thumbnail {
1305 /* Rules for the login page */
1307 #login_openid_buttons {
1311 #login_openid_buttons li {
1313 padding: $lineheight/4 $lineheight/2;
1316 /* Rules for the account confirmation page */
1320 border: 1px solid #ccc;
1321 padding: $lineheight;
1322 margin-bottom: $lineheight;
1336 margin: $lineheight auto inherit auto;
1341 input[type=submit] {
1347 background: darken($grey, $hovercolor);
1352 margin-bottom: $lineheight;
1354 #contributorGuidance {
1355 background-color: $offwhite;
1357 -moz-border-radius: 4px;
1364 /* Rules for the account settings page */
1366 #accountForm .user_map {
1370 border: 1px solid #ccc;
1373 #accountForm .user_image {
1377 #accountForm #user_image {
1381 #accountForm ul.accountImage-options {
1394 display: inline !important;
1397 .content_map.settings_map {
1402 /* Rules for the oauth settings page */
1404 .oauth_clients .buttons .oauth-edit {
1405 border-radius: 2px 0 0 2px;
1408 .oauth_clients .buttons .oauth-delete {
1409 border-radius: 0 2px 2px 0;
1412 /* Rules for messages pages */
1416 border: 1px solid #ddd;
1418 input[type="submit"] {
1422 border-top: 1px solid #ccc;
1426 background: #f8f8ff;
1439 padding: $lineheight/4;
1450 border-right: 1px solid $keyline;
1454 .inbox-row .inbox-mark-read {
1459 margin-bottom: $lineheight;
1460 padding: $lineheight/4 0px 4px 0px;
1461 border-bottom: 1px solid #ccc;
1468 .info-line .user_thumbnail_tiny {
1469 vertical-align: middle;
1478 .inbox-row-unread .inbox-mark-unread {
1482 .message-read .message-buttons {
1483 margin-top: $lineheight;
1484 padding-top: $lineheight;
1485 border-top: 1px solid $keyline;
1488 .message-read .buttons .mark-unread-button {
1492 /* Rules for "flash" notice boxes shown at the top of the content area */
1495 padding: $lineheight;
1497 background-color: #ff7070;
1500 background-color: #ffe0cc;
1503 background-color: #CBEEA7;
1507 /* Rules for highlighting fields with rails validation errors */
1509 .field_with_errors {
1511 background-color: #ff7070;
1515 /* Rules for rails validation error boxes */
1519 border: 2px solid #ff7070;
1520 padding: 0 $lineheight/2;
1521 margin-bottom: $lineheight;
1522 background-color: #f0f0f0;
1525 margin: 0 -10px 10px -10px;
1526 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1529 background-color: #c00;
1537 padding: $lineheight/4;
1541 padding-left: $lineheight;
1550 /* Rules for forms */
1554 margin-bottom: $lineheight;
1556 label.standard-label {
1558 margin-bottom: $lineheight/4;
1559 font-size: $typeheight;
1563 label.standard-label.secondary {
1564 display: inline-block;
1565 font-weight: normal;
1568 font-weight: normal;
1575 margin-top: $lineheight;
1576 padding-top: $lineheight;
1577 border-top: 1px solid $keyline;
1580 margin-bottom: $lineheight/2;
1588 input[type="checkbox"],
1589 input[type="radio"] {
1595 #remember_me_openid {
1599 input[type="checkbox"],
1600 input[type="radio"] {
1605 input[type="email"],
1607 input[type="password"],
1609 border: 1px solid #ccc;
1618 height: 100% !important;
1621 /* Rules for user images */
1626 border: 1px solid #ccc;
1627 margin-bottom: $lineheight;
1629 margin-right: $lineheight;
1632 img.user_thumbnail {
1635 border: 1px solid #ccc;
1636 margin-right: $lineheight;
1639 img.user_thumbnail_tiny {
1642 border: 1px solid #ccc;
1645 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1648 white-space: nowrap;
1651 /* Rules for geo microformats */
1654 border-bottom: none;
1657 /* Rules for RSS buttons */
1664 /* General styles for action lists / subnavs / pager navs */
1666 ul.secondary-actions {
1671 display: inline-block;
1678 border-left: 1px solid #ccc;
1679 padding-left: $lineheight/4;
1680 margin-right: $lineheight/4;
1691 /* Utility for managing inner content areas */
1693 .inner22 { padding: $lineheight;}
1695 .inner12 { padding: $lineheight/2 $lineheight;}
1697 .inner11 { padding: $lineheight/2;}
1699 .inner02 { padding: 0 $lineheight;}
1701 /* Utility for general button styles */
1703 input[type="button"],
1704 input[type="submit"],
1705 input[type="reset"],
1709 display: inline-block;
1711 padding: $lineheight/4 $lineheight/2;
1713 margin: 0 0 $lineheight/2 0;
1718 -moz-border-radius: 2px;
1720 background: darken($blue, $hovercolor);
1721 text-decoration: none;
1724 background: $lightblue;
1726 background: darken($lightblue, $hovercolor);
1730 background: $lightblue;
1739 input[type="submit"],
1740 input[type="button"],
1741 input[type="reset"],
1743 box-sizing: border-box;
1749 border-right:1px solid white;
1752 .button:first-child {
1753 border-radius:2px 0 0 2px;
1756 .button:last-child {
1757 border-radius:0 2px 2px 0;
1758 border-right-width: 0;
1762 *[value="Hide"] + input:last-child,
1763 *[value="Hide"] + .button:last-child {
1765 border-right-width: 0;
1767 /* if a 3-button set has a hidden middle button */
1768 *[value="Hide"] + input:nth-child(3),
1769 *[value="Hide"] + .button:nth-child(3) {
1770 border-radius:0 2px 2px 0;
1771 border-right-width: 0;
1773 /* if a 3-button set starts with a hidden button */
1774 *[value="Hide"] + input:nth-child(2):not(:last-child),
1775 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1776 border-radius:2px 0 0 2px;
1777 border-right-width: 1px solid white;
1781 /* Rules for doing distinct colour of alternate table rows */
1785 background: $offwhite;
1793 /* Rules for OpenID logo */
1796 vertical-align: text-bottom;
1800 /* Rules for rich text */
1805 padding-bottom: $lineheight/2;
1806 border-bottom: 1px dashed #cccccc;
1807 margin-bottom: $lineheight/2;
1819 font-size: $typeheight;
1824 background: #e8e8e8;
1830 background: #e8e8e8;
1839 padding: $lineheight;
1840 background-color: $offwhite;
1847 border-left: $lineheight solid $offwhite;
1848 padding-left: $lineheight;
1855 padding-left: $lineheight;
1856 margin-bottom: $lineheight;
1857 margin-left: $lineheight;
1865 list-style: decimal;
1869 .diary_post .richtext {
1870 margin-top: $lineheight;
1873 .comments .richtext {
1878 /* Rules for rich text editors */
1880 .richtext_container {
1881 margin-bottom: $lineheight;
1885 display: inline-block;
1886 vertical-align: top;
1889 display: inline-block;
1890 padding: $lineheight;
1891 background-color: $offwhite;
1895 background-image: image-url("loading.gif");
1896 background-repeat: no-repeat;
1897 background-position: center;
1907 display: inline-block;
1908 vertical-align: top;
1910 background-color: #f8f8ff;
1911 padding: $lineheight/2;
1919 border-bottom: 1px solid #ccc;
1920 margin-bottom: $lineheight/4;
1921 padding-bottom: $lineheight/4;
1924 li h4, li span, li p {
1925 display: inline-block;
1926 vertical-align: top;
1937 margin-left: $lineheight/2;
1938 margin-bottom: $lineheight/4;
1939 white-space: nowrap;
1944 /* Rules for the user notes list */
1948 background-color: #eeeeee;
1960 /* Rules for the notes interface */
1962 .leaflet-popup-content .note {
1963 padding-top: $lineheight/2;
1966 .leaflet-popup-content .note {
1968 margin-bottom: $lineheight/2;
1972 margin-top: $lineheight/2;
1978 left: $lineheight/4;
1981 background: image-url("sprite.png") 0 -45px no-repeat;
1986 padding-left: $lineheight;
1989 .permalink:hover span {
1995 background-color: #ffe0cc;
1997 margin-bottom: $lineheight/2;
2016 margin-top: $lineheight/4;
2022 * Rules for the iD editor
2029 /* Rules for rotating sidebar ads */
2035 border-bottom: 1px solid #ccc;