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") 0 0 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 .site-export #tabnav a#exportanchor {
481 border-bottom: 1px solid #aaa;
486 #tabnav a:link:hover, #tabnav a:visited:hover {
487 text-decoration: underline;
490 #tabnav a:link.disabled,
491 #tabnav a:visited.disabled,
492 #tabnav a:link:hover.disabled,
493 #tabnav a:visited:hover.disabled {
497 text-decoration: none;
501 /* Utility for styling notification numbers */
504 padding: 2px $lineheight/4;
512 /* Rules for greeting bar in the top right corner */
517 margin-right: $lineheight/4;
520 .greeting-bar-unread {
524 /* Rules for the message shown in place of the map when javascript is disabled */
533 /* Rules for Leaflet maps */
535 .leaflet-control .control-button {
539 background-color: white;
540 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;
613 background-color: #eee;
618 background-color: #ccc;
637 display: inline-block;
643 .site-index .leaflet-top,
644 .site-export .leaflet-top {
645 top: $lineheight/2 !important;
647 margin-top: 0px !important;
651 .leaflet-popup-scrolled {
652 padding-right: $lineheight;
653 border-bottom: 0px !important;
654 border-top: 0px !important;
657 .leaflet-popup-content-wrapper {
658 border-radius: 4px !important;
659 -webkit-border-radius: 4px !important;
662 /* Rules for edit menu */
665 padding: 0 $lineheight/4;
667 display: inline-block;
669 text-decoration: none !important;
677 background-color: #ffffff;
678 border: 1px solid $keyline;
684 padding: 2px $lineheight/4;
685 border-top: 1px solid #eee;
690 /* Rules for attribution text under the main map shown on printouts */
696 .attribution_license,
697 .attribution_project {
701 .attribution_notice {
705 /* Rules for the popout map sidebar */
712 border-right: 1px solid $keyline;
717 border-bottom: 1px solid #ccc;
720 margin-bottom: $lineheight/4;
730 padding: $lineheight/2 $lineheight;
732 background: $offwhite;
733 border-bottom: 1px solid #ccc;
753 padding: 0 $lineheight $lineheight/2 $lineheight;
754 margin-top: $lineheight/2;
756 border-bottom: 1px solid #ddd;
760 /* Rules for the map key which appears in the popout sidebar */
763 .mapkey-table-key img {
769 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
773 /* Rules for search results which appear in the popout sidebar */
776 margin-top: $lineheight/4;
777 margin-bottom: $lineheight/4;
780 .search_results_entry {
789 .search_results_entry .search_searching {
791 margin: $lineheight auto;
796 ul.results-list li { border-bottom: 1px solid #ccc; }
798 .search_results_error {
802 /* Rules for data browser information which appears in the popout sidebar */
806 .browse_show_list.button {
831 /* Rules for export information which appears in the popout sidebar */
837 .export_area_inputs {
838 margin-bottom: $lineheight/2;
846 margin: $lineheight/4;
849 .export_details input[type="text"]#export_html_text {
853 #sidebar #marker_inputs li:last-child {
854 margin-bottom: $lineheight/2;
863 /* Rules for the main content area */
866 padding: $lineheight;
871 .site-index #content,
872 .site-export #content {
875 top: 30px; bottom: 0;
876 left: 184px; right: 0;
877 border-left: 1px solid #ccc;
882 border-left: 1px solid #ccc;
886 .site-edit #content {
903 #slim_container_content {
905 background-color: #FFFFFF;
906 margin: $lineheight/2 auto;
909 -moz-border-radius: 25px;
910 border: 1px solid #e6e6e6;
914 margin: $lineheight/2;
924 margin: 30px $lineheight/2;
927 margin-right: $lineheight/4;
929 vertical-align: middle;
930 margin-bottom: $lineheight/4;
931 margin-right: $lineheight/4;
937 padding: $lineheight;
938 background: $offwhite;
940 margin-bottom: $lineheight/2;
947 margin-top: $lineheight/2;
952 /* Rules for small maps in content areas */
958 border: 1px solid #ccc;
959 margin-bottom: $lineheight;
963 .content_map #small_map {
966 margin-bottom: $lineheight;
969 /* Rules for the changeset list shown by the history tab etc */
974 padding: $lineheight/2 0;
976 border-top: 1px solid #ccc;
978 border-bottom: 1px solid #ccc;
986 border-left: 1px solid #ccc;
987 padding-left: $lineheight/4;
988 margin-right: $lineheight/4;
992 #changeset_list_map_wrapper {
1000 #changeset_list_map_wrapper.scrolled {
1004 #changeset_list_map {
1006 bottom: $lineheight;
1010 border: 1px solid #ccc;
1013 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1017 /* Rules for the data browser */
1020 border-top: 1px solid #ccc;
1021 margin-top: $lineheight/2;
1022 padding-top: $lineheight/2;
1027 background-color: #ffe0cc;
1033 margin-bottom: $lineheight/4;
1035 p, ul, .bbox, .geo {
1036 display: inline-block;
1037 vertical-align: top;
1046 display: inline-block;
1047 vertical-align: top;
1055 padding: $lineheight/4 0;
1057 text-overflow: ellipsis;
1068 #browse_map .geolink {
1072 #browse_map .secondary-actions {
1073 margin-bottom: $lineheight/2;
1076 /* Rules for the trace list shown by the traces tab etc */
1079 font-size: $lineheight/2;
1096 .trace_identifiable {
1109 /* Rules for the user profile page */
1114 .userinformation-inner {
1129 .admin-user-info small {
1130 margin-bottom: $lineheight/2;
1132 margin-right: $lineheight;
1137 border-bottom: 1px solid #ccc;
1138 padding-bottom: $lineheight;
1141 margin-bottom: $lineheight/2;
1146 margin-top: $lineheight;
1150 .activity-details p {
1155 #friends-container .contact-activity ul {
1160 p#no_home_location {
1161 margin: $lineheight;
1164 margin-top: $lineheight/4;
1169 /* Rules for the user map */
1171 .content_map .leaflet-popup-content {
1172 margin: $lineheight/2;
1176 /* Rules for user popups on maps */
1182 margin-top: 0 0 0 60px;
1185 img.user_thumbnail {
1187 margin: 0 $lineheight/2 0 0;
1191 /* Rules for the user list */
1194 font-size: $lineheight/2;
1198 vertical-align: middle;
1207 #user_list_actions {
1209 margin-top: $lineheight/2;
1212 /* Rules for the diary list page */
1214 .diary_entry-list img.user_thumbnail {
1221 margin-top: $lineheight/2;
1222 padding-top: $lineheight;
1223 border-top: 1px solid #ccc;
1238 ul.secondary-actions { display: inline-block;}
1241 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1245 #content .post_heading {
1246 margin-bottom: $lineheight;
1249 margin-bottom: $lineheight/2;
1254 /* Rules for the diary entry page */
1261 border: 1px solid #ccc;
1263 margin-bottom: $lineheight;
1266 border-top: 1px solid #ccc;
1267 padding-top: $lineheight;
1268 margin-top: $lineheight/2;
1274 margin-top: $lineheight/2;
1275 border-top: 1px dashed #ccc;
1276 padding-top: $lineheight/2;
1278 margin-top: $lineheight;
1279 padding-top: $lineheight;
1280 border-top: 1px solid #ccc;
1283 margin-bottom: $lineheight/2;
1292 .diary_entry-view img.user_thumbnail {
1296 /* Rules for the login page */
1298 #login_openid_buttons {
1302 #login_openid_buttons li {
1304 padding: $lineheight/4 $lineheight/2;
1307 /* Rules for the account confirmation page */
1311 border: 1px solid #ccc;
1312 padding: $lineheight;
1313 margin-bottom: $lineheight;
1327 margin: $lineheight auto inherit auto;
1332 input[type=submit] {
1338 background: darken($grey, $hovercolor);
1343 margin-bottom: $lineheight;
1345 #contributorGuidance {
1346 background-color: $offwhite;
1348 -moz-border-radius: 4px;
1355 /* Rules for the account settings page */
1357 #accountForm .user_map {
1361 border: 1px solid #ccc;
1364 #accountForm .user_image {
1368 #accountForm #user_image {
1372 #accountForm ul.accountImage-options {
1385 display: inline !important;
1388 .content_map.settings_map {
1393 /* Rules for the oauth settings page */
1395 .oauth_clients .buttons .oauth-edit {
1396 border-radius: 2px 0 0 2px;
1399 .oauth_clients .buttons .oauth-delete {
1400 border-radius: 0 2px 2px 0;
1403 /* Rules for messages pages */
1407 border: 1px solid #ddd;
1409 input[type="submit"] {
1413 border-top: 1px solid #ccc;
1417 background: #f8f8ff;
1430 padding: $lineheight/4;
1441 border-right: 1px solid $keyline;
1445 .inbox-row .inbox-mark-read {
1450 margin-bottom: $lineheight;
1451 padding: $lineheight/4 0px 4px 0px;
1452 border-bottom: 1px solid #ccc;
1459 .info-line .user_thumbnail_tiny {
1460 vertical-align: middle;
1469 .inbox-row-unread .inbox-mark-unread {
1473 .message-read .message-buttons {
1474 margin-top: $lineheight;
1475 padding-top: $lineheight;
1476 border-top: 1px solid $keyline;
1479 .message-read .buttons .mark-unread-button {
1483 /* Rules for "flash" notice boxes shown at the top of the content area */
1486 padding: $lineheight;
1488 background-color: #ff7070;
1491 background-color: #ffe0cc;
1494 background-color: #CBEEA7;
1498 /* Rules for highlighting fields with rails validation errors */
1500 .field_with_errors {
1502 background-color: #ff7070;
1506 /* Rules for rails validation error boxes */
1510 border: 2px solid #ff7070;
1511 padding: 0 $lineheight/2;
1512 margin-bottom: $lineheight;
1513 background-color: #f0f0f0;
1516 margin: 0 -10px 10px -10px;
1517 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1520 background-color: #c00;
1528 padding: $lineheight/4;
1532 padding-left: $lineheight;
1541 /* Rules for forms */
1545 margin-bottom: $lineheight;
1547 label.standard-label {
1549 margin-bottom: $lineheight/4;
1550 font-size: $typeheight;
1554 label.standard-label.secondary {
1555 display: inline-block;
1556 font-weight: normal;
1559 font-weight: normal;
1566 margin-top: $lineheight;
1567 padding-top: $lineheight;
1568 border-top: 1px solid $keyline;
1571 margin-bottom: $lineheight/2;
1579 input[type="checkbox"],
1580 input[type="radio"] {
1586 #remember_me_openid {
1590 input[type="checkbox"],
1591 input[type="radio"] {
1596 input[type="email"],
1598 input[type="password"],
1600 border: 1px solid #ccc;
1609 height: 100% !important;
1612 /* Rules for user images */
1617 border: 1px solid #ccc;
1618 margin-bottom: $lineheight;
1620 margin-right: $lineheight;
1623 img.user_thumbnail {
1626 border: 1px solid #ccc;
1627 margin-right: $lineheight;
1630 img.user_thumbnail_tiny {
1633 border: 1px solid #ccc;
1636 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1639 white-space: nowrap;
1642 /* Rules for geo microformats */
1645 border-bottom: none;
1648 /* Rules for RSS buttons */
1655 /* General styles for action lists / subnavs / pager navs */
1657 ul.secondary-actions {
1662 display: inline-block;
1669 border-left: 1px solid #ccc;
1670 padding-left: $lineheight/4;
1671 margin-right: $lineheight/4;
1682 /* Utility for managing inner content areas */
1684 .inner22 { padding: $lineheight;}
1686 .inner12 { padding: $lineheight/2 $lineheight;}
1688 .inner11 { padding: $lineheight/2;}
1690 .inner02 { padding: 0 $lineheight;}
1692 /* Utility for general button styles */
1694 input[type="button"],
1695 input[type="submit"],
1696 input[type="reset"],
1700 display: inline-block;
1702 padding: $lineheight/4 $lineheight/2;
1704 margin: 0 0 $lineheight/2 0;
1709 -moz-border-radius: 2px;
1711 background: darken($blue, $hovercolor);
1712 text-decoration: none;
1715 background: $lightblue;
1717 background: darken($lightblue, $hovercolor);
1721 background: $lightblue;
1730 input[type="submit"],
1731 input[type="button"],
1732 input[type="reset"],
1734 box-sizing: border-box;
1740 border-right:1px solid white;
1743 .button:first-child {
1744 border-radius:2px 0 0 2px;
1747 .button:last-child {
1748 border-radius:0 2px 2px 0;
1749 border-right-width: 0;
1753 *[value="Hide"] + input:last-child,
1754 *[value="Hide"] + .button:last-child {
1756 border-right-width: 0;
1758 /* if a 3-button set has a hidden middle button */
1759 *[value="Hide"] + input:nth-child(3),
1760 *[value="Hide"] + .button:nth-child(3) {
1761 border-radius:0 2px 2px 0;
1762 border-right-width: 0;
1764 /* if a 3-button set starts with a hidden button */
1765 *[value="Hide"] + input:nth-child(2):not(:last-child),
1766 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1767 border-radius:2px 0 0 2px;
1768 border-right-width: 1px solid white;
1772 /* Rules for doing distinct colour of alternate table rows */
1776 background: $offwhite;
1784 /* Rules for OpenID logo */
1787 vertical-align: text-bottom;
1791 /* Rules for rich text */
1796 padding-bottom: $lineheight/2;
1797 border-bottom: 1px dashed #cccccc;
1798 margin-bottom: $lineheight/2;
1810 font-size: $typeheight;
1815 background: #e8e8e8;
1821 background: #e8e8e8;
1830 padding: $lineheight;
1831 background-color: $offwhite;
1838 border-left: $lineheight solid $offwhite;
1839 padding-left: $lineheight;
1846 padding-left: $lineheight;
1847 margin-bottom: $lineheight;
1848 margin-left: $lineheight;
1856 list-style: decimal;
1860 .diary_post .richtext {
1861 margin-top: $lineheight;
1864 .comments .richtext {
1869 /* Rules for rich text editors */
1871 .richtext_container {
1872 margin-bottom: $lineheight;
1876 display: inline-block;
1877 vertical-align: top;
1880 display: inline-block;
1881 padding: $lineheight;
1882 background-color: $offwhite;
1886 background-image: image-url("loading.gif");
1887 background-repeat: no-repeat;
1888 background-position: center;
1898 display: inline-block;
1899 vertical-align: top;
1901 background-color: #f8f8ff;
1902 padding: $lineheight/2;
1910 border-bottom: 1px solid #ccc;
1911 margin-bottom: $lineheight/4;
1912 padding-bottom: $lineheight/4;
1915 li h4, li span, li p {
1916 display: inline-block;
1917 vertical-align: top;
1928 margin-left: $lineheight/2;
1929 margin-bottom: $lineheight/4;
1930 white-space: nowrap;
1935 /* Rules for the user notes list */
1939 background-color: #eeeeee;
1951 /* Rules for the notes interface */
1953 .leaflet-popup-content .note {
1954 padding-top: $lineheight/2;
1957 .leaflet-popup-content .note {
1959 margin-bottom: $lineheight/2;
1963 margin-top: $lineheight/2;
1969 left: $lineheight/4;
1972 background: image-url("sprite.png") 0 -45px no-repeat;
1977 padding-left: $lineheight;
1980 .permalink:hover span {
1986 background-color: #ffe0cc;
1988 margin-bottom: $lineheight/2;
2007 margin-top: $lineheight/4;
2013 * Rules for the iD editor
2020 /* Rules for rotating sidebar ads */
2026 border-bottom: 1px solid #ccc;