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:hover {
558 background-color: white;
561 .leaflet-control a .icon {
579 .leaflet-control-attribution {
583 text-decoration: none;
586 ul.secondary-actions {
588 margin-right: $lineheight/4;
596 .site-index .leaflet-top,
597 .site-export .leaflet-top {
598 top: $lineheight/2 !important;
600 margin-top: 0px !important;
604 .site-index #map .olControlScaleLine,
605 .site-export #map .olControlScaleLine {
606 left: $lineheight/2 !important;
609 .leaflet-popup-scrolled {
610 padding-right: $lineheight;
611 border-bottom: 0px !important;
612 border-top: 0px !important;
615 .leaflet-popup-content-wrapper {
616 border-radius: 4px !important;
617 -webkit-border-radius: 4px !important;
620 /* Rules for edit menu */
623 padding: 0 $lineheight/4;
625 display: inline-block;
627 text-decoration: none !important;
635 background-color: #ffffff;
636 border: 1px solid $keyline;
642 padding: 2px $lineheight/4;
643 border-top: 1px solid #eee;
648 /* Rules for attribution text under the main map shown on printouts */
654 .attribution_license,
655 .attribution_project {
659 .attribution_notice {
663 /* Rules for the popout map sidebar */
672 border-right: 1px solid $keyline;
676 padding: $lineheight/2 $lineheight;
678 background: $offwhite;
679 border-bottom: 1px solid #ccc;
687 border-bottom: 1px solid #ccc;
690 margin-bottom: $lineheight/4;
712 padding: 0 $lineheight $lineheight/2 $lineheight;
713 margin-top: $lineheight/2;
715 border-bottom: 1px solid #ddd;
719 /* Rules for the map key which appears in the popout sidebar */
722 padding: $lineheight $lineheight 0 $lineheight;
723 .mapkey-table-key img {
729 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
733 /* Rules for search results which appear in the popout sidebar */
736 margin-top: $lineheight/4;
737 margin-bottom: $lineheight/4;
740 .search_results_entry {
749 .search_results_entry .search_searching {
751 margin: $lineheight auto;
756 ul.results-list li { border-bottom: 1px solid #ccc; }
758 .search_results_error {
762 /* Rules for data browser information which appears in the popout sidebar */
766 .browse_show_list.button {
791 /* Rules for export information which appears in the popout sidebar */
797 .export_area_inputs {
798 margin-bottom: $lineheight/2;
806 margin: $lineheight/4;
809 .export_details input[type="text"]#export_html_text {
813 #sidebar #marker_inputs li:last-child {
814 margin-bottom: $lineheight/2;
823 /* Rules for the main content area */
826 padding: $lineheight;
831 .site-index #content,
832 .site-export #content {
835 top: 30px; bottom: 0;
836 left: 184px; right: 0;
837 border-left: 1px solid #ccc;
842 border-left: 1px solid #ccc;
846 .site-edit #content {
863 #slim_container_content {
865 background-color: #FFFFFF;
866 margin: $lineheight/2 auto;
869 -moz-border-radius: 25px;
870 border: 1px solid #e6e6e6;
874 margin: $lineheight/2;
884 margin: 30px $lineheight/2;
887 margin-right: $lineheight/4;
889 vertical-align: middle;
890 margin-bottom: $lineheight/4;
891 margin-right: $lineheight/4;
897 padding: $lineheight;
898 background: $offwhite;
900 margin-bottom: $lineheight/2;
907 margin-top: $lineheight/2;
912 /* Rules for small maps in content areas */
918 border: 1px solid #ccc;
919 margin-bottom: $lineheight;
923 .content_map #small_map {
926 margin-bottom: $lineheight;
929 /* Rules for the home page */
940 /* Rules for the edit page */
951 /* Rules for the changeset list shown by the history tab etc */
956 padding: $lineheight/2 0;
958 border-top: 1px solid #ccc;
960 border-bottom: 1px solid #ccc;
968 border-left: 1px solid #ccc;
969 padding-left: $lineheight/4;
970 margin-right: $lineheight/4;
974 #changeset_list_map_wrapper {
982 #changeset_list_map_wrapper.scrolled {
986 #changeset_list_map {
992 border: 1px solid #ccc;
995 #changeset_list_map_wrapper.scrolled #changeset_list_map {
999 /* Rules for the data browser */
1002 border-top: 1px solid #ccc;
1003 margin-top: $lineheight/2;
1004 padding-top: $lineheight/2;
1009 background-color: #ffe0cc;
1015 margin-bottom: $lineheight/4;
1017 p, ul, .bbox, .geo {
1018 display: inline-block;
1019 vertical-align: top;
1028 display: inline-block;
1029 vertical-align: top;
1037 padding: $lineheight/4 0;
1039 text-overflow: ellipsis;
1050 #browse_map .geolink {
1054 #browse_map .secondary-actions {
1055 margin-bottom: $lineheight/2;
1058 /* Rules for the trace list shown by the traces tab etc */
1061 font-size: $lineheight/2;
1078 .trace_identifiable {
1091 /* Rules for the user profile page */
1096 .userinformation-inner {
1111 .admin-user-info small {
1112 margin-bottom: $lineheight/2;
1114 margin-right: $lineheight;
1119 border-bottom: 1px solid #ccc;
1120 padding-bottom: $lineheight;
1123 margin-bottom: $lineheight/2;
1128 margin-top: $lineheight;
1132 .activity-details p {
1137 #friends-container .contact-activity ul {
1142 p#no_home_location {
1143 margin: $lineheight;
1146 margin-top: $lineheight/4;
1151 /* Rules for the user map */
1153 .content_map .leaflet-popup-content {
1154 margin: $lineheight/2;
1158 /* Rules for user popups on maps */
1164 margin-top: 0 0 0 60px;
1167 img.user_thumbnail {
1169 margin: 0 $lineheight/2 0 0;
1173 /* Rules for the user list */
1176 font-size: $lineheight/2;
1180 vertical-align: middle;
1189 #user_list_actions {
1191 margin-top: $lineheight/2;
1194 /* Rules for the diary list page */
1196 .diary_entry-list img.user_thumbnail {
1203 margin-top: $lineheight/2;
1204 padding-top: $lineheight;
1205 border-top: 1px solid #ccc;
1220 ul.secondary-actions { display: inline-block;}
1223 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1227 #content .post_heading {
1228 margin-bottom: $lineheight;
1231 margin-bottom: $lineheight/2;
1236 /* Rules for the diary entry page */
1243 border: 1px solid #ccc;
1245 margin-bottom: $lineheight;
1248 border-top: 1px solid #ccc;
1249 padding-top: $lineheight;
1250 margin-top: $lineheight/2;
1256 margin-top: $lineheight/2;
1257 border-top: 1px dashed #ccc;
1258 padding-top: $lineheight/2;
1260 margin-top: $lineheight;
1261 padding-top: $lineheight;
1262 border-top: 1px solid #ccc;
1265 margin-bottom: $lineheight/2;
1274 .diary_entry-view img.user_thumbnail {
1278 /* Rules for the login page */
1280 #login_openid_buttons {
1284 #login_openid_buttons li {
1286 padding: $lineheight/4 $lineheight/2;
1289 /* Rules for the account confirmation page */
1293 border: 1px solid #ccc;
1294 padding: $lineheight;
1295 margin-bottom: $lineheight;
1309 margin: $lineheight auto inherit auto;
1314 input[type=submit] {
1320 background: darken($grey, $hovercolor);
1325 margin-bottom: $lineheight;
1327 #contributorGuidance {
1328 background-color: $offwhite;
1330 -moz-border-radius: 4px;
1337 /* Rules for the account settings page */
1339 #accountForm .user_map {
1343 border: 1px solid #ccc;
1346 #accountForm .user_image {
1350 #accountForm #user_image {
1354 #accountForm ul.accountImage-options {
1367 display: inline !important;
1370 .content_map.settings_map {
1375 /* Rules for the oauth settings page */
1377 .oauth_clients .buttons .oauth-edit {
1378 border-radius: 2px 0 0 2px;
1381 .oauth_clients .buttons .oauth-delete {
1382 border-radius: 0 2px 2px 0;
1385 /* Rules for messages pages */
1389 border: 1px solid #ddd;
1391 input[type="submit"] {
1395 border-top: 1px solid #ccc;
1399 background: #f8f8ff;
1412 padding: $lineheight/4;
1423 border-right: 1px solid $keyline;
1427 .inbox-row .inbox-mark-read {
1432 margin-bottom: $lineheight;
1433 padding: $lineheight/4 0px 4px 0px;
1434 border-bottom: 1px solid #ccc;
1441 .info-line .user_thumbnail_tiny {
1442 vertical-align: middle;
1451 .inbox-row-unread .inbox-mark-unread {
1455 .message-read .message-buttons {
1456 margin-top: $lineheight;
1457 padding-top: $lineheight;
1458 border-top: 1px solid $keyline;
1461 .message-read .buttons .mark-unread-button {
1465 /* Rules for "flash" notice boxes shown at the top of the content area */
1468 padding: $lineheight;
1470 background-color: #ff7070;
1473 background-color: #ffe0cc;
1476 background-color: #CBEEA7;
1480 /* Rules for highlighting fields with rails validation errors */
1482 .field_with_errors {
1484 background-color: #ff7070;
1488 /* Rules for rails validation error boxes */
1492 border: 2px solid #ff7070;
1493 padding: 0 $lineheight/2;
1494 margin-bottom: $lineheight;
1495 background-color: #f0f0f0;
1498 margin: 0 -10px 10px -10px;
1499 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1502 background-color: #c00;
1510 padding: $lineheight/4;
1514 padding-left: $lineheight;
1523 /* Rules for forms */
1527 margin-bottom: $lineheight;
1529 label.standard-label {
1531 margin-bottom: $lineheight/4;
1532 font-size: $typeheight;
1536 label.standard-label.secondary {
1537 display: inline-block;
1538 font-weight: normal;
1541 font-weight: normal;
1548 margin-top: $lineheight;
1549 padding-top: $lineheight;
1550 border-top: 1px solid $keyline;
1553 margin-bottom: $lineheight/2;
1561 input[type="checkbox"],
1562 input[type="radio"] {
1568 #remember_me_openid {
1572 input[type="checkbox"],
1573 input[type="radio"] {
1578 input[type="email"],
1580 input[type="password"],
1582 border: 1px solid #ccc;
1591 height: 100% !important;
1594 /* Rules for user images */
1599 border: 1px solid #ccc;
1600 margin-bottom: $lineheight;
1602 margin-right: $lineheight;
1605 img.user_thumbnail {
1608 border: 1px solid #ccc;
1609 margin-right: $lineheight;
1612 img.user_thumbnail_tiny {
1615 border: 1px solid #ccc;
1618 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1621 white-space: nowrap;
1624 /* Rules for geo microformats */
1627 border-bottom: none;
1630 /* Rules for RSS buttons */
1637 /* General styles for action lists / subnavs / pager navs */
1639 ul.secondary-actions {
1644 display: inline-block;
1651 border-left: 1px solid #ccc;
1652 padding-left: $lineheight/4;
1653 margin-right: $lineheight/4;
1664 /* Utility for managing inner content areas */
1666 .inner22 { padding: $lineheight;}
1668 .inner12 { padding: $lineheight/2 $lineheight;}
1670 .inner11 { padding: $lineheight/2;}
1672 .inner02 { padding: 0 $lineheight;}
1674 /* Utility for general button styles */
1676 input[type="button"],
1677 input[type="submit"],
1678 input[type="reset"],
1682 display: inline-block;
1684 padding: $lineheight/4 $lineheight/2;
1686 margin: 0 0 $lineheight/2 0;
1691 -moz-border-radius: 2px;
1693 background: darken($blue, $hovercolor);
1694 text-decoration: none;
1697 background: $lightblue;
1699 background: darken($lightblue, $hovercolor);
1703 background: $lightblue;
1712 input[type="submit"],
1713 input[type="button"],
1714 input[type="reset"],
1716 box-sizing: border-box;
1722 border-right:1px solid white;
1725 .button:first-child {
1726 border-radius:2px 0 0 2px;
1729 .button:last-child {
1730 border-radius:0 2px 2px 0;
1731 border-right-width: 0;
1735 *[value="Hide"] + input:last-child,
1736 *[value="Hide"] + .button:last-child {
1738 border-right-width: 0;
1740 /* if a 3-button set has a hidden middle button */
1741 *[value="Hide"] + input:nth-child(3),
1742 *[value="Hide"] + .button:nth-child(3) {
1743 border-radius:0 2px 2px 0;
1744 border-right-width: 0;
1746 /* if a 3-button set starts with a hidden button */
1747 *[value="Hide"] + input:nth-child(2):not(:last-child),
1748 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1749 border-radius:2px 0 0 2px;
1750 border-right-width: 1px solid white;
1754 /* Rules for doing distinct colour of alternate table rows */
1758 background: $offwhite;
1766 /* Rules for OpenID logo */
1769 vertical-align: text-bottom;
1773 /* Rules for rich text */
1778 padding-bottom: $lineheight/2;
1779 border-bottom: 1px dashed #cccccc;
1780 margin-bottom: $lineheight/2;
1792 font-size: $typeheight;
1797 background: #e8e8e8;
1803 background: #e8e8e8;
1812 padding: $lineheight;
1813 background-color: $offwhite;
1820 border-left: $lineheight solid $offwhite;
1821 padding-left: $lineheight;
1828 padding-left: $lineheight;
1829 margin-bottom: $lineheight;
1830 margin-left: $lineheight;
1838 list-style: decimal;
1842 .diary_post .richtext {
1843 margin-top: $lineheight;
1846 .comments .richtext {
1851 /* Rules for rich text editors */
1853 .richtext_container {
1854 margin-bottom: $lineheight;
1858 display: inline-block;
1859 vertical-align: top;
1862 display: inline-block;
1863 padding: $lineheight;
1864 background-color: $offwhite;
1868 background-image: image-url("loading.gif");
1869 background-repeat: no-repeat;
1870 background-position: center;
1880 display: inline-block;
1881 vertical-align: top;
1883 background-color: #f8f8ff;
1884 padding: $lineheight/2;
1892 border-bottom: 1px solid #ccc;
1893 margin-bottom: $lineheight/4;
1894 padding-bottom: $lineheight/4;
1897 li h4, li span, li p {
1898 display: inline-block;
1899 vertical-align: top;
1910 margin-left: $lineheight/2;
1911 margin-bottom: $lineheight/4;
1912 white-space: nowrap;
1917 /* Rules for the user notes list */
1921 background-color: #eeeeee;
1933 /* Rules for the notes interface */
1935 .leaflet-popup-content .note {
1936 padding-top: $lineheight/2;
1939 .leaflet-popup-content .note {
1941 margin-bottom: $lineheight/2;
1945 margin-top: $lineheight/2;
1951 left: $lineheight/4;
1954 background: image-url("sprite.png") 0 -45px no-repeat;
1959 padding-left: $lineheight;
1962 .permalink:hover span {
1968 background-color: #ffe0cc;
1970 margin-bottom: $lineheight/2;
1989 margin-top: $lineheight/4;
1995 * Rules for the iD editor
2002 /* Rules for rotating sidebar ads */
2008 border-bottom: 1px solid #ccc;