1 /* Styles common to large and small screens */
3 /* Minimal CSS reset */
5 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p {
12 fieldset,img { border: 0; }
14 legend { color: #000; }
16 sup { vertical-align: text-top; }
18 sub { vertical-align: text-bottom; }
21 border-collapse: collapse;
25 li { list-style: none; }
30 body { font: 14px/20px "Helvetica Neue",Arial,sans-serif; }
33 border-bottom: .1em dotted;
37 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
49 /* Default rules for the body of every page */
52 font-family: 'Helvetica Neue',Arial,sans-serif;
56 background-color: #fff;
63 background-color: #f0f0f0;
123 vertical-align: middle;
127 /* Rules for links */
131 text-decoration: none;
133 text-decoration: underline;
137 /* Rules for horizontal lines */
141 background-color: #ccc;
146 /* General styles for tables */
161 vertical-align: middle;
165 /* Rules for the whole left sidebar, including the logo */
174 border-right: 1px solid #ccc;
177 /* Rules for the OpenStreetMap logo in the top left corner */
201 /* Rules for the site name */
207 /* Rules for the introductory text displayed in the left sidebar to new users */
217 .sidebar-copy.intro {
219 border-top: 1px solid #ccc;
223 * Rules for alert boxes shown in the left sidebar when important
224 * information needs to be conveyed such as when the site is
225 * undergoing maintenance.
230 border-top: 1px solid #ccc;
242 * Rules for notice boxes shown in the left sidebar when important, but
243 * non-critical information needs to be conveyed such as notices about
249 border-top: 1px solid #ccc;
259 /* Rules for the menu displayed in the left sidebar */
267 list-style-type: none;
268 border-bottom: 1px solid #ccc;
269 border-top: 1px solid #ccc;
282 list-style-type: none;
288 padding: 5px 0 5px 0;
293 .left_menu li:last-child h4 {
297 /* Rules for SOTM advert */
312 * Rules for "optional boxes" which appear in the left sidebar on
313 * certain pages. Current users are the seach box on the main page
314 * and the tag cloud on the traces pages.
324 /* Rules for the search box */
334 #search_field input[type="text"] {
340 padding: 2px 0px 2px 5px;
341 box-shadow: inset #DDD 0px 1px 3px;
342 box-sizing: border-box;
343 -webkit-box-sizing: border-box;
344 -moz-box-sizing: border-box;
345 -ms-box-sizing: border-box;
348 #search_field input[type="text"]:focus {
350 border: 1px solid #000;
353 #search_field input[type="submit"] {
359 text-indent: -1000px;
361 background: image-url("sprite.png") 0 0 no-repeat;
372 /* Utility for de-emphasizing content */
381 /* Rules for donation request box */
388 border: 1px solid #AED1A0;
394 -moz-border-radius: 2px;
396 margin: 10px 10px 0px 10px;
401 text-decoration: none;
409 .donate .donate-icon {
413 background: image-url("sprite.png") 0 -30px no-repeat;
419 /* Rules for Creative Commons logo button */
426 /* Rules for tabbed navigation bar */
432 border-bottom: 1px solid #ccc;
438 .site-index #top-bar,
439 .site-export #top-bar {
455 #tabnav a, #tabnav a:link, #tabnav a:visited {
460 text-decoration: none;
464 -webkit-transition: color 200ms ease-in;
465 -moz-transition: color 200ms ease-in;
466 -o-transition: color 200ms ease-in;
467 transition: color 200ms ease-in;
470 .site-index #tabnav a#viewanchor,
471 .site-edit #tabnav a#editanchor,
472 .changeset-list #tabnav a#historyanchor,
473 .site-export #tabnav a#exportanchor {
474 border-bottom: 1px solid #aaa;
479 #tabnav a:link:hover, #tabnav a:visited:hover {
480 text-decoration: underline;
483 #tabnav a:link.disabled,
484 #tabnav a:visited.disabled,
485 #tabnav a:link:hover.disabled,
486 #tabnav a:visited:hover.disabled {
491 #tabnav a:link.disabled:hover,
492 #tabnav a:visited.disabled:hover,
493 #tabnav a:link:hover.disabled:hover,
494 #tabnav a:visited:hover.disabled:hover {
495 text-decoration: none;
498 /* Utility for styling notification numbers */
509 /* Rules for greeting bar in the top right corner */
517 .greeting-bar-unread {
521 /* Rules for the message shown in place of the map when javascript is disabled */
530 /* Rules for Leaflet maps */
532 .leaflet-control-attribution {
536 text-decoration: none;
539 ul.secondary-actions {
549 .site-index .leaflet-top,
550 .site-export .leaflet-top {
551 top: 10px !important;
553 margin-top: 0px !important;
557 .site-index #map .olControlScaleLine,
558 .site-export #map .olControlScaleLine {
559 left: 10px !important;
562 .leaflet-popup-scrolled {
564 border-bottom: 0px !important;
565 border-top: 0px !important;
568 .leaflet-popup-content-wrapper {
569 border-radius: 4px !important;
570 -webkit-border-radius: 4px !important;
573 /* Rules for edit menu */
578 display: inline-block;
580 text-decoration: none !important;
588 background-color: #ffffff;
589 border: 1px solid #cccccc;
599 border-top: 1px solid #eee;
603 /* Rules for attribution text under the main map shown on printouts */
609 .attribution_license,
610 .attribution_project {
614 .attribution_notice {
618 /* Rules for the popout map sidebar */
627 border-right: 1px solid #ccc;
634 border-bottom: 1px solid #ccc;
664 padding: 0 20px 10px 20px;
667 border-bottom: 1px solid #ddd;
671 /* Rules for the map key which appears in the popout sidebar */
677 #mapkey .mapkey-table-key img {
684 padding: 0 5px 5px 5px;
687 /* Rules for search results which appear in the popout sidebar */
694 .search_results_entry {
703 .search_results_entry .search_searching {
710 ul.results-list li { border-bottom: 1px solid #ccc; }
712 .search_results_error {
716 /* Rules for data browser information which appears in the popout sidebar */
720 .browse_show_list.button {
745 /* Rules for export information which appears in the popout sidebar */
751 .export_area_inputs {
759 .export_details input[type="text"]#export_html_text {
763 #sidebar #marker_inputs li:last-child {
778 /* Rules for the main content area */
786 .site-index #content,
787 .site-export #content {
790 top: 30px; bottom: 0;
791 left: 185px; right: 0;
792 border-left: 1px solid #ccc;
797 border-left: 1px solid #ccc;
801 .site-edit #content {
818 #slim_container_content {
820 background-color: #FFFFFF;
824 -moz-border-radius: 25px;
825 border: 1px solid #e6e6e6;
846 vertical-align: middle;
868 /* Rules for small maps in content areas */
874 border: 1px solid #ccc;
879 .content_map #small_map {
885 /* Rules for the home page */
896 /* Rules for the edit page */
907 /* Rules for the changeset list shown by the history tab etc */
914 border-top: 1px solid #ccc;
916 border-bottom: 1px solid #ccc;
924 border-left: 1px solid #ccc;
930 #changeset_list_map {
938 border: 1px solid #ccc;
941 /* Rules for the data browser */
944 border-top: 1px solid #ccc;
951 background-color: #ffe0cc;
959 display: inline-block;
969 display: inline-block;
980 text-overflow: ellipsis;
991 #browse_map .geolink {
995 #browse_map .secondary-actions {
999 /* Rules for the trace list shown by the traces tab etc */
1007 #trace_list .trace_summary {
1012 #trace_list .trace_pending {
1016 #trace_list .trace_public {
1020 #trace_list .trace_identifiable {
1024 #trace_list .trace_trackable {
1028 #trace_list .trace_private {
1032 /* Rules for the user profile page */
1036 .userinformation-inner {
1051 .admin-user-info small {
1052 margin-bottom: 10px;
1059 border-bottom: 1px solid #ccc;
1060 padding-bottom: 20px;
1063 margin-bottom: 10px;
1072 .activity-details p {
1077 #friends-container .contact-activity ul {
1081 .user-view p#no_home_location {
1085 .user-view .user_thumbnail {
1090 /* Rules for the user map */
1092 .content_map .leaflet-popup-content {
1097 /* Rules for user popups on maps */
1105 padding-bottom: 3px;
1112 .user_popup img.user_thumbnail {
1117 /* Rules for user popups on maps */
1125 /* Rules for the user list */
1133 vertical-align: middle;
1141 #user_list_actions {
1146 /* Rules for the diary list page */
1148 .diary_entry-list img.user_thumbnail {
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: 20px;
1183 margin-bottom: 10px;
1188 /* Rules for the diary entry page */
1195 border: 1px solid #ccc;
1197 margin-bottom: 20px;
1200 border-top: 1px solid #ccc;
1209 border-top: 1px dashed #ccc;
1214 border-top: 1px solid #ccc;
1217 margin-bottom: 10px;
1226 .diary_entry-view img.user_thumbnail {
1230 /* Rules for the login page */
1232 #login_openid_buttons li {
1237 /* Rules for the account confirmation page */
1239 div#contributorTerms {
1240 border: 1px solid #ccc;
1242 margin-bottom: 20px;
1247 div#contributorTerms p#last {
1251 div#contributorTerms ol {
1255 div#contributorTerms img {
1257 margin: 20px auto inherit auto;
1260 form#termsForm div#buttons {
1264 form#termsForm input#agree {
1268 div#slim_content form#termsForm {
1272 p#contributorGuidance {
1273 background-color: #f4f4ff;
1275 -moz-border-radius: 3px;
1280 /* Rules for the account settings page */
1287 padding-bottom: 10px;
1290 #accountForm .user_map {
1294 border: 1px solid #ccc;
1297 .accountImage-options {
1299 display: inline-block;
1311 display: inline !important;
1314 #accountForm input[type=submit] {
1318 .content_map.settings_map {
1323 /* Rules for message in/out box page */
1327 border: 1px solid #ddd;
1330 .messages tbody tr {
1331 border-top: 1px solid #ccc;
1334 .messages .inbox-row {
1335 background: #f8f8ff;
1338 .messages .inbox-row-unread {
1351 .inbox-row .inbox-mark-read {
1356 margin-bottom: 20px;
1357 padding: 5px 0px 4px 0px;
1358 border-bottom: 1px solid #ccc;
1362 .info-line form div {
1366 .info-line .user_thumbnail_tiny {
1367 vertical-align: middle;
1370 .inbox-row-unread .inbox-mark-unread {
1374 /* Rules for "flash" notice boxes shown at the top of the content area */
1379 background-color: #ff7070;
1382 background-color: #ffe0cc;
1385 background-color: #CBEEA7;
1389 /* Rules for highlighting fields with rails validation errors */
1391 .field_with_errors {
1393 background-color: #ff7070;
1397 /* Rules for rails validation error boxes */
1401 border: 2px solid #ff7070;
1403 margin-bottom: 20px;
1404 background-color: #f0f0f0;
1407 #errorExplanation h2 {
1409 padding: 5px 5px 5px 15px;
1412 background-color: #c00;
1417 #errorExplanation p {
1423 #errorExplanation ul li {
1428 /* Rules for forms */
1435 vertical-align: top;
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: 20px;
1469 img.user_thumbnail {
1472 border: 1px solid #ccc;
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;
1509 margin-bottom: 20px;
1516 border-left: 1px solid #ccc;
1529 /* Utility for managing inner content areas */
1531 .inner22 { padding: 20px;}
1533 .inner12 { padding: 10px 20px;}
1535 .inner02 { padding: 0 20px;}
1537 /* Utility for general button styles */
1543 margin-bottom: 10px;
1545 background: #7092FF;
1548 -moz-border-radius: 2px;
1551 text-decoration: none;
1559 background-color: #cbeea7;
1561 background-color: #9ed485;
1565 /* Rules for doing distinct colour of alternate table rows */
1569 background: #F4F4FF;
1577 /* Rules for OpenID logo */
1580 vertical-align: text-bottom;
1584 /* Rules for rich text */
1588 padding-bottom: 10px;
1589 border-bottom: 1px dashed #cccccc;
1590 margin-bottom: 10px;
1607 background-color: #f4f4ff;
1611 box-sizing: border-box;
1612 -moz-box-sizing: border-box;
1616 border-left: 20px solid #f4f4ff;
1625 margin-bottom: 20px;
1634 list-style: decimal;
1638 .diary_post .richtext {
1642 .comments .richtext {
1647 /* Rules for rich text editors */
1649 .richtext_container {
1650 white-space: nowrap;
1653 display: inline-block;
1654 vertical-align: top;
1655 white-space: normal;
1658 display: inline-block;
1660 background-color: #f4f4ff;
1664 background-image: image-url("loading.gif");
1665 background-repeat: no-repeat;
1666 background-position: center;
1676 display: inline-block;
1677 vertical-align: top;
1679 background-color: #f8f8ff;
1688 border-bottom: 1px solid #ccc;
1690 padding-bottom: 5px;
1709 input.richtext_doedit,
1710 input.richtext_dopreview {
1716 /* Rules for the user notes list */
1720 background-color: #eeeeee;
1732 /* Rules for the notes interface */
1740 margin-bottom: 10px;
1753 background: image-url("sprite.png") 0 -45px no-repeat;
1761 .permalink:hover span {
1767 background-color: #ffe0cc;
1769 margin-bottom: 10px;
1794 * Rules for the iD editor