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 */
1038 .userinformation-inner {
1053 .admin-user-info small {
1054 margin-bottom: $lineheight/2;
1056 margin-right: $lineheight;
1061 border-bottom: 1px solid #ccc;
1062 padding-bottom: $lineheight;
1065 margin-bottom: $lineheight/2;
1070 margin-top: $lineheight;
1074 .activity-details p {
1079 #friends-container .contact-activity ul {
1084 p#no_home_location {
1085 margin: $lineheight;
1088 margin-top: $lineheight/4;
1093 /* Rules for the user map */
1095 .content_map .leaflet-popup-content {
1096 margin: $lineheight/2;
1100 /* Rules for user popups on maps */
1107 padding-bottom: 5px;
1114 img.user_thumbnail {
1116 margin: 0 $lineheight/2 0 0;
1120 /* Rules for the user list */
1123 font-size: $lineheight/2;
1127 vertical-align: middle;
1136 #user_list_actions {
1138 margin-top: $lineheight/2;
1141 /* Rules for the diary list page */
1143 .diary_entry-list img.user_thumbnail {
1150 margin-top: $lineheight/2;
1151 padding-top: $lineheight;
1152 border-top: 1px solid #ccc;
1167 ul.secondary-actions { display: inline-block;}
1170 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1174 #content .post_heading {
1175 margin-bottom: $lineheight;
1178 margin-bottom: $lineheight/2;
1183 /* Rules for the diary entry page */
1190 border: 1px solid #ccc;
1192 margin-bottom: $lineheight;
1195 border-top: 1px solid #ccc;
1196 padding-top: $lineheight;
1197 margin-top: $lineheight/2;
1203 margin-top: $lineheight/2;
1204 border-top: 1px dashed #ccc;
1205 padding-top: $lineheight/2;
1207 margin-top: $lineheight;
1208 padding-top: $lineheight;
1209 border-top: 1px solid #ccc;
1212 margin-bottom: $lineheight/2;
1221 .diary_entry-view img.user_thumbnail {
1225 /* Rules for the login page */
1227 #login_openid_buttons {
1231 #login_openid_buttons li {
1233 padding: $lineheight/4 $lineheight/2;
1236 /* Rules for the account confirmation page */
1240 border: 1px solid #ccc;
1241 padding: $lineheight;
1242 margin-bottom: $lineheight;
1256 margin: $lineheight auto inherit auto;
1261 input[type=submit] {
1267 background: darken($grey, $hovercolor);
1272 margin-bottom: $lineheight;
1274 #contributorGuidance {
1275 background-color: $offwhite;
1277 -moz-border-radius: 4px;
1284 /* Rules for the account settings page */
1286 #accountForm .user_map {
1290 border: 1px solid #ccc;
1293 #accountForm .user_image {
1297 #accountForm #user_image {
1301 #accountForm ul.accountImage-options {
1314 display: inline !important;
1317 .content_map.settings_map {
1322 /* Rules for the oauth settings page */
1324 .oauth_clients .buttons .oauth-edit {
1325 border-radius: 2px 0 0 2px;
1328 .oauth_clients .buttons .oauth-delete {
1329 border-radius: 0 2px 2px 0;
1332 /* Rules for messages pages */
1336 border: 1px solid #ddd;
1338 input[type="submit"] {
1342 border-top: 1px solid #ccc;
1346 background: #f8f8ff;
1359 padding: $lineheight/4;
1363 border-right: 1px solid $keyline;
1367 .inbox-row .inbox-mark-read {
1372 margin-bottom: $lineheight;
1373 padding: $lineheight/4 0px 4px 0px;
1374 border-bottom: 1px solid #ccc;
1381 .info-line .user_thumbnail_tiny {
1382 vertical-align: middle;
1391 .inbox-row-unread .inbox-mark-unread {
1395 .message-read .message-buttons {
1396 margin-top: $lineheight;
1397 padding-top: $lineheight;
1398 border-top: 1px solid $keyline;
1401 .message-read .buttons .mark-unread-button {
1405 /* Rules for "flash" notice boxes shown at the top of the content area */
1408 padding: $lineheight;
1410 background-color: #ff7070;
1413 background-color: #ffe0cc;
1416 background-color: #CBEEA7;
1420 /* Rules for highlighting fields with rails validation errors */
1422 .field_with_errors {
1424 background-color: #ff7070;
1428 /* Rules for rails validation error boxes */
1432 border: 2px solid #ff7070;
1433 padding: $lineheight/2;
1434 margin-bottom: $lineheight;
1435 background-color: #f0f0f0;
1438 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1441 background-color: #c00;
1449 padding: $lineheight/4;
1459 /* Rules for forms */
1463 margin-bottom: $lineheight;
1465 label.standard-label {
1467 margin-bottom: $lineheight/4;
1468 font-size: $typeheight;
1472 label.standard-label.secondary {
1473 display: inline-block;
1474 font-weight: normal;
1477 font-weight: normal;
1484 margin-top: $lineheight;
1485 padding-top: $lineheight;
1486 border-top: 1px solid $keyline;
1489 margin-bottom: $lineheight/2;
1497 input[type="checkbox"],
1498 input[type="radio"] {
1505 #remember_me_openid {
1510 input[type="email"],
1512 input[type="password"],
1514 border: 1px solid #ccc;
1523 height: 100% !important;
1526 /* Rules for user images */
1531 border: 1px solid #ccc;
1532 margin-bottom: $lineheight;
1534 margin-right: $lineheight;
1537 img.user_thumbnail {
1540 border: 1px solid #ccc;
1541 margin-right: $lineheight;
1544 img.user_thumbnail_tiny {
1547 border: 1px solid #ccc;
1550 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1553 white-space: nowrap;
1556 /* Rules for geo microformats */
1559 border-bottom: none;
1562 /* Rules for RSS buttons */
1569 /* General styles for action lists / subnavs / pager navs */
1571 ul.secondary-actions {
1576 display: inline-block;
1583 border-left: 1px solid #ccc;
1584 padding-left: $lineheight/4;
1585 margin-right: $lineheight/4;
1596 /* Utility for managing inner content areas */
1598 .inner22 { padding: $lineheight;}
1600 .inner12 { padding: $lineheight/2 $lineheight;}
1602 .inner02 { padding: 0 $lineheight;}
1604 /* Utility for general button styles */
1606 input[type="button"],
1607 input[type="submit"],
1608 input[type="reset"],
1612 display: inline-block;
1614 padding: $lineheight/4 $lineheight/2;
1616 margin: 0 0 $lineheight/2 0;
1621 -moz-border-radius: 2px;
1623 background: darken($blue, $hovercolor);
1624 text-decoration: none;
1627 background: $lightblue;
1629 background: darken($lightblue, $hovercolor);
1639 input[type="submit"],
1640 input[type="button"],
1641 input[type="reset"],
1643 box-sizing: border-box;
1650 .button:first-child {
1651 border-radius:2px 0 0 2px;
1652 border-right:1px solid white;
1656 .button:last-child {
1657 border-radius:0 2px 2px 0;
1661 .button:only-child {
1668 /* Rules for doing distinct colour of alternate table rows */
1672 background: $offwhite;
1680 /* Rules for OpenID logo */
1683 vertical-align: text-bottom;
1687 /* Rules for rich text */
1692 padding-bottom: $lineheight/2;
1693 border-bottom: 1px dashed #cccccc;
1694 margin-bottom: $lineheight/2;
1706 font-size: $typeheight;
1711 background: #e8e8e8;
1717 background: #e8e8e8;
1726 padding: $lineheight;
1727 background-color: $offwhite;
1734 border-left: $lineheight solid $offwhite;
1735 padding-left: $lineheight;
1742 padding-left: $lineheight;
1743 margin-bottom: $lineheight;
1744 margin-left: $lineheight;
1752 list-style: decimal;
1756 .diary_post .richtext {
1757 margin-top: $lineheight;
1760 .comments .richtext {
1765 /* Rules for rich text editors */
1767 .richtext_container {
1768 margin-bottom: $lineheight;
1772 display: inline-block;
1773 vertical-align: top;
1776 display: inline-block;
1777 padding: $lineheight;
1778 background-color: $offwhite;
1782 background-image: image-url("loading.gif");
1783 background-repeat: no-repeat;
1784 background-position: center;
1794 display: inline-block;
1795 vertical-align: top;
1797 background-color: #f8f8ff;
1798 padding: $lineheight/2;
1807 border-bottom: 1px solid #ccc;
1808 margin-bottom: $lineheight/4;
1809 padding-bottom: $lineheight/4;
1812 li h4, li span, li p {
1813 display: inline-block;
1814 vertical-align: top;
1825 margin-left: $lineheight/2;
1826 margin-bottom: $lineheight/4;
1827 white-space: nowrap;
1832 /* Rules for the user notes list */
1836 background-color: #eeeeee;
1848 /* Rules for the notes interface */
1851 padding-top: $lineheight/2;
1856 margin-bottom: $lineheight/2;
1860 margin-top: $lineheight/2;
1866 left: $lineheight/4;
1869 background: image-url("sprite.png") 0 -45px no-repeat;
1874 padding-left: $lineheight;
1877 .permalink:hover span {
1883 background-color: #ffe0cc;
1885 margin-bottom: $lineheight/2;
1904 margin-top: $lineheight/4;
1910 * Rules for the iD editor
1917 /* Rules for rotating sidebar ads */
1923 border-bottom: 1px solid #ccc;
1935 padding: $lineheight/2;