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 {
1300 display: inline-block;
1312 display: inline !important;
1315 .content_map.settings_map {
1320 /* Rules for message in/out box page */
1324 border: 1px solid #ddd;
1327 border-top: 1px solid #ccc;
1331 background: #f8f8ff;
1344 padding: $lineheight/4;
1348 .inbox-row .inbox-mark-read {
1353 margin-bottom: $lineheight;
1354 padding: $lineheight/4 0px 4px 0px;
1355 border-bottom: 1px solid #ccc;
1362 .info-line .user_thumbnail_tiny {
1363 vertical-align: middle;
1366 .inbox-row-unread .inbox-mark-unread {
1370 /* Rules for "flash" notice boxes shown at the top of the content area */
1373 padding: $lineheight;
1375 background-color: #ff7070;
1378 background-color: #ffe0cc;
1381 background-color: #CBEEA7;
1385 /* Rules for highlighting fields with rails validation errors */
1387 .field_with_errors {
1389 background-color: #ff7070;
1393 /* Rules for rails validation error boxes */
1397 border: 2px solid #ff7070;
1398 padding: $lineheight/2;
1399 margin-bottom: $lineheight;
1400 background-color: #f0f0f0;
1403 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1406 background-color: #c00;
1414 padding: $lineheight/4;
1424 /* Rules for forms */
1428 margin-bottom: $lineheight;
1433 margin-right: $lineheight/2;
1434 font-size: $typeheight;
1439 margin-bottom: $lineheight/2;
1441 input[name=remember_me] {
1446 #remember_me_openid {
1451 input[type="email"],
1453 input[type="password"],
1455 border: 1px solid #ccc;
1458 /* Rules for user images */
1463 border: 1px solid #ccc;
1464 margin-bottom: $lineheight;
1466 margin-right: $lineheight;
1469 img.user_thumbnail {
1472 border: 1px solid #ccc;
1473 margin-right: $lineheight;
1476 img.user_thumbnail_tiny {
1479 border: 1px solid #ccc;
1482 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1485 white-space: nowrap;
1488 /* Rules for geo microformats */
1491 border-bottom: none;
1494 /* Rules for RSS buttons */
1501 /* General styles for action lists / subnavs / pager navs */
1503 ul.secondary-actions {
1508 display: inline-block;
1515 border-left: 1px solid #ccc;
1516 padding-left: $lineheight/4;
1517 margin-right: $lineheight/4;
1528 /* Utility for managing inner content areas */
1530 .inner22 { padding: $lineheight;}
1532 .inner12 { padding: $lineheight/2 $lineheight;}
1534 .inner02 { padding: 0 $lineheight;}
1536 /* Utility for general button styles */
1538 input[type="button"],
1539 input[type="submit"],
1540 input[type="reset"],
1545 padding: $lineheight/4;
1547 margin-bottom: $lineheight/2;
1552 -moz-border-radius: 2px;
1554 background: darken($blue, $hovercolor);
1555 text-decoration: none;
1563 background-color: #cbeea7;
1565 background-color: #9ed485;
1569 /* Rules for doing distinct colour of alternate table rows */
1573 background: $offwhite;
1581 /* Rules for OpenID logo */
1584 vertical-align: text-bottom;
1588 /* Rules for rich text */
1592 padding-bottom: $lineheight/2;
1593 border-bottom: 1px dashed #cccccc;
1594 margin-bottom: $lineheight/2;
1606 font-size: $typeheight;
1611 background: #e8e8e8;
1617 background: #e8e8e8;
1626 padding: $lineheight;
1627 background-color: $offwhite;
1634 border-left: $lineheight solid $offwhite;
1635 padding-left: $lineheight;
1642 padding-left: $lineheight;
1643 margin-bottom: $lineheight;
1644 margin-left: $lineheight;
1652 list-style: decimal;
1656 .diary_post .richtext {
1657 margin-top: $lineheight;
1660 .comments .richtext {
1665 /* Rules for rich text editors */
1667 .richtext_container {
1669 display: inline-block;
1670 vertical-align: top;
1673 display: inline-block;
1674 padding: $lineheight;
1675 background-color: $offwhite;
1679 background-image: image-url("loading.gif");
1680 background-repeat: no-repeat;
1681 background-position: center;
1691 display: inline-block;
1692 vertical-align: top;
1694 background-color: #f8f8ff;
1695 padding: $lineheight/2;
1704 border-bottom: 1px solid #ccc;
1705 margin-bottom: $lineheight/4;
1706 padding-bottom: $lineheight/4;
1709 li h4, li span, li p {
1710 display: inline-block;
1711 vertical-align: top;
1722 margin-left: $lineheight/2;
1723 margin-bottom: $lineheight/4;
1724 white-space: nowrap;
1727 input.richtext_doedit,
1728 input.richtext_dopreview {
1729 margin-right: $lineheight/2;
1733 .buttons input[type="submit"] {
1734 display: inline-block;
1739 .buttons input:first-child {
1740 border-radius:2px 0 0 2px;
1743 .buttons input:last-child {
1744 border-radius:0 2px 2px 0;
1748 /* Rules for the user notes list */
1752 background-color: #eeeeee;
1764 /* Rules for the notes interface */
1767 padding-top: $lineheight/2;
1772 margin-bottom: $lineheight/2;
1776 margin-top: $lineheight/2;
1782 left: $lineheight/4;
1785 background: image-url("sprite.png") 0 -45px no-repeat;
1790 padding-left: $lineheight;
1793 .permalink:hover span {
1799 background-color: #ffe0cc;
1801 margin-bottom: $lineheight/2;
1820 margin-top: $lineheight/4;
1826 * Rules for the iD editor
1833 /* Rules for rotating sidebar ads */
1839 border-bottom: 1px solid #ccc;
1851 padding: $lineheight/2;