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;
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-top: 0px !important;
669 .leaflet-popup-scrolled {
670 padding-right: $lineheight;
671 border-bottom: 0px !important;
672 border-top: 0px !important;
675 .leaflet-popup-content-wrapper {
676 border-radius: 4px !important;
677 -webkit-border-radius: 4px !important;
680 /* Rules for edit menu */
683 padding: 0 $lineheight/4;
685 display: inline-block;
687 text-decoration: none !important;
695 background-color: #ffffff;
696 border: 1px solid $lightgrey;
702 padding: 2px $lineheight/4;
703 border-top: 1px solid #eee;
708 /* Rules for attribution text under the main map shown on printouts */
714 .attribution_license,
715 .attribution_project {
719 .attribution_notice {
723 /* Rules for the popout map sidebar */
729 border-right: 1px solid $lightgrey;
735 border-bottom: 1px solid #ccc;
738 margin-bottom: $lineheight/4;
748 padding: $lineheight/2 $lineheight;
750 background: $offwhite;
751 border-bottom: 1px solid #ccc;
773 padding: 0 $lineheight $lineheight/2 $lineheight;
774 margin-top: $lineheight/2;
776 border-bottom: 1px solid #ddd;
780 /* Rules for the map key which appears in the popout sidebar */
783 .mapkey-table-key img {
789 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
793 /* Rules for search results which appear in the popout sidebar */
796 margin-top: $lineheight/4;
797 margin-bottom: $lineheight/4;
800 .search_results_entry {
809 .search_results_entry .search_searching {
811 margin: $lineheight auto;
816 ul.results-list li { border-bottom: 1px solid #ccc; }
818 .search_results_error {
822 /* Rules for data browser information which appears in the popout sidebar */
826 .browse_show_list.button {
851 /* Rules for export information which appears in the popout sidebar */
857 .export_area_inputs {
858 margin-bottom: $lineheight/2;
866 margin: $lineheight/4;
869 /* Rules for the main content area */
872 padding: $lineheight;
877 .site-index #content,
878 .site-export #content {
881 top: 30px; bottom: 0;
882 left: 184px; right: 0;
883 border-left: 1px solid #ccc;
888 border-left: 1px solid #ccc;
892 .site-edit #content {
909 #slim_container_content {
911 background-color: #FFFFFF;
912 margin: $lineheight/2 auto;
915 -moz-border-radius: 25px;
916 border: 1px solid #e6e6e6;
920 margin: $lineheight/2;
930 margin: 30px $lineheight/2;
933 margin-right: $lineheight/4;
935 vertical-align: middle;
936 margin-bottom: $lineheight/4;
937 margin-right: $lineheight/4;
943 padding: $lineheight;
944 background: $offwhite;
946 margin-bottom: $lineheight/2;
953 margin-top: $lineheight/2;
958 /* Rules for small maps in content areas */
964 border: 1px solid #ccc;
965 margin-bottom: $lineheight;
969 .content_map #small_map {
972 margin-bottom: $lineheight;
975 /* Rules for the changeset list shown by the history tab etc */
980 padding: $lineheight/2 0;
982 border-top: 1px solid #ccc;
984 border-bottom: 1px solid #ccc;
992 border-left: 1px solid #ccc;
993 padding-left: $lineheight/4;
994 margin-right: $lineheight/4;
998 #changeset_list_map_wrapper {
1006 #changeset_list_map_wrapper.scrolled {
1010 #changeset_list_map {
1012 bottom: $lineheight;
1016 border: 1px solid #ccc;
1019 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1023 /* Rules for the data browser */
1026 border-top: 1px solid #ccc;
1027 margin-top: $lineheight/2;
1028 padding-top: $lineheight/2;
1033 background-color: #ffe0cc;
1039 margin-bottom: $lineheight/4;
1042 display: inline-block;
1043 vertical-align: top;
1053 display: inline-block;
1054 vertical-align: top;
1062 padding: $lineheight/4 0;
1064 text-overflow: ellipsis;
1075 #browse_map .geolink {
1079 #browse_map .secondary-actions {
1080 margin-bottom: $lineheight/2;
1083 /* Rules for the trace list shown by the traces tab etc */
1086 font-size: $lineheight/2;
1103 .trace_identifiable {
1116 /* Rules for the user profile page */
1121 .userinformation-inner {
1136 .admin-user-info small {
1137 margin-bottom: $lineheight/2;
1139 margin-right: $lineheight;
1144 border-bottom: 1px solid #ccc;
1145 padding-bottom: $lineheight;
1148 margin-bottom: $lineheight/2;
1153 margin-top: $lineheight;
1157 .activity-details p {
1162 #friends-container .contact-activity ul {
1167 p#no_home_location {
1168 margin: $lineheight;
1171 margin-top: $lineheight/4;
1176 /* Rules for the user map */
1178 .content_map .leaflet-popup-content {
1179 margin: $lineheight/2;
1183 /* Rules for user popups on maps */
1189 margin-top: 0 0 0 60px;
1192 img.user_thumbnail {
1194 margin: 0 $lineheight/2 0 0;
1198 /* Rules for the user list */
1201 font-size: $lineheight/2;
1205 vertical-align: middle;
1214 #user_list_actions {
1216 margin-top: $lineheight/2;
1219 /* Rules for the diary list page */
1221 .diary_entry-list img.user_thumbnail {
1228 margin-top: $lineheight/2;
1229 padding-top: $lineheight;
1230 border-top: 1px solid #ccc;
1245 ul.secondary-actions { display: inline-block;}
1248 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1252 #content .post_heading {
1253 margin-bottom: $lineheight;
1256 margin-bottom: $lineheight/2;
1261 /* Rules for the diary entry page */
1268 border: 1px solid #ccc;
1270 margin-bottom: $lineheight;
1273 border-top: 1px solid #ccc;
1274 padding-top: $lineheight;
1275 margin-top: $lineheight/2;
1281 margin-top: $lineheight/2;
1282 border-top: 1px dashed #ccc;
1283 padding-top: $lineheight/2;
1285 margin-top: $lineheight;
1286 padding-top: $lineheight;
1287 border-top: 1px solid #ccc;
1290 margin-bottom: $lineheight/2;
1299 .diary_entry-view img.user_thumbnail {
1303 /* Rules for the login page */
1305 #login_openid_buttons {
1309 #login_openid_buttons li {
1311 padding: $lineheight/4 $lineheight/2;
1314 /* Rules for the account confirmation page */
1318 border: 1px solid #ccc;
1319 padding: $lineheight;
1320 margin-bottom: $lineheight;
1334 margin: $lineheight auto inherit auto;
1339 input[type=submit] {
1345 background: darken($grey, $hovercolor);
1350 margin-bottom: $lineheight;
1352 #contributorGuidance {
1353 background-color: $offwhite;
1355 -moz-border-radius: 4px;
1362 /* Rules for the account settings page */
1364 #accountForm .user_map {
1368 border: 1px solid #ccc;
1371 #accountForm .user_image {
1375 #accountForm #user_image {
1379 #accountForm ul.accountImage-options {
1392 display: inline !important;
1395 .content_map.settings_map {
1400 /* Rules for the oauth settings page */
1402 .oauth_clients .buttons .oauth-edit {
1403 border-radius: 2px 0 0 2px;
1406 .oauth_clients .buttons .oauth-delete {
1407 border-radius: 0 2px 2px 0;
1410 /* Rules for messages pages */
1414 border: 1px solid #ddd;
1416 input[type="submit"] {
1420 border-top: 1px solid #ccc;
1424 background: #f8f8ff;
1437 padding: $lineheight/4;
1448 border-right: 1px solid $lightgrey;
1452 .inbox-row .inbox-mark-read {
1457 margin-bottom: $lineheight;
1458 padding: $lineheight/4 0px 4px 0px;
1459 border-bottom: 1px solid #ccc;
1466 .info-line .user_thumbnail_tiny {
1467 vertical-align: middle;
1476 .inbox-row-unread .inbox-mark-unread {
1480 .message-read .message-buttons {
1481 margin-top: $lineheight;
1482 padding-top: $lineheight;
1483 border-top: 1px solid $lightgrey;
1486 .message-read .buttons .mark-unread-button {
1490 /* Rules for "flash" notice boxes shown at the top of the content area */
1493 padding: $lineheight;
1495 background-color: #ff7070;
1498 background-color: #ffe0cc;
1501 background-color: #CBEEA7;
1505 /* Rules for highlighting fields with rails validation errors */
1507 .field_with_errors {
1509 background-color: #ff7070;
1513 /* Rules for rails validation error boxes */
1517 border: 2px solid #ff7070;
1518 padding: 0 $lineheight/2;
1519 margin-bottom: $lineheight;
1520 background-color: #f0f0f0;
1523 margin: 0 -10px 10px -10px;
1524 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1527 background-color: #c00;
1535 padding: $lineheight/4;
1539 padding-left: $lineheight;
1548 /* Rules for forms */
1552 margin-bottom: $lineheight;
1554 label.standard-label {
1556 margin-bottom: $lineheight/4;
1557 font-size: $typeheight;
1561 label.standard-label.secondary {
1562 display: inline-block;
1563 font-weight: normal;
1566 font-weight: normal;
1573 margin-top: $lineheight;
1574 padding-top: $lineheight;
1575 border-top: 1px solid $lightgrey;
1578 margin-bottom: $lineheight/2;
1586 input[type="checkbox"],
1587 input[type="radio"] {
1593 #remember_me_openid {
1597 input[type="checkbox"],
1598 input[type="radio"] {
1603 input[type="email"],
1605 input[type="password"],
1607 border: 1px solid #ccc;
1618 /* Rules for user images */
1623 border: 1px solid #ccc;
1624 margin-bottom: $lineheight;
1626 margin-right: $lineheight;
1629 img.user_thumbnail {
1632 border: 1px solid #ccc;
1633 margin-right: $lineheight;
1636 img.user_thumbnail_tiny {
1639 border: 1px solid #ccc;
1642 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1645 white-space: nowrap;
1648 /* Rules for geo microformats */
1651 border-bottom: none;
1654 /* Rules for RSS buttons */
1661 /* General styles for action lists / subnavs / pager navs */
1663 ul.secondary-actions {
1668 display: inline-block;
1675 border-left: 1px solid #ccc;
1676 padding-left: $lineheight/4;
1677 margin-right: $lineheight/4;
1688 /* Utility for managing inner content areas */
1690 .inner22 { padding: $lineheight;}
1692 .inner12 { padding: $lineheight/2 $lineheight;}
1694 .inner11 { padding: $lineheight/2;}
1696 .inner02 { padding: 0 $lineheight;}
1698 /* Utility for general button styles */
1700 input[type="button"],
1701 input[type="submit"],
1702 input[type="reset"],
1706 display: inline-block;
1708 padding: $lineheight/4 $lineheight/2;
1709 min-height: 20px + $lineheight/2;
1711 margin: 0 0 $lineheight/2 0;
1716 -moz-border-radius: 2px;
1718 background: darken($blue, $hovercolor);
1719 text-decoration: none;
1722 background: $lightblue;
1724 background: darken($lightblue, $hovercolor);
1728 background: $lightgrey;
1730 background: $lightgrey;
1740 input[type="submit"],
1741 input[type="button"],
1742 input[type="reset"],
1744 box-sizing: border-box;
1750 border-right:1px solid white;
1751 text-overflow: ellipsis;
1752 white-space: nowrap;
1756 .button:first-child {
1757 border-radius:2px 0 0 2px;
1760 .button:last-child {
1761 border-radius:0 2px 2px 0;
1762 border-right-width: 0;
1766 *[value="Hide"] + input:last-child,
1767 *[value="Hide"] + .button:last-child {
1769 border-right-width: 0;
1771 /* if a 3-button set has a hidden middle button */
1772 *[value="Hide"] + input:nth-child(3),
1773 *[value="Hide"] + .button:nth-child(3) {
1774 border-radius:0 2px 2px 0;
1775 border-right-width: 0;
1777 /* if a 3-button set starts with a hidden button */
1778 *[value="Hide"] + input:nth-child(2):not(:last-child),
1779 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1780 border-radius:2px 0 0 2px;
1781 border-right-width: 1px solid white;
1785 /* Rules for doing distinct colour of alternate table rows */
1789 background: $offwhite;
1797 /* Rules for OpenID logo */
1800 vertical-align: text-bottom;
1804 /* Rules for rich text */
1809 padding-bottom: $lineheight/2;
1810 border-bottom: 1px dashed #cccccc;
1811 margin-bottom: $lineheight/2;
1823 font-size: $typeheight;
1828 background: #e8e8e8;
1834 background: #e8e8e8;
1843 padding: $lineheight;
1844 background-color: $offwhite;
1851 border-left: $lineheight solid $offwhite;
1852 padding-left: $lineheight;
1858 padding-left: $lineheight;
1859 margin-bottom: $lineheight;
1860 margin-left: $lineheight;
1868 list-style: decimal;
1872 .diary_post .richtext {
1873 margin-top: $lineheight;
1876 .comments .richtext {
1881 /* Rules for rich text editors */
1883 .richtext_container {
1884 margin-bottom: $lineheight;
1888 display: inline-block;
1889 vertical-align: top;
1892 display: inline-block;
1893 padding: $lineheight;
1894 background-color: $offwhite;
1898 background-image: image-url("loading.gif");
1899 background-repeat: no-repeat;
1900 background-position: center;
1910 display: inline-block;
1911 vertical-align: top;
1913 background-color: #f8f8ff;
1914 padding: $lineheight/2;
1922 border-bottom: 1px solid #ccc;
1923 margin-bottom: $lineheight/4;
1924 padding-bottom: $lineheight/4;
1927 li h4, li span, li p {
1928 display: inline-block;
1929 vertical-align: top;
1940 margin-left: $lineheight/2;
1941 margin-bottom: $lineheight/4;
1942 white-space: nowrap;
1947 /* Rules for the user notes list */
1951 background-color: #eeeeee;
1963 /* Rules for the notes interface */
1965 .leaflet-popup-content .note {
1966 padding-top: $lineheight/2;
1969 .leaflet-popup-content .note {
1971 margin-bottom: $lineheight/2;
1975 margin-top: $lineheight/2;
1981 left: $lineheight/4;
1988 padding-left: $lineheight;
1991 .permalink:hover span {
1997 background-color: #ffe0cc;
1999 margin-bottom: $lineheight/2;
2018 margin-top: $lineheight/4;
2024 * Rules for the iD editor
2031 /* Rules for rotating sidebar ads */
2037 border-bottom: 1px solid #ccc;