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;
618 padding: 5px 5px 5px 7px;
619 background-color: #eee;
624 background-color: #ccc;
639 display: inline-block;
645 .site-index .leaflet-top,
646 .site-export .leaflet-top {
647 top: $lineheight/2 !important;
649 margin-top: 0px !important;
653 .leaflet-popup-scrolled {
654 padding-right: $lineheight;
655 border-bottom: 0px !important;
656 border-top: 0px !important;
659 .leaflet-popup-content-wrapper {
660 border-radius: 4px !important;
661 -webkit-border-radius: 4px !important;
664 /* Rules for edit menu */
667 padding: 0 $lineheight/4;
669 display: inline-block;
671 text-decoration: none !important;
679 background-color: #ffffff;
680 border: 1px solid $keyline;
686 padding: 2px $lineheight/4;
687 border-top: 1px solid #eee;
692 /* Rules for attribution text under the main map shown on printouts */
698 .attribution_license,
699 .attribution_project {
703 .attribution_notice {
707 /* Rules for the popout map sidebar */
714 border-right: 1px solid $keyline;
719 border-bottom: 1px solid #ccc;
722 margin-bottom: $lineheight/4;
732 padding: $lineheight/2 $lineheight;
734 background: $offwhite;
735 border-bottom: 1px solid #ccc;
755 padding: 0 $lineheight $lineheight/2 $lineheight;
756 margin-top: $lineheight/2;
758 border-bottom: 1px solid #ddd;
762 /* Rules for the map key which appears in the popout sidebar */
765 .mapkey-table-key img {
771 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
775 /* Rules for search results which appear in the popout sidebar */
778 margin-top: $lineheight/4;
779 margin-bottom: $lineheight/4;
782 .search_results_entry {
791 .search_results_entry .search_searching {
793 margin: $lineheight auto;
798 ul.results-list li { border-bottom: 1px solid #ccc; }
800 .search_results_error {
804 /* Rules for data browser information which appears in the popout sidebar */
808 .browse_show_list.button {
833 /* Rules for export information which appears in the popout sidebar */
839 .export_area_inputs {
840 margin-bottom: $lineheight/2;
848 margin: $lineheight/4;
851 .export_details input[type="text"]#export_html_text {
855 #sidebar #marker_inputs li:last-child {
856 margin-bottom: $lineheight/2;
865 /* Rules for the main content area */
868 padding: $lineheight;
873 .site-index #content,
874 .site-export #content {
877 top: 30px; bottom: 0;
878 left: 184px; right: 0;
879 border-left: 1px solid #ccc;
884 border-left: 1px solid #ccc;
888 .site-edit #content {
905 #slim_container_content {
907 background-color: #FFFFFF;
908 margin: $lineheight/2 auto;
911 -moz-border-radius: 25px;
912 border: 1px solid #e6e6e6;
916 margin: $lineheight/2;
926 margin: 30px $lineheight/2;
929 margin-right: $lineheight/4;
931 vertical-align: middle;
932 margin-bottom: $lineheight/4;
933 margin-right: $lineheight/4;
939 padding: $lineheight;
940 background: $offwhite;
942 margin-bottom: $lineheight/2;
949 margin-top: $lineheight/2;
954 /* Rules for small maps in content areas */
960 border: 1px solid #ccc;
961 margin-bottom: $lineheight;
965 .content_map #small_map {
968 margin-bottom: $lineheight;
971 /* Rules for the changeset list shown by the history tab etc */
976 padding: $lineheight/2 0;
978 border-top: 1px solid #ccc;
980 border-bottom: 1px solid #ccc;
988 border-left: 1px solid #ccc;
989 padding-left: $lineheight/4;
990 margin-right: $lineheight/4;
994 #changeset_list_map_wrapper {
1002 #changeset_list_map_wrapper.scrolled {
1006 #changeset_list_map {
1008 bottom: $lineheight;
1012 border: 1px solid #ccc;
1015 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1019 /* Rules for the data browser */
1022 border-top: 1px solid #ccc;
1023 margin-top: $lineheight/2;
1024 padding-top: $lineheight/2;
1029 background-color: #ffe0cc;
1035 margin-bottom: $lineheight/4;
1037 p, ul, .bbox, .geo {
1038 display: inline-block;
1039 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 $keyline;
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 $keyline;
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 $keyline;
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;
1611 height: 100% !important;
1614 /* Rules for user images */
1619 border: 1px solid #ccc;
1620 margin-bottom: $lineheight;
1622 margin-right: $lineheight;
1625 img.user_thumbnail {
1628 border: 1px solid #ccc;
1629 margin-right: $lineheight;
1632 img.user_thumbnail_tiny {
1635 border: 1px solid #ccc;
1638 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1641 white-space: nowrap;
1644 /* Rules for geo microformats */
1647 border-bottom: none;
1650 /* Rules for RSS buttons */
1657 /* General styles for action lists / subnavs / pager navs */
1659 ul.secondary-actions {
1664 display: inline-block;
1671 border-left: 1px solid #ccc;
1672 padding-left: $lineheight/4;
1673 margin-right: $lineheight/4;
1684 /* Utility for managing inner content areas */
1686 .inner22 { padding: $lineheight;}
1688 .inner12 { padding: $lineheight/2 $lineheight;}
1690 .inner11 { padding: $lineheight/2;}
1692 .inner02 { padding: 0 $lineheight;}
1694 /* Utility for general button styles */
1696 input[type="button"],
1697 input[type="submit"],
1698 input[type="reset"],
1702 display: inline-block;
1704 padding: $lineheight/4 $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: $lightblue;
1732 input[type="submit"],
1733 input[type="button"],
1734 input[type="reset"],
1736 box-sizing: border-box;
1742 border-right:1px solid white;
1745 .button:first-child {
1746 border-radius:2px 0 0 2px;
1749 .button:last-child {
1750 border-radius:0 2px 2px 0;
1751 border-right-width: 0;
1755 *[value="Hide"] + input:last-child,
1756 *[value="Hide"] + .button:last-child {
1758 border-right-width: 0;
1760 /* if a 3-button set has a hidden middle button */
1761 *[value="Hide"] + input:nth-child(3),
1762 *[value="Hide"] + .button:nth-child(3) {
1763 border-radius:0 2px 2px 0;
1764 border-right-width: 0;
1766 /* if a 3-button set starts with a hidden button */
1767 *[value="Hide"] + input:nth-child(2):not(:last-child),
1768 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1769 border-radius:2px 0 0 2px;
1770 border-right-width: 1px solid white;
1774 /* Rules for doing distinct colour of alternate table rows */
1778 background: $offwhite;
1786 /* Rules for OpenID logo */
1789 vertical-align: text-bottom;
1793 /* Rules for rich text */
1798 padding-bottom: $lineheight/2;
1799 border-bottom: 1px dashed #cccccc;
1800 margin-bottom: $lineheight/2;
1812 font-size: $typeheight;
1817 background: #e8e8e8;
1823 background: #e8e8e8;
1832 padding: $lineheight;
1833 background-color: $offwhite;
1840 border-left: $lineheight solid $offwhite;
1841 padding-left: $lineheight;
1848 padding-left: $lineheight;
1849 margin-bottom: $lineheight;
1850 margin-left: $lineheight;
1858 list-style: decimal;
1862 .diary_post .richtext {
1863 margin-top: $lineheight;
1866 .comments .richtext {
1871 /* Rules for rich text editors */
1873 .richtext_container {
1874 margin-bottom: $lineheight;
1878 display: inline-block;
1879 vertical-align: top;
1882 display: inline-block;
1883 padding: $lineheight;
1884 background-color: $offwhite;
1888 background-image: image-url("loading.gif");
1889 background-repeat: no-repeat;
1890 background-position: center;
1900 display: inline-block;
1901 vertical-align: top;
1903 background-color: #f8f8ff;
1904 padding: $lineheight/2;
1912 border-bottom: 1px solid #ccc;
1913 margin-bottom: $lineheight/4;
1914 padding-bottom: $lineheight/4;
1917 li h4, li span, li p {
1918 display: inline-block;
1919 vertical-align: top;
1930 margin-left: $lineheight/2;
1931 margin-bottom: $lineheight/4;
1932 white-space: nowrap;
1937 /* Rules for the user notes list */
1941 background-color: #eeeeee;
1953 /* Rules for the notes interface */
1955 .leaflet-popup-content .note {
1956 padding-top: $lineheight/2;
1959 .leaflet-popup-content .note {
1961 margin-bottom: $lineheight/2;
1965 margin-top: $lineheight/2;
1971 left: $lineheight/4;
1974 background: image-url("sprite.png") 0 -45px no-repeat;
1979 padding-left: $lineheight;
1982 .permalink:hover span {
1988 background-color: #ffe0cc;
1990 margin-bottom: $lineheight/2;
2009 margin-top: $lineheight/4;
2015 * Rules for the iD editor
2022 /* Rules for rotating sidebar ads */
2028 border-bottom: 1px solid #ccc;