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 -moz-box-sizing: border-box;
53 -webkit-box-sizing: border-box;
54 box-sizing: border-box;
58 font-family: 'Helvetica Neue',Arial,sans-serif;
62 background-color: #fff;
69 background-color: #f0f0f0;
129 vertical-align: middle;
133 /* Rules for links */
137 text-decoration: none;
139 text-decoration: underline;
143 /* Rules for horizontal lines */
147 background-color: #ccc;
152 /* General styles for tables */
167 vertical-align: middle;
171 /* Rules for the whole left sidebar, including the logo */
180 border-right: 1px solid #ccc;
183 /* Rules for the OpenStreetMap logo in the top left corner */
207 /* Rules for the site name */
213 /* Rules for the introductory text displayed in the left sidebar to new users */
223 .sidebar-copy.intro {
224 border-top: 1px solid #ccc;
228 * Rules for alert boxes shown in the left sidebar when important
229 * information needs to be conveyed such as when the site is
230 * undergoing maintenance.
235 border-top: 1px solid #ccc;
247 * Rules for notice boxes shown in the left sidebar when important, but
248 * non-critical information needs to be conveyed such as notices about
254 border-top: 1px solid #ccc;
264 /* Rules for the menu displayed in the left sidebar */
272 list-style-type: none;
273 border-bottom: 1px solid #ccc;
274 border-top: 1px solid #ccc;
287 list-style-type: none;
293 padding: 5px 0 5px 0;
298 .left_menu li:last-child h4 {
302 /* Rules for SOTM advert */
317 * Rules for "optional boxes" which appear in the left sidebar on
318 * certain pages. Current users are the seach box on the main page
319 * and the tag cloud on the traces pages.
329 /* Rules for the search box */
339 #search_field input[type="text"] {
345 padding: 2px 0px 2px 5px;
346 box-shadow: inset #DDD 0px 1px 3px;
349 #search_field input[type="text"]:focus {
351 border: 1px solid #000;
354 #search_field input[type="submit"] {
360 text-indent: -1000px;
362 background: image-url("sprite.png") 0 0 no-repeat;
373 /* Utility for de-emphasizing content */
382 /* Rules for donation request box */
388 border: 1px solid #AED1A0;
395 margin: 10px 10px 0px 10px;
399 text-decoration: none;
404 background: image-url("sprite.png") 0 -29px no-repeat;
408 /* Rules for Creative Commons logo button */
415 /* Rules for tabbed navigation bar */
421 border-bottom: 1px solid #ccc;
427 .site-index #top-bar,
428 .site-export #top-bar {
444 #tabnav a, #tabnav a:link, #tabnav a:visited {
448 text-decoration: none;
452 -webkit-transition: color 200ms ease-in;
453 -moz-transition: color 200ms ease-in;
454 -o-transition: color 200ms ease-in;
455 transition: color 200ms ease-in;
458 .site-index #tabnav a#viewanchor,
459 .site-edit #tabnav a#editanchor,
460 .changeset-list #tabnav a#historyanchor,
461 .site-export #tabnav a#exportanchor {
462 border-bottom: 1px solid #aaa;
467 #tabnav a:link:hover, #tabnav a:visited:hover {
468 text-decoration: underline;
471 #tabnav a:link.disabled,
472 #tabnav a:visited.disabled,
473 #tabnav a:link:hover.disabled,
474 #tabnav a:visited:hover.disabled {
479 #tabnav a:link.disabled:hover,
480 #tabnav a:visited.disabled:hover,
481 #tabnav a:link:hover.disabled:hover,
482 #tabnav a:visited:hover.disabled:hover {
483 text-decoration: none;
486 /* Utility for styling notification numbers */
497 /* Rules for greeting bar in the top right corner */
505 .greeting-bar-unread {
509 /* Rules for the message shown in place of the map when javascript is disabled */
518 /* Rules for Leaflet maps */
520 .leaflet-control-attribution {
524 text-decoration: none;
527 ul.secondary-actions {
537 .site-index .leaflet-top,
538 .site-export .leaflet-top {
539 top: 10px !important;
541 margin-top: 0px !important;
545 .site-index #map .olControlScaleLine,
546 .site-export #map .olControlScaleLine {
547 left: 10px !important;
550 .leaflet-popup-scrolled {
552 border-bottom: 0px !important;
553 border-top: 0px !important;
556 .leaflet-popup-content-wrapper {
557 border-radius: 4px !important;
558 -webkit-border-radius: 4px !important;
561 /* Rules for edit menu */
566 display: inline-block;
568 text-decoration: none !important;
576 background-color: #ffffff;
577 border: 1px solid #cccccc;
587 border-top: 1px solid #eee;
591 /* Rules for attribution text under the main map shown on printouts */
597 .attribution_license,
598 .attribution_project {
602 .attribution_notice {
606 /* Rules for the popout map sidebar */
615 border-right: 1px solid #ccc;
622 border-bottom: 1px solid #ccc;
652 padding: 0 20px 10px 20px;
655 border-bottom: 1px solid #ddd;
659 /* Rules for the map key which appears in the popout sidebar */
665 #mapkey .mapkey-table-key img {
672 padding: 0 5px 5px 5px;
675 /* Rules for search results which appear in the popout sidebar */
682 .search_results_entry {
691 .search_results_entry .search_searching {
698 ul.results-list li { border-bottom: 1px solid #ccc; }
700 .search_results_error {
704 /* Rules for data browser information which appears in the popout sidebar */
708 .browse_show_list.button {
733 /* Rules for export information which appears in the popout sidebar */
739 .export_area_inputs {
747 .export_details input[type="text"]#export_html_text {
751 #sidebar #marker_inputs li:last-child {
766 /* Rules for the main content area */
774 .site-index #content,
775 .site-export #content {
778 top: 30px; bottom: 0;
779 left: 184px; right: 0;
780 border-left: 1px solid #ccc;
785 border-left: 1px solid #ccc;
789 .site-edit #content {
806 #slim_container_content {
808 background-color: #FFFFFF;
812 -moz-border-radius: 25px;
813 border: 1px solid #e6e6e6;
834 vertical-align: middle;
856 /* Rules for small maps in content areas */
862 border: 1px solid #ccc;
867 .content_map #small_map {
873 /* Rules for the home page */
884 /* Rules for the edit page */
895 /* Rules for the changeset list shown by the history tab etc */
902 border-top: 1px solid #ccc;
904 border-bottom: 1px solid #ccc;
912 border-left: 1px solid #ccc;
918 #changeset_list_map_wrapper {
926 #changeset_list_map_wrapper.scrolled {
930 #changeset_list_map {
936 border: 1px solid #ccc;
939 #changeset_list_map_wrapper.scrolled #changeset_list_map {
943 /* Rules for the data browser */
946 border-top: 1px solid #ccc;
953 background-color: #ffe0cc;
962 display: inline-block;
972 display: inline-block;
983 text-overflow: ellipsis;
994 #browse_map .geolink {
998 #browse_map .secondary-actions {
1002 /* Rules for the trace list shown by the traces tab etc */
1010 #trace_list .trace_summary {
1015 #trace_list .trace_pending {
1019 #trace_list .trace_public {
1023 #trace_list .trace_identifiable {
1027 #trace_list .trace_trackable {
1031 #trace_list .trace_private {
1035 /* Rules for the user profile page */
1039 .userinformation-inner {
1054 .admin-user-info small {
1055 margin-bottom: 10px;
1062 border-bottom: 1px solid #ccc;
1063 padding-bottom: 20px;
1066 margin-bottom: 10px;
1075 .activity-details p {
1080 #friends-container .contact-activity ul {
1084 .user-view p#no_home_location {
1088 .user-view .user_thumbnail {
1093 /* Rules for the user map */
1095 .content_map .leaflet-popup-content {
1100 /* Rules for user popups on maps */
1108 padding-bottom: 5px;
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 {
1236 #login_openid_buttons li {
1241 /* Rules for the account confirmation page */
1245 border: 1px solid #ccc;
1247 margin-bottom: 20px;
1261 margin: 20px auto inherit auto;
1266 input[type=submit] {
1277 margin-bottom: 20px;
1279 #contributorGuidance {
1280 background-color: #f4f4ff;
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 .messages tbody tr {
1328 border-top: 1px solid #ccc;
1331 .messages .inbox-row {
1332 background: #f8f8ff;
1335 .messages .inbox-row-unread {
1348 .inbox-row .inbox-mark-read {
1353 margin-bottom: 20px;
1354 padding: 5px 0px 4px 0px;
1355 border-bottom: 1px solid #ccc;
1359 .info-line form div {
1363 .info-line .user_thumbnail_tiny {
1364 vertical-align: middle;
1367 .inbox-row-unread .inbox-mark-unread {
1371 /* Rules for "flash" notice boxes shown at the top of the content area */
1376 background-color: #ff7070;
1379 background-color: #ffe0cc;
1382 background-color: #CBEEA7;
1386 /* Rules for highlighting fields with rails validation errors */
1388 .field_with_errors {
1390 background-color: #ff7070;
1394 /* Rules for rails validation error boxes */
1398 border: 2px solid #ff7070;
1400 margin-bottom: 20px;
1401 background-color: #f0f0f0;
1404 #errorExplanation h2 {
1406 padding: 5px 5px 5px 15px;
1409 background-color: #c00;
1414 #errorExplanation p {
1420 #errorExplanation ul li {
1425 /* Rules for forms */
1427 .standard-form fieldset {
1428 margin-bottom: 20px;
1431 .standard-form label {
1440 .standard-form .form-row {
1441 margin-bottom: 10px;
1444 .standard-form input[name=remember_me] {
1448 #remember_me_openid {
1453 input[type="email"],
1455 input[type="password"],
1457 border: 1px solid #ccc;
1460 /* Rules for user images */
1465 border: 1px solid #ccc;
1466 margin-bottom: 20px;
1471 img.user_thumbnail {
1474 border: 1px solid #ccc;
1478 img.user_thumbnail_tiny {
1481 border: 1px solid #ccc;
1484 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1487 white-space: nowrap;
1490 /* Rules for geo microformats */
1493 border-bottom: none;
1496 /* Rules for RSS buttons */
1503 /* General styles for action lists / subnavs / pager navs */
1505 ul.secondary-actions {
1510 display: inline-block;
1517 border-left: 1px solid #ccc;
1530 /* Utility for managing inner content areas */
1532 .inner22 { padding: 20px;}
1534 .inner12 { padding: 10px 20px;}
1536 .inner02 { padding: 0 20px;}
1538 /* Utility for general button styles */
1540 input[type="button"],
1541 input[type="submit"],
1542 input[type="reset"],
1549 margin-bottom: 10px;
1551 background: #7092FF;
1554 -moz-border-radius: 2px;
1557 text-decoration: none;
1565 background-color: #cbeea7;
1567 background-color: #9ed485;
1571 /* Rules for doing distinct colour of alternate table rows */
1575 background: #F4F4FF;
1583 /* Rules for OpenID logo */
1586 vertical-align: text-bottom;
1590 /* Rules for rich text */
1594 padding-bottom: 10px;
1595 border-bottom: 1px dashed #cccccc;
1596 margin-bottom: 10px;
1613 background: #e8e8e8;
1619 background: #e8e8e8;
1629 background-color: #f4f4ff;
1636 border-left: 20px solid #f4f4ff;
1645 margin-bottom: 20px;
1654 list-style: decimal;
1658 .diary_post .richtext {
1662 .comments .richtext {
1667 /* Rules for rich text editors */
1669 .richtext_container {
1671 display: inline-block;
1672 vertical-align: top;
1675 display: inline-block;
1677 background-color: #f4f4ff;
1681 background-image: image-url("loading.gif");
1682 background-repeat: no-repeat;
1683 background-position: center;
1693 display: inline-block;
1694 vertical-align: top;
1696 background-color: #f8f8ff;
1706 border-bottom: 1px solid #ccc;
1708 padding-bottom: 5px;
1711 li h4, li span, li p {
1712 display: inline-block;
1713 vertical-align: top;
1726 white-space: nowrap;
1729 input.richtext_doedit,
1730 input.richtext_dopreview {
1736 /* Rules for the user notes list */
1740 background-color: #eeeeee;
1752 /* Rules for the notes interface */
1760 margin-bottom: 10px;
1773 background: image-url("sprite.png") 0 -45px no-repeat;
1781 .permalink:hover span {
1787 background-color: #ffe0cc;
1789 margin-bottom: 10px;
1814 * Rules for the iD editor
1821 /* Rules for rotating sidebar ads */
1827 border-bottom: 1px solid #ccc;