10 /* Styles common to large and small screens */
12 /* Minimal CSS reset */
14 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p {
21 fieldset,img { border: 0; }
23 legend { color: #000; }
25 sup { vertical-align: text-top; }
27 sub { vertical-align: text-bottom; }
30 border-collapse: collapse;
34 li { list-style: none; }
39 body { font: $typeheight/$lineheight "Helvetica Neue",Arial,sans-serif; }
42 border-bottom: .1em dotted;
46 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
58 /* Default rules for the body of every page */
61 -moz-box-sizing: border-box;
62 -webkit-box-sizing: border-box;
63 box-sizing: border-box;
67 font-family: 'Helvetica Neue',Arial,sans-serif;
68 font-size: $typeheight;
71 background-color: #fff;
78 background-color: #f0f0f0;
82 margin-top: $lineheight/2;
83 margin-bottom: $lineheight;
98 margin-top: $lineheight/2;
99 margin-bottom: $lineheight;
103 font-size: $typeheight;
104 margin-top: $lineheight/2;
105 margin-bottom: $lineheight/2;
111 margin-bottom: $lineheight;
134 margin-bottom: $lineheight/2;
138 vertical-align: middle;
139 margin-right: $lineheight/4;
142 /* Rules for links */
146 text-decoration: none;
148 text-decoration: underline;
152 /* Rules for horizontal lines */
156 background-color: #ccc;
161 /* General styles for tables */
165 margin-bottom: $lineheight;
168 padding: $lineheight/4;
169 line-height: $lineheight;
176 vertical-align: middle;
180 /* Rules for the whole left sidebar, including the logo */
189 border-right: 1px solid #ccc;
192 /* Rules for the OpenStreetMap logo in the top left corner */
198 padding: $lineheight $lineheight/4;
211 font-size: $lineheight/2;
216 /* Rules for the site name */
222 /* Rules for the introductory text displayed in the left sidebar to new users */
225 padding: $lineheight/4 $lineheight/2;
227 margin: $lineheight/4 0;
230 .sidebar-copy.intro {
231 border-top: 1px solid #ccc;
235 * Rules for alert boxes shown in the left sidebar when important
236 * information needs to be conveyed such as when the site is
237 * undergoing maintenance.
241 padding: $lineheight/4;
242 border-top: 1px solid #ccc;
249 margin: $lineheight/4;
254 * Rules for notice boxes shown in the left sidebar when important, but
255 * non-critical information needs to be conveyed such as notices about
260 padding: $lineheight/4;
261 border-top: 1px solid #ccc;
267 margin: $lineheight/4;
271 /* Rules for the menu displayed in the left sidebar */
276 padding: $lineheight/4 $lineheight/2;
279 list-style-type: none;
280 border-bottom: 1px solid #ccc;
281 border-top: 1px solid #ccc;
283 margin: $lineheight/2 0px;
292 list-style-type: none;
298 padding: $lineheight/4 0 $lineheight/4 0;
308 /* Rules for SOTM advert */
312 margin: $lineheight/2;
322 * Rules for "optional boxes" which appear in the left sidebar on
323 * certain pages. Current users are the seach box on the main page
324 * and the tag cloud on the traces pages.
329 padding: $lineheight/4 $lineheight/2;
330 margin: $lineheight/4 0;
334 /* Rules for the search box */
346 font-size: $typeheight;
349 padding: 2px 0px 2px $lineheight/4;
350 box-shadow: inset #DDD 0px 1px 3px;
353 input[type="text"]:focus {
355 border: 1px solid #000;
358 input[type="submit"] {
364 text-indent: -1000px;
366 background: image-url("sprite.png") 0 0 no-repeat;
369 right: $lineheight/4;
375 margin: $lineheight/4 0 0 0;
378 /* Utility for de-emphasizing content */
387 /* Rules for donation request box */
392 padding: $lineheight/4;
393 border: 1px solid #AED1A0;
395 font-size: $typeheight;
400 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
404 text-decoration: none;
409 background: image-url("sprite.png") 0 -29px no-repeat;
413 /* Rules for Creative Commons logo button */
416 margin: $lineheight/2 0;
420 /* Rules for tabbed navigation bar */
426 border-bottom: 1px solid #ccc;
432 .site-index #top-bar,
433 .site-export #top-bar {
446 a, a:link, a:visited {
449 padding: 3px $lineheight/2;
450 text-decoration: none;
454 -webkit-transition: color 200ms ease-in;
455 -moz-transition: color 200ms ease-in;
456 -o-transition: color 200ms ease-in;
457 transition: color 200ms ease-in;
461 .site-index #tabnav a#viewanchor,
462 .site-edit #tabnav a#editanchor,
463 .changeset-list #tabnav a#historyanchor,
464 .site-export #tabnav a#exportanchor {
465 border-bottom: 1px solid #aaa;
470 #tabnav a:link:hover, #tabnav a:visited:hover {
471 text-decoration: underline;
474 #tabnav a:link.disabled,
475 #tabnav a:visited.disabled,
476 #tabnav a:link:hover.disabled,
477 #tabnav a:visited:hover.disabled {
481 text-decoration: none;
485 /* Utility for styling notification numbers */
488 padding: 2px $lineheight/4;
496 /* Rules for greeting bar in the top right corner */
501 margin-right: $lineheight/4;
504 .greeting-bar-unread {
508 /* Rules for the message shown in place of the map when javascript is disabled */
517 /* Rules for Leaflet maps */
519 .leaflet-control-attribution {
523 text-decoration: none;
526 ul.secondary-actions {
528 margin-right: $lineheight/4;
536 .site-index .leaflet-top,
537 .site-export .leaflet-top {
538 top: $lineheight/2 !important;
540 margin-top: 0px !important;
544 .site-index #map .olControlScaleLine,
545 .site-export #map .olControlScaleLine {
546 left: $lineheight/2 !important;
549 .leaflet-popup-scrolled {
550 padding-right: $lineheight;
551 border-bottom: 0px !important;
552 border-top: 0px !important;
555 .leaflet-popup-content-wrapper {
556 border-radius: 4px !important;
557 -webkit-border-radius: 4px !important;
560 /* Rules for edit menu */
563 padding: 0 $lineheight/4;
565 display: inline-block;
567 text-decoration: none !important;
575 background-color: #ffffff;
576 border: 1px solid #cccccc;
582 padding: 2px $lineheight/4;
583 border-top: 1px solid #eee;
588 /* Rules for attribution text under the main map shown on printouts */
594 .attribution_license,
595 .attribution_project {
599 .attribution_notice {
603 /* Rules for the popout map sidebar */
612 border-right: 1px solid #ccc;
616 padding: $lineheight/2 $lineheight;
618 background: $offwhite;
619 border-bottom: 1px solid #ccc;
627 margin-bottom: $lineheight/4;
649 padding: 0 $lineheight $lineheight/2 $lineheight;
650 margin-top: $lineheight/2;
652 border-bottom: 1px solid #ddd;
656 /* Rules for the map key which appears in the popout sidebar */
659 padding: $lineheight;
660 .mapkey-table-key img {
666 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
670 /* Rules for search results which appear in the popout sidebar */
673 margin-top: $lineheight/4;
674 margin-bottom: $lineheight/4;
677 .search_results_entry {
686 .search_results_entry .search_searching {
688 margin: $lineheight auto;
693 ul.results-list li { border-bottom: 1px solid #ccc; }
695 .search_results_error {
699 /* Rules for data browser information which appears in the popout sidebar */
703 .browse_show_list.button {
728 /* Rules for export information which appears in the popout sidebar */
734 .export_area_inputs {
735 margin-bottom: $lineheight/2;
739 margin: $lineheight/4;
742 .export_details input[type="text"]#export_html_text {
746 #sidebar #marker_inputs li:last-child {
747 margin-bottom: $lineheight/2;
763 padding: $lineheight/2 $lineheight;
771 /* Rules for the main content area */
774 padding: $lineheight;
779 .site-index #content,
780 .site-export #content {
783 top: 30px; bottom: 0;
784 left: 184px; right: 0;
785 border-left: 1px solid #ccc;
790 border-left: 1px solid #ccc;
794 .site-edit #content {
811 #slim_container_content {
813 background-color: #FFFFFF;
814 margin: $lineheight/2 auto;
817 -moz-border-radius: 25px;
818 border: 1px solid #e6e6e6;
822 margin: $lineheight/2;
832 margin: 30px $lineheight/2;
835 margin-right: $lineheight/4;
837 vertical-align: middle;
838 margin-bottom: $lineheight/4;
839 margin-right: $lineheight/4;
845 padding: $lineheight;
846 background: $offwhite;
848 margin-bottom: $lineheight/2;
855 margin-top: $lineheight/2;
860 /* Rules for small maps in content areas */
866 border: 1px solid #ccc;
867 margin-bottom: $lineheight;
871 .content_map #small_map {
874 margin-bottom: $lineheight;
877 /* Rules for the home page */
888 /* Rules for the edit page */
899 /* Rules for the changeset list shown by the history tab etc */
904 padding: $lineheight/2 0;
906 border-top: 1px solid #ccc;
908 border-bottom: 1px solid #ccc;
916 border-left: 1px solid #ccc;
917 padding-left: $lineheight/4;
918 margin-right: $lineheight/4;
922 #changeset_list_map_wrapper {
930 #changeset_list_map_wrapper.scrolled {
934 #changeset_list_map {
940 border: 1px solid #ccc;
943 #changeset_list_map_wrapper.scrolled #changeset_list_map {
947 /* Rules for the data browser */
950 border-top: 1px solid #ccc;
951 margin-top: $lineheight/2;
952 padding-top: $lineheight/2;
957 background-color: #ffe0cc;
963 margin-bottom: $lineheight/4;
966 display: inline-block;
976 display: inline-block;
985 padding: $lineheight/4 0;
987 text-overflow: ellipsis;
998 #browse_map .geolink {
1002 #browse_map .secondary-actions {
1003 margin-bottom: $lineheight/2;
1006 /* Rules for the trace list shown by the traces tab etc */
1009 font-size: $lineheight/2;
1026 .trace_identifiable {
1039 /* Rules for the user profile page */
1043 .userinformation-inner {
1058 .admin-user-info small {
1059 margin-bottom: $lineheight/2;
1061 margin-right: $lineheight;
1066 border-bottom: 1px solid #ccc;
1067 padding-bottom: $lineheight;
1070 margin-bottom: $lineheight/2;
1075 margin-top: $lineheight;
1079 .activity-details p {
1084 #friends-container .contact-activity ul {
1089 p#no_home_location {
1090 margin: $lineheight;
1093 margin-top: $lineheight/4;
1098 /* Rules for the user map */
1100 .content_map .leaflet-popup-content {
1101 margin: $lineheight/2;
1105 /* Rules for user popups on maps */
1112 padding-bottom: 5px;
1119 img.user_thumbnail {
1121 margin: 0 $lineheight/2 0 0;
1125 /* Rules for the user list */
1128 font-size: $lineheight/2;
1132 vertical-align: middle;
1141 #user_list_actions {
1143 margin-top: $lineheight/2;
1146 /* Rules for the diary list page */
1148 .diary_entry-list img.user_thumbnail {
1155 margin-top: $lineheight/2;
1156 padding-top: $lineheight;
1157 border-top: 1px solid #ccc;
1172 ul.secondary-actions { display: inline-block;}
1175 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1179 #content .post_heading {
1180 margin-bottom: $lineheight;
1183 margin-bottom: $lineheight/2;
1188 /* Rules for the diary entry page */
1195 border: 1px solid #ccc;
1197 margin-bottom: $lineheight;
1200 border-top: 1px solid #ccc;
1201 padding-top: $lineheight;
1202 margin-top: $lineheight/2;
1208 margin-top: $lineheight/2;
1209 border-top: 1px dashed #ccc;
1210 padding-top: $lineheight/2;
1212 margin-top: $lineheight;
1213 padding-top: $lineheight;
1214 border-top: 1px solid #ccc;
1217 margin-bottom: $lineheight/2;
1226 .diary_entry-view img.user_thumbnail {
1230 /* Rules for the login page */
1232 #login_openid_buttons {
1236 #login_openid_buttons li {
1238 padding: $lineheight/4 $lineheight/2;
1241 /* Rules for the account confirmation page */
1245 border: 1px solid #ccc;
1246 padding: $lineheight;
1247 margin-bottom: $lineheight;
1261 margin: $lineheight auto inherit auto;
1266 input[type=submit] {
1272 background: darken($grey, $hovercolor);
1277 margin-bottom: $lineheight;
1279 #contributorGuidance {
1280 background-color: $offwhite;
1282 -moz-border-radius: 4px;
1289 /* Rules for the account settings page */
1291 #accountForm .user_map {
1295 border: 1px solid #ccc;
1298 .accountImage-options p {
1311 display: inline !important;
1314 .content_map.settings_map {
1319 /* Rules for message in/out box page */
1323 border: 1px solid #ddd;
1326 border-top: 1px solid #ccc;
1330 background: #f8f8ff;
1343 padding: $lineheight/4;
1347 .inbox-row .inbox-mark-read {
1352 margin-bottom: $lineheight;
1353 padding: $lineheight/4 0px 4px 0px;
1354 border-bottom: 1px solid #ccc;
1361 .info-line .user_thumbnail_tiny {
1362 vertical-align: middle;
1365 .inbox-row-unread .inbox-mark-unread {
1369 /* Rules for "flash" notice boxes shown at the top of the content area */
1372 padding: $lineheight;
1374 background-color: #ff7070;
1377 background-color: #ffe0cc;
1380 background-color: #CBEEA7;
1384 /* Rules for highlighting fields with rails validation errors */
1386 .field_with_errors {
1388 background-color: #ff7070;
1392 /* Rules for rails validation error boxes */
1396 border: 2px solid #ff7070;
1397 padding: $lineheight/2;
1398 margin-bottom: $lineheight;
1399 background-color: #f0f0f0;
1402 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1405 background-color: #c00;
1413 padding: $lineheight/4;
1423 /* Rules for forms */
1427 margin-bottom: $lineheight;
1432 margin-right: $lineheight/2;
1433 font-size: $typeheight;
1438 margin-bottom: $lineheight/2;
1440 input[name=remember_me] {
1445 #remember_me_openid {
1450 input[type="email"],
1452 input[type="password"],
1454 border: 1px solid #ccc;
1457 /* Rules for user images */
1462 border: 1px solid #ccc;
1463 margin-bottom: $lineheight;
1465 margin-right: $lineheight;
1468 img.user_thumbnail {
1471 border: 1px solid #ccc;
1472 margin-right: $lineheight;
1475 img.user_thumbnail_tiny {
1478 border: 1px solid #ccc;
1481 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1484 white-space: nowrap;
1487 /* Rules for geo microformats */
1490 border-bottom: none;
1493 /* Rules for RSS buttons */
1500 /* General styles for action lists / subnavs / pager navs */
1502 ul.secondary-actions {
1507 display: inline-block;
1514 border-left: 1px solid #ccc;
1515 padding-left: $lineheight/4;
1516 margin-right: $lineheight/4;
1527 /* Utility for managing inner content areas */
1529 .inner22 { padding: $lineheight;}
1531 .inner12 { padding: $lineheight/2 $lineheight;}
1533 .inner02 { padding: 0 $lineheight;}
1535 /* Utility for general button styles */
1537 input[type="button"],
1538 input[type="submit"],
1539 input[type="reset"],
1544 padding: $lineheight/4;
1546 margin-bottom: $lineheight/2;
1551 -moz-border-radius: 2px;
1553 background: darken($blue, $hovercolor);
1554 text-decoration: none;
1562 background-color: #cbeea7;
1564 background-color: #9ed485;
1568 /* Rules for doing distinct colour of alternate table rows */
1572 background: $offwhite;
1580 /* Rules for OpenID logo */
1583 vertical-align: text-bottom;
1587 /* Rules for rich text */
1591 padding-bottom: $lineheight/2;
1592 border-bottom: 1px dashed #cccccc;
1593 margin-bottom: $lineheight/2;
1605 font-size: $typeheight;
1610 background: #e8e8e8;
1616 background: #e8e8e8;
1625 padding: $lineheight;
1626 background-color: $offwhite;
1633 border-left: $lineheight solid $offwhite;
1634 padding-left: $lineheight;
1641 padding-left: $lineheight;
1642 margin-bottom: $lineheight;
1643 margin-left: $lineheight;
1651 list-style: decimal;
1655 .diary_post .richtext {
1656 margin-top: $lineheight;
1659 .comments .richtext {
1664 /* Rules for rich text editors */
1666 .richtext_container {
1668 display: inline-block;
1669 vertical-align: top;
1672 display: inline-block;
1673 padding: $lineheight;
1674 background-color: $offwhite;
1678 background-image: image-url("loading.gif");
1679 background-repeat: no-repeat;
1680 background-position: center;
1690 display: inline-block;
1691 vertical-align: top;
1693 background-color: #f8f8ff;
1694 padding: $lineheight/2;
1703 border-bottom: 1px solid #ccc;
1704 margin-bottom: $lineheight/4;
1705 padding-bottom: $lineheight/4;
1708 li h4, li span, li p {
1709 display: inline-block;
1710 vertical-align: top;
1721 margin-left: $lineheight/2;
1722 margin-bottom: $lineheight/4;
1723 white-space: nowrap;
1726 input.richtext_doedit,
1727 input.richtext_dopreview {
1728 margin-right: $lineheight/2;
1732 .buttons input[type="submit"] {
1733 display: inline-block;
1738 .buttons input:first-child {
1739 border-radius:2px 0 0 2px;
1742 .buttons input:last-child {
1743 border-radius:0 2px 2px 0;
1747 /* Rules for the user notes list */
1751 background-color: #eeeeee;
1763 /* Rules for the notes interface */
1766 padding-top: $lineheight/2;
1771 margin-bottom: $lineheight/2;
1775 margin-top: $lineheight/2;
1781 left: $lineheight/4;
1784 background: image-url("sprite.png") 0 -45px no-repeat;
1789 padding-left: $lineheight;
1792 .permalink:hover span {
1798 background-color: #ffe0cc;
1800 margin-bottom: $lineheight/2;
1819 margin-top: $lineheight/4;
1825 * Rules for the iD editor
1832 /* Rules for rotating sidebar ads */
1838 border-bottom: 1px solid #ccc;
1850 padding: $lineheight/2;