11 /* Styles common to large and small screens */
13 /* Minimal CSS reset */
15 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p {
22 fieldset,img { border: 0; }
24 legend { color: #000; }
26 sup { vertical-align: text-top; }
28 sub { vertical-align: text-bottom; }
31 border-collapse: collapse;
35 li { list-style: none; }
40 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
43 border-bottom: .1em dotted;
47 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
59 /* Default rules for the body of every page */
62 -moz-box-sizing: border-box;
63 -webkit-box-sizing: border-box;
64 box-sizing: border-box;
68 font-family: 'Helvetica Neue',Arial,sans-serif;
69 font-size: $typeheight;
72 background-color: #fff;
79 background-color: #f0f0f0;
83 margin-top: $lineheight/2;
84 margin-bottom: $lineheight;
99 margin-top: $lineheight/2;
100 margin-bottom: $lineheight;
104 font-size: $typeheight;
105 margin-top: $lineheight/2;
106 margin-bottom: $lineheight/2;
112 margin-bottom: $lineheight;
135 margin: 0 0 $lineheight/2 0;
139 vertical-align: middle;
140 margin-right: $lineheight/4;
143 /* Rules for links */
147 text-decoration: none;
149 text-decoration: underline;
153 /* Rules for horizontal lines */
157 background-color: #ccc;
162 /* General styles for tables */
166 margin-bottom: $lineheight;
169 padding: $lineheight/4;
170 line-height: $lineheight;
177 vertical-align: middle;
181 /* Rules for the whole left sidebar, including the logo */
190 border-right: 1px solid #ccc;
193 /* Rules for the OpenStreetMap logo in the top left corner */
199 padding: $lineheight $lineheight/4;
212 font-size: $lineheight/2;
217 /* Rules for the site name */
223 /* Rules for the introductory text displayed in the left sidebar to new users */
226 padding: $lineheight/4 $lineheight/2;
228 margin: $lineheight/4 0;
231 .sidebar-copy.intro {
232 border-top: 1px solid #ccc;
236 * Rules for alert boxes shown in the left sidebar when important
237 * information needs to be conveyed such as when the site is
238 * undergoing maintenance.
242 padding: $lineheight/4;
243 border-top: 1px solid #ccc;
250 margin: $lineheight/4;
255 * Rules for notice boxes shown in the left sidebar when important, but
256 * non-critical information needs to be conveyed such as notices about
261 padding: $lineheight/4;
262 border-top: 1px solid #ccc;
268 margin: $lineheight/4;
272 /* Rules for the menu displayed in the left sidebar */
277 padding: $lineheight/4 $lineheight/2;
280 list-style-type: none;
281 border-bottom: 1px solid #ccc;
282 border-top: 1px solid #ccc;
284 margin: $lineheight/2 0px;
293 list-style-type: none;
299 padding: $lineheight/4 0 $lineheight/4 0;
309 /* Rules for SOTM advert */
313 margin: $lineheight/2;
323 * Rules for "optional boxes" which appear in the left sidebar on
324 * certain pages. Current users are the seach box on the main page
325 * and the tag cloud on the traces pages.
330 padding: $lineheight/4 $lineheight/2;
331 margin: $lineheight/4 0;
335 /* Rules for the search box */
347 font-size: $typeheight;
350 padding: 2px 0px 2px $lineheight/4;
351 box-shadow: inset #DDD 0px 1px 3px;
354 input[type="text"]:focus {
356 border: 1px solid #000;
359 input[type="submit"] {
366 text-indent: -1000px;
368 background: image-url("sprite.png") 0 0 no-repeat;
371 right: $lineheight/4;
377 margin: $lineheight/4 0 0 0;
380 /* Utility for de-emphasizing content */
389 /* Rules for donation request box */
394 padding: $lineheight/4;
395 border: 1px solid #AED1A0;
397 font-size: $typeheight;
402 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
406 text-decoration: none;
411 background: image-url("sprite.png") 0 -29px no-repeat;
415 /* Rules for Creative Commons logo button */
418 margin: $lineheight/2 0;
422 /* Rules for tabbed navigation bar */
428 border-bottom: 1px solid #ccc;
434 .site-index #top-bar,
435 .site-export #top-bar {
448 a, a:link, a:visited {
451 padding: 3px $lineheight/2;
452 text-decoration: none;
456 -webkit-transition: color 200ms ease-in;
457 -moz-transition: color 200ms ease-in;
458 -o-transition: color 200ms ease-in;
459 transition: color 200ms ease-in;
463 .site-index #tabnav a#viewanchor,
464 .site-edit #tabnav a#editanchor,
465 .changeset-list #tabnav a#historyanchor,
466 .site-export #tabnav a#exportanchor {
467 border-bottom: 1px solid #aaa;
472 #tabnav a:link:hover, #tabnav a:visited:hover {
473 text-decoration: underline;
476 #tabnav a:link.disabled,
477 #tabnav a:visited.disabled,
478 #tabnav a:link:hover.disabled,
479 #tabnav a:visited:hover.disabled {
483 text-decoration: none;
487 /* Utility for styling notification numbers */
490 padding: 2px $lineheight/4;
498 /* Rules for greeting bar in the top right corner */
503 margin-right: $lineheight/4;
506 .greeting-bar-unread {
510 /* Rules for the message shown in place of the map when javascript is disabled */
519 /* Rules for Leaflet maps */
521 .leaflet-control-attribution {
525 text-decoration: none;
528 ul.secondary-actions {
530 margin-right: $lineheight/4;
538 .site-index .leaflet-top,
539 .site-export .leaflet-top {
540 top: $lineheight/2 !important;
542 margin-top: 0px !important;
546 .site-index #map .olControlScaleLine,
547 .site-export #map .olControlScaleLine {
548 left: $lineheight/2 !important;
551 .leaflet-popup-scrolled {
552 padding-right: $lineheight;
553 border-bottom: 0px !important;
554 border-top: 0px !important;
557 .leaflet-popup-content-wrapper {
558 border-radius: 4px !important;
559 -webkit-border-radius: 4px !important;
562 /* Rules for edit menu */
565 padding: 0 $lineheight/4;
567 display: inline-block;
569 text-decoration: none !important;
577 background-color: #ffffff;
578 border: 1px solid $keyline;
584 padding: 2px $lineheight/4;
585 border-top: 1px solid #eee;
590 /* Rules for attribution text under the main map shown on printouts */
596 .attribution_license,
597 .attribution_project {
601 .attribution_notice {
605 /* Rules for the popout map sidebar */
614 border-right: 1px solid $keyline;
618 padding: $lineheight/2 $lineheight;
620 background: $offwhite;
621 border-bottom: 1px solid #ccc;
629 border-bottom: 1px solid #ccc;
632 margin-bottom: $lineheight/4;
654 padding: 0 $lineheight $lineheight/2 $lineheight;
655 margin-top: $lineheight/2;
657 border-bottom: 1px solid #ddd;
661 /* Rules for the map key which appears in the popout sidebar */
664 padding: $lineheight $lineheight 0 $lineheight;
665 .mapkey-table-key img {
671 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
675 /* Rules for search results which appear in the popout sidebar */
678 margin-top: $lineheight/4;
679 margin-bottom: $lineheight/4;
682 .search_results_entry {
691 .search_results_entry .search_searching {
693 margin: $lineheight auto;
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 {
740 margin-bottom: $lineheight/2;
744 margin: $lineheight/4;
747 .export_details input[type="text"]#export_html_text {
751 #sidebar #marker_inputs li:last-child {
752 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 p {
1301 display: inline !important;
1304 .content_map.settings_map {
1309 /* Rules for message in/out box page */
1317 border: 1px solid #ddd;
1319 input[type="submit"] {
1323 border-top: 1px solid #ccc;
1327 background: #f8f8ff;
1340 padding: $lineheight/4;
1343 border-right: 1px solid $keyline;
1347 .inbox-row .inbox-mark-read {
1352 margin-bottom: $lineheight;
1353 padding: $lineheight/4 0px 4px 0px;
1354 border-bottom: 1px solid #ccc;
1361 .info-line .user_thumbnail_tiny {
1362 vertical-align: middle;
1365 .inbox-row-unread .inbox-mark-unread {
1369 /* Rules for "flash" notice boxes shown at the top of the content area */
1372 padding: $lineheight;
1374 background-color: #ff7070;
1377 background-color: #ffe0cc;
1380 background-color: #CBEEA7;
1384 /* Rules for highlighting fields with rails validation errors */
1386 .field_with_errors {
1388 background-color: #ff7070;
1392 /* Rules for rails validation error boxes */
1396 border: 2px solid #ff7070;
1397 padding: $lineheight/2;
1398 margin-bottom: $lineheight;
1399 background-color: #f0f0f0;
1402 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1405 background-color: #c00;
1413 padding: $lineheight/4;
1423 /* Rules for forms */
1427 margin-bottom: $lineheight/2;
1432 margin-bottom: $lineheight/4;
1433 font-size: $typeheight;
1438 margin-bottom: $lineheight/2;
1440 input[name=remember_me] {
1445 #remember_me_openid {
1450 input[type="email"],
1452 input[type="password"],
1454 border: 1px solid #ccc;
1462 /* Rules for user images */
1467 border: 1px solid #ccc;
1468 margin-bottom: $lineheight;
1470 margin-right: $lineheight;
1473 img.user_thumbnail {
1476 border: 1px solid #ccc;
1477 margin-right: $lineheight;
1480 img.user_thumbnail_tiny {
1483 border: 1px solid #ccc;
1486 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1489 white-space: nowrap;
1492 /* Rules for geo microformats */
1495 border-bottom: none;
1498 /* Rules for RSS buttons */
1505 /* General styles for action lists / subnavs / pager navs */
1507 ul.secondary-actions {
1512 display: inline-block;
1519 border-left: 1px solid #ccc;
1520 padding-left: $lineheight/4;
1521 margin-right: $lineheight/4;
1532 /* Utility for managing inner content areas */
1534 .inner22 { padding: $lineheight;}
1536 .inner12 { padding: $lineheight/2 $lineheight;}
1538 .inner02 { padding: 0 $lineheight;}
1540 /* Utility for general button styles */
1542 input[type="button"],
1543 input[type="submit"],
1544 input[type="reset"],
1549 padding: $lineheight/4;
1551 margin: 0 0 $lineheight/2 0;
1556 -moz-border-radius: 2px;
1558 background: darken($blue, $hovercolor);
1559 text-decoration: none;
1567 background-color: #cbeea7;
1569 background-color: #9ed485;
1576 input[type="submit"],
1578 box-sizing: border-box;
1579 display: inline-block;
1588 .button:first-child {
1589 border-radius:2px 0 0 2px;
1590 border-right:1px solid white;
1594 .button:last-child {
1595 border-radius:0 2px 2px 0;
1600 /* Rules for doing distinct colour of alternate table rows */
1604 background: $offwhite;
1612 /* Rules for OpenID logo */
1615 vertical-align: text-bottom;
1619 /* Rules for rich text */
1623 padding-bottom: $lineheight/2;
1624 border-bottom: 1px dashed #cccccc;
1625 margin-bottom: $lineheight/2;
1637 font-size: $typeheight;
1642 background: #e8e8e8;
1648 background: #e8e8e8;
1657 padding: $lineheight;
1658 background-color: $offwhite;
1665 border-left: $lineheight solid $offwhite;
1666 padding-left: $lineheight;
1673 padding-left: $lineheight;
1674 margin-bottom: $lineheight;
1675 margin-left: $lineheight;
1683 list-style: decimal;
1687 .diary_post .richtext {
1688 margin-top: $lineheight;
1691 .comments .richtext {
1696 /* Rules for rich text editors */
1698 .richtext_container {
1700 display: inline-block;
1701 vertical-align: top;
1704 display: inline-block;
1705 padding: $lineheight;
1706 background-color: $offwhite;
1710 background-image: image-url("loading.gif");
1711 background-repeat: no-repeat;
1712 background-position: center;
1722 display: inline-block;
1723 vertical-align: top;
1725 background-color: #f8f8ff;
1726 padding: $lineheight/2;
1735 border-bottom: 1px solid #ccc;
1736 margin-bottom: $lineheight/4;
1737 padding-bottom: $lineheight/4;
1740 li h4, li span, li p {
1741 display: inline-block;
1742 vertical-align: top;
1753 margin-left: $lineheight/2;
1754 margin-bottom: $lineheight/4;
1755 white-space: nowrap;
1760 /* Rules for the user notes list */
1764 background-color: #eeeeee;
1776 /* Rules for the notes interface */
1779 padding-top: $lineheight/2;
1784 margin-bottom: $lineheight/2;
1788 margin-top: $lineheight/2;
1794 left: $lineheight/4;
1797 background: image-url("sprite.png") 0 -45px no-repeat;
1802 padding-left: $lineheight;
1805 .permalink:hover span {
1811 background-color: #ffe0cc;
1813 margin-bottom: $lineheight/2;
1832 margin-top: $lineheight/4;
1838 * Rules for the iD editor
1845 /* Rules for rotating sidebar ads */
1851 border-bottom: 1px solid #ccc;
1863 padding: $lineheight/2;