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 {
583 border-top: 1px solid #868e85;
587 section:first-child {
601 border:1px solid #ddd;
613 background-color: #eee;
618 background-color: #ccc;
634 .site-index .leaflet-top,
635 .site-export .leaflet-top {
636 top: $lineheight/2 !important;
638 margin-top: 0px !important;
642 .leaflet-popup-scrolled {
643 padding-right: $lineheight;
644 border-bottom: 0px !important;
645 border-top: 0px !important;
648 .leaflet-popup-content-wrapper {
649 border-radius: 4px !important;
650 -webkit-border-radius: 4px !important;
653 /* Rules for edit menu */
656 padding: 0 $lineheight/4;
658 display: inline-block;
660 text-decoration: none !important;
668 background-color: #ffffff;
669 border: 1px solid $keyline;
675 padding: 2px $lineheight/4;
676 border-top: 1px solid #eee;
681 /* Rules for attribution text under the main map shown on printouts */
687 .attribution_license,
688 .attribution_project {
692 .attribution_notice {
696 /* Rules for the popout map sidebar */
705 border-right: 1px solid $keyline;
709 padding: $lineheight/2 $lineheight;
711 background: $offwhite;
712 border-bottom: 1px solid #ccc;
720 border-bottom: 1px solid #ccc;
723 margin-bottom: $lineheight/4;
745 padding: 0 $lineheight $lineheight/2 $lineheight;
746 margin-top: $lineheight/2;
748 border-bottom: 1px solid #ddd;
752 /* Rules for the map key which appears in the popout sidebar */
755 .mapkey-table-key img {
761 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
765 /* Rules for search results which appear in the popout sidebar */
768 margin-top: $lineheight/4;
769 margin-bottom: $lineheight/4;
772 .search_results_entry {
781 .search_results_entry .search_searching {
783 margin: $lineheight auto;
788 ul.results-list li { border-bottom: 1px solid #ccc; }
790 .search_results_error {
794 /* Rules for data browser information which appears in the popout sidebar */
798 .browse_show_list.button {
823 /* Rules for export information which appears in the popout sidebar */
829 .export_area_inputs {
830 margin-bottom: $lineheight/2;
838 margin: $lineheight/4;
841 .export_details input[type="text"]#export_html_text {
845 #sidebar #marker_inputs li:last-child {
846 margin-bottom: $lineheight/2;
855 /* Rules for the main content area */
858 padding: $lineheight;
863 .site-index #content,
864 .site-export #content {
867 top: 30px; bottom: 0;
868 left: 184px; right: 0;
869 border-left: 1px solid #ccc;
874 border-left: 1px solid #ccc;
878 .site-edit #content {
895 #slim_container_content {
897 background-color: #FFFFFF;
898 margin: $lineheight/2 auto;
901 -moz-border-radius: 25px;
902 border: 1px solid #e6e6e6;
906 margin: $lineheight/2;
916 margin: 30px $lineheight/2;
919 margin-right: $lineheight/4;
921 vertical-align: middle;
922 margin-bottom: $lineheight/4;
923 margin-right: $lineheight/4;
929 padding: $lineheight;
930 background: $offwhite;
932 margin-bottom: $lineheight/2;
939 margin-top: $lineheight/2;
944 /* Rules for small maps in content areas */
950 border: 1px solid #ccc;
951 margin-bottom: $lineheight;
955 .content_map #small_map {
958 margin-bottom: $lineheight;
961 /* Rules for the home page */
972 /* Rules for the edit page */
983 /* Rules for the changeset list shown by the history tab etc */
988 padding: $lineheight/2 0;
990 border-top: 1px solid #ccc;
992 border-bottom: 1px solid #ccc;
1000 border-left: 1px solid #ccc;
1001 padding-left: $lineheight/4;
1002 margin-right: $lineheight/4;
1006 #changeset_list_map_wrapper {
1014 #changeset_list_map_wrapper.scrolled {
1018 #changeset_list_map {
1020 bottom: $lineheight;
1024 border: 1px solid #ccc;
1027 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1031 /* Rules for the data browser */
1034 border-top: 1px solid #ccc;
1035 margin-top: $lineheight/2;
1036 padding-top: $lineheight/2;
1041 background-color: #ffe0cc;
1047 margin-bottom: $lineheight/4;
1049 p, ul, .bbox, .geo {
1050 display: inline-block;
1051 vertical-align: top;
1060 display: inline-block;
1061 vertical-align: top;
1069 padding: $lineheight/4 0;
1071 text-overflow: ellipsis;
1082 #browse_map .geolink {
1086 #browse_map .secondary-actions {
1087 margin-bottom: $lineheight/2;
1090 /* Rules for the trace list shown by the traces tab etc */
1093 font-size: $lineheight/2;
1110 .trace_identifiable {
1123 /* Rules for the user profile page */
1128 .userinformation-inner {
1143 .admin-user-info small {
1144 margin-bottom: $lineheight/2;
1146 margin-right: $lineheight;
1151 border-bottom: 1px solid #ccc;
1152 padding-bottom: $lineheight;
1155 margin-bottom: $lineheight/2;
1160 margin-top: $lineheight;
1164 .activity-details p {
1169 #friends-container .contact-activity ul {
1174 p#no_home_location {
1175 margin: $lineheight;
1178 margin-top: $lineheight/4;
1183 /* Rules for the user map */
1185 .content_map .leaflet-popup-content {
1186 margin: $lineheight/2;
1190 /* Rules for user popups on maps */
1196 margin-top: 0 0 0 60px;
1199 img.user_thumbnail {
1201 margin: 0 $lineheight/2 0 0;
1205 /* Rules for the user list */
1208 font-size: $lineheight/2;
1212 vertical-align: middle;
1221 #user_list_actions {
1223 margin-top: $lineheight/2;
1226 /* Rules for the diary list page */
1228 .diary_entry-list img.user_thumbnail {
1235 margin-top: $lineheight/2;
1236 padding-top: $lineheight;
1237 border-top: 1px solid #ccc;
1252 ul.secondary-actions { display: inline-block;}
1255 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1259 #content .post_heading {
1260 margin-bottom: $lineheight;
1263 margin-bottom: $lineheight/2;
1268 /* Rules for the diary entry page */
1275 border: 1px solid #ccc;
1277 margin-bottom: $lineheight;
1280 border-top: 1px solid #ccc;
1281 padding-top: $lineheight;
1282 margin-top: $lineheight/2;
1288 margin-top: $lineheight/2;
1289 border-top: 1px dashed #ccc;
1290 padding-top: $lineheight/2;
1292 margin-top: $lineheight;
1293 padding-top: $lineheight;
1294 border-top: 1px solid #ccc;
1297 margin-bottom: $lineheight/2;
1306 .diary_entry-view img.user_thumbnail {
1310 /* Rules for the login page */
1312 #login_openid_buttons {
1316 #login_openid_buttons li {
1318 padding: $lineheight/4 $lineheight/2;
1321 /* Rules for the account confirmation page */
1325 border: 1px solid #ccc;
1326 padding: $lineheight;
1327 margin-bottom: $lineheight;
1341 margin: $lineheight auto inherit auto;
1346 input[type=submit] {
1352 background: darken($grey, $hovercolor);
1357 margin-bottom: $lineheight;
1359 #contributorGuidance {
1360 background-color: $offwhite;
1362 -moz-border-radius: 4px;
1369 /* Rules for the account settings page */
1371 #accountForm .user_map {
1375 border: 1px solid #ccc;
1378 #accountForm .user_image {
1382 #accountForm #user_image {
1386 #accountForm ul.accountImage-options {
1399 display: inline !important;
1402 .content_map.settings_map {
1407 /* Rules for the oauth settings page */
1409 .oauth_clients .buttons .oauth-edit {
1410 border-radius: 2px 0 0 2px;
1413 .oauth_clients .buttons .oauth-delete {
1414 border-radius: 0 2px 2px 0;
1417 /* Rules for messages pages */
1421 border: 1px solid #ddd;
1423 input[type="submit"] {
1427 border-top: 1px solid #ccc;
1431 background: #f8f8ff;
1444 padding: $lineheight/4;
1455 border-right: 1px solid $keyline;
1459 .inbox-row .inbox-mark-read {
1464 margin-bottom: $lineheight;
1465 padding: $lineheight/4 0px 4px 0px;
1466 border-bottom: 1px solid #ccc;
1473 .info-line .user_thumbnail_tiny {
1474 vertical-align: middle;
1483 .inbox-row-unread .inbox-mark-unread {
1487 .message-read .message-buttons {
1488 margin-top: $lineheight;
1489 padding-top: $lineheight;
1490 border-top: 1px solid $keyline;
1493 .message-read .buttons .mark-unread-button {
1497 /* Rules for "flash" notice boxes shown at the top of the content area */
1500 padding: $lineheight;
1502 background-color: #ff7070;
1505 background-color: #ffe0cc;
1508 background-color: #CBEEA7;
1512 /* Rules for highlighting fields with rails validation errors */
1514 .field_with_errors {
1516 background-color: #ff7070;
1520 /* Rules for rails validation error boxes */
1524 border: 2px solid #ff7070;
1525 padding: 0 $lineheight/2;
1526 margin-bottom: $lineheight;
1527 background-color: #f0f0f0;
1530 margin: 0 -10px 10px -10px;
1531 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1534 background-color: #c00;
1542 padding: $lineheight/4;
1546 padding-left: $lineheight;
1555 /* Rules for forms */
1559 margin-bottom: $lineheight;
1561 label.standard-label {
1563 margin-bottom: $lineheight/4;
1564 font-size: $typeheight;
1568 label.standard-label.secondary {
1569 display: inline-block;
1570 font-weight: normal;
1573 font-weight: normal;
1580 margin-top: $lineheight;
1581 padding-top: $lineheight;
1582 border-top: 1px solid $keyline;
1585 margin-bottom: $lineheight/2;
1593 input[type="checkbox"],
1594 input[type="radio"] {
1600 #remember_me_openid {
1604 input[type="checkbox"],
1605 input[type="radio"] {
1610 input[type="email"],
1612 input[type="password"],
1614 border: 1px solid #ccc;
1623 height: 100% !important;
1626 /* Rules for user images */
1631 border: 1px solid #ccc;
1632 margin-bottom: $lineheight;
1634 margin-right: $lineheight;
1637 img.user_thumbnail {
1640 border: 1px solid #ccc;
1641 margin-right: $lineheight;
1644 img.user_thumbnail_tiny {
1647 border: 1px solid #ccc;
1650 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1653 white-space: nowrap;
1656 /* Rules for geo microformats */
1659 border-bottom: none;
1662 /* Rules for RSS buttons */
1669 /* General styles for action lists / subnavs / pager navs */
1671 ul.secondary-actions {
1676 display: inline-block;
1683 border-left: 1px solid #ccc;
1684 padding-left: $lineheight/4;
1685 margin-right: $lineheight/4;
1696 /* Utility for managing inner content areas */
1698 .inner22 { padding: $lineheight;}
1700 .inner12 { padding: $lineheight/2 $lineheight;}
1702 .inner11 { padding: $lineheight/2;}
1704 .inner02 { padding: 0 $lineheight;}
1706 /* Utility for general button styles */
1708 input[type="button"],
1709 input[type="submit"],
1710 input[type="reset"],
1714 display: inline-block;
1716 padding: $lineheight/4 $lineheight/2;
1718 margin: 0 0 $lineheight/2 0;
1723 -moz-border-radius: 2px;
1725 background: darken($blue, $hovercolor);
1726 text-decoration: none;
1729 background: $lightblue;
1731 background: darken($lightblue, $hovercolor);
1735 background: $lightblue;
1744 input[type="submit"],
1745 input[type="button"],
1746 input[type="reset"],
1748 box-sizing: border-box;
1754 border-right:1px solid white;
1757 .button:first-child {
1758 border-radius:2px 0 0 2px;
1761 .button:last-child {
1762 border-radius:0 2px 2px 0;
1763 border-right-width: 0;
1767 *[value="Hide"] + input:last-child,
1768 *[value="Hide"] + .button:last-child {
1770 border-right-width: 0;
1772 /* if a 3-button set has a hidden middle button */
1773 *[value="Hide"] + input:nth-child(3),
1774 *[value="Hide"] + .button:nth-child(3) {
1775 border-radius:0 2px 2px 0;
1776 border-right-width: 0;
1778 /* if a 3-button set starts with a hidden button */
1779 *[value="Hide"] + input:nth-child(2):not(:last-child),
1780 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1781 border-radius:2px 0 0 2px;
1782 border-right-width: 1px solid white;
1786 /* Rules for doing distinct colour of alternate table rows */
1790 background: $offwhite;
1798 /* Rules for OpenID logo */
1801 vertical-align: text-bottom;
1805 /* Rules for rich text */
1810 padding-bottom: $lineheight/2;
1811 border-bottom: 1px dashed #cccccc;
1812 margin-bottom: $lineheight/2;
1824 font-size: $typeheight;
1829 background: #e8e8e8;
1835 background: #e8e8e8;
1844 padding: $lineheight;
1845 background-color: $offwhite;
1852 border-left: $lineheight solid $offwhite;
1853 padding-left: $lineheight;
1860 padding-left: $lineheight;
1861 margin-bottom: $lineheight;
1862 margin-left: $lineheight;
1870 list-style: decimal;
1874 .diary_post .richtext {
1875 margin-top: $lineheight;
1878 .comments .richtext {
1883 /* Rules for rich text editors */
1885 .richtext_container {
1886 margin-bottom: $lineheight;
1890 display: inline-block;
1891 vertical-align: top;
1894 display: inline-block;
1895 padding: $lineheight;
1896 background-color: $offwhite;
1900 background-image: image-url("loading.gif");
1901 background-repeat: no-repeat;
1902 background-position: center;
1912 display: inline-block;
1913 vertical-align: top;
1915 background-color: #f8f8ff;
1916 padding: $lineheight/2;
1924 border-bottom: 1px solid #ccc;
1925 margin-bottom: $lineheight/4;
1926 padding-bottom: $lineheight/4;
1929 li h4, li span, li p {
1930 display: inline-block;
1931 vertical-align: top;
1942 margin-left: $lineheight/2;
1943 margin-bottom: $lineheight/4;
1944 white-space: nowrap;
1949 /* Rules for the user notes list */
1953 background-color: #eeeeee;
1965 /* Rules for the notes interface */
1967 .leaflet-popup-content .note {
1968 padding-top: $lineheight/2;
1971 .leaflet-popup-content .note {
1973 margin-bottom: $lineheight/2;
1977 margin-top: $lineheight/2;
1983 left: $lineheight/4;
1986 background: image-url("sprite.png") 0 -45px no-repeat;
1991 padding-left: $lineheight;
1994 .permalink:hover span {
2000 background-color: #ffe0cc;
2002 margin-bottom: $lineheight/2;
2021 margin-top: $lineheight/4;
2027 * Rules for the iD editor
2034 /* Rules for rotating sidebar ads */
2040 border-bottom: 1px solid #ccc;