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;
1373 border-right: 1px solid $keyline;
1377 .inbox-row .inbox-mark-read {
1382 margin-bottom: $lineheight;
1383 padding: $lineheight/4 0px 4px 0px;
1384 border-bottom: 1px solid #ccc;
1391 .info-line .user_thumbnail_tiny {
1392 vertical-align: middle;
1401 .inbox-row-unread .inbox-mark-unread {
1405 .message-read .message-buttons {
1406 margin-top: $lineheight;
1407 padding-top: $lineheight;
1408 border-top: 1px solid $keyline;
1411 .message-read .buttons .mark-unread-button {
1415 /* Rules for "flash" notice boxes shown at the top of the content area */
1418 padding: $lineheight;
1420 background-color: #ff7070;
1423 background-color: #ffe0cc;
1426 background-color: #CBEEA7;
1430 /* Rules for highlighting fields with rails validation errors */
1432 .field_with_errors {
1434 background-color: #ff7070;
1438 /* Rules for rails validation error boxes */
1442 border: 2px solid #ff7070;
1443 padding: 0 $lineheight/2;
1444 margin-bottom: $lineheight;
1445 background-color: #f0f0f0;
1448 margin: 0 -10px 10px -10px;
1449 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1452 background-color: #c00;
1460 padding: $lineheight/4;
1464 padding-left: $lineheight;
1473 /* Rules for forms */
1477 margin-bottom: $lineheight;
1479 label.standard-label {
1481 margin-bottom: $lineheight/4;
1482 font-size: $typeheight;
1486 label.standard-label.secondary {
1487 display: inline-block;
1488 font-weight: normal;
1491 font-weight: normal;
1498 margin-top: $lineheight;
1499 padding-top: $lineheight;
1500 border-top: 1px solid $keyline;
1503 margin-bottom: $lineheight/2;
1511 input[type="checkbox"],
1512 input[type="radio"] {
1518 #remember_me_openid {
1522 input[type="checkbox"],
1523 input[type="radio"] {
1528 input[type="email"],
1530 input[type="password"],
1532 border: 1px solid #ccc;
1541 height: 100% !important;
1544 /* Rules for user images */
1549 border: 1px solid #ccc;
1550 margin-bottom: $lineheight;
1552 margin-right: $lineheight;
1555 img.user_thumbnail {
1558 border: 1px solid #ccc;
1559 margin-right: $lineheight;
1562 img.user_thumbnail_tiny {
1565 border: 1px solid #ccc;
1568 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1571 white-space: nowrap;
1574 /* Rules for geo microformats */
1577 border-bottom: none;
1580 /* Rules for RSS buttons */
1587 /* General styles for action lists / subnavs / pager navs */
1589 ul.secondary-actions {
1594 display: inline-block;
1601 border-left: 1px solid #ccc;
1602 padding-left: $lineheight/4;
1603 margin-right: $lineheight/4;
1614 /* Utility for managing inner content areas */
1616 .inner22 { padding: $lineheight;}
1618 .inner12 { padding: $lineheight/2 $lineheight;}
1620 .inner11 { padding: $lineheight/2;}
1622 .inner02 { padding: 0 $lineheight;}
1624 /* Utility for general button styles */
1626 input[type="button"],
1627 input[type="submit"],
1628 input[type="reset"],
1632 display: inline-block;
1634 padding: $lineheight/4 $lineheight/2;
1636 margin: 0 0 $lineheight/2 0;
1641 -moz-border-radius: 2px;
1643 background: darken($blue, $hovercolor);
1644 text-decoration: none;
1647 background: $lightblue;
1649 background: darken($lightblue, $hovercolor);
1653 background: $lightblue;
1662 input[type="submit"],
1663 input[type="button"],
1664 input[type="reset"],
1666 box-sizing: border-box;
1672 border-right:1px solid white;
1675 .button:first-child {
1676 border-radius:2px 0 0 2px;
1679 .button:last-child {
1680 border-radius:0 2px 2px 0;
1681 border-right-width: 0;
1685 *[value="Hide"] + input:last-child,
1686 *[value="Hide"] + .button:last-child {
1688 border-right-width: 0;
1690 /* if a 3-button set has a hidden middle button */
1691 *[value="Hide"] + input:nth-child(3),
1692 *[value="Hide"] + .button:nth-child(3) {
1693 border-radius:0 2px 2px 0;
1694 border-right-width: 0;
1696 /* if a 3-button set starts with a hidden button */
1697 *[value="Hide"] + input:nth-child(2):not(:last-child),
1698 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1699 border-radius:2px 0 0 2px;
1700 border-right-width: 1px solid white;
1704 /* Rules for doing distinct colour of alternate table rows */
1708 background: $offwhite;
1716 /* Rules for OpenID logo */
1719 vertical-align: text-bottom;
1723 /* Rules for rich text */
1728 padding-bottom: $lineheight/2;
1729 border-bottom: 1px dashed #cccccc;
1730 margin-bottom: $lineheight/2;
1742 font-size: $typeheight;
1747 background: #e8e8e8;
1753 background: #e8e8e8;
1762 padding: $lineheight;
1763 background-color: $offwhite;
1770 border-left: $lineheight solid $offwhite;
1771 padding-left: $lineheight;
1778 padding-left: $lineheight;
1779 margin-bottom: $lineheight;
1780 margin-left: $lineheight;
1788 list-style: decimal;
1792 .diary_post .richtext {
1793 margin-top: $lineheight;
1796 .comments .richtext {
1801 /* Rules for rich text editors */
1803 .richtext_container {
1804 margin-bottom: $lineheight;
1808 display: inline-block;
1809 vertical-align: top;
1812 display: inline-block;
1813 padding: $lineheight;
1814 background-color: $offwhite;
1818 background-image: image-url("loading.gif");
1819 background-repeat: no-repeat;
1820 background-position: center;
1830 display: inline-block;
1831 vertical-align: top;
1833 background-color: #f8f8ff;
1834 padding: $lineheight/2;
1842 border-bottom: 1px solid #ccc;
1843 margin-bottom: $lineheight/4;
1844 padding-bottom: $lineheight/4;
1847 li h4, li span, li p {
1848 display: inline-block;
1849 vertical-align: top;
1860 margin-left: $lineheight/2;
1861 margin-bottom: $lineheight/4;
1862 white-space: nowrap;
1867 /* Rules for the user notes list */
1871 background-color: #eeeeee;
1883 /* Rules for the notes interface */
1886 padding-top: $lineheight/2;
1891 margin-bottom: $lineheight/2;
1895 margin-top: $lineheight/2;
1901 left: $lineheight/4;
1904 background: image-url("sprite.png") 0 -45px no-repeat;
1909 padding-left: $lineheight;
1912 .permalink:hover span {
1918 background-color: #ffe0cc;
1920 margin-bottom: $lineheight/2;
1939 margin-top: $lineheight/4;
1945 * Rules for the iD editor
1952 /* Rules for rotating sidebar ads */
1958 border-bottom: 1px solid #ccc;