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/ */
 
  62 .col0    { float:left; width:04.1666%; }
 
  63 .col1    { float:left; width:08.3333%; }
 
  64 .col2    { float:left; width:16.6666%; }
 
  65 .col3    { float:left; width:25.0000%; }
 
  66 .col4    { float:left; width:33.3333%; }
 
  67 .col5    { float:left; width:41.6666%; }
 
  68 .col6    { float:left; width:50.0000%; }
 
  69 .col7    { float:left; width:58.3333%; }
 
  70 .col8    { float:left; width:66.6666%; }
 
  71 .col9    { float:left; width:75.0000%; }
 
  72 .col10   { float:left; width:83.3333%; }
 
  73 .col11   { float:left; width:91.6666%; }
 
  74 .col12   { width:100%; }
 
  76 .margin0  { margin-left:04.1666%; }
 
  77 .margin1  { margin-left:08.3333%; }
 
  78 .margin2  { margin-left:16.6666%; }
 
  79 .margin3  { margin-left:25.0000%; }
 
  80 .margin4  { margin-left:33.3333%; }
 
  81 .margin5  { margin-left:41.6666%; }
 
  82 .margin6  { margin-left:50.0000%; }
 
  83 .margin7  { margin-left:58.3333%; }
 
  84 .margin8  { margin-left:66.6666%; }
 
  85 .margin9  { margin-left:75.0000%; }
 
  86 .margin10 { margin-left:83.3333%; }
 
  87 .margin11 { margin-left:91.6666%; }
 
  88 .margin12 { margin-left:100.0000%; }
 
  90 .fillL { background-color: white; }
 
  91 /* Default rules for the body of every page */
 
  94   -moz-box-sizing: border-box;
 
  95   -webkit-box-sizing: border-box;
 
  96   box-sizing: border-box;
 
 100   font-family: 'Helvetica Neue',Arial,sans-serif;
 
 101   font-size: $typeheight;
 
 104   background-color: #fff;
 
 111   background-color: #f0f0f0;
 
 115   margin-top: $lineheight/2;
 
 116   margin-bottom: $lineheight;
 
 131   margin-top: $lineheight/2;
 
 132   margin-bottom: $lineheight;
 
 136   font-size: $typeheight;
 
 137   margin-top: $lineheight/2;
 
 138   margin-bottom: $lineheight/2;
 
 144   margin-bottom: $lineheight;
 
 167   margin: 0 0 $lineheight/2 0;
 
 171   vertical-align: middle;
 
 172   margin-right: $lineheight/4;
 
 175 /* Rules for icons */
 
 178   display:inline-block;
 
 182   background:transparent image-url("sprite.png") no-repeat 0 0;
 
 191 .icon.search      { background-position: 0 0; }
 
 192 .icon.donate      { background-position: -20px 0; }
 
 193 .icon.zoomin      { background-position: -40px 0; }
 
 194 .icon.zoomout     { background-position: -60px 0; }
 
 195 .icon.geolocate   { background-position: -80px 0; }
 
 196 .active .icon.geolocate   { background-position: -80px -20px; }
 
 197 .icon.layers      { background-position: -100px 0; }
 
 198 .icon.key         { background-position: -120px 0; }
 
 199 .icon.share       { background-position: -140px 0; }
 
 200 .icon.clipboard   { background-position: -160px 0; }
 
 201 .icon.link        { background-position: -180px 0; }
 
 202 .icon.close       { background-position: -200px 0; }
 
 203 .icon.check       { background-position: -220px 0; }
 
 204 .icon.note        { background-position: -240px 0; }
 
 205 .icon.gear        { background-position: -260px 0; }
 
 207 /* Rules for links */
 
 211   text-decoration: none;
 
 213     text-decoration: underline;
 
 217 /* Rules for horizontal lines */
 
 221   background-color: #ccc;
 
 226 /* General styles for tables */
 
 230   margin-bottom: $lineheight;
 
 233     padding: $lineheight/4;
 
 234     line-height: $lineheight;
 
 241     vertical-align: middle;
 
 245 /* Rules for the whole left sidebar, including the logo */
 
 254   border-right: 1px solid #ccc;
 
 257 /* Rules for the OpenStreetMap logo in the top left corner */
 
 263   padding: $lineheight $lineheight/4;
 
 276   font-size: $lineheight/2;
 
 281 /* Rules for the site name */
 
 287     vertical-align: text-bottom;
 
 291 /* Rules for the introductory text displayed in the left sidebar to new users */
 
 294   padding: $lineheight/4 $lineheight/2;
 
 296     margin: $lineheight/4 0;
 
 299 .sidebar-copy.intro {
 
 300   border-top: 1px solid #ccc;
 
 304  * Rules for alert boxes shown in the left sidebar when important
 
 305  * information needs to be conveyed such as when the site is
 
 306  * undergoing maintenance.
 
 310   padding: $lineheight/4;
 
 311   border-top: 1px solid #ccc;
 
 318     margin: $lineheight/4;
 
 323  * Rules for notice boxes shown in the left sidebar when important, but
 
 324  * non-critical information needs to be conveyed such as notices about
 
 329   padding: $lineheight/4;
 
 330   border-top: 1px solid #ccc;
 
 336     margin: $lineheight/4;
 
 340 /* Rules for the menu displayed in the left sidebar */
 
 345   padding: $lineheight/4 $lineheight/2 $lineheight/2 $lineheight/2;
 
 348   list-style-type: none;
 
 349   border-bottom: 1px solid #ccc;
 
 350   border-top: 1px solid #ccc;
 
 352     margin: $lineheight/2 0px;
 
 361     list-style-type: none;
 
 367     padding: $lineheight/4 0 $lineheight/4 0;
 
 374  * Rules for "optional boxes" which appear in the left sidebar on
 
 375  * certain pages. Current users are the seach box on the main page
 
 376  * and the tag cloud on the traces pages.
 
 381   padding: $lineheight/4 $lineheight/2;
 
 382   margin: $lineheight/4 0;
 
 386 /* Rules for the search box */
 
 398     font-size: $typeheight;
 
 401     padding: 2px 0px 2px $lineheight/4;
 
 402     box-shadow: inset #DDD 0px 1px 3px;
 
 405   input[type="text"]:focus {
 
 407     border: 1px solid #000;
 
 410   input[type="submit"] {
 
 417     text-indent: -1000px;
 
 419     background: image-url("sprite.png") -2px -2px no-repeat;
 
 422     right: $lineheight/4;
 
 428   margin: $lineheight/4 0 0 0;
 
 431 /* Utility for de-emphasizing content */
 
 440 /* Rules for donation request box */
 
 445   padding: $lineheight/4;
 
 446   border: 1px solid #AED1A0;
 
 448   font-size: $typeheight;
 
 453   margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
 
 457     text-decoration: none;
 
 461 /* Rules for Creative Commons logo button */
 
 464   margin: $lineheight/2 0;
 
 468 /* Rules for tabbed navigation bar */
 
 474   border-bottom: 1px solid #ccc;
 
 484 .site-index #top-bar,
 
 485 .site-export #top-bar {
 
 500       padding: 3px $lineheight/2;
 
 505     display: inline-block;
 
 507     text-decoration: none;
 
 510     -webkit-transition: color 200ms ease-in;
 
 511        -moz-transition: color 200ms ease-in;
 
 512          -o-transition: color 200ms ease-in;
 
 513             transition: color 200ms ease-in;
 
 516       text-decoration: underline;
 
 525       text-decoration: none;
 
 529       border-top-color: #ccc;
 
 538 .site-index #view_tab,
 
 539 .site-edit #edit_tab,
 
 540 .changeset-list #history_tab {
 
 545 /* Utility for styling notification numbers */
 
 548   padding: 2px $lineheight/4;
 
 556 /* Rules for greeting bar in the top right corner */
 
 562   &.secondary-actions {
 
 563     padding: 3px $lineheight/2;
 
 567     background-color: #EEE;
 
 569       background-color: #CCC;
 
 575     border-radius: 2px 0 0 2px;
 
 580     display: inline-block;
 
 593     text-decoration: none;
 
 608 /* Rules for the message shown in place of the map when javascript is disabled */
 
 617 /* Rules for bootstrap tooltips */
 
 655   display: inline-block;
 
 658   background-color: white;
 
 665   border-color: transparent;
 
 669 .tooltip.top .tooltip-arrow {
 
 673   border-top-color: white;
 
 674   border-width: 5px 5px 0;
 
 677 .tooltip.right .tooltip-arrow {
 
 681   border-right-color: white;
 
 682   border-width: 5px 5px 5px 0;
 
 685 .tooltip.left .tooltip-arrow {
 
 689   border-left-color: white;
 
 690   border-width: 5px 0 5px 5px;
 
 693 .tooltip.bottom .tooltip-arrow {
 
 697   border-bottom-color: white;
 
 698   border-width: 0 5px 5px;
 
 701 /* Rules for Leaflet maps */
 
 703 .leaflet-control .control-button {
 
 707   background-color: #333;
 
 708   background-color: rgba(0,0,0,.6);
 
 709   -bottom: 1px solid #333; 
 
 710   border-radius: 4px 0 0 4px;
 
 715     background-color: black;
 
 719     background-color: #9ed485;
 
 723     background-color: #333;
 
 724     background-color: rgba(0,0,0,.5);
 
 733 .leaflet-control .zoomin,
 
 734 .control-layers .control-button {
 
 736   border-radius: 4px 0 0 0;
 
 739 .site .leaflet-control .zoomout,
 
 740 .control-key .control-button {
 
 745 .leaflet-control .zoomout, // For non-main page maps
 
 746 .control-locate .control-button,
 
 747 .control-share .control-button {
 
 748   border-radius: 0 0 0 4px;
 
 751 /* Rules for the home page */
 
 767   border-left: 1px solid #CCC;
 
 771     border-bottom: 1px solid #DDD;
 
 781     border:1px solid #ddd;
 
 787   ul, li:last-child, p:last-child {
 
 801     padding: 5px 5px 5px 7px;
 
 802     background-color: #eee;
 
 807     background-color: #ccc;
 
 825       text-decoration: none;
 
 826       background-color: $lightblue;
 
 831       border-right: 1px solid #fff;
 
 832       border-radius: 4px 0 0 4px;
 
 836       border-left: 1px solid #fff;
 
 837       border-radius: 0 4px 4px 0;
 
 841       background-color: $blue;
 
 853       font-family: monospace;
 
 874 .leaflet-top.leaflet-right {
 
 875   top: $lineheight/2 !important;
 
 877     margin-right: 0px !important;
 
 878     margin-top: 0px !important;
 
 882 .leaflet-popup-scrolled {
 
 883   padding-right: $lineheight;
 
 884   border-bottom: 0px !important;
 
 885   border-top: 0px !important;
 
 888 .leaflet-popup-content-wrapper {
 
 889   border-radius: 4px !important;
 
 890   -webkit-border-radius: 4px !important;
 
 893 /* Rules for edit menu */
 
 896   padding: 0 $lineheight/4;
 
 898   display: inline-block;
 
 900     text-decoration: none !important;
 
 908   background-color: #ffffff;
 
 909   border: 1px solid $lightgrey;
 
 915     padding: 2px $lineheight/4;
 
 916     border-top: 1px solid #eee;
 
 921 /* Rules for attribution text under the main map shown on printouts */
 
 927 .attribution_license,
 
 928 .attribution_project {
 
 932 .attribution_notice {
 
 936 /* Rules for the popout map sidebar */
 
 942   border-right: 1px solid $lightgrey;
 
 948         border-bottom: 1px solid #ccc;
 
 951       margin-bottom: $lineheight/4;
 
 961   padding: $lineheight/2 $lineheight;
 
 962   background: $offwhite;
 
 963   border-bottom: 1px solid #ccc;
 
 985     padding: 0 $lineheight $lineheight/2 $lineheight;
 
 986     margin-top: $lineheight/2;
 
 988     border-bottom: 1px solid #ddd;
 
 992 /* Rules for the map key which appears in the popout sidebar */
 
 995  .mapkey-table-key img {
 
1001     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
 
1005 /* Rules for search results which appear in the popout sidebar */
 
1008   margin-top: $lineheight/4;
 
1009   margin-bottom: $lineheight/4;
 
1012 .search_results_entry {
 
1021 .search_results_entry .search_searching {
 
1023   margin: $lineheight auto;
 
1028 ul.results-list li { border-bottom: 1px solid #ccc; }
 
1030 .search_results_error {
 
1034 /* Rules for data browser information which appears in the popout sidebar */
 
1038   .browse_show_list.button {
 
1063 /* Rules for export information which appears in the popout sidebar */
 
1069 .export_area_inputs {
 
1070   margin-bottom: $lineheight/2;
 
1071   input[type="text"] {
 
1078   margin: $lineheight/4;
 
1081 /* Rules for the main content area */
 
1085   padding: $lineheight;
 
1088 .site-edit #content,
 
1089 .site-index #content,
 
1090 .site-export #content {
 
1093   top: 30px; bottom: 0;
 
1094   left: 184px; right: 0;
 
1095   border-left: 1px solid #ccc;
 
1098 /* Overrides for pages that use new layout conventions */
 
1127 .header-illustration {
 
1128   background-position: 0 0;
 
1129   background-repeat: no-repeat;
 
1137     background-image: image-url("sign-up-illustration.png");
 
1141     background-image: image-url("confirm-illustration.png");
 
1145     background-image: image-url("terms-illustration.png");
 
1153     background-image: image-url("sign-up-illustration-arm.png");
 
1157 @media only screen and (max-width:900px) {
 
1158   .header-illustration.new-user-arm { display: none;}
 
1163   border-left: 1px solid #ccc;
 
1167 #content.maximised {
 
1180 #slim_container_content {
 
1182   background-color: #FFFFFF;
 
1183   margin: $lineheight/2 auto;
 
1185   border-radius: 25px;
 
1186   -moz-border-radius: 25px;
 
1187   border: 1px solid #e6e6e6;
 
1191   margin: $lineheight/2;
 
1196     margin-bottom: 15px;
 
1201   margin: 30px $lineheight/2;
 
1204   margin-right: $lineheight/4;
 
1206     vertical-align: middle;
 
1207     margin-bottom: $lineheight/4;
 
1208     margin-right: $lineheight/4;
 
1214   padding: $lineheight;
 
1215   background: $offwhite;
 
1218     margin-bottom: $lineheight/2;
 
1225     margin-top: $lineheight/2;
 
1230 /* Rules for small maps in content areas */
 
1236   border: 1px solid #ccc;
 
1237   margin-bottom: $lineheight;
 
1241 .content_map #small_map {
 
1244   margin-bottom: $lineheight;
 
1247 /* Rules for the changeset list shown by the history tab etc */
 
1252     padding: $lineheight/2 0;
 
1254     border-top: 1px solid #ccc;
 
1256       border-bottom: 1px solid #ccc;
 
1260     background: #FFFFC0;
 
1264     border-left: 1px solid #ccc;
 
1265     padding-left: $lineheight/4;
 
1266     margin-right: $lineheight/4;
 
1270 #changeset_list_map_wrapper {
 
1278 #changeset_list_map_wrapper.scrolled {
 
1282 #changeset_list_map {
 
1284   bottom: $lineheight;
 
1288   border: 1px solid #ccc;
 
1291 #changeset_list_map_wrapper.scrolled #changeset_list_map {
 
1295 /* Rules for the data browser */
 
1298   border-top: 1px solid #ccc;
 
1299   margin-top: $lineheight/2;
 
1300   padding-top: $lineheight/2;
 
1305     background-color: #ffe0cc;
 
1311     margin-bottom: $lineheight/4;
 
1314     display: inline-block;
 
1315     vertical-align: top;
 
1325     display: inline-block;
 
1326     vertical-align: top;
 
1334     padding: $lineheight/4 0;
 
1336     text-overflow: ellipsis;
 
1347 #browse_map .secondary-actions {
 
1349   margin-bottom: $lineheight/2;
 
1352 /* Rules for the trace list shown by the traces tab etc */
 
1355   font-size: $lineheight/2;
 
1372   .trace_identifiable {
 
1385 /* Rules for the user profile page */
 
1390   .userinformation-inner {
 
1405 .admin-user-info small {
 
1406   margin-bottom: $lineheight/2;
 
1408   margin-right: $lineheight;
 
1413   border-bottom: 1px solid #ccc;
 
1414   padding-bottom: $lineheight;
 
1417     margin-bottom: $lineheight/2;
 
1422   margin-top: $lineheight;
 
1426 .activity-details p {
 
1431 #friends-container .contact-activity ul {
 
1436   p#no_home_location {
 
1437     margin: $lineheight;
 
1440     margin-top: $lineheight/4;
 
1445 /* Rules for the user map */
 
1447 .content_map .leaflet-popup-content {
 
1448   margin: $lineheight/2;
 
1452 /* Rules for user popups on maps */
 
1458     margin-top: 0 0 0 60px;
 
1461   img.user_thumbnail {
 
1463     margin: 0 $lineheight/2 0 0;
 
1467 /* Rules for the user list */
 
1470   font-size: $lineheight/2;
 
1474     vertical-align: middle;
 
1483 #user_list_actions {
 
1485   margin-top: $lineheight/2;
 
1488 /* Rules for the diary list page */
 
1490 .diary_entry-list img.user_thumbnail {
 
1497   margin-top: $lineheight/2;
 
1498   padding-top: $lineheight;
 
1499   border-top: 1px solid #ccc;
 
1514   ul.secondary-actions { display: inline-block;}
 
1517 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
 
1521 #content  .post_heading {
 
1522   margin-bottom: $lineheight;
 
1525     margin-bottom: $lineheight/2;
 
1530 /* Rules for the diary entry page */
 
1537     border: 1px solid #ccc;
 
1539     margin-bottom: $lineheight;
 
1542     border-top: 1px solid #ccc;
 
1543     padding-top: $lineheight;
 
1544     margin-top: $lineheight/2;
 
1550     margin-top: $lineheight/2;
 
1551     border-top: 1px dashed #ccc;
 
1552     padding-top: $lineheight/2;
 
1554       margin-top: $lineheight;
 
1555       padding-top: $lineheight;
 
1556       border-top: 1px solid #ccc;
 
1559       margin-bottom: $lineheight/2;
 
1568 .diary_entry-view img.user_thumbnail {
 
1572 /* Rules for the log in page */
 
1574 #login_openid_buttons {
 
1578 #login_openid_buttons li {
 
1580   padding: $lineheight/4 $lineheight/2;
 
1583 /* Rules for the account confirmation page */
 
1587     border: 1px solid #ccc;
 
1588     padding: $lineheight;
 
1589     margin-bottom: $lineheight;
 
1603       margin: $lineheight auto inherit auto;
 
1608     background: $lightblue;
 
1610       background: darken($lightblue, $hovercolor);
 
1620 /* Rules for the account settings page */
 
1622 #accountForm .user_map {
 
1626   border: 1px solid #ccc;
 
1629 #accountForm .user_image {
 
1633 #accountForm #user_image {
 
1637 #accountForm ul.accountImage-options {
 
1650   display: inline !important;
 
1653 .content_map.settings_map {
 
1658 /* Rules for the oauth settings page */
 
1660 .oauth_clients .buttons .oauth-edit {
 
1661   border-radius: 2px 0 0 2px;
 
1664 .oauth_clients .buttons .oauth-delete {
 
1665   border-radius: 0 2px 2px 0;
 
1668 /* Rules for messages pages */
 
1672   border: 1px solid #ddd;
 
1674   input[type="submit"] {
 
1678     border-top: 1px solid #ccc;
 
1682     background: #f8f8ff;
 
1695     padding: $lineheight/4;
 
1706     border-right: 1px solid $lightgrey;
 
1710 .inbox-row .inbox-mark-read {
 
1715   margin-bottom: $lineheight;
 
1716   padding: $lineheight/4 0px 4px 0px;
 
1717   border-bottom: 1px solid #ccc;
 
1724 .info-line .user_thumbnail_tiny {
 
1725   vertical-align: middle;
 
1734 .inbox-row-unread .inbox-mark-unread {
 
1738 .message-read .message-buttons {
 
1739   margin-top: $lineheight;
 
1740   padding-top: $lineheight;
 
1741   border-top: 1px solid $lightgrey;
 
1744 .message-read .buttons .mark-unread-button {
 
1748 /* Rules for "flash" notice boxes shown at the top of the content area */
 
1751     padding: $lineheight;
 
1753     background-color: #ff7070;
 
1756     background-color: #ffe0cc;
 
1759     background-color: #CBEEA7;
 
1763 /* Rules for highlighting fields with rails validation errors */
 
1765 .field_with_errors {
 
1767   background-color: #ff7070;
 
1768   display: inline-block;
 
1772   display: inline-block;
 
1778   background-color: #ff7070;
 
1781 /* Rules for rails validation error boxes */
 
1785   border: 2px solid #ff7070;
 
1786   padding: 0 $lineheight/2;
 
1787   margin-bottom: $lineheight;
 
1788   background-color: #f0f0f0;
 
1791     margin: 0 -10px 10px -10px;
 
1792     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
 
1795     background-color: #c00;
 
1803     padding: $lineheight/4;
 
1807     padding-left: $lineheight;
 
1816 /* Rules for forms */
 
1820     margin-bottom: $lineheight;
 
1822   label.standard-label {
 
1824     margin-bottom: $lineheight/4;
 
1825     font-size: $typeheight;
 
1829   label.standard-label.secondary {
 
1830     display: inline-block;
 
1831     font-weight: normal;
 
1834     font-weight: normal;
 
1841     margin-top: $lineheight;
 
1842     padding-top: $lineheight;
 
1843     border-top: 1px solid $lightgrey;
 
1845   .horizontal-list .form-row { 
 
1847     padding-right: 10px;
 
1850     margin-bottom: $lineheight/2;
 
1858   input[type="checkbox"],
 
1859   input[type="radio"] {
 
1865 #remember_me_openid {
 
1869 input[type="checkbox"],
 
1870 input[type="radio"] {
 
1875 input[type="email"],
 
1877 input[type="password"],
 
1879   border: 1px solid #ccc;
 
1890 /* Rules for user images */
 
1895   border: 1px solid #ccc;
 
1896   margin-bottom: $lineheight;
 
1898   margin-right: $lineheight;
 
1901 img.user_thumbnail {
 
1904   border: 1px solid #ccc;
 
1905   margin-right: $lineheight;
 
1908 img.user_thumbnail_tiny {
 
1911   border: 1px solid #ccc;
 
1914 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
 
1917   white-space: nowrap;
 
1920 /* Rules for geo microformats */
 
1923   border-bottom: none;
 
1926 /* Rules for RSS buttons */
 
1933 /* General styles for action lists / subnavs / pager navs */
 
1935 ul.secondary-actions {
 
1940     display: inline-block;
 
1947     border-left: 1px solid #ccc;
 
1948     padding-left: $lineheight/4;
 
1949     margin-right: $lineheight/4;
 
1964 /* Utility for managing inner content areas */
 
1966 .inner22 { padding: $lineheight;}
 
1968 .inner12 { padding: $lineheight/2 $lineheight;}
 
1970 .inner11 { padding: $lineheight/2;}
 
1972 .inner20 { padding: $lineheight 0;}
 
1974 .inner02 { padding: 0 $lineheight;}
 
1976 /* Utility for general button styles */
 
1978 input[type="button"],
 
1979 input[type="submit"],
 
1980 input[type="reset"],
 
1984   display: inline-block;
 
1986   padding: $lineheight/4 $lineheight/2;
 
1987   min-height: 20px + $lineheight/2;
 
1989   margin: 0 0 $lineheight/2 0;
 
1994   -moz-border-radius: 2px;
 
1996     background: darken($blue, $hovercolor);
 
1997     text-decoration: none;
 
2000     background: $lightblue;
 
2002       background: darken($lightblue, $hovercolor);
 
2006     background: $lightgrey;
 
2008       background: $lightgrey;
 
2018   input[type="submit"],
 
2019   input[type="button"],
 
2020   input[type="reset"],
 
2022     box-sizing: border-box;
 
2028     border-right:1px solid white;
 
2029     text-overflow: ellipsis;
 
2030     white-space: nowrap;
 
2034   .button:first-child {
 
2035     border-radius:2px 0 0 2px;
 
2038   .button:last-child {
 
2039     border-radius:0 2px 2px 0;
 
2040     border-right-width: 0;
 
2044   *[value="Hide"] + input:last-child,
 
2045   *[value="Hide"] + .button:last-child {
 
2047     border-right-width: 0;
 
2049     /* if a 3-button set has a hidden middle button */
 
2050   *[value="Hide"] + input:nth-child(3),
 
2051   *[value="Hide"] + .button:nth-child(3) {
 
2052     border-radius:0 2px 2px 0;
 
2053     border-right-width: 0;
 
2055   /* if a 3-button set starts with a hidden button */
 
2056   *[value="Hide"] + input:nth-child(2):not(:last-child),
 
2057   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
 
2058     border-radius:2px 0 0 2px;
 
2059     border-right-width: 1px solid white;
 
2063 /* Rules for doing distinct colour of alternate table rows */
 
2067   background: $offwhite;
 
2075 /* Rules for OpenID logo */
 
2078   vertical-align: text-bottom;
 
2082 /* Rules for rich text */
 
2087     padding-bottom: $lineheight/2;
 
2088     border-bottom: 1px dashed #cccccc;
 
2089     margin-bottom: $lineheight/2;
 
2101     font-size: $typeheight;
 
2106     background: #e8e8e8;
 
2112     background: #e8e8e8;
 
2121     padding: $lineheight;
 
2122     background-color: $offwhite;
 
2129     border-left: $lineheight solid $offwhite;
 
2130     padding-left: $lineheight;
 
2136     padding-left: $lineheight;
 
2137     margin-bottom: $lineheight;
 
2138     margin-left: $lineheight;
 
2146     list-style: decimal;
 
2150 .diary_post .richtext {
 
2151     margin-top: $lineheight;
 
2154 .comments .richtext {
 
2159 /* Rules for rich text editors */
 
2161 .richtext_container {
 
2162   margin-bottom: $lineheight;
 
2166     display: inline-block;
 
2167     vertical-align: top;
 
2170       display: inline-block;
 
2171       padding: $lineheight;
 
2172       background-color: $offwhite;
 
2176         background-image: image-url("loading.gif");
 
2177         background-repeat: no-repeat;
 
2178         background-position: center;
 
2188     display: inline-block;
 
2189     vertical-align: top;
 
2191     background-color: #f8f8ff;
 
2192     padding: $lineheight/2;
 
2200       border-bottom: 1px solid #ccc;
 
2201       margin-bottom: $lineheight/4;
 
2202       padding-bottom: $lineheight/4;
 
2205     li h4, li span, li p {
 
2206       display: inline-block;
 
2207       vertical-align: top;
 
2218       margin-left: $lineheight/2;
 
2219       margin-bottom: $lineheight/4;
 
2220       white-space: nowrap;
 
2225 /* Rules for the user notes list */
 
2229     background-color: #eeeeee;
 
2241 /* Rules for the notes interface */
 
2243 .leaflet-popup-content .note {
 
2244   padding-top: $lineheight/2;
 
2247 .leaflet-popup-content .note {
 
2249     margin-bottom: $lineheight/2;
 
2253     margin-top: $lineheight/2;
 
2259     left: $lineheight/4;
 
2266     padding-left: $lineheight;
 
2269   .permalink:hover span {
 
2275     background-color: #ffe0cc;
 
2277     margin-bottom: $lineheight/2;
 
2296     margin-top: $lineheight/4;
 
2302  * Rules for the iD editor
 
2312     display: inline-block;
 
2317     background-color: #eee;
 
2318     border-bottom: 1px solid #ccc;
 
2333 /* Rules for rotating sidebar ads */
 
2339   border-bottom: 1px solid #ccc;
 
2348 /* Rules for dropdown menus */
 
2355   *margin-bottom: -3px;
 
2358 .dropdown-toggle:active,
 
2359 .open .dropdown-toggle {
 
2364   display: inline-block;
 
2367   vertical-align: top;
 
2368   border-top: 4px solid #000000;
 
2369   border-right: 4px solid transparent;
 
2370   border-left: 4px solid transparent;
 
2390   background-color: #ffffff;
 
2391   border: 1px solid #ccc;
 
2392   *border-right-width: 2px;
 
2393   *border-bottom-width: 2px;
 
2394   -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
 
2395      -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
 
2396           box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
 
2397   -webkit-background-clip: padding-box;
 
2398      -moz-background-clip: padding;
 
2399           background-clip: padding-box;
 
2402 .dropdown-menu.pull-right {
 
2407 .dropdown-menu .divider {
 
2411   *margin: -5px 0 5px;
 
2413   background-color: #e5e5e5;
 
2414   border-bottom: 1px solid #ffffff;
 
2417 .dropdown-menu > li > a {
 
2421   font-weight: normal;
 
2424   white-space: nowrap;
 
2427 .dropdown-menu > li > a:hover,
 
2428 .dropdown-menu > li > a:focus,
 
2429 .dropdown-submenu:hover > a,
 
2430 .dropdown-submenu:focus > a {
 
2432   text-decoration: none;
 
2433   background-color: #0081c2;
 
2436 .dropdown-menu > .active > a,
 
2437 .dropdown-menu > .active > a:hover,
 
2438 .dropdown-menu > .active > a:focus {
 
2440   text-decoration: none;
 
2441   background-color: #0081c2;
 
2445 .dropdown-menu > .disabled > a,
 
2446 .dropdown-menu > .disabled > a:hover,
 
2447 .dropdown-menu > .disabled > a:focus {
 
2451 .dropdown-menu > .disabled > a:hover,
 
2452 .dropdown-menu > .disabled > a:focus {
 
2453   text-decoration: none;
 
2455   background-color: transparent;
 
2456   background-image: none;
 
2463 .open > .dropdown-menu {
 
2467 .dropdown-backdrop {
 
2476 /* Rules for the "Welcome" page */
 
2487     background-image: image-url("welcome-sprite.png");
 
2488     background-size: 500px 250px;
 
2494     padding-bottom: 20px;
 
2496       margin-bottom: 10px;
 
2508     background-position: -50px 0;
 
2513     vertical-align: middle;
 
2517     background-position: -100px 0;
 
2521     background-position: -150px 0;
 
2525     background-position: -200px 0;
 
2529     background-position: -250px 0;
 
2533     background-position: -300px 0;
 
2542     text-decoration: none;
 
2547     background-color: $offwhite;
 
2551     background-color: #333;