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;
978 display: inline-block;
987 padding: $lineheight/4 0;
989 text-overflow: ellipsis;
1000 #browse_map .geolink {
1004 #browse_map .secondary-actions {
1005 margin-bottom: $lineheight/2;
1008 /* Rules for the trace list shown by the traces tab etc */
1011 font-size: $lineheight/2;
1028 .trace_identifiable {
1041 /* Rules for the user profile page */
1046 .userinformation-inner {
1061 .admin-user-info small {
1062 margin-bottom: $lineheight/2;
1064 margin-right: $lineheight;
1069 border-bottom: 1px solid #ccc;
1070 padding-bottom: $lineheight;
1073 margin-bottom: $lineheight/2;
1078 margin-top: $lineheight;
1082 .activity-details p {
1087 #friends-container .contact-activity ul {
1092 p#no_home_location {
1093 margin: $lineheight;
1096 margin-top: $lineheight/4;
1101 /* Rules for the user map */
1103 .content_map .leaflet-popup-content {
1104 margin: $lineheight/2;
1108 /* Rules for user popups on maps */
1114 margin-top: 0 0 0 60px;
1117 img.user_thumbnail {
1119 margin: 0 $lineheight/2 0 0;
1123 /* Rules for the user list */
1126 font-size: $lineheight/2;
1130 vertical-align: middle;
1139 #user_list_actions {
1141 margin-top: $lineheight/2;
1144 /* Rules for the diary list page */
1146 .diary_entry-list img.user_thumbnail {
1153 margin-top: $lineheight/2;
1154 padding-top: $lineheight;
1155 border-top: 1px solid #ccc;
1170 ul.secondary-actions { display: inline-block;}
1173 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1177 #content .post_heading {
1178 margin-bottom: $lineheight;
1181 margin-bottom: $lineheight/2;
1186 /* Rules for the diary entry page */
1193 border: 1px solid #ccc;
1195 margin-bottom: $lineheight;
1198 border-top: 1px solid #ccc;
1199 padding-top: $lineheight;
1200 margin-top: $lineheight/2;
1206 margin-top: $lineheight/2;
1207 border-top: 1px dashed #ccc;
1208 padding-top: $lineheight/2;
1210 margin-top: $lineheight;
1211 padding-top: $lineheight;
1212 border-top: 1px solid #ccc;
1215 margin-bottom: $lineheight/2;
1224 .diary_entry-view img.user_thumbnail {
1228 /* Rules for the login page */
1230 #login_openid_buttons {
1234 #login_openid_buttons li {
1236 padding: $lineheight/4 $lineheight/2;
1239 /* Rules for the account confirmation page */
1243 border: 1px solid #ccc;
1244 padding: $lineheight;
1245 margin-bottom: $lineheight;
1259 margin: $lineheight auto inherit auto;
1264 input[type=submit] {
1270 background: darken($grey, $hovercolor);
1275 margin-bottom: $lineheight;
1277 #contributorGuidance {
1278 background-color: $offwhite;
1280 -moz-border-radius: 4px;
1287 /* Rules for the account settings page */
1289 #accountForm .user_map {
1293 border: 1px solid #ccc;
1296 #accountForm .user_image {
1300 #accountForm #user_image {
1304 #accountForm ul.accountImage-options {
1317 display: inline !important;
1320 .content_map.settings_map {
1325 /* Rules for the oauth settings page */
1327 .oauth_clients .buttons .oauth-edit {
1328 border-radius: 2px 0 0 2px;
1331 .oauth_clients .buttons .oauth-delete {
1332 border-radius: 0 2px 2px 0;
1335 /* Rules for messages pages */
1339 border: 1px solid #ddd;
1341 input[type="submit"] {
1345 border-top: 1px solid #ccc;
1349 background: #f8f8ff;
1362 padding: $lineheight/4;
1366 border-right: 1px solid $keyline;
1370 .inbox-row .inbox-mark-read {
1375 margin-bottom: $lineheight;
1376 padding: $lineheight/4 0px 4px 0px;
1377 border-bottom: 1px solid #ccc;
1384 .info-line .user_thumbnail_tiny {
1385 vertical-align: middle;
1394 .inbox-row-unread .inbox-mark-unread {
1398 .message-read .message-buttons {
1399 margin-top: $lineheight;
1400 padding-top: $lineheight;
1401 border-top: 1px solid $keyline;
1404 .message-read .buttons .mark-unread-button {
1408 /* Rules for "flash" notice boxes shown at the top of the content area */
1411 padding: $lineheight;
1413 background-color: #ff7070;
1416 background-color: #ffe0cc;
1419 background-color: #CBEEA7;
1423 /* Rules for highlighting fields with rails validation errors */
1425 .field_with_errors {
1427 background-color: #ff7070;
1431 /* Rules for rails validation error boxes */
1435 border: 2px solid #ff7070;
1436 padding: $lineheight/2;
1437 margin-bottom: $lineheight;
1438 background-color: #f0f0f0;
1441 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1444 background-color: #c00;
1452 padding: $lineheight/4;
1462 /* Rules for forms */
1466 margin-bottom: $lineheight;
1468 label.standard-label {
1470 margin-bottom: $lineheight/4;
1471 font-size: $typeheight;
1475 label.standard-label.secondary {
1476 display: inline-block;
1477 font-weight: normal;
1480 font-weight: normal;
1487 margin-top: $lineheight;
1488 padding-top: $lineheight;
1489 border-top: 1px solid $keyline;
1492 margin-bottom: $lineheight/2;
1500 input[type="checkbox"],
1501 input[type="radio"] {
1507 #remember_me_openid {
1511 input[type="checkbox"],
1512 input[type="radio"] {
1517 input[type="email"],
1519 input[type="password"],
1521 border: 1px solid #ccc;
1530 height: 100% !important;
1533 /* Rules for user images */
1538 border: 1px solid #ccc;
1539 margin-bottom: $lineheight;
1541 margin-right: $lineheight;
1544 img.user_thumbnail {
1547 border: 1px solid #ccc;
1548 margin-right: $lineheight;
1551 img.user_thumbnail_tiny {
1554 border: 1px solid #ccc;
1557 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1560 white-space: nowrap;
1563 /* Rules for geo microformats */
1566 border-bottom: none;
1569 /* Rules for RSS buttons */
1576 /* General styles for action lists / subnavs / pager navs */
1578 ul.secondary-actions {
1583 display: inline-block;
1590 border-left: 1px solid #ccc;
1591 padding-left: $lineheight/4;
1592 margin-right: $lineheight/4;
1603 /* Utility for managing inner content areas */
1605 .inner22 { padding: $lineheight;}
1607 .inner12 { padding: $lineheight/2 $lineheight;}
1609 .inner11 { padding: $lineheight/2;}
1611 .inner02 { padding: 0 $lineheight;}
1613 /* Utility for general button styles */
1615 input[type="button"],
1616 input[type="submit"],
1617 input[type="reset"],
1621 display: inline-block;
1623 padding: $lineheight/4 $lineheight/2;
1625 margin: 0 0 $lineheight/2 0;
1630 -moz-border-radius: 2px;
1632 background: darken($blue, $hovercolor);
1633 text-decoration: none;
1636 background: $lightblue;
1638 background: darken($lightblue, $hovercolor);
1648 input[type="submit"],
1649 input[type="button"],
1650 input[type="reset"],
1652 box-sizing: border-box;
1658 border-right:1px solid white;
1661 .button:first-child {
1662 border-radius:2px 0 0 2px;
1665 .button:last-child {
1666 border-radius:0 2px 2px 0;
1667 border-right-width: 0;
1671 *[value="Hide"] + input:last-child,
1672 *[value="Hide"] + .button:last-child {
1674 border-right-width: 0;
1676 /* if a 3-button set has a hidden middle button */
1677 *[value="Hide"] + input:nth-child(3),
1678 *[value="Hide"] + .button:nth-child(3) {
1679 border-radius:0 2px 2px 0;
1680 border-right-width: 0;
1682 /* if a 3-button set starts with a hidden button */
1683 *[value="Hide"] + input:nth-child(2):not(:last-child),
1684 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1685 border-radius:2px 0 0 2px;
1686 border-right-width: 1px solid white;
1690 /* Rules for doing distinct colour of alternate table rows */
1694 background: $offwhite;
1702 /* Rules for OpenID logo */
1705 vertical-align: text-bottom;
1709 /* Rules for rich text */
1714 padding-bottom: $lineheight/2;
1715 border-bottom: 1px dashed #cccccc;
1716 margin-bottom: $lineheight/2;
1728 font-size: $typeheight;
1733 background: #e8e8e8;
1739 background: #e8e8e8;
1748 padding: $lineheight;
1749 background-color: $offwhite;
1756 border-left: $lineheight solid $offwhite;
1757 padding-left: $lineheight;
1764 padding-left: $lineheight;
1765 margin-bottom: $lineheight;
1766 margin-left: $lineheight;
1774 list-style: decimal;
1778 .diary_post .richtext {
1779 margin-top: $lineheight;
1782 .comments .richtext {
1787 /* Rules for rich text editors */
1789 .richtext_container {
1790 margin-bottom: $lineheight;
1794 display: inline-block;
1795 vertical-align: top;
1798 display: inline-block;
1799 padding: $lineheight;
1800 background-color: $offwhite;
1804 background-image: image-url("loading.gif");
1805 background-repeat: no-repeat;
1806 background-position: center;
1816 display: inline-block;
1817 vertical-align: top;
1819 background-color: #f8f8ff;
1820 padding: $lineheight/2;
1828 border-bottom: 1px solid #ccc;
1829 margin-bottom: $lineheight/4;
1830 padding-bottom: $lineheight/4;
1833 li h4, li span, li p {
1834 display: inline-block;
1835 vertical-align: top;
1846 margin-left: $lineheight/2;
1847 margin-bottom: $lineheight/4;
1848 white-space: nowrap;
1853 /* Rules for the user notes list */
1857 background-color: #eeeeee;
1869 /* Rules for the notes interface */
1872 padding-top: $lineheight/2;
1877 margin-bottom: $lineheight/2;
1881 margin-top: $lineheight/2;
1887 left: $lineheight/4;
1890 background: image-url("sprite.png") 0 -45px no-repeat;
1895 padding-left: $lineheight;
1898 .permalink:hover span {
1904 background-color: #ffe0cc;
1906 margin-bottom: $lineheight/2;
1925 margin-top: $lineheight/4;
1931 * Rules for the iD editor
1938 /* Rules for rotating sidebar ads */
1944 border-bottom: 1px solid #ccc;