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 */
521 .leaflet-control-layers-expanded {
522 padding: 10px !important;
525 .leaflet-control-layers-separator {
526 margin: 5px -10px !important;
529 .leaflet-control-attribution {
533 text-decoration: none;
536 ul.secondary-actions {
538 margin-right: $lineheight/4;
546 .site-index .leaflet-top,
547 .site-export .leaflet-top {
548 top: $lineheight/2 !important;
550 margin-top: 0px !important;
554 .site-index #map .olControlScaleLine,
555 .site-export #map .olControlScaleLine {
556 left: $lineheight/2 !important;
559 .leaflet-popup-scrolled {
560 padding-right: $lineheight;
561 border-bottom: 0px !important;
562 border-top: 0px !important;
565 .leaflet-popup-content-wrapper {
566 border-radius: 4px !important;
567 -webkit-border-radius: 4px !important;
570 /* Rules for edit menu */
573 padding: 0 $lineheight/4;
575 display: inline-block;
577 text-decoration: none !important;
585 background-color: #ffffff;
586 border: 1px solid $keyline;
592 padding: 2px $lineheight/4;
593 border-top: 1px solid #eee;
598 /* Rules for attribution text under the main map shown on printouts */
604 .attribution_license,
605 .attribution_project {
609 .attribution_notice {
613 /* Rules for the popout map sidebar */
622 border-right: 1px solid $keyline;
626 padding: $lineheight/2 $lineheight;
628 background: $offwhite;
629 border-bottom: 1px solid #ccc;
637 border-bottom: 1px solid #ccc;
640 margin-bottom: $lineheight/4;
662 padding: 0 $lineheight $lineheight/2 $lineheight;
663 margin-top: $lineheight/2;
665 border-bottom: 1px solid #ddd;
669 /* Rules for the map key which appears in the popout sidebar */
672 padding: $lineheight $lineheight 0 $lineheight;
673 .mapkey-table-key img {
679 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
683 /* Rules for search results which appear in the popout sidebar */
686 margin-top: $lineheight/4;
687 margin-bottom: $lineheight/4;
690 .search_results_entry {
699 .search_results_entry .search_searching {
701 margin: $lineheight auto;
706 ul.results-list li { border-bottom: 1px solid #ccc; }
708 .search_results_error {
712 /* Rules for data browser information which appears in the popout sidebar */
716 .browse_show_list.button {
741 /* Rules for export information which appears in the popout sidebar */
747 .export_area_inputs {
748 margin-bottom: $lineheight/2;
756 margin: $lineheight/4;
759 .export_details input[type="text"]#export_html_text {
763 #sidebar #marker_inputs li:last-child {
764 margin-bottom: $lineheight/2;
773 /* Rules for the main content area */
776 padding: $lineheight;
781 .site-index #content,
782 .site-export #content {
785 top: 30px; bottom: 0;
786 left: 184px; right: 0;
787 border-left: 1px solid #ccc;
792 border-left: 1px solid #ccc;
796 .site-edit #content {
813 #slim_container_content {
815 background-color: #FFFFFF;
816 margin: $lineheight/2 auto;
819 -moz-border-radius: 25px;
820 border: 1px solid #e6e6e6;
824 margin: $lineheight/2;
834 margin: 30px $lineheight/2;
837 margin-right: $lineheight/4;
839 vertical-align: middle;
840 margin-bottom: $lineheight/4;
841 margin-right: $lineheight/4;
847 padding: $lineheight;
848 background: $offwhite;
850 margin-bottom: $lineheight/2;
857 margin-top: $lineheight/2;
862 /* Rules for small maps in content areas */
868 border: 1px solid #ccc;
869 margin-bottom: $lineheight;
873 .content_map #small_map {
876 margin-bottom: $lineheight;
879 /* Rules for the home page */
890 /* Rules for the edit page */
901 /* Rules for the changeset list shown by the history tab etc */
906 padding: $lineheight/2 0;
908 border-top: 1px solid #ccc;
910 border-bottom: 1px solid #ccc;
918 border-left: 1px solid #ccc;
919 padding-left: $lineheight/4;
920 margin-right: $lineheight/4;
924 #changeset_list_map_wrapper {
932 #changeset_list_map_wrapper.scrolled {
936 #changeset_list_map {
942 border: 1px solid #ccc;
945 #changeset_list_map_wrapper.scrolled #changeset_list_map {
949 /* Rules for the data browser */
952 border-top: 1px solid #ccc;
953 margin-top: $lineheight/2;
954 padding-top: $lineheight/2;
959 background-color: #ffe0cc;
965 margin-bottom: $lineheight/4;
968 display: inline-block;
979 display: inline-block;
988 padding: $lineheight/4 0;
990 text-overflow: ellipsis;
1001 #browse_map .geolink {
1005 #browse_map .secondary-actions {
1006 margin-bottom: $lineheight/2;
1009 /* Rules for the trace list shown by the traces tab etc */
1012 font-size: $lineheight/2;
1029 .trace_identifiable {
1042 /* Rules for the user profile page */
1047 .userinformation-inner {
1062 .admin-user-info small {
1063 margin-bottom: $lineheight/2;
1065 margin-right: $lineheight;
1070 border-bottom: 1px solid #ccc;
1071 padding-bottom: $lineheight;
1074 margin-bottom: $lineheight/2;
1079 margin-top: $lineheight;
1083 .activity-details p {
1088 #friends-container .contact-activity ul {
1093 p#no_home_location {
1094 margin: $lineheight;
1097 margin-top: $lineheight/4;
1102 /* Rules for the user map */
1104 .content_map .leaflet-popup-content {
1105 margin: $lineheight/2;
1109 /* Rules for user popups on maps */
1115 margin-top: 0 0 0 60px;
1118 img.user_thumbnail {
1120 margin: 0 $lineheight/2 0 0;
1124 /* Rules for the user list */
1127 font-size: $lineheight/2;
1131 vertical-align: middle;
1140 #user_list_actions {
1142 margin-top: $lineheight/2;
1145 /* Rules for the diary list page */
1147 .diary_entry-list img.user_thumbnail {
1154 margin-top: $lineheight/2;
1155 padding-top: $lineheight;
1156 border-top: 1px solid #ccc;
1171 ul.secondary-actions { display: inline-block;}
1174 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1178 #content .post_heading {
1179 margin-bottom: $lineheight;
1182 margin-bottom: $lineheight/2;
1187 /* Rules for the diary entry page */
1194 border: 1px solid #ccc;
1196 margin-bottom: $lineheight;
1199 border-top: 1px solid #ccc;
1200 padding-top: $lineheight;
1201 margin-top: $lineheight/2;
1207 margin-top: $lineheight/2;
1208 border-top: 1px dashed #ccc;
1209 padding-top: $lineheight/2;
1211 margin-top: $lineheight;
1212 padding-top: $lineheight;
1213 border-top: 1px solid #ccc;
1216 margin-bottom: $lineheight/2;
1225 .diary_entry-view img.user_thumbnail {
1229 /* Rules for the login page */
1231 #login_openid_buttons {
1235 #login_openid_buttons li {
1237 padding: $lineheight/4 $lineheight/2;
1240 /* Rules for the account confirmation page */
1244 border: 1px solid #ccc;
1245 padding: $lineheight;
1246 margin-bottom: $lineheight;
1260 margin: $lineheight auto inherit auto;
1265 input[type=submit] {
1271 background: darken($grey, $hovercolor);
1276 margin-bottom: $lineheight;
1278 #contributorGuidance {
1279 background-color: $offwhite;
1281 -moz-border-radius: 4px;
1288 /* Rules for the account settings page */
1290 #accountForm .user_map {
1294 border: 1px solid #ccc;
1297 #accountForm .user_image {
1301 #accountForm #user_image {
1305 #accountForm ul.accountImage-options {
1318 display: inline !important;
1321 .content_map.settings_map {
1326 /* Rules for the oauth settings page */
1328 .oauth_clients .buttons .oauth-edit {
1329 border-radius: 2px 0 0 2px;
1332 .oauth_clients .buttons .oauth-delete {
1333 border-radius: 0 2px 2px 0;
1336 /* Rules for messages pages */
1340 border: 1px solid #ddd;
1342 input[type="submit"] {
1346 border-top: 1px solid #ccc;
1350 background: #f8f8ff;
1363 padding: $lineheight/4;
1374 border-right: 1px solid $keyline;
1378 .inbox-row .inbox-mark-read {
1383 margin-bottom: $lineheight;
1384 padding: $lineheight/4 0px 4px 0px;
1385 border-bottom: 1px solid #ccc;
1392 .info-line .user_thumbnail_tiny {
1393 vertical-align: middle;
1402 .inbox-row-unread .inbox-mark-unread {
1406 .message-read .message-buttons {
1407 margin-top: $lineheight;
1408 padding-top: $lineheight;
1409 border-top: 1px solid $keyline;
1412 .message-read .buttons .mark-unread-button {
1416 /* Rules for "flash" notice boxes shown at the top of the content area */
1419 padding: $lineheight;
1421 background-color: #ff7070;
1424 background-color: #ffe0cc;
1427 background-color: #CBEEA7;
1431 /* Rules for highlighting fields with rails validation errors */
1433 .field_with_errors {
1435 background-color: #ff7070;
1439 /* Rules for rails validation error boxes */
1443 border: 2px solid #ff7070;
1444 padding: 0 $lineheight/2;
1445 margin-bottom: $lineheight;
1446 background-color: #f0f0f0;
1449 margin: 0 -10px 10px -10px;
1450 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1453 background-color: #c00;
1461 padding: $lineheight/4;
1465 padding-left: $lineheight;
1474 /* Rules for forms */
1478 margin-bottom: $lineheight;
1480 label.standard-label {
1482 margin-bottom: $lineheight/4;
1483 font-size: $typeheight;
1487 label.standard-label.secondary {
1488 display: inline-block;
1489 font-weight: normal;
1492 font-weight: normal;
1499 margin-top: $lineheight;
1500 padding-top: $lineheight;
1501 border-top: 1px solid $keyline;
1504 margin-bottom: $lineheight/2;
1512 input[type="checkbox"],
1513 input[type="radio"] {
1519 #remember_me_openid {
1523 input[type="checkbox"],
1524 input[type="radio"] {
1529 input[type="email"],
1531 input[type="password"],
1533 border: 1px solid #ccc;
1542 height: 100% !important;
1545 /* Rules for user images */
1550 border: 1px solid #ccc;
1551 margin-bottom: $lineheight;
1553 margin-right: $lineheight;
1556 img.user_thumbnail {
1559 border: 1px solid #ccc;
1560 margin-right: $lineheight;
1563 img.user_thumbnail_tiny {
1566 border: 1px solid #ccc;
1569 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1572 white-space: nowrap;
1575 /* Rules for geo microformats */
1578 border-bottom: none;
1581 /* Rules for RSS buttons */
1588 /* General styles for action lists / subnavs / pager navs */
1590 ul.secondary-actions {
1595 display: inline-block;
1602 border-left: 1px solid #ccc;
1603 padding-left: $lineheight/4;
1604 margin-right: $lineheight/4;
1615 /* Utility for managing inner content areas */
1617 .inner22 { padding: $lineheight;}
1619 .inner12 { padding: $lineheight/2 $lineheight;}
1621 .inner11 { padding: $lineheight/2;}
1623 .inner02 { padding: 0 $lineheight;}
1625 /* Utility for general button styles */
1627 input[type="button"],
1628 input[type="submit"],
1629 input[type="reset"],
1633 display: inline-block;
1635 padding: $lineheight/4 $lineheight/2;
1637 margin: 0 0 $lineheight/2 0;
1642 -moz-border-radius: 2px;
1644 background: darken($blue, $hovercolor);
1645 text-decoration: none;
1648 background: $lightblue;
1650 background: darken($lightblue, $hovercolor);
1654 background: $lightblue;
1663 input[type="submit"],
1664 input[type="button"],
1665 input[type="reset"],
1667 box-sizing: border-box;
1673 border-right:1px solid white;
1676 .button:first-child {
1677 border-radius:2px 0 0 2px;
1680 .button:last-child {
1681 border-radius:0 2px 2px 0;
1682 border-right-width: 0;
1686 *[value="Hide"] + input:last-child,
1687 *[value="Hide"] + .button:last-child {
1689 border-right-width: 0;
1691 /* if a 3-button set has a hidden middle button */
1692 *[value="Hide"] + input:nth-child(3),
1693 *[value="Hide"] + .button:nth-child(3) {
1694 border-radius:0 2px 2px 0;
1695 border-right-width: 0;
1697 /* if a 3-button set starts with a hidden button */
1698 *[value="Hide"] + input:nth-child(2):not(:last-child),
1699 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1700 border-radius:2px 0 0 2px;
1701 border-right-width: 1px solid white;
1705 /* Rules for doing distinct colour of alternate table rows */
1709 background: $offwhite;
1717 /* Rules for OpenID logo */
1720 vertical-align: text-bottom;
1724 /* Rules for rich text */
1729 padding-bottom: $lineheight/2;
1730 border-bottom: 1px dashed #cccccc;
1731 margin-bottom: $lineheight/2;
1743 font-size: $typeheight;
1748 background: #e8e8e8;
1754 background: #e8e8e8;
1763 padding: $lineheight;
1764 background-color: $offwhite;
1771 border-left: $lineheight solid $offwhite;
1772 padding-left: $lineheight;
1779 padding-left: $lineheight;
1780 margin-bottom: $lineheight;
1781 margin-left: $lineheight;
1789 list-style: decimal;
1793 .diary_post .richtext {
1794 margin-top: $lineheight;
1797 .comments .richtext {
1802 /* Rules for rich text editors */
1804 .richtext_container {
1805 margin-bottom: $lineheight;
1809 display: inline-block;
1810 vertical-align: top;
1813 display: inline-block;
1814 padding: $lineheight;
1815 background-color: $offwhite;
1819 background-image: image-url("loading.gif");
1820 background-repeat: no-repeat;
1821 background-position: center;
1831 display: inline-block;
1832 vertical-align: top;
1834 background-color: #f8f8ff;
1835 padding: $lineheight/2;
1843 border-bottom: 1px solid #ccc;
1844 margin-bottom: $lineheight/4;
1845 padding-bottom: $lineheight/4;
1848 li h4, li span, li p {
1849 display: inline-block;
1850 vertical-align: top;
1861 margin-left: $lineheight/2;
1862 margin-bottom: $lineheight/4;
1863 white-space: nowrap;
1868 /* Rules for the user notes list */
1872 background-color: #eeeeee;
1884 /* Rules for the notes interface */
1887 padding-top: $lineheight/2;
1892 margin-bottom: $lineheight/2;
1896 margin-top: $lineheight/2;
1902 left: $lineheight/4;
1905 background: image-url("sprite.png") 0 -45px no-repeat;
1910 padding-left: $lineheight;
1913 .permalink:hover span {
1919 background-color: #ffe0cc;
1921 margin-bottom: $lineheight/2;
1940 margin-top: $lineheight/4;
1946 * Rules for the iD editor
1953 /* Rules for rotating sidebar ads */
1959 border-bottom: 1px solid #ccc;