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 */
516 .greeting-bar-unread {
520 /* Rules for the message shown in place of the map when javascript is disabled */
529 /* Rules for Leaflet maps */
540 .leaflet-control-attribution a.disabled {
543 text-decoration: none;
546 .site-index .leaflet-top,
547 .site-export .leaflet-top {
548 top: 10px !important;
550 margin-top: 0px !important;
554 .site-index #map .olControlScaleLine,
555 .site-export #map .olControlScaleLine {
556 left: 10px !important;
559 .leaflet-popup-scrolled {
561 border-bottom: 0px !important;
562 border-top: 0px !important;
565 /* Rules for edit menu */
570 display: inline-block;
572 text-decoration: none !important;
580 background-color: #ffffff;
581 border: 1px solid #cccccc;
591 border-top: 1px solid #eee;
595 /* Rules for attribution text under the main map shown on printouts */
601 .attribution_license,
602 .attribution_project {
606 .attribution_notice {
610 /* Rules for the popout map sidebar */
619 border-right: 1px solid #ccc;
626 border-bottom: 1px solid #ccc;
656 padding: 0 20px 10px 20px;
659 border-bottom: 1px solid #ddd;
663 /* Rules for the map key which appears in the popout sidebar */
669 #mapkey .mapkey-table-key img {
676 padding: 0 5px 5px 5px;
679 /* Rules for search results which appear in the popout sidebar */
686 .search_results_entry {
690 .search_results_entry .search_searching {
697 ul.results-list li { border-bottom: 1px solid #ccc; }
699 .search_results_error {
703 /* Rules for data browser information which appears in the popout sidebar */
707 .browse_show_list.button {
732 /* Rules for export information which appears in the popout sidebar */
738 .export_area_inputs {
746 .export_details input[type="text"]#export_html_text {
750 #sidebar #marker_inputs li:last-child {
765 /* Rules for the main content area */
773 .site-index #content,
774 .site-export #content {
777 top: 30px; bottom: 0;
778 left: 185px; right: 0;
779 border-left: 1px solid #ccc;
784 border-left: 1px solid #ccc;
788 .site-edit #content {
796 #slim_container_content {
798 background-color: #FFFFFF;
802 -moz-border-radius: 25px;
803 border: 1px solid #e6e6e6;
820 vertical-align: middle;
842 /* Rules for small maps in content areas */
848 border: 1px solid #ccc;
853 .content_map #small_map {
859 /* Rules for the home page */
870 /* Rules for the edit page */
881 /* Rules for the changeset list shown by the history tab etc */
888 border-top: 1px solid #ccc;
890 border-bottom: 1px solid #ccc;
894 background-color: rgb(255, 255, 160);
898 border-left: 1px solid #ccc;
904 #changeset_list_map {
912 border: 1px solid #ccc;
915 /* Rules for the data browser */
918 border-top: 1px solid #ccc;
928 margin-left: 33.3333%;
946 text-overflow: ellipsis;
957 #browse_map .geolink {
961 #browse_map .secondary-actions {
965 /* Rules for the trace list shown by the traces tab etc */
973 #trace_list .trace_summary {
978 #trace_list .trace_pending {
982 #trace_list .trace_public {
986 #trace_list .trace_identifiable {
990 #trace_list .trace_trackable {
994 #trace_list .trace_private {
998 /* Rules for the user profile page */
1002 .userinformation-inner {
1017 .admin-user-info small {
1018 margin-bottom: 10px;
1024 border-bottom: 1px solid #ccc;
1025 padding-bottom: 20px;
1028 margin-bottom: 10px;
1037 .activity-details p {
1042 #friends-container .contact-activity ul {
1046 .user-view p#no_home_location {
1050 .user-view .user_thumbnail {
1055 /* Rules for the user map */
1057 .content_map .leaflet-popup-content {
1062 .content_map .leaflet-popup-content-wrapper {
1063 -webkit-border-radius: 4px;
1067 /* Rules for user popups on maps */
1075 padding-bottom: 3px;
1082 .user_popup img.user_thumbnail {
1087 /* Rules for user popups on maps */
1095 /* Rules for the user list */
1103 vertical-align: middle;
1111 #user_list_actions {
1116 /* Rules for the diary list page */
1118 .diary_entry-list img.user_thumbnail {
1126 border-top: 1px solid #ccc;
1142 margin-bottom: 20px;
1150 list-style: decimal;
1152 ul.secondary-actions { display: inline-block;}
1155 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1160 margin-bottom: 20px;
1170 /* Rules for the diary entry page */
1177 border: 1px solid #ccc;
1179 margin-bottom: 20px;
1182 border-top: 1px solid #ccc;
1191 border-top: 1px solid #ccc;
1194 margin-bottom: 10px;
1204 .diary_entry-view img.user_thumbnail {
1208 /* Rules for the login page */
1210 #login_openid_buttons li {
1215 /* Rules for the account confirmation page */
1217 div#contributorTerms {
1218 border: 1px solid #ccc;
1220 margin-bottom: 20px;
1225 div#contributorTerms p#last {
1229 div#contributorTerms ol {
1233 div#contributorTerms img {
1235 margin: 20px auto inherit auto;
1238 form#termsForm div#buttons {
1242 form#termsForm input#agree {
1246 div#slim_content form#termsForm {
1250 p#contributorGuidance {
1251 background-color: #f4f4ff;
1253 -moz-border-radius: 3px;
1258 /* Rules for the account settings page */
1265 padding-bottom: 10px;
1268 #accountForm .user_map {
1272 border: 1px solid #ccc;
1275 .accountImage-options {
1277 display: inline-block;
1289 display: inline !important;
1292 #accountForm input[type=submit] {
1296 .content_map.settings_map {
1301 /* Rules for message in/out box page */
1305 border: 1px solid #ddd;
1308 .messages tbody tr {
1309 border-top: 1px solid #ccc;
1312 .messages .inbox-row {
1313 background: #f8f8ff;
1316 .messages .inbox-row-unread {
1329 .inbox-row .inbox-mark-read {
1334 margin-bottom: 20px;
1335 padding: 5px 0px 4px 0px;
1336 border-bottom: 1px solid #ccc;
1340 .info-line form div {
1344 .info-line .user_thumbnail_tiny {
1345 vertical-align: middle;
1348 .inbox-row-unread .inbox-mark-unread {
1352 /* Rules for "flash" notice boxes shown at the top of the content area */
1357 background-color: #ff7070;
1360 background-color: #fff6f0;
1363 background-color: #CBEEA7;
1367 /* Rules for highlighting fields with rails validation errors */
1369 .field_with_errors {
1371 background-color: #ff7070;
1375 /* Rules for rails validation error boxes */
1379 border: 2px solid #ff7070;
1381 margin-bottom: 20px;
1382 background-color: #f0f0f0;
1385 #errorExplanation h2 {
1387 padding: 5px 5px 5px 15px;
1390 background-color: #c00;
1395 #errorExplanation p {
1401 #errorExplanation ul li {
1406 /* Rules for forms */
1413 vertical-align: top;
1429 input[type="email"],
1431 input[type="password"],
1433 border: 1px solid #ccc;
1436 /* Rules for user images */
1441 border: 1px solid #ccc;
1442 margin-bottom: 20px;
1447 img.user_thumbnail {
1450 border: 1px solid #ccc;
1454 img.user_thumbnail_tiny {
1457 border: 1px solid #ccc;
1460 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1463 white-space: nowrap;
1466 /* Rules for geo microformats */
1469 border-bottom: none;
1472 /* Rules for RSS buttons */
1479 /* General styles for action lists / subnavs / pager navs */
1481 ul.secondary-actions {
1486 display: inline-block;
1487 margin-bottom: 20px;
1494 border-left: 1px solid #ccc;
1503 .hide_unless_logged_in li,
1504 .hide_unless_administrator li {
1505 border-left: 1px solid #ccc;
1508 .hidden:first-child li,
1509 .hide_unless_logged_in:first-child li,
1510 .hide_unless_administrator:first-child li {
1516 /* Utility for managing inner content areas */
1518 .inner22 { padding: 20px;}
1520 .inner12 { padding: 10px 20px;}
1522 .inner02 { padding: 0 20px;}
1524 /* Utility for general button styles */
1530 margin-bottom: 10px;
1532 background: #7092FF;
1535 -moz-border-radius: 2px;
1538 text-decoration: none;
1546 background-color: #cbeea7;
1548 background-color: #9ed485;
1551 /* Rules for doing distinct colour of alternate table rows */
1555 background: #F4F4FF;
1563 /* Rules for OpenID logo */
1566 vertical-align: text-bottom;
1570 /* Rules for rich text editors */
1572 .richtext_container {
1573 white-space: nowrap;
1575 display: inline-block;
1576 vertical-align: top;
1578 display: inline-block;
1580 background-color: #f4f4ff;
1581 white-space: normal;
1583 background-image: image-url("loading.gif");
1584 background-repeat: no-repeat;
1585 background-position: center;
1593 display: inline-block;
1594 vertical-align: top;
1596 background-color: #f8f8ff;
1602 vertical-align: top;
1604 padding: 0px 15px 0px 0px !important;
1613 padding: 0px !important;
1615 input.richtext_doedit {
1616 margin-top: 5px !important;
1617 margin-right: 10px !important;
1619 input.richtext_dopreview {
1620 margin-top: 5px !important;
1621 margin-left: 10px !important;
1626 /* Rules for the notes interface */