12 /* Styles common to large and small screens */
14 /* Minimal CSS reset */
16 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input {
23 fieldset,img { border: 0; }
25 legend { color: #000; }
27 sup { vertical-align: text-top; }
29 sub { vertical-align: text-bottom; }
32 border-collapse: collapse;
36 li { list-style: none; }
41 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
44 border-bottom: .1em dotted;
48 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
60 /* Default rules for the body of every page */
63 -moz-box-sizing: border-box;
64 -webkit-box-sizing: border-box;
65 box-sizing: border-box;
69 font-family: 'Helvetica Neue',Arial,sans-serif;
70 font-size: $typeheight;
73 background-color: #fff;
80 background-color: #f0f0f0;
84 margin-top: $lineheight/2;
85 margin-bottom: $lineheight;
100 margin-top: $lineheight/2;
101 margin-bottom: $lineheight;
105 font-size: $typeheight;
106 margin-top: $lineheight/2;
107 margin-bottom: $lineheight/2;
113 margin-bottom: $lineheight;
136 margin: 0 0 $lineheight/2 0;
140 vertical-align: middle;
141 margin-right: $lineheight/4;
144 /* Rules for links */
148 text-decoration: none;
150 text-decoration: underline;
154 /* Rules for horizontal lines */
158 background-color: #ccc;
163 /* General styles for tables */
167 margin-bottom: $lineheight;
170 padding: $lineheight/4;
171 line-height: $lineheight;
178 vertical-align: middle;
182 /* Rules for the whole left sidebar, including the logo */
191 border-right: 1px solid #ccc;
194 /* Rules for the OpenStreetMap logo in the top left corner */
200 padding: $lineheight $lineheight/4;
213 font-size: $lineheight/2;
218 /* Rules for the site name */
224 /* Rules for the introductory text displayed in the left sidebar to new users */
227 padding: $lineheight/4 $lineheight/2;
229 margin: $lineheight/4 0;
232 .sidebar-copy.intro {
233 border-top: 1px solid #ccc;
237 * Rules for alert boxes shown in the left sidebar when important
238 * information needs to be conveyed such as when the site is
239 * undergoing maintenance.
243 padding: $lineheight/4;
244 border-top: 1px solid #ccc;
251 margin: $lineheight/4;
256 * Rules for notice boxes shown in the left sidebar when important, but
257 * non-critical information needs to be conveyed such as notices about
262 padding: $lineheight/4;
263 border-top: 1px solid #ccc;
269 margin: $lineheight/4;
273 /* Rules for the menu displayed in the left sidebar */
278 padding: $lineheight/4 $lineheight/2;
281 list-style-type: none;
282 border-bottom: 1px solid #ccc;
283 border-top: 1px solid #ccc;
285 margin: $lineheight/2 0px;
294 list-style-type: none;
300 padding: $lineheight/4 0 $lineheight/4 0;
310 /* Rules for SOTM advert */
314 margin: $lineheight/2;
324 * Rules for "optional boxes" which appear in the left sidebar on
325 * certain pages. Current users are the seach box on the main page
326 * and the tag cloud on the traces pages.
331 padding: $lineheight/4 $lineheight/2;
332 margin: $lineheight/4 0;
336 /* Rules for the search box */
348 font-size: $typeheight;
351 padding: 2px 0px 2px $lineheight/4;
352 box-shadow: inset #DDD 0px 1px 3px;
355 input[type="text"]:focus {
357 border: 1px solid #000;
360 input[type="submit"] {
367 text-indent: -1000px;
369 background: image-url("sprite.png") 0 0 no-repeat;
372 right: $lineheight/4;
378 margin: $lineheight/4 0 0 0;
381 /* Utility for de-emphasizing content */
390 /* Rules for donation request box */
395 padding: $lineheight/4;
396 border: 1px solid #AED1A0;
398 font-size: $typeheight;
403 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
407 text-decoration: none;
412 background: image-url("sprite.png") 0 -29px no-repeat;
416 /* Rules for Creative Commons logo button */
419 margin: $lineheight/2 0;
423 /* Rules for tabbed navigation bar */
429 border-bottom: 1px solid #ccc;
435 .site-index #top-bar,
436 .site-export #top-bar {
449 a, a:link, a:visited {
452 padding: 3px $lineheight/2;
453 text-decoration: none;
457 -webkit-transition: color 200ms ease-in;
458 -moz-transition: color 200ms ease-in;
459 -o-transition: color 200ms ease-in;
460 transition: color 200ms ease-in;
464 .site-index #tabnav a#viewanchor,
465 .site-edit #tabnav a#editanchor,
466 .changeset-list #tabnav a#historyanchor,
467 .site-export #tabnav a#exportanchor {
468 border-bottom: 1px solid #aaa;
473 #tabnav a:link:hover, #tabnav a:visited:hover {
474 text-decoration: underline;
477 #tabnav a:link.disabled,
478 #tabnav a:visited.disabled,
479 #tabnav a:link:hover.disabled,
480 #tabnav a:visited:hover.disabled {
484 text-decoration: none;
488 /* Utility for styling notification numbers */
491 padding: 2px $lineheight/4;
499 /* Rules for greeting bar in the top right corner */
504 margin-right: $lineheight/4;
507 .greeting-bar-unread {
511 /* Rules for the message shown in place of the map when javascript is disabled */
520 /* Rules for Leaflet maps */
522 .leaflet-control-attribution {
526 text-decoration: none;
529 ul.secondary-actions {
531 margin-right: $lineheight/4;
539 .site-index .leaflet-top,
540 .site-export .leaflet-top {
541 top: $lineheight/2 !important;
543 margin-top: 0px !important;
547 .site-index #map .olControlScaleLine,
548 .site-export #map .olControlScaleLine {
549 left: $lineheight/2 !important;
552 .leaflet-popup-scrolled {
553 padding-right: $lineheight;
554 border-bottom: 0px !important;
555 border-top: 0px !important;
558 .leaflet-popup-content-wrapper {
559 border-radius: 4px !important;
560 -webkit-border-radius: 4px !important;
563 /* Rules for edit menu */
566 padding: 0 $lineheight/4;
568 display: inline-block;
570 text-decoration: none !important;
578 background-color: #ffffff;
579 border: 1px solid $keyline;
585 padding: 2px $lineheight/4;
586 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 $keyline;
619 padding: $lineheight/2 $lineheight;
621 background: $offwhite;
622 border-bottom: 1px solid #ccc;
630 border-bottom: 1px solid #ccc;
633 margin-bottom: $lineheight/4;
655 padding: 0 $lineheight $lineheight/2 $lineheight;
656 margin-top: $lineheight/2;
658 border-bottom: 1px solid #ddd;
662 /* Rules for the map key which appears in the popout sidebar */
665 padding: $lineheight $lineheight 0 $lineheight;
666 .mapkey-table-key img {
672 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
676 /* Rules for search results which appear in the popout sidebar */
679 margin-top: $lineheight/4;
680 margin-bottom: $lineheight/4;
683 .search_results_entry {
692 .search_results_entry .search_searching {
694 margin: $lineheight auto;
699 ul.results-list li { border-bottom: 1px solid #ccc; }
701 .search_results_error {
705 /* Rules for data browser information which appears in the popout sidebar */
709 .browse_show_list.button {
734 /* Rules for export information which appears in the popout sidebar */
740 .export_area_inputs {
741 margin-bottom: $lineheight/2;
749 margin: $lineheight/4;
752 .export_details input[type="text"]#export_html_text {
756 #sidebar #marker_inputs li:last-child {
757 margin-bottom: $lineheight/2;
766 /* Rules for the main content area */
769 padding: $lineheight;
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;
809 margin: $lineheight/2 auto;
812 -moz-border-radius: 25px;
813 border: 1px solid #e6e6e6;
817 margin: $lineheight/2;
827 margin: 30px $lineheight/2;
830 margin-right: $lineheight/4;
832 vertical-align: middle;
833 margin-bottom: $lineheight/4;
834 margin-right: $lineheight/4;
840 padding: $lineheight;
841 background: $offwhite;
843 margin-bottom: $lineheight/2;
850 margin-top: $lineheight/2;
855 /* Rules for small maps in content areas */
861 border: 1px solid #ccc;
862 margin-bottom: $lineheight;
866 .content_map #small_map {
869 margin-bottom: $lineheight;
872 /* Rules for the home page */
883 /* Rules for the edit page */
894 /* Rules for the changeset list shown by the history tab etc */
899 padding: $lineheight/2 0;
901 border-top: 1px solid #ccc;
903 border-bottom: 1px solid #ccc;
911 border-left: 1px solid #ccc;
912 padding-left: $lineheight/4;
913 margin-right: $lineheight/4;
917 #changeset_list_map_wrapper {
925 #changeset_list_map_wrapper.scrolled {
929 #changeset_list_map {
935 border: 1px solid #ccc;
938 #changeset_list_map_wrapper.scrolled #changeset_list_map {
942 /* Rules for the data browser */
945 border-top: 1px solid #ccc;
946 margin-top: $lineheight/2;
947 padding-top: $lineheight/2;
952 background-color: #ffe0cc;
958 margin-bottom: $lineheight/4;
961 display: inline-block;
971 display: inline-block;
980 padding: $lineheight/4 0;
982 text-overflow: ellipsis;
993 #browse_map .geolink {
997 #browse_map .secondary-actions {
998 margin-bottom: $lineheight/2;
1001 /* Rules for the trace list shown by the traces tab etc */
1004 font-size: $lineheight/2;
1021 .trace_identifiable {
1034 /* Rules for the user profile page */
1039 .userinformation-inner {
1054 .admin-user-info small {
1055 margin-bottom: $lineheight/2;
1057 margin-right: $lineheight;
1062 border-bottom: 1px solid #ccc;
1063 padding-bottom: $lineheight;
1066 margin-bottom: $lineheight/2;
1071 margin-top: $lineheight;
1075 .activity-details p {
1080 #friends-container .contact-activity ul {
1085 p#no_home_location {
1086 margin: $lineheight;
1089 margin-top: $lineheight/4;
1094 /* Rules for the user map */
1096 .content_map .leaflet-popup-content {
1097 margin: $lineheight/2;
1101 /* Rules for user popups on maps */
1107 margin-top: 0 0 0 60px;
1110 img.user_thumbnail {
1112 margin: 0 $lineheight/2 0 0;
1116 /* Rules for the user list */
1119 font-size: $lineheight/2;
1123 vertical-align: middle;
1132 #user_list_actions {
1134 margin-top: $lineheight/2;
1137 /* Rules for the diary list page */
1139 .diary_entry-list img.user_thumbnail {
1146 margin-top: $lineheight/2;
1147 padding-top: $lineheight;
1148 border-top: 1px solid #ccc;
1163 ul.secondary-actions { display: inline-block;}
1166 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1170 #content .post_heading {
1171 margin-bottom: $lineheight;
1174 margin-bottom: $lineheight/2;
1179 /* Rules for the diary entry page */
1186 border: 1px solid #ccc;
1188 margin-bottom: $lineheight;
1191 border-top: 1px solid #ccc;
1192 padding-top: $lineheight;
1193 margin-top: $lineheight/2;
1199 margin-top: $lineheight/2;
1200 border-top: 1px dashed #ccc;
1201 padding-top: $lineheight/2;
1203 margin-top: $lineheight;
1204 padding-top: $lineheight;
1205 border-top: 1px solid #ccc;
1208 margin-bottom: $lineheight/2;
1217 .diary_entry-view img.user_thumbnail {
1221 /* Rules for the login page */
1223 #login_openid_buttons {
1227 #login_openid_buttons li {
1229 padding: $lineheight/4 $lineheight/2;
1232 /* Rules for the account confirmation page */
1236 border: 1px solid #ccc;
1237 padding: $lineheight;
1238 margin-bottom: $lineheight;
1252 margin: $lineheight auto inherit auto;
1257 input[type=submit] {
1263 background: darken($grey, $hovercolor);
1268 margin-bottom: $lineheight;
1270 #contributorGuidance {
1271 background-color: $offwhite;
1273 -moz-border-radius: 4px;
1280 /* Rules for the account settings page */
1282 #accountForm .user_map {
1286 border: 1px solid #ccc;
1289 #accountForm .user_image {
1293 #accountForm #user_image {
1297 #accountForm ul.accountImage-options {
1310 display: inline !important;
1313 .content_map.settings_map {
1318 /* Rules for the oauth settings page */
1320 .oauth_clients .buttons .oauth-edit {
1321 border-radius: 2px 0 0 2px;
1324 .oauth_clients .buttons .oauth-delete {
1325 border-radius: 0 2px 2px 0;
1328 /* Rules for messages pages */
1332 border: 1px solid #ddd;
1334 input[type="submit"] {
1338 border-top: 1px solid #ccc;
1342 background: #f8f8ff;
1355 padding: $lineheight/4;
1359 border-right: 1px solid $keyline;
1363 .inbox-row .inbox-mark-read {
1368 margin-bottom: $lineheight;
1369 padding: $lineheight/4 0px 4px 0px;
1370 border-bottom: 1px solid #ccc;
1377 .info-line .user_thumbnail_tiny {
1378 vertical-align: middle;
1387 .inbox-row-unread .inbox-mark-unread {
1391 .message-read .message-buttons {
1392 margin-top: $lineheight;
1393 padding-top: $lineheight;
1394 border-top: 1px solid $keyline;
1397 .message-read .buttons .mark-unread-button {
1401 /* Rules for "flash" notice boxes shown at the top of the content area */
1404 padding: $lineheight;
1406 background-color: #ff7070;
1409 background-color: #ffe0cc;
1412 background-color: #CBEEA7;
1416 /* Rules for highlighting fields with rails validation errors */
1418 .field_with_errors {
1420 background-color: #ff7070;
1424 /* Rules for rails validation error boxes */
1428 border: 2px solid #ff7070;
1429 padding: $lineheight/2;
1430 margin-bottom: $lineheight;
1431 background-color: #f0f0f0;
1434 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1437 background-color: #c00;
1445 padding: $lineheight/4;
1455 /* Rules for forms */
1459 margin-bottom: $lineheight;
1461 label.standard-label {
1463 margin-bottom: $lineheight/4;
1464 font-size: $typeheight;
1468 label.standard-label.secondary {
1469 display: inline-block;
1470 font-weight: normal;
1473 font-weight: normal;
1480 margin-top: $lineheight;
1481 padding-top: $lineheight;
1482 border-top: 1px solid $keyline;
1485 margin-bottom: $lineheight/2;
1493 input[type="checkbox"],
1494 input[type="radio"] {
1501 #remember_me_openid {
1506 input[type="email"],
1508 input[type="password"],
1510 border: 1px solid #ccc;
1519 height: 100% !important;
1522 /* Rules for user images */
1527 border: 1px solid #ccc;
1528 margin-bottom: $lineheight;
1530 margin-right: $lineheight;
1533 img.user_thumbnail {
1536 border: 1px solid #ccc;
1537 margin-right: $lineheight;
1540 img.user_thumbnail_tiny {
1543 border: 1px solid #ccc;
1546 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1549 white-space: nowrap;
1552 /* Rules for geo microformats */
1555 border-bottom: none;
1558 /* Rules for RSS buttons */
1565 /* General styles for action lists / subnavs / pager navs */
1567 ul.secondary-actions {
1572 display: inline-block;
1579 border-left: 1px solid #ccc;
1580 padding-left: $lineheight/4;
1581 margin-right: $lineheight/4;
1592 /* Utility for managing inner content areas */
1594 .inner22 { padding: $lineheight;}
1596 .inner12 { padding: $lineheight/2 $lineheight;}
1598 .inner11 { padding: $lineheight/2;}
1600 .inner02 { padding: 0 $lineheight;}
1602 /* Utility for general button styles */
1604 input[type="button"],
1605 input[type="submit"],
1606 input[type="reset"],
1610 display: inline-block;
1612 padding: $lineheight/4 $lineheight/2;
1614 margin: 0 0 $lineheight/2 0;
1619 -moz-border-radius: 2px;
1621 background: darken($blue, $hovercolor);
1622 text-decoration: none;
1625 background: $lightblue;
1627 background: darken($lightblue, $hovercolor);
1637 input[type="submit"],
1638 input[type="button"],
1639 input[type="reset"],
1641 box-sizing: border-box;
1647 border-right:1px solid white;
1650 .button:first-child {
1651 border-radius:2px 0 0 2px;
1654 .button:last-child {
1655 border-radius:0 2px 2px 0;
1656 border-right-width: 0;
1660 *[value="Hide"] + input:last-child,
1661 *[value="Hide"] + .button:last-child {
1663 border-right-width: 0;
1665 /* if a 3-button set has a hidden middle button */
1666 *[value="Hide"] + input:nth-child(3),
1667 *[value="Hide"] + .button:nth-child(3) {
1668 border-radius:0 2px 2px 0;
1669 border-right-width: 0;
1671 /* if a 3-button set starts with a hidden button */
1672 *[value="Hide"] + input:nth-child(2):not(:last-child),
1673 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1674 border-radius:2px 0 0 2px;
1675 border-right-width: 1px solid white;
1679 /* Rules for doing distinct colour of alternate table rows */
1683 background: $offwhite;
1691 /* Rules for OpenID logo */
1694 vertical-align: text-bottom;
1698 /* Rules for rich text */
1703 padding-bottom: $lineheight/2;
1704 border-bottom: 1px dashed #cccccc;
1705 margin-bottom: $lineheight/2;
1717 font-size: $typeheight;
1722 background: #e8e8e8;
1728 background: #e8e8e8;
1737 padding: $lineheight;
1738 background-color: $offwhite;
1745 border-left: $lineheight solid $offwhite;
1746 padding-left: $lineheight;
1753 padding-left: $lineheight;
1754 margin-bottom: $lineheight;
1755 margin-left: $lineheight;
1763 list-style: decimal;
1767 .diary_post .richtext {
1768 margin-top: $lineheight;
1771 .comments .richtext {
1776 /* Rules for rich text editors */
1778 .richtext_container {
1779 margin-bottom: $lineheight;
1783 display: inline-block;
1784 vertical-align: top;
1787 display: inline-block;
1788 padding: $lineheight;
1789 background-color: $offwhite;
1793 background-image: image-url("loading.gif");
1794 background-repeat: no-repeat;
1795 background-position: center;
1805 display: inline-block;
1806 vertical-align: top;
1808 background-color: #f8f8ff;
1809 padding: $lineheight/2;
1818 border-bottom: 1px solid #ccc;
1819 margin-bottom: $lineheight/4;
1820 padding-bottom: $lineheight/4;
1823 li h4, li span, li p {
1824 display: inline-block;
1825 vertical-align: top;
1836 margin-left: $lineheight/2;
1837 margin-bottom: $lineheight/4;
1838 white-space: nowrap;
1843 /* Rules for the user notes list */
1847 background-color: #eeeeee;
1859 /* Rules for the notes interface */
1862 padding-top: $lineheight/2;
1867 margin-bottom: $lineheight/2;
1871 margin-top: $lineheight/2;
1877 left: $lineheight/4;
1880 background: image-url("sprite.png") 0 -45px no-repeat;
1885 padding-left: $lineheight;
1888 .permalink:hover span {
1894 background-color: #ffe0cc;
1896 margin-bottom: $lineheight/2;
1915 margin-top: $lineheight/4;
1921 * Rules for the iD editor
1928 /* Rules for rotating sidebar ads */
1934 border-bottom: 1px solid #ccc;