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 .icon.layers { background-position: -100px 0; }
166 .icon.key { background-position: -120px 0; }
167 .icon.share { background-position: -140px 0; }
168 .icon.clipboard { background-position: -160px 0; }
169 .icon.link { background-position: -180px 0; }
170 .icon.close { background-position: -200px 0; }
171 .icon.check { background-position: -220px 0; }
172 .icon.note { background-position: -240px 0; }
174 /* Rules for links */
178 text-decoration: none;
180 text-decoration: underline;
184 /* Rules for horizontal lines */
188 background-color: #ccc;
193 /* General styles for tables */
197 margin-bottom: $lineheight;
200 padding: $lineheight/4;
201 line-height: $lineheight;
208 vertical-align: middle;
212 /* Rules for the whole left sidebar, including the logo */
221 border-right: 1px solid #ccc;
224 /* Rules for the OpenStreetMap logo in the top left corner */
230 padding: $lineheight $lineheight/4;
243 font-size: $lineheight/2;
248 /* Rules for the site name */
254 /* Rules for the introductory text displayed in the left sidebar to new users */
257 padding: $lineheight/4 $lineheight/2;
259 margin: $lineheight/4 0;
262 .sidebar-copy.intro {
263 border-top: 1px solid #ccc;
267 * Rules for alert boxes shown in the left sidebar when important
268 * information needs to be conveyed such as when the site is
269 * undergoing maintenance.
273 padding: $lineheight/4;
274 border-top: 1px solid #ccc;
281 margin: $lineheight/4;
286 * Rules for notice boxes shown in the left sidebar when important, but
287 * non-critical information needs to be conveyed such as notices about
292 padding: $lineheight/4;
293 border-top: 1px solid #ccc;
299 margin: $lineheight/4;
303 /* Rules for the menu displayed in the left sidebar */
308 padding: $lineheight/4 $lineheight/2;
311 list-style-type: none;
312 border-bottom: 1px solid #ccc;
313 border-top: 1px solid #ccc;
315 margin: $lineheight/2 0px;
324 list-style-type: none;
330 padding: $lineheight/4 0 $lineheight/4 0;
340 /* Rules for SOTM advert */
344 margin: $lineheight/2;
354 * Rules for "optional boxes" which appear in the left sidebar on
355 * certain pages. Current users are the seach box on the main page
356 * and the tag cloud on the traces pages.
361 padding: $lineheight/4 $lineheight/2;
362 margin: $lineheight/4 0;
366 /* Rules for the search box */
378 font-size: $typeheight;
381 padding: 2px 0px 2px $lineheight/4;
382 box-shadow: inset #DDD 0px 1px 3px;
385 input[type="text"]:focus {
387 border: 1px solid #000;
390 input[type="submit"] {
397 text-indent: -1000px;
399 background: image-url("sprite.png") 0 0 no-repeat;
402 right: $lineheight/4;
408 margin: $lineheight/4 0 0 0;
411 /* Utility for de-emphasizing content */
420 /* Rules for donation request box */
425 padding: $lineheight/4;
426 border: 1px solid #AED1A0;
428 font-size: $typeheight;
433 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
437 text-decoration: none;
441 /* Rules for Creative Commons logo button */
444 margin: $lineheight/2 0;
448 /* Rules for tabbed navigation bar */
454 border-bottom: 1px solid #ccc;
460 .site-index #top-bar,
461 .site-export #top-bar {
474 a, a:link, a:visited {
477 padding: 3px $lineheight/2;
478 text-decoration: none;
482 -webkit-transition: color 200ms ease-in;
483 -moz-transition: color 200ms ease-in;
484 -o-transition: color 200ms ease-in;
485 transition: color 200ms ease-in;
489 .site-index #tabnav a#viewanchor,
490 .site-edit #tabnav a#editanchor,
491 .changeset-list #tabnav a#historyanchor,
492 .site-export #tabnav a#exportanchor {
493 border-bottom: 1px solid #aaa;
498 #tabnav a:link:hover, #tabnav a:visited:hover {
499 text-decoration: underline;
502 #tabnav a:link.disabled,
503 #tabnav a:visited.disabled,
504 #tabnav a:link:hover.disabled,
505 #tabnav a:visited:hover.disabled {
509 text-decoration: none;
513 /* Utility for styling notification numbers */
516 padding: 2px $lineheight/4;
524 /* Rules for greeting bar in the top right corner */
529 margin-right: $lineheight/4;
532 .greeting-bar-unread {
536 /* Rules for the message shown in place of the map when javascript is disabled */
545 /* Rules for Leaflet maps */
551 background-color: white;
552 background-color: rgba(255,255,255,.8);
557 .leaflet-control a.zoomin {
559 border-radius: 4px 4px 0px 0px;
562 .leaflet-control a.zoomout {
563 border-radius: 0px 0px 4px 4px;
566 .leaflet-control a:hover {
567 background-color: white;
570 .leaflet-control a .icon {
585 border-top: 1px solid #868e85;
598 background-color: #868e85;
603 background-color: #68c879;
615 .leaflet-control-attribution {
619 text-decoration: none;
622 ul.secondary-actions {
624 margin-right: $lineheight/4;
632 .site-index .leaflet-top,
633 .site-export .leaflet-top {
634 top: $lineheight/2 !important;
636 margin-top: 0px !important;
640 .site-index #map .olControlScaleLine,
641 .site-export #map .olControlScaleLine {
642 left: $lineheight/2 !important;
645 .leaflet-popup-scrolled {
646 padding-right: $lineheight;
647 border-bottom: 0px !important;
648 border-top: 0px !important;
651 .leaflet-popup-content-wrapper {
652 border-radius: 4px !important;
653 -webkit-border-radius: 4px !important;
656 /* Rules for edit menu */
659 padding: 0 $lineheight/4;
661 display: inline-block;
663 text-decoration: none !important;
671 background-color: #ffffff;
672 border: 1px solid $keyline;
678 padding: 2px $lineheight/4;
679 border-top: 1px solid #eee;
684 /* Rules for attribution text under the main map shown on printouts */
690 .attribution_license,
691 .attribution_project {
695 .attribution_notice {
699 /* Rules for the popout map sidebar */
708 border-right: 1px solid $keyline;
712 padding: $lineheight/2 $lineheight;
714 background: $offwhite;
715 border-bottom: 1px solid #ccc;
723 border-bottom: 1px solid #ccc;
726 margin-bottom: $lineheight/4;
748 padding: 0 $lineheight $lineheight/2 $lineheight;
749 margin-top: $lineheight/2;
751 border-bottom: 1px solid #ddd;
755 /* Rules for the map key which appears in the popout sidebar */
758 padding: $lineheight $lineheight 0 $lineheight;
759 .mapkey-table-key img {
765 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
769 /* Rules for search results which appear in the popout sidebar */
772 margin-top: $lineheight/4;
773 margin-bottom: $lineheight/4;
776 .search_results_entry {
785 .search_results_entry .search_searching {
787 margin: $lineheight auto;
792 ul.results-list li { border-bottom: 1px solid #ccc; }
794 .search_results_error {
798 /* Rules for data browser information which appears in the popout sidebar */
802 .browse_show_list.button {
827 /* Rules for export information which appears in the popout sidebar */
833 .export_area_inputs {
834 margin-bottom: $lineheight/2;
842 margin: $lineheight/4;
845 .export_details input[type="text"]#export_html_text {
849 #sidebar #marker_inputs li:last-child {
850 margin-bottom: $lineheight/2;
859 /* Rules for the main content area */
862 padding: $lineheight;
867 .site-index #content,
868 .site-export #content {
871 top: 30px; bottom: 0;
872 left: 184px; right: 0;
873 border-left: 1px solid #ccc;
878 border-left: 1px solid #ccc;
882 .site-edit #content {
899 #slim_container_content {
901 background-color: #FFFFFF;
902 margin: $lineheight/2 auto;
905 -moz-border-radius: 25px;
906 border: 1px solid #e6e6e6;
910 margin: $lineheight/2;
920 margin: 30px $lineheight/2;
923 margin-right: $lineheight/4;
925 vertical-align: middle;
926 margin-bottom: $lineheight/4;
927 margin-right: $lineheight/4;
933 padding: $lineheight;
934 background: $offwhite;
936 margin-bottom: $lineheight/2;
943 margin-top: $lineheight/2;
948 /* Rules for small maps in content areas */
954 border: 1px solid #ccc;
955 margin-bottom: $lineheight;
959 .content_map #small_map {
962 margin-bottom: $lineheight;
965 /* Rules for the home page */
976 /* Rules for the edit page */
987 /* Rules for the changeset list shown by the history tab etc */
992 padding: $lineheight/2 0;
994 border-top: 1px solid #ccc;
996 border-bottom: 1px solid #ccc;
1000 background: #FFFFC0;
1004 border-left: 1px solid #ccc;
1005 padding-left: $lineheight/4;
1006 margin-right: $lineheight/4;
1010 #changeset_list_map_wrapper {
1018 #changeset_list_map_wrapper.scrolled {
1022 #changeset_list_map {
1024 bottom: $lineheight;
1028 border: 1px solid #ccc;
1031 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1035 /* Rules for the data browser */
1038 border-top: 1px solid #ccc;
1039 margin-top: $lineheight/2;
1040 padding-top: $lineheight/2;
1045 background-color: #ffe0cc;
1051 margin-bottom: $lineheight/4;
1053 p, ul, .bbox, .geo {
1054 display: inline-block;
1055 vertical-align: top;
1064 display: inline-block;
1065 vertical-align: top;
1073 padding: $lineheight/4 0;
1075 text-overflow: ellipsis;
1086 #browse_map .geolink {
1090 #browse_map .secondary-actions {
1091 margin-bottom: $lineheight/2;
1094 /* Rules for the trace list shown by the traces tab etc */
1097 font-size: $lineheight/2;
1114 .trace_identifiable {
1127 /* Rules for the user profile page */
1132 .userinformation-inner {
1147 .admin-user-info small {
1148 margin-bottom: $lineheight/2;
1150 margin-right: $lineheight;
1155 border-bottom: 1px solid #ccc;
1156 padding-bottom: $lineheight;
1159 margin-bottom: $lineheight/2;
1164 margin-top: $lineheight;
1168 .activity-details p {
1173 #friends-container .contact-activity ul {
1178 p#no_home_location {
1179 margin: $lineheight;
1182 margin-top: $lineheight/4;
1187 /* Rules for the user map */
1189 .content_map .leaflet-popup-content {
1190 margin: $lineheight/2;
1194 /* Rules for user popups on maps */
1200 margin-top: 0 0 0 60px;
1203 img.user_thumbnail {
1205 margin: 0 $lineheight/2 0 0;
1209 /* Rules for the user list */
1212 font-size: $lineheight/2;
1216 vertical-align: middle;
1225 #user_list_actions {
1227 margin-top: $lineheight/2;
1230 /* Rules for the diary list page */
1232 .diary_entry-list img.user_thumbnail {
1239 margin-top: $lineheight/2;
1240 padding-top: $lineheight;
1241 border-top: 1px solid #ccc;
1256 ul.secondary-actions { display: inline-block;}
1259 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1263 #content .post_heading {
1264 margin-bottom: $lineheight;
1267 margin-bottom: $lineheight/2;
1272 /* Rules for the diary entry page */
1279 border: 1px solid #ccc;
1281 margin-bottom: $lineheight;
1284 border-top: 1px solid #ccc;
1285 padding-top: $lineheight;
1286 margin-top: $lineheight/2;
1292 margin-top: $lineheight/2;
1293 border-top: 1px dashed #ccc;
1294 padding-top: $lineheight/2;
1296 margin-top: $lineheight;
1297 padding-top: $lineheight;
1298 border-top: 1px solid #ccc;
1301 margin-bottom: $lineheight/2;
1310 .diary_entry-view img.user_thumbnail {
1314 /* Rules for the login page */
1316 #login_openid_buttons {
1320 #login_openid_buttons li {
1322 padding: $lineheight/4 $lineheight/2;
1325 /* Rules for the account confirmation page */
1329 border: 1px solid #ccc;
1330 padding: $lineheight;
1331 margin-bottom: $lineheight;
1345 margin: $lineheight auto inherit auto;
1350 input[type=submit] {
1356 background: darken($grey, $hovercolor);
1361 margin-bottom: $lineheight;
1363 #contributorGuidance {
1364 background-color: $offwhite;
1366 -moz-border-radius: 4px;
1373 /* Rules for the account settings page */
1375 #accountForm .user_map {
1379 border: 1px solid #ccc;
1382 #accountForm .user_image {
1386 #accountForm #user_image {
1390 #accountForm ul.accountImage-options {
1403 display: inline !important;
1406 .content_map.settings_map {
1411 /* Rules for the oauth settings page */
1413 .oauth_clients .buttons .oauth-edit {
1414 border-radius: 2px 0 0 2px;
1417 .oauth_clients .buttons .oauth-delete {
1418 border-radius: 0 2px 2px 0;
1421 /* Rules for messages pages */
1425 border: 1px solid #ddd;
1427 input[type="submit"] {
1431 border-top: 1px solid #ccc;
1435 background: #f8f8ff;
1448 padding: $lineheight/4;
1459 border-right: 1px solid $keyline;
1463 .inbox-row .inbox-mark-read {
1468 margin-bottom: $lineheight;
1469 padding: $lineheight/4 0px 4px 0px;
1470 border-bottom: 1px solid #ccc;
1477 .info-line .user_thumbnail_tiny {
1478 vertical-align: middle;
1487 .inbox-row-unread .inbox-mark-unread {
1491 .message-read .message-buttons {
1492 margin-top: $lineheight;
1493 padding-top: $lineheight;
1494 border-top: 1px solid $keyline;
1497 .message-read .buttons .mark-unread-button {
1501 /* Rules for "flash" notice boxes shown at the top of the content area */
1504 padding: $lineheight;
1506 background-color: #ff7070;
1509 background-color: #ffe0cc;
1512 background-color: #CBEEA7;
1516 /* Rules for highlighting fields with rails validation errors */
1518 .field_with_errors {
1520 background-color: #ff7070;
1524 /* Rules for rails validation error boxes */
1528 border: 2px solid #ff7070;
1529 padding: 0 $lineheight/2;
1530 margin-bottom: $lineheight;
1531 background-color: #f0f0f0;
1534 margin: 0 -10px 10px -10px;
1535 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1538 background-color: #c00;
1546 padding: $lineheight/4;
1550 padding-left: $lineheight;
1559 /* Rules for forms */
1563 margin-bottom: $lineheight;
1565 label.standard-label {
1567 margin-bottom: $lineheight/4;
1568 font-size: $typeheight;
1572 label.standard-label.secondary {
1573 display: inline-block;
1574 font-weight: normal;
1577 font-weight: normal;
1584 margin-top: $lineheight;
1585 padding-top: $lineheight;
1586 border-top: 1px solid $keyline;
1589 margin-bottom: $lineheight/2;
1597 input[type="checkbox"],
1598 input[type="radio"] {
1604 #remember_me_openid {
1608 input[type="checkbox"],
1609 input[type="radio"] {
1614 input[type="email"],
1616 input[type="password"],
1618 border: 1px solid #ccc;
1627 height: 100% !important;
1630 /* Rules for user images */
1635 border: 1px solid #ccc;
1636 margin-bottom: $lineheight;
1638 margin-right: $lineheight;
1641 img.user_thumbnail {
1644 border: 1px solid #ccc;
1645 margin-right: $lineheight;
1648 img.user_thumbnail_tiny {
1651 border: 1px solid #ccc;
1654 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1657 white-space: nowrap;
1660 /* Rules for geo microformats */
1663 border-bottom: none;
1666 /* Rules for RSS buttons */
1673 /* General styles for action lists / subnavs / pager navs */
1675 ul.secondary-actions {
1680 display: inline-block;
1687 border-left: 1px solid #ccc;
1688 padding-left: $lineheight/4;
1689 margin-right: $lineheight/4;
1700 /* Utility for managing inner content areas */
1702 .inner22 { padding: $lineheight;}
1704 .inner12 { padding: $lineheight/2 $lineheight;}
1706 .inner11 { padding: $lineheight/2;}
1708 .inner02 { padding: 0 $lineheight;}
1710 /* Utility for general button styles */
1712 input[type="button"],
1713 input[type="submit"],
1714 input[type="reset"],
1718 display: inline-block;
1720 padding: $lineheight/4 $lineheight/2;
1722 margin: 0 0 $lineheight/2 0;
1727 -moz-border-radius: 2px;
1729 background: darken($blue, $hovercolor);
1730 text-decoration: none;
1733 background: $lightblue;
1735 background: darken($lightblue, $hovercolor);
1739 background: $lightblue;
1748 input[type="submit"],
1749 input[type="button"],
1750 input[type="reset"],
1752 box-sizing: border-box;
1758 border-right:1px solid white;
1761 .button:first-child {
1762 border-radius:2px 0 0 2px;
1765 .button:last-child {
1766 border-radius:0 2px 2px 0;
1767 border-right-width: 0;
1771 *[value="Hide"] + input:last-child,
1772 *[value="Hide"] + .button:last-child {
1774 border-right-width: 0;
1776 /* if a 3-button set has a hidden middle button */
1777 *[value="Hide"] + input:nth-child(3),
1778 *[value="Hide"] + .button:nth-child(3) {
1779 border-radius:0 2px 2px 0;
1780 border-right-width: 0;
1782 /* if a 3-button set starts with a hidden button */
1783 *[value="Hide"] + input:nth-child(2):not(:last-child),
1784 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1785 border-radius:2px 0 0 2px;
1786 border-right-width: 1px solid white;
1790 /* Rules for doing distinct colour of alternate table rows */
1794 background: $offwhite;
1802 /* Rules for OpenID logo */
1805 vertical-align: text-bottom;
1809 /* Rules for rich text */
1814 padding-bottom: $lineheight/2;
1815 border-bottom: 1px dashed #cccccc;
1816 margin-bottom: $lineheight/2;
1828 font-size: $typeheight;
1833 background: #e8e8e8;
1839 background: #e8e8e8;
1848 padding: $lineheight;
1849 background-color: $offwhite;
1856 border-left: $lineheight solid $offwhite;
1857 padding-left: $lineheight;
1864 padding-left: $lineheight;
1865 margin-bottom: $lineheight;
1866 margin-left: $lineheight;
1874 list-style: decimal;
1878 .diary_post .richtext {
1879 margin-top: $lineheight;
1882 .comments .richtext {
1887 /* Rules for rich text editors */
1889 .richtext_container {
1890 margin-bottom: $lineheight;
1894 display: inline-block;
1895 vertical-align: top;
1898 display: inline-block;
1899 padding: $lineheight;
1900 background-color: $offwhite;
1904 background-image: image-url("loading.gif");
1905 background-repeat: no-repeat;
1906 background-position: center;
1916 display: inline-block;
1917 vertical-align: top;
1919 background-color: #f8f8ff;
1920 padding: $lineheight/2;
1928 border-bottom: 1px solid #ccc;
1929 margin-bottom: $lineheight/4;
1930 padding-bottom: $lineheight/4;
1933 li h4, li span, li p {
1934 display: inline-block;
1935 vertical-align: top;
1946 margin-left: $lineheight/2;
1947 margin-bottom: $lineheight/4;
1948 white-space: nowrap;
1953 /* Rules for the user notes list */
1957 background-color: #eeeeee;
1969 /* Rules for the notes interface */
1971 .leaflet-popup-content .note {
1972 padding-top: $lineheight/2;
1975 .leaflet-popup-content .note {
1977 margin-bottom: $lineheight/2;
1981 margin-top: $lineheight/2;
1987 left: $lineheight/4;
1990 background: image-url("sprite.png") 0 -45px no-repeat;
1995 padding-left: $lineheight;
1998 .permalink:hover span {
2004 background-color: #ffe0cc;
2006 margin-bottom: $lineheight/2;
2025 margin-top: $lineheight/4;
2031 * Rules for the iD editor
2038 /* Rules for rotating sidebar ads */
2044 border-bottom: 1px solid #ccc;