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);
546 .leaflet-control .zoomin,
547 .control-layers .control-button {
549 border-radius: 4px 4px 0px 0px;
552 .site .leaflet-control .zoomout,
553 .control-key .control-button {
558 .leaflet-control .zoomout,
559 .control-locate .control-button,
560 .control-share .control-button {
561 border-radius: 0px 0px 4px 4px;
564 .leaflet-control .control-button:hover {
565 background-color: white;
568 .leaflet-control .control-button .icon {
572 /* Rules for the home page */
588 border-left: 1px solid #CCC;
592 border-bottom: 1px solid #DDD;
602 border:1px solid #ddd;
619 padding: 5px 5px 5px 7px;
620 background-color: #eee;
625 background-color: #ccc;
640 display: inline-block;
646 .site-index .leaflet-top,
647 .site-export .leaflet-top {
648 top: $lineheight/2 !important;
650 margin-top: 0px !important;
654 .leaflet-popup-scrolled {
655 padding-right: $lineheight;
656 border-bottom: 0px !important;
657 border-top: 0px !important;
660 .leaflet-popup-content-wrapper {
661 border-radius: 4px !important;
662 -webkit-border-radius: 4px !important;
665 /* Rules for edit menu */
668 padding: 0 $lineheight/4;
670 display: inline-block;
672 text-decoration: none !important;
680 background-color: #ffffff;
681 border: 1px solid $keyline;
687 padding: 2px $lineheight/4;
688 border-top: 1px solid #eee;
693 /* Rules for attribution text under the main map shown on printouts */
699 .attribution_license,
700 .attribution_project {
704 .attribution_notice {
708 /* Rules for the popout map sidebar */
715 border-right: 1px solid $keyline;
721 border-bottom: 1px solid #ccc;
724 margin-bottom: $lineheight/4;
734 padding: $lineheight/2 $lineheight;
736 background: $offwhite;
737 border-bottom: 1px solid #ccc;
757 padding: 0 $lineheight $lineheight/2 $lineheight;
758 margin-top: $lineheight/2;
760 border-bottom: 1px solid #ddd;
764 /* Rules for the map key which appears in the popout sidebar */
767 .mapkey-table-key img {
773 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
777 /* Rules for search results which appear in the popout sidebar */
780 margin-top: $lineheight/4;
781 margin-bottom: $lineheight/4;
784 .search_results_entry {
793 .search_results_entry .search_searching {
795 margin: $lineheight auto;
800 ul.results-list li { border-bottom: 1px solid #ccc; }
802 .search_results_error {
806 /* Rules for data browser information which appears in the popout sidebar */
810 .browse_show_list.button {
835 /* Rules for export information which appears in the popout sidebar */
841 .export_area_inputs {
842 margin-bottom: $lineheight/2;
850 margin: $lineheight/4;
853 .export_details input[type="text"]#export_html_text {
857 #sidebar #marker_inputs li:last-child {
858 margin-bottom: $lineheight/2;
867 /* Rules for the main content area */
870 padding: $lineheight;
875 .site-index #content,
876 .site-export #content {
879 top: 30px; bottom: 0;
880 left: 184px; right: 0;
881 border-left: 1px solid #ccc;
886 border-left: 1px solid #ccc;
890 .site-edit #content {
907 #slim_container_content {
909 background-color: #FFFFFF;
910 margin: $lineheight/2 auto;
913 -moz-border-radius: 25px;
914 border: 1px solid #e6e6e6;
918 margin: $lineheight/2;
928 margin: 30px $lineheight/2;
931 margin-right: $lineheight/4;
933 vertical-align: middle;
934 margin-bottom: $lineheight/4;
935 margin-right: $lineheight/4;
941 padding: $lineheight;
942 background: $offwhite;
944 margin-bottom: $lineheight/2;
951 margin-top: $lineheight/2;
956 /* Rules for small maps in content areas */
962 border: 1px solid #ccc;
963 margin-bottom: $lineheight;
967 .content_map #small_map {
970 margin-bottom: $lineheight;
973 /* Rules for the changeset list shown by the history tab etc */
978 padding: $lineheight/2 0;
980 border-top: 1px solid #ccc;
982 border-bottom: 1px solid #ccc;
990 border-left: 1px solid #ccc;
991 padding-left: $lineheight/4;
992 margin-right: $lineheight/4;
996 #changeset_list_map_wrapper {
1004 #changeset_list_map_wrapper.scrolled {
1008 #changeset_list_map {
1010 bottom: $lineheight;
1014 border: 1px solid #ccc;
1017 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1021 /* Rules for the data browser */
1024 border-top: 1px solid #ccc;
1025 margin-top: $lineheight/2;
1026 padding-top: $lineheight/2;
1031 background-color: #ffe0cc;
1037 margin-bottom: $lineheight/4;
1040 display: inline-block;
1041 vertical-align: top;
1051 display: inline-block;
1052 vertical-align: top;
1060 padding: $lineheight/4 0;
1062 text-overflow: ellipsis;
1073 #browse_map .geolink {
1077 #browse_map .secondary-actions {
1078 margin-bottom: $lineheight/2;
1081 /* Rules for the trace list shown by the traces tab etc */
1084 font-size: $lineheight/2;
1101 .trace_identifiable {
1114 /* Rules for the user profile page */
1119 .userinformation-inner {
1134 .admin-user-info small {
1135 margin-bottom: $lineheight/2;
1137 margin-right: $lineheight;
1142 border-bottom: 1px solid #ccc;
1143 padding-bottom: $lineheight;
1146 margin-bottom: $lineheight/2;
1151 margin-top: $lineheight;
1155 .activity-details p {
1160 #friends-container .contact-activity ul {
1165 p#no_home_location {
1166 margin: $lineheight;
1169 margin-top: $lineheight/4;
1174 /* Rules for the user map */
1176 .content_map .leaflet-popup-content {
1177 margin: $lineheight/2;
1181 /* Rules for user popups on maps */
1187 margin-top: 0 0 0 60px;
1190 img.user_thumbnail {
1192 margin: 0 $lineheight/2 0 0;
1196 /* Rules for the user list */
1199 font-size: $lineheight/2;
1203 vertical-align: middle;
1212 #user_list_actions {
1214 margin-top: $lineheight/2;
1217 /* Rules for the diary list page */
1219 .diary_entry-list img.user_thumbnail {
1226 margin-top: $lineheight/2;
1227 padding-top: $lineheight;
1228 border-top: 1px solid #ccc;
1243 ul.secondary-actions { display: inline-block;}
1246 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1250 #content .post_heading {
1251 margin-bottom: $lineheight;
1254 margin-bottom: $lineheight/2;
1259 /* Rules for the diary entry page */
1266 border: 1px solid #ccc;
1268 margin-bottom: $lineheight;
1271 border-top: 1px solid #ccc;
1272 padding-top: $lineheight;
1273 margin-top: $lineheight/2;
1279 margin-top: $lineheight/2;
1280 border-top: 1px dashed #ccc;
1281 padding-top: $lineheight/2;
1283 margin-top: $lineheight;
1284 padding-top: $lineheight;
1285 border-top: 1px solid #ccc;
1288 margin-bottom: $lineheight/2;
1297 .diary_entry-view img.user_thumbnail {
1301 /* Rules for the login page */
1303 #login_openid_buttons {
1307 #login_openid_buttons li {
1309 padding: $lineheight/4 $lineheight/2;
1312 /* Rules for the account confirmation page */
1316 border: 1px solid #ccc;
1317 padding: $lineheight;
1318 margin-bottom: $lineheight;
1332 margin: $lineheight auto inherit auto;
1337 input[type=submit] {
1343 background: darken($grey, $hovercolor);
1348 margin-bottom: $lineheight;
1350 #contributorGuidance {
1351 background-color: $offwhite;
1353 -moz-border-radius: 4px;
1360 /* Rules for the account settings page */
1362 #accountForm .user_map {
1366 border: 1px solid #ccc;
1369 #accountForm .user_image {
1373 #accountForm #user_image {
1377 #accountForm ul.accountImage-options {
1390 display: inline !important;
1393 .content_map.settings_map {
1398 /* Rules for the oauth settings page */
1400 .oauth_clients .buttons .oauth-edit {
1401 border-radius: 2px 0 0 2px;
1404 .oauth_clients .buttons .oauth-delete {
1405 border-radius: 0 2px 2px 0;
1408 /* Rules for messages pages */
1412 border: 1px solid #ddd;
1414 input[type="submit"] {
1418 border-top: 1px solid #ccc;
1422 background: #f8f8ff;
1435 padding: $lineheight/4;
1446 border-right: 1px solid $keyline;
1450 .inbox-row .inbox-mark-read {
1455 margin-bottom: $lineheight;
1456 padding: $lineheight/4 0px 4px 0px;
1457 border-bottom: 1px solid #ccc;
1464 .info-line .user_thumbnail_tiny {
1465 vertical-align: middle;
1474 .inbox-row-unread .inbox-mark-unread {
1478 .message-read .message-buttons {
1479 margin-top: $lineheight;
1480 padding-top: $lineheight;
1481 border-top: 1px solid $keyline;
1484 .message-read .buttons .mark-unread-button {
1488 /* Rules for "flash" notice boxes shown at the top of the content area */
1491 padding: $lineheight;
1493 background-color: #ff7070;
1496 background-color: #ffe0cc;
1499 background-color: #CBEEA7;
1503 /* Rules for highlighting fields with rails validation errors */
1505 .field_with_errors {
1507 background-color: #ff7070;
1511 /* Rules for rails validation error boxes */
1515 border: 2px solid #ff7070;
1516 padding: 0 $lineheight/2;
1517 margin-bottom: $lineheight;
1518 background-color: #f0f0f0;
1521 margin: 0 -10px 10px -10px;
1522 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1525 background-color: #c00;
1533 padding: $lineheight/4;
1537 padding-left: $lineheight;
1546 /* Rules for forms */
1550 margin-bottom: $lineheight;
1552 label.standard-label {
1554 margin-bottom: $lineheight/4;
1555 font-size: $typeheight;
1559 label.standard-label.secondary {
1560 display: inline-block;
1561 font-weight: normal;
1564 font-weight: normal;
1571 margin-top: $lineheight;
1572 padding-top: $lineheight;
1573 border-top: 1px solid $keyline;
1576 margin-bottom: $lineheight/2;
1584 input[type="checkbox"],
1585 input[type="radio"] {
1591 #remember_me_openid {
1595 input[type="checkbox"],
1596 input[type="radio"] {
1601 input[type="email"],
1603 input[type="password"],
1605 border: 1px solid #ccc;
1614 height: 100% !important;
1617 /* Rules for user images */
1622 border: 1px solid #ccc;
1623 margin-bottom: $lineheight;
1625 margin-right: $lineheight;
1628 img.user_thumbnail {
1631 border: 1px solid #ccc;
1632 margin-right: $lineheight;
1635 img.user_thumbnail_tiny {
1638 border: 1px solid #ccc;
1641 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1644 white-space: nowrap;
1647 /* Rules for geo microformats */
1650 border-bottom: none;
1653 /* Rules for RSS buttons */
1660 /* General styles for action lists / subnavs / pager navs */
1662 ul.secondary-actions {
1667 display: inline-block;
1674 border-left: 1px solid #ccc;
1675 padding-left: $lineheight/4;
1676 margin-right: $lineheight/4;
1687 /* Utility for managing inner content areas */
1689 .inner22 { padding: $lineheight;}
1691 .inner12 { padding: $lineheight/2 $lineheight;}
1693 .inner11 { padding: $lineheight/2;}
1695 .inner02 { padding: 0 $lineheight;}
1697 /* Utility for general button styles */
1699 input[type="button"],
1700 input[type="submit"],
1701 input[type="reset"],
1705 display: inline-block;
1707 padding: $lineheight/4 $lineheight/2;
1709 margin: 0 0 $lineheight/2 0;
1714 -moz-border-radius: 2px;
1716 background: darken($blue, $hovercolor);
1717 text-decoration: none;
1720 background: $lightblue;
1722 background: darken($lightblue, $hovercolor);
1726 background: $lightblue;
1735 input[type="submit"],
1736 input[type="button"],
1737 input[type="reset"],
1739 box-sizing: border-box;
1745 border-right:1px solid white;
1748 .button:first-child {
1749 border-radius:2px 0 0 2px;
1752 .button:last-child {
1753 border-radius:0 2px 2px 0;
1754 border-right-width: 0;
1758 *[value="Hide"] + input:last-child,
1759 *[value="Hide"] + .button:last-child {
1761 border-right-width: 0;
1763 /* if a 3-button set has a hidden middle button */
1764 *[value="Hide"] + input:nth-child(3),
1765 *[value="Hide"] + .button:nth-child(3) {
1766 border-radius:0 2px 2px 0;
1767 border-right-width: 0;
1769 /* if a 3-button set starts with a hidden button */
1770 *[value="Hide"] + input:nth-child(2):not(:last-child),
1771 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1772 border-radius:2px 0 0 2px;
1773 border-right-width: 1px solid white;
1777 /* Rules for doing distinct colour of alternate table rows */
1781 background: $offwhite;
1789 /* Rules for OpenID logo */
1792 vertical-align: text-bottom;
1796 /* Rules for rich text */
1801 padding-bottom: $lineheight/2;
1802 border-bottom: 1px dashed #cccccc;
1803 margin-bottom: $lineheight/2;
1815 font-size: $typeheight;
1820 background: #e8e8e8;
1826 background: #e8e8e8;
1835 padding: $lineheight;
1836 background-color: $offwhite;
1843 border-left: $lineheight solid $offwhite;
1844 padding-left: $lineheight;
1851 padding-left: $lineheight;
1852 margin-bottom: $lineheight;
1853 margin-left: $lineheight;
1861 list-style: decimal;
1865 .diary_post .richtext {
1866 margin-top: $lineheight;
1869 .comments .richtext {
1874 /* Rules for rich text editors */
1876 .richtext_container {
1877 margin-bottom: $lineheight;
1881 display: inline-block;
1882 vertical-align: top;
1885 display: inline-block;
1886 padding: $lineheight;
1887 background-color: $offwhite;
1891 background-image: image-url("loading.gif");
1892 background-repeat: no-repeat;
1893 background-position: center;
1903 display: inline-block;
1904 vertical-align: top;
1906 background-color: #f8f8ff;
1907 padding: $lineheight/2;
1915 border-bottom: 1px solid #ccc;
1916 margin-bottom: $lineheight/4;
1917 padding-bottom: $lineheight/4;
1920 li h4, li span, li p {
1921 display: inline-block;
1922 vertical-align: top;
1933 margin-left: $lineheight/2;
1934 margin-bottom: $lineheight/4;
1935 white-space: nowrap;
1940 /* Rules for the user notes list */
1944 background-color: #eeeeee;
1956 /* Rules for the notes interface */
1958 .leaflet-popup-content .note {
1959 padding-top: $lineheight/2;
1962 .leaflet-popup-content .note {
1964 margin-bottom: $lineheight/2;
1968 margin-top: $lineheight/2;
1974 left: $lineheight/4;
1977 background: image-url("sprite.png") 0 -45px no-repeat;
1982 padding-left: $lineheight;
1985 .permalink:hover span {
1991 background-color: #ffe0cc;
1993 margin-bottom: $lineheight/2;
2012 margin-top: $lineheight/4;
2018 * Rules for the iD editor
2025 /* Rules for rotating sidebar ads */
2031 border-bottom: 1px solid #ccc;