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;
 
 404     transition: 300ms linear;
 
 405     -webkit-transition: 300ms linear;
 
 406     -moz-transition: 300ms linear;
 
 409   input[type="text"]:focus {
 
 410     box-shadow: 0px 0px 7px #9ED485;
 
 414   input[type="submit"] {
 
 421     text-indent: -1000px;
 
 423     background: image-url("sprite.png") -2px -2px no-repeat;
 
 426     right: $lineheight/4;
 
 432   margin: $lineheight/4 0 0 0;
 
 435 /* Utility for de-emphasizing content */
 
 444 /* Rules for donation request box */
 
 449   padding: $lineheight/4;
 
 450   border: 1px solid #AED1A0;
 
 452   font-size: $typeheight;
 
 457   margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
 
 461     text-decoration: none;
 
 465 /* Rules for Creative Commons logo button */
 
 468   margin: $lineheight/2 0;
 
 472 /* Rules for tabbed navigation bar */
 
 478   border-bottom: 1px solid #ccc;
 
 488 .site-index #top-bar,
 
 489 .site-export #top-bar {
 
 504       padding: 3px $lineheight/2;
 
 509     display: inline-block;
 
 511     text-decoration: none;
 
 514     -webkit-transition: color 200ms ease-in;
 
 515        -moz-transition: color 200ms ease-in;
 
 516          -o-transition: color 200ms ease-in;
 
 517             transition: color 200ms ease-in;
 
 520       text-decoration: underline;
 
 529       text-decoration: none;
 
 533       border-top-color: #ccc;
 
 542 .site-index #view_tab,
 
 543 .site-edit #edit_tab,
 
 544 .changeset-list #history_tab {
 
 549 /* Utility for styling notification numbers */
 
 552   padding: 2px $lineheight/4;
 
 560 /* Rules for greeting bar in the top right corner */
 
 566   &.secondary-actions {
 
 567     padding: 3px $lineheight/2;
 
 571     background-color: #EEE;
 
 573       background-color: #CCC;
 
 579     border-radius: 2px 0 0 2px;
 
 584     display: inline-block;
 
 597     text-decoration: none;
 
 612 /* Rules for the message shown in place of the map when javascript is disabled */
 
 621 /* Rules for bootstrap tooltips */
 
 659   display: inline-block;
 
 662   background-color: white;
 
 669   border-color: transparent;
 
 673 .tooltip.top .tooltip-arrow {
 
 677   border-top-color: white;
 
 678   border-width: 5px 5px 0;
 
 681 .tooltip.right .tooltip-arrow {
 
 685   border-right-color: white;
 
 686   border-width: 5px 5px 5px 0;
 
 689 .tooltip.left .tooltip-arrow {
 
 693   border-left-color: white;
 
 694   border-width: 5px 0 5px 5px;
 
 697 .tooltip.bottom .tooltip-arrow {
 
 701   border-bottom-color: white;
 
 702   border-width: 0 5px 5px;
 
 705 /* Rules for Leaflet maps */
 
 707 .leaflet-control .control-button {
 
 711   background-color: #333;
 
 712   background-color: rgba(0,0,0,.6);
 
 713   -bottom: 1px solid #333; 
 
 714   border-radius: 4px 0 0 4px;
 
 719     background-color: black;
 
 723     background-color: #9ed485;
 
 727     background-color: #333;
 
 728     background-color: rgba(0,0,0,.5);
 
 737 .leaflet-control .zoomin,
 
 738 .control-layers .control-button {
 
 740   border-radius: 4px 0 0 0;
 
 743 .site .leaflet-control .zoomout,
 
 744 .control-key .control-button {
 
 749 .leaflet-control .zoomout, // For non-main page maps
 
 750 .control-locate .control-button,
 
 751 .control-share .control-button {
 
 752   border-radius: 0 0 0 4px;
 
 755 /* Rules for the home page */
 
 771   border-left: 1px solid #CCC;
 
 775     border-bottom: 1px solid #DDD;
 
 785     border:1px solid #ddd;
 
 791   ul, li:last-child, p:last-child {
 
 805     padding: 5px 5px 5px 7px;
 
 806     background-color: #eee;
 
 811     background-color: #ccc;
 
 829       text-decoration: none;
 
 830       background-color: $lightblue;
 
 835       border-right: 1px solid #fff;
 
 836       border-radius: 4px 0 0 4px;
 
 840       border-left: 1px solid #fff;
 
 841       border-radius: 0 4px 4px 0;
 
 845       background-color: $blue;
 
 857       font-family: monospace;
 
 878 .leaflet-top.leaflet-right {
 
 879   top: $lineheight/2 !important;
 
 881     margin-right: 0px !important;
 
 882     margin-top: 0px !important;
 
 886 .leaflet-popup-scrolled {
 
 887   padding-right: $lineheight;
 
 888   border-bottom: 0px !important;
 
 889   border-top: 0px !important;
 
 892 .leaflet-popup-content-wrapper {
 
 893   border-radius: 4px !important;
 
 894   -webkit-border-radius: 4px !important;
 
 897 /* Rules for edit menu */
 
 900   padding: 0 $lineheight/4;
 
 902   display: inline-block;
 
 904     text-decoration: none !important;
 
 912   background-color: #ffffff;
 
 913   border: 1px solid $lightgrey;
 
 919     padding: 2px $lineheight/4;
 
 920     border-top: 1px solid #eee;
 
 925 /* Rules for attribution text under the main map shown on printouts */
 
 931 .attribution_license,
 
 932 .attribution_project {
 
 936 .attribution_notice {
 
 940 /* Rules for the popout map sidebar */
 
 946   border-right: 1px solid $lightgrey;
 
 952         border-bottom: 1px solid #ccc;
 
 955       margin-bottom: $lineheight/4;
 
 965   padding: $lineheight/2 $lineheight;
 
 966   background: $offwhite;
 
 967   border-bottom: 1px solid #ccc;
 
 989     padding: 0 $lineheight $lineheight/2 $lineheight;
 
 990     margin-top: $lineheight/2;
 
 992     border-bottom: 1px solid #ddd;
 
 996 /* Rules for the map key which appears in the popout sidebar */
 
 999  .mapkey-table-key img {
 
1005     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
 
1009 /* Rules for search results which appear in the popout sidebar */
 
1012   margin-top: $lineheight/4;
 
1013   margin-bottom: $lineheight/4;
 
1016 .search_results_entry {
 
1028 .search_results_entry .search_searching {
 
1030   margin: $lineheight auto;
 
1035 ul.results-list li { border-bottom: 1px solid #ccc; }
 
1037 .search_results_error {
 
1041 /* Rules for data browser information which appears in the popout sidebar */
 
1045   .browse_show_list.button {
 
1070 /* Rules for export information which appears in the popout sidebar */
 
1076 .export_area_inputs {
 
1077   margin-bottom: $lineheight/2;
 
1078   input[type="text"] {
 
1085   margin: $lineheight/4;
 
1088 /* Rules for the main content area */
 
1092   padding: $lineheight;
 
1095 .site-edit #content,
 
1096 .site-index #content,
 
1097 .site-export #content {
 
1100   top: 30px; bottom: 0;
 
1101   left: 184px; right: 0;
 
1102   border-left: 1px solid #ccc;
 
1105 /* Overrides for pages that use new layout conventions */
 
1134 .header-illustration {
 
1135   background-position: 0 0;
 
1136   background-repeat: no-repeat;
 
1144     background-image: image-url("sign-up-illustration.png");
 
1148     background-image: image-url("confirm-illustration.png");
 
1152     background-image: image-url("terms-illustration.png");
 
1160     background-image: image-url("sign-up-illustration-arm.png");
 
1164 @media only screen and (max-width:900px) {
 
1165   .header-illustration.new-user-arm { display: none;}
 
1170   border-left: 1px solid #ccc;
 
1174 #content.maximised {
 
1187 #slim_container_content {
 
1189   background-color: #FFFFFF;
 
1190   margin: $lineheight/2 auto;
 
1192   border-radius: 25px;
 
1193   -moz-border-radius: 25px;
 
1194   border: 1px solid #e6e6e6;
 
1198   margin: $lineheight/2;
 
1203     margin-bottom: 15px;
 
1208   margin: 30px $lineheight/2;
 
1211   margin-right: $lineheight/4;
 
1213     vertical-align: middle;
 
1214     margin-bottom: $lineheight/4;
 
1215     margin-right: $lineheight/4;
 
1221   padding: $lineheight;
 
1222   background: $offwhite;
 
1225     margin-bottom: $lineheight/2;
 
1232     margin-top: $lineheight/2;
 
1237 /* Rules for small maps in content areas */
 
1243   border: 1px solid #ccc;
 
1244   margin-bottom: $lineheight;
 
1248 .content_map #small_map {
 
1251   margin-bottom: $lineheight;
 
1254 /* Rules for the changeset list shown by the history tab etc */
 
1259     padding: $lineheight/2 0;
 
1261     border-top: 1px solid #ccc;
 
1263       border-bottom: 1px solid #ccc;
 
1267     background: #FFFFC0;
 
1271     border-left: 1px solid #ccc;
 
1272     padding-left: $lineheight/4;
 
1273     margin-right: $lineheight/4;
 
1277 #changeset_list_map_wrapper {
 
1285 #changeset_list_map_wrapper.scrolled {
 
1289 #changeset_list_map {
 
1291   bottom: $lineheight;
 
1295   border: 1px solid #ccc;
 
1298 #changeset_list_map_wrapper.scrolled #changeset_list_map {
 
1302 /* Rules for the data browser */
 
1305   border-top: 1px solid #ccc;
 
1306   margin-top: $lineheight/2;
 
1307   padding-top: $lineheight/2;
 
1312     background-color: #ffe0cc;
 
1318     margin-bottom: $lineheight/4;
 
1321     display: inline-block;
 
1322     vertical-align: top;
 
1332     display: inline-block;
 
1333     vertical-align: top;
 
1341     padding: $lineheight/4 0;
 
1343     text-overflow: ellipsis;
 
1354 #browse_map .secondary-actions {
 
1356   margin-bottom: $lineheight/2;
 
1359 /* Rules for the trace list shown by the traces tab etc */
 
1362   font-size: $lineheight/2;
 
1379   .trace_identifiable {
 
1392 /* Rules for the user profile page */
 
1397   .userinformation-inner {
 
1412 .admin-user-info small {
 
1413   margin-bottom: $lineheight/2;
 
1415   margin-right: $lineheight;
 
1420   border-bottom: 1px solid #ccc;
 
1421   padding-bottom: $lineheight;
 
1424     margin-bottom: $lineheight/2;
 
1429   margin-top: $lineheight;
 
1433 .activity-details p {
 
1438 #friends-container .contact-activity ul {
 
1443   p#no_home_location {
 
1444     margin: $lineheight;
 
1447     margin-top: $lineheight/4;
 
1452 /* Rules for the user map */
 
1454 .content_map .leaflet-popup-content {
 
1455   margin: $lineheight/2;
 
1459 /* Rules for user popups on maps */
 
1465     margin-top: 0 0 0 60px;
 
1468   img.user_thumbnail {
 
1470     margin: 0 $lineheight/2 0 0;
 
1474 /* Rules for the user list */
 
1477   font-size: $lineheight/2;
 
1481     vertical-align: middle;
 
1490 #user_list_actions {
 
1492   margin-top: $lineheight/2;
 
1495 /* Rules for the diary list page */
 
1497 .diary_entry-list img.user_thumbnail {
 
1504   margin-top: $lineheight/2;
 
1505   padding-top: $lineheight;
 
1506   border-top: 1px solid #ccc;
 
1521   ul.secondary-actions { display: inline-block;}
 
1524 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
 
1528 #content  .post_heading {
 
1529   margin-bottom: $lineheight;
 
1532     margin-bottom: $lineheight/2;
 
1537 /* Rules for the diary entry page */
 
1544     border: 1px solid #ccc;
 
1546     margin-bottom: $lineheight;
 
1549     border-top: 1px solid #ccc;
 
1550     padding-top: $lineheight;
 
1551     margin-top: $lineheight/2;
 
1557     margin-top: $lineheight/2;
 
1558     border-top: 1px dashed #ccc;
 
1559     padding-top: $lineheight/2;
 
1561       margin-top: $lineheight;
 
1562       padding-top: $lineheight;
 
1563       border-top: 1px solid #ccc;
 
1566       margin-bottom: $lineheight/2;
 
1575 .diary_entry-view img.user_thumbnail {
 
1579 /* Rules for the log in page */
 
1581 #login_openid_buttons {
 
1585 #login_openid_buttons li {
 
1587   padding: $lineheight/4 $lineheight/2;
 
1590 /* Rules for the account confirmation page */
 
1594     border: 1px solid #ccc;
 
1595     padding: $lineheight;
 
1596     margin-bottom: $lineheight;
 
1610       margin: $lineheight auto inherit auto;
 
1615     background: $lightblue;
 
1617       background: darken($lightblue, $hovercolor);
 
1627 /* Rules for the account settings page */
 
1629 #accountForm .user_map {
 
1633   border: 1px solid #ccc;
 
1636 #accountForm .user_image {
 
1640 #accountForm #user_image {
 
1644 #accountForm ul.accountImage-options {
 
1657   display: inline !important;
 
1660 .content_map.settings_map {
 
1665 /* Rules for the oauth settings page */
 
1667 .oauth_clients .buttons .oauth-edit {
 
1668   border-radius: 2px 0 0 2px;
 
1671 .oauth_clients .buttons .oauth-delete {
 
1672   border-radius: 0 2px 2px 0;
 
1675 /* Rules for messages pages */
 
1679   border: 1px solid #ddd;
 
1681   input[type="submit"] {
 
1685     border-top: 1px solid #ccc;
 
1689     background: #f8f8ff;
 
1702     padding: $lineheight/4;
 
1713     border-right: 1px solid $lightgrey;
 
1717 .inbox-row .inbox-mark-read {
 
1722   margin-bottom: $lineheight;
 
1723   padding: $lineheight/4 0px 4px 0px;
 
1724   border-bottom: 1px solid #ccc;
 
1731 .info-line .user_thumbnail_tiny {
 
1732   vertical-align: middle;
 
1741 .inbox-row-unread .inbox-mark-unread {
 
1745 .message-read .message-buttons {
 
1746   margin-top: $lineheight;
 
1747   padding-top: $lineheight;
 
1748   border-top: 1px solid $lightgrey;
 
1751 .message-read .buttons .mark-unread-button {
 
1755 /* Rules for "flash" notice boxes shown at the top of the content area */
 
1758     padding: $lineheight;
 
1760     background-color: #ff7070;
 
1763     background-color: #ffe0cc;
 
1766     background-color: #CBEEA7;
 
1770 /* Rules for highlighting fields with rails validation errors */
 
1772 .field_with_errors {
 
1774   background-color: #ff7070;
 
1775   display: inline-block;
 
1779   display: inline-block;
 
1785   background-color: #ff7070;
 
1788 /* Rules for rails validation error boxes */
 
1792   border: 2px solid #ff7070;
 
1793   padding: 0 $lineheight/2;
 
1794   margin-bottom: $lineheight;
 
1795   background-color: #f0f0f0;
 
1798     margin: 0 -10px 10px -10px;
 
1799     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
 
1802     background-color: #c00;
 
1810     padding: $lineheight/4;
 
1814     padding-left: $lineheight;
 
1823 /* Rules for forms */
 
1827     margin-bottom: $lineheight;
 
1829   label.standard-label {
 
1831     margin-bottom: $lineheight/4;
 
1832     font-size: $typeheight;
 
1836   label.standard-label.secondary {
 
1837     display: inline-block;
 
1838     font-weight: normal;
 
1841     font-weight: normal;
 
1848     margin-top: $lineheight;
 
1849     padding-top: $lineheight;
 
1850     border-top: 1px solid $lightgrey;
 
1852   .horizontal-list .form-row { 
 
1854     padding-right: 10px;
 
1857     margin-bottom: $lineheight/2;
 
1865   input[type="checkbox"],
 
1866   input[type="radio"] {
 
1872 #remember_me_openid {
 
1876 input[type="checkbox"],
 
1877 input[type="radio"] {
 
1882 input[type="email"],
 
1884 input[type="password"],
 
1886   border: 1px solid #ccc;
 
1897 /* Rules for user images */
 
1902   border: 1px solid #ccc;
 
1903   margin-bottom: $lineheight;
 
1905   margin-right: $lineheight;
 
1908 img.user_thumbnail {
 
1911   border: 1px solid #ccc;
 
1912   margin-right: $lineheight;
 
1915 img.user_thumbnail_tiny {
 
1918   border: 1px solid #ccc;
 
1921 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
 
1924   white-space: nowrap;
 
1927 /* Rules for geo microformats */
 
1930   border-bottom: none;
 
1933 /* Rules for RSS buttons */
 
1940 /* General styles for action lists / subnavs / pager navs */
 
1942 ul.secondary-actions {
 
1947     display: inline-block;
 
1954     border-left: 1px solid #ccc;
 
1955     padding-left: $lineheight/4;
 
1956     margin-right: $lineheight/4;
 
1971 /* Utility for managing inner content areas */
 
1973 .inner22 { padding: $lineheight;}
 
1975 .inner12 { padding: $lineheight/2 $lineheight;}
 
1977 .inner11 { padding: $lineheight/2;}
 
1979 .inner20 { padding: $lineheight 0;}
 
1981 .inner02 { padding: 0 $lineheight;}
 
1983 /* Utility for general button styles */
 
1985 input[type="button"],
 
1986 input[type="submit"],
 
1987 input[type="reset"],
 
1991   display: inline-block;
 
1993   padding: $lineheight/4 $lineheight/2;
 
1994   min-height: 20px + $lineheight/2;
 
1996   margin: 0 0 $lineheight/2 0;
 
2001   -moz-border-radius: 2px;
 
2003     background: darken($blue, $hovercolor);
 
2004     text-decoration: none;
 
2007     background: $lightblue;
 
2009       background: darken($lightblue, $hovercolor);
 
2013     background: $lightgrey;
 
2015       background: $lightgrey;
 
2025   input[type="submit"],
 
2026   input[type="button"],
 
2027   input[type="reset"],
 
2029     box-sizing: border-box;
 
2035     border-right:1px solid white;
 
2036     text-overflow: ellipsis;
 
2037     white-space: nowrap;
 
2041   .button:first-child {
 
2042     border-radius:2px 0 0 2px;
 
2045   .button:last-child {
 
2046     border-radius:0 2px 2px 0;
 
2047     border-right-width: 0;
 
2051   *[value="Hide"] + input:last-child,
 
2052   *[value="Hide"] + .button:last-child {
 
2054     border-right-width: 0;
 
2056     /* if a 3-button set has a hidden middle button */
 
2057   *[value="Hide"] + input:nth-child(3),
 
2058   *[value="Hide"] + .button:nth-child(3) {
 
2059     border-radius:0 2px 2px 0;
 
2060     border-right-width: 0;
 
2062   /* if a 3-button set starts with a hidden button */
 
2063   *[value="Hide"] + input:nth-child(2):not(:last-child),
 
2064   *[value="Hide"] + .button:nth-child(2):not(:last-child) {
 
2065     border-radius:2px 0 0 2px;
 
2066     border-right-width: 1px solid white;
 
2070 /* Rules for doing distinct colour of alternate table rows */
 
2074   background: $offwhite;
 
2082 /* Rules for OpenID logo */
 
2085   vertical-align: text-bottom;
 
2089 /* Rules for rich text */
 
2094     padding-bottom: $lineheight/2;
 
2095     border-bottom: 1px dashed #cccccc;
 
2096     margin-bottom: $lineheight/2;
 
2108     font-size: $typeheight;
 
2113     background: #e8e8e8;
 
2119     background: #e8e8e8;
 
2128     padding: $lineheight;
 
2129     background-color: $offwhite;
 
2136     border-left: $lineheight solid $offwhite;
 
2137     padding-left: $lineheight;
 
2143     padding-left: $lineheight;
 
2144     margin-bottom: $lineheight;
 
2145     margin-left: $lineheight;
 
2153     list-style: decimal;
 
2157 .diary_post .richtext {
 
2158     margin-top: $lineheight;
 
2161 .comments .richtext {
 
2166 /* Rules for rich text editors */
 
2168 .richtext_container {
 
2169   margin-bottom: $lineheight;
 
2173     display: inline-block;
 
2174     vertical-align: top;
 
2177       display: inline-block;
 
2178       padding: $lineheight;
 
2179       background-color: $offwhite;
 
2183         background-image: image-url("loading.gif");
 
2184         background-repeat: no-repeat;
 
2185         background-position: center;
 
2195     display: inline-block;
 
2196     vertical-align: top;
 
2198     background-color: #f8f8ff;
 
2199     padding: $lineheight/2;
 
2207       border-bottom: 1px solid #ccc;
 
2208       margin-bottom: $lineheight/4;
 
2209       padding-bottom: $lineheight/4;
 
2212     li h4, li span, li p {
 
2213       display: inline-block;
 
2214       vertical-align: top;
 
2225       margin-left: $lineheight/2;
 
2226       margin-bottom: $lineheight/4;
 
2227       white-space: nowrap;
 
2232 /* Rules for the user notes list */
 
2236     background-color: #eeeeee;
 
2248 /* Rules for the notes interface */
 
2250 .leaflet-popup-content .note {
 
2251   padding-top: $lineheight/2;
 
2254 .leaflet-popup-content .note {
 
2256     margin-bottom: $lineheight/2;
 
2260     margin-top: $lineheight/2;
 
2266     left: $lineheight/4;
 
2273     padding-left: $lineheight;
 
2276   .permalink:hover span {
 
2282     background-color: #ffe0cc;
 
2284     margin-bottom: $lineheight/2;
 
2303     margin-top: $lineheight/4;
 
2309  * Rules for the iD editor
 
2319     display: inline-block;
 
2324     background-color: #eee;
 
2325     border-bottom: 1px solid #ccc;
 
2340 /* Rules for rotating sidebar ads */
 
2346   border-bottom: 1px solid #ccc;
 
2355 /* Rules for dropdown menus */
 
2362   *margin-bottom: -3px;
 
2365 .dropdown-toggle:active,
 
2366 .open .dropdown-toggle {
 
2371   display: inline-block;
 
2374   vertical-align: top;
 
2375   border-top: 4px solid #000000;
 
2376   border-right: 4px solid transparent;
 
2377   border-left: 4px solid transparent;
 
2397   background-color: #ffffff;
 
2398   border: 1px solid #ccc;
 
2399   *border-right-width: 2px;
 
2400   *border-bottom-width: 2px;
 
2401   -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
 
2402      -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
 
2403           box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
 
2404   -webkit-background-clip: padding-box;
 
2405      -moz-background-clip: padding;
 
2406           background-clip: padding-box;
 
2409 .dropdown-menu.pull-right {
 
2414 .dropdown-menu .divider {
 
2418   *margin: -5px 0 5px;
 
2420   background-color: #e5e5e5;
 
2421   border-bottom: 1px solid #ffffff;
 
2424 .dropdown-menu > li > a {
 
2428   font-weight: normal;
 
2431   white-space: nowrap;
 
2434 .dropdown-menu > li > a:hover,
 
2435 .dropdown-menu > li > a:focus,
 
2436 .dropdown-submenu:hover > a,
 
2437 .dropdown-submenu:focus > a {
 
2439   text-decoration: none;
 
2440   background-color: #0081c2;
 
2443 .dropdown-menu > .active > a,
 
2444 .dropdown-menu > .active > a:hover,
 
2445 .dropdown-menu > .active > a:focus {
 
2447   text-decoration: none;
 
2448   background-color: #0081c2;
 
2452 .dropdown-menu > .disabled > a,
 
2453 .dropdown-menu > .disabled > a:hover,
 
2454 .dropdown-menu > .disabled > a:focus {
 
2458 .dropdown-menu > .disabled > a:hover,
 
2459 .dropdown-menu > .disabled > a:focus {
 
2460   text-decoration: none;
 
2462   background-color: transparent;
 
2463   background-image: none;
 
2470 .open > .dropdown-menu {
 
2474 .dropdown-backdrop {
 
2483 /* Rules for the "Welcome" page */
 
2494     background-image: image-url("welcome-sprite.png");
 
2495     background-size: 500px 250px;
 
2501     padding-bottom: 20px;
 
2503       margin-bottom: 10px;
 
2515     background-position: -50px 0;
 
2520     vertical-align: middle;
 
2524     background-position: -100px 0;
 
2528     background-position: -150px 0;
 
2532     background-position: -200px 0;
 
2536     background-position: -250px 0;
 
2540     background-position: -300px 0;
 
2549     text-decoration: none;
 
2554     background-color: $offwhite;
 
2558     background-color: #333;