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;
761 /* Rules for the main content area */
764 padding: $lineheight;
769 .site-index #content,
770 .site-export #content {
773 top: 30px; bottom: 0;
774 left: 184px; right: 0;
775 border-left: 1px solid #ccc;
780 border-left: 1px solid #ccc;
784 .site-edit #content {
801 #slim_container_content {
803 background-color: #FFFFFF;
804 margin: $lineheight/2 auto;
807 -moz-border-radius: 25px;
808 border: 1px solid #e6e6e6;
812 margin: $lineheight/2;
822 margin: 30px $lineheight/2;
825 margin-right: $lineheight/4;
827 vertical-align: middle;
828 margin-bottom: $lineheight/4;
829 margin-right: $lineheight/4;
835 padding: $lineheight;
836 background: $offwhite;
838 margin-bottom: $lineheight/2;
845 margin-top: $lineheight/2;
850 /* Rules for small maps in content areas */
856 border: 1px solid #ccc;
857 margin-bottom: $lineheight;
861 .content_map #small_map {
864 margin-bottom: $lineheight;
867 /* Rules for the home page */
878 /* Rules for the edit page */
889 /* Rules for the changeset list shown by the history tab etc */
894 padding: $lineheight/2 0;
896 border-top: 1px solid #ccc;
898 border-bottom: 1px solid #ccc;
906 border-left: 1px solid #ccc;
907 padding-left: $lineheight/4;
908 margin-right: $lineheight/4;
912 #changeset_list_map_wrapper {
920 #changeset_list_map_wrapper.scrolled {
924 #changeset_list_map {
930 border: 1px solid #ccc;
933 #changeset_list_map_wrapper.scrolled #changeset_list_map {
937 /* Rules for the data browser */
940 border-top: 1px solid #ccc;
941 margin-top: $lineheight/2;
942 padding-top: $lineheight/2;
947 background-color: #ffe0cc;
953 margin-bottom: $lineheight/4;
956 display: inline-block;
966 display: inline-block;
975 padding: $lineheight/4 0;
977 text-overflow: ellipsis;
988 #browse_map .geolink {
992 #browse_map .secondary-actions {
993 margin-bottom: $lineheight/2;
996 /* Rules for the trace list shown by the traces tab etc */
999 font-size: $lineheight/2;
1016 .trace_identifiable {
1029 /* Rules for the user profile page */
1033 .userinformation-inner {
1048 .admin-user-info small {
1049 margin-bottom: $lineheight/2;
1051 margin-right: $lineheight;
1056 border-bottom: 1px solid #ccc;
1057 padding-bottom: $lineheight;
1060 margin-bottom: $lineheight/2;
1065 margin-top: $lineheight;
1069 .activity-details p {
1074 #friends-container .contact-activity ul {
1079 p#no_home_location {
1080 margin: $lineheight;
1083 margin-top: $lineheight/4;
1088 /* Rules for the user map */
1090 .content_map .leaflet-popup-content {
1091 margin: $lineheight/2;
1095 /* Rules for user popups on maps */
1102 padding-bottom: 5px;
1109 img.user_thumbnail {
1111 margin: 0 $lineheight/2 0 0;
1115 /* Rules for the user list */
1118 font-size: $lineheight/2;
1122 vertical-align: middle;
1131 #user_list_actions {
1133 margin-top: $lineheight/2;
1136 /* Rules for the diary list page */
1138 .diary_entry-list img.user_thumbnail {
1145 margin-top: $lineheight/2;
1146 padding-top: $lineheight;
1147 border-top: 1px solid #ccc;
1162 ul.secondary-actions { display: inline-block;}
1165 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1169 #content .post_heading {
1170 margin-bottom: $lineheight;
1173 margin-bottom: $lineheight/2;
1178 /* Rules for the diary entry page */
1185 border: 1px solid #ccc;
1187 margin-bottom: $lineheight;
1190 border-top: 1px solid #ccc;
1191 padding-top: $lineheight;
1192 margin-top: $lineheight/2;
1198 margin-top: $lineheight/2;
1199 border-top: 1px dashed #ccc;
1200 padding-top: $lineheight/2;
1202 margin-top: $lineheight;
1203 padding-top: $lineheight;
1204 border-top: 1px solid #ccc;
1207 margin-bottom: $lineheight/2;
1216 .diary_entry-view img.user_thumbnail {
1220 /* Rules for the login page */
1222 #login_openid_buttons {
1226 #login_openid_buttons li {
1228 padding: $lineheight/4 $lineheight/2;
1231 /* Rules for the account confirmation page */
1235 border: 1px solid #ccc;
1236 padding: $lineheight;
1237 margin-bottom: $lineheight;
1251 margin: $lineheight auto inherit auto;
1256 input[type=submit] {
1262 background: darken($grey, $hovercolor);
1267 margin-bottom: $lineheight;
1269 #contributorGuidance {
1270 background-color: $offwhite;
1272 -moz-border-radius: 4px;
1279 /* Rules for the account settings page */
1281 #accountForm .user_map {
1285 border: 1px solid #ccc;
1288 .accountImage-options {
1290 display: inline-block;
1302 display: inline !important;
1305 .content_map.settings_map {
1310 /* Rules for message in/out box page */
1314 border: 1px solid #ddd;
1317 border-top: 1px solid #ccc;
1321 background: #f8f8ff;
1334 padding: $lineheight/4;
1338 .inbox-row .inbox-mark-read {
1343 margin-bottom: $lineheight;
1344 padding: $lineheight/4 0px 4px 0px;
1345 border-bottom: 1px solid #ccc;
1352 .info-line .user_thumbnail_tiny {
1353 vertical-align: middle;
1356 .inbox-row-unread .inbox-mark-unread {
1360 /* Rules for "flash" notice boxes shown at the top of the content area */
1363 padding: $lineheight;
1365 background-color: #ff7070;
1368 background-color: #ffe0cc;
1371 background-color: #CBEEA7;
1375 /* Rules for highlighting fields with rails validation errors */
1377 .field_with_errors {
1379 background-color: #ff7070;
1383 /* Rules for rails validation error boxes */
1387 border: 2px solid #ff7070;
1388 padding: $lineheight/2;
1389 margin-bottom: $lineheight;
1390 background-color: #f0f0f0;
1393 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1396 background-color: #c00;
1404 padding: $lineheight/4;
1414 /* Rules for forms */
1418 margin-bottom: $lineheight;
1423 margin-right: $lineheight/2;
1424 font-size: $typeheight;
1429 margin-bottom: $lineheight/2;
1431 input[name=remember_me] {
1436 #remember_me_openid {
1441 input[type="email"],
1443 input[type="password"],
1445 border: 1px solid #ccc;
1448 /* Rules for user images */
1453 border: 1px solid #ccc;
1454 margin-bottom: $lineheight;
1456 margin-right: $lineheight;
1459 img.user_thumbnail {
1462 border: 1px solid #ccc;
1463 margin-right: $lineheight;
1466 img.user_thumbnail_tiny {
1469 border: 1px solid #ccc;
1472 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1475 white-space: nowrap;
1478 /* Rules for geo microformats */
1481 border-bottom: none;
1484 /* Rules for RSS buttons */
1491 /* General styles for action lists / subnavs / pager navs */
1493 ul.secondary-actions {
1498 display: inline-block;
1505 border-left: 1px solid #ccc;
1506 padding-left: $lineheight/4;
1507 margin-right: $lineheight/4;
1518 /* Utility for managing inner content areas */
1520 .inner22 { padding: $lineheight;}
1522 .inner12 { padding: $lineheight/2 $lineheight;}
1524 .inner02 { padding: 0 $lineheight;}
1526 /* Utility for general button styles */
1528 input[type="button"],
1529 input[type="submit"],
1530 input[type="reset"],
1535 padding: $lineheight/4;
1537 margin-bottom: $lineheight/2;
1542 -moz-border-radius: 2px;
1544 background: darken($blue, $hovercolor);
1545 text-decoration: none;
1553 background-color: #cbeea7;
1555 background-color: #9ed485;
1559 /* Rules for doing distinct colour of alternate table rows */
1563 background: $offwhite;
1571 /* Rules for OpenID logo */
1574 vertical-align: text-bottom;
1578 /* Rules for rich text */
1582 padding-bottom: $lineheight/2;
1583 border-bottom: 1px dashed #cccccc;
1584 margin-bottom: $lineheight/2;
1596 font-size: $typeheight;
1601 background: #e8e8e8;
1607 background: #e8e8e8;
1616 padding: $lineheight;
1617 background-color: $offwhite;
1624 border-left: $lineheight solid $offwhite;
1625 padding-left: $lineheight;
1632 padding-left: $lineheight;
1633 margin-bottom: $lineheight;
1634 margin-left: $lineheight;
1642 list-style: decimal;
1646 .diary_post .richtext {
1647 margin-top: $lineheight;
1650 .comments .richtext {
1655 /* Rules for rich text editors */
1657 .richtext_container {
1659 display: inline-block;
1660 vertical-align: top;
1663 display: inline-block;
1664 padding: $lineheight;
1665 background-color: $offwhite;
1669 background-image: image-url("loading.gif");
1670 background-repeat: no-repeat;
1671 background-position: center;
1681 display: inline-block;
1682 vertical-align: top;
1684 background-color: #f8f8ff;
1685 padding: $lineheight/2;
1694 border-bottom: 1px solid #ccc;
1695 margin-bottom: $lineheight/4;
1696 padding-bottom: $lineheight/4;
1699 li h4, li span, li p {
1700 display: inline-block;
1701 vertical-align: top;
1712 margin-left: $lineheight/2;
1713 margin-bottom: $lineheight/4;
1714 white-space: nowrap;
1717 input.richtext_doedit,
1718 input.richtext_dopreview {
1719 margin-right: $lineheight/2;
1723 .buttons input[type="submit"] {
1724 display: inline-block;
1729 .buttons input:first-child {
1730 border-radius:2px 0 0 2px;
1733 .buttons input:last-child {
1734 border-radius:0 2px 2px 0;
1738 /* Rules for the user notes list */
1742 background-color: #eeeeee;
1754 /* Rules for the notes interface */
1757 padding-top: $lineheight/2;
1762 margin-bottom: $lineheight/2;
1766 margin-top: $lineheight/2;
1772 left: $lineheight/4;
1775 background: image-url("sprite.png") 0 -45px no-repeat;
1780 padding-left: $lineheight;
1783 .permalink:hover span {
1789 background-color: #ffe0cc;
1791 margin-bottom: $lineheight/2;
1810 margin-top: $lineheight/4;
1816 * Rules for the iD editor
1823 /* Rules for rotating sidebar ads */
1829 border-bottom: 1px solid #ccc;
1841 padding: $lineheight/2;