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: $lineheight/2;
 
1444   margin-bottom: $lineheight;
 
1445   background-color: #f0f0f0;
 
1448     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
 
1451     background-color: #c00;
 
1459     padding: $lineheight/4;
 
1469 /* Rules for forms */
 
1473     margin-bottom: $lineheight;
 
1475   label.standard-label {
 
1477     margin-bottom: $lineheight/4;
 
1478     font-size: $typeheight;
 
1482   label.standard-label.secondary {
 
1483     display: inline-block;
 
1484     font-weight: normal;
 
1487     font-weight: normal;
 
1494     margin-top: $lineheight;
 
1495     padding-top: $lineheight;
 
1496     border-top: 1px solid $keyline;
 
1499     margin-bottom: $lineheight/2;
 
1507   input[type="checkbox"],
 
1508   input[type="radio"] {
 
1514 #remember_me_openid {
 
1518 input[type="checkbox"],
 
1519 input[type="radio"] {
 
1524 input[type="email"],
 
1526 input[type="password"],
 
1528   border: 1px solid #ccc;
 
1537   height: 100% !important;
 
1540 /* Rules for user images */
 
1545   border: 1px solid #ccc;
 
1546   margin-bottom: $lineheight;
 
1548   margin-right: $lineheight;
 
1551 img.user_thumbnail {
 
1554   border: 1px solid #ccc;
 
1555   margin-right: $lineheight;
 
1558 img.user_thumbnail_tiny {
 
1561   border: 1px solid #ccc;
 
1564 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
 
1567   white-space: nowrap;
 
1570 /* Rules for geo microformats */
 
1573   border-bottom: none;
 
1576 /* Rules for RSS buttons */
 
1583 /* General styles for action lists / subnavs / pager navs */
 
1585 ul.secondary-actions {
 
1590     display: inline-block;
 
1597     border-left: 1px solid #ccc;
 
1598     padding-left: $lineheight/4;
 
1599     margin-right: $lineheight/4;
 
1610 /* Utility for managing inner content areas */
 
1612 .inner22 { padding: $lineheight;}
 
1614 .inner12 { padding: $lineheight/2 $lineheight;}
 
1616 .inner11 { padding: $lineheight/2;}
 
1618 .inner02 { padding: 0 $lineheight;}
 
1620 /* Utility for general button styles */
 
1622 input[type="button"],
 
1623 input[type="submit"],
 
1624 input[type="reset"],
 
1628   display: inline-block;
 
1630   padding: $lineheight/4 $lineheight/2;
 
1632   margin: 0 0 $lineheight/2 0;
 
1637   -moz-border-radius: 2px;
 
1639     background: darken($blue, $hovercolor);
 
1640     text-decoration: none;
 
1643     background: $lightblue;
 
1645       background: darken($lightblue, $hovercolor);
 
1649     background: $lightblue;
 
1658   input[type="submit"],
 
1659   input[type="button"],
 
1660   input[type="reset"],
 
1662     box-sizing: border-box;
 
1668     border-right:1px solid white;
 
1671   .button:first-child {
 
1672     border-radius:2px 0 0 2px;
 
1675   .button:last-child {
 
1676     border-radius:0 2px 2px 0;
 
1677     border-right-width: 0;
 
1681   *[value="Hide"] + input:last-child,
 
1682   *[value="Hide"] + .button:last-child {
 
1684     border-right-width: 0;
 
1686     /* if a 3-button set has a hidden middle button */
 
1687   *[value="Hide"] + input:nth-child(3),
 
1688   *[value="Hide"] + .button:nth-child(3) {
 
1689     border-radius:0 2px 2px 0;
 
1690     border-right-width: 0;
 
1692   /* if a 3-button set starts with a hidden button */
 
1693   *[value="Hide"] + input:nth-child(2):not(:last-child),
 
1694   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
 
1695     border-radius:2px 0 0 2px;
 
1696     border-right-width: 1px solid white;
 
1700 /* Rules for doing distinct colour of alternate table rows */
 
1704   background: $offwhite;
 
1712 /* Rules for OpenID logo */
 
1715   vertical-align: text-bottom;
 
1719 /* Rules for rich text */
 
1724     padding-bottom: $lineheight/2;
 
1725     border-bottom: 1px dashed #cccccc;
 
1726     margin-bottom: $lineheight/2;
 
1738     font-size: $typeheight;
 
1743     background: #e8e8e8;
 
1749     background: #e8e8e8;
 
1758     padding: $lineheight;
 
1759     background-color: $offwhite;
 
1766     border-left: $lineheight solid $offwhite;
 
1767     padding-left: $lineheight;
 
1774     padding-left: $lineheight;
 
1775     margin-bottom: $lineheight;
 
1776     margin-left: $lineheight;
 
1784     list-style: decimal;
 
1788 .diary_post .richtext {
 
1789     margin-top: $lineheight;
 
1792 .comments .richtext {
 
1797 /* Rules for rich text editors */
 
1799 .richtext_container {
 
1800   margin-bottom: $lineheight;
 
1804     display: inline-block;
 
1805     vertical-align: top;
 
1808       display: inline-block;
 
1809       padding: $lineheight;
 
1810       background-color: $offwhite;
 
1814         background-image: image-url("loading.gif");
 
1815         background-repeat: no-repeat;
 
1816         background-position: center;
 
1826     display: inline-block;
 
1827     vertical-align: top;
 
1829     background-color: #f8f8ff;
 
1830     padding: $lineheight/2;
 
1838       border-bottom: 1px solid #ccc;
 
1839       margin-bottom: $lineheight/4;
 
1840       padding-bottom: $lineheight/4;
 
1843     li h4, li span, li p {
 
1844       display: inline-block;
 
1845       vertical-align: top;
 
1856       margin-left: $lineheight/2;
 
1857       margin-bottom: $lineheight/4;
 
1858       white-space: nowrap;
 
1863 /* Rules for the user notes list */
 
1867     background-color: #eeeeee;
 
1879 /* Rules for the notes interface */
 
1882   padding-top: $lineheight/2;
 
1887     margin-bottom: $lineheight/2;
 
1891     margin-top: $lineheight/2;
 
1897     left: $lineheight/4;
 
1900     background: image-url("sprite.png") 0 -45px no-repeat;
 
1905     padding-left: $lineheight;
 
1908   .permalink:hover span {
 
1914     background-color: #ffe0cc;
 
1916     margin-bottom: $lineheight/2;
 
1935     margin-top: $lineheight/4;
 
1941  * Rules for the iD editor
 
1948 /* Rules for rotating sidebar ads */
 
1954   border-bottom: 1px solid #ccc;