3 /* Styles common to large and small screens */
 
   5 /* Minimal CSS reset */
 
   7 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input {
 
  14 fieldset,img { border: 0; }
 
  16 legend { color: #000; }
 
  18 sup { vertical-align: text-top; }
 
  20 sub { vertical-align: text-bottom; }
 
  23   border-collapse: collapse;
 
  27 li { list-style: none; }
 
  32 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
 
  35   border-bottom: .1em dotted;
 
  43 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
 
  57 .col0    { float:left; width:04.1666%; }
 
  58 .col1    { float:left; width:08.3333%; }
 
  59 .col2    { float:left; width:16.6666%; }
 
  60 .col3    { float:left; width:25.0000%; }
 
  61 .col4    { float:left; width:33.3333%; }
 
  62 .col5    { float:left; width:41.6666%; }
 
  63 .col6    { float:left; width:50.0000%; }
 
  64 .col7    { float:left; width:58.3333%; }
 
  65 .col8    { float:left; width:66.6666%; }
 
  66 .col9    { float:left; width:75.0000%; }
 
  67 .col10   { float:left; width:83.3333%; }
 
  68 .col11   { float:left; width:91.6666%; }
 
  69 .col12   { width:100%; }
 
  71 .margin0  { margin-left:04.1666%; }
 
  72 .margin1  { margin-left:08.3333%; }
 
  73 .margin2  { margin-left:16.6666%; }
 
  74 .margin3  { margin-left:25.0000%; }
 
  75 .margin4  { margin-left:33.3333%; }
 
  76 .margin5  { margin-left:41.6666%; }
 
  77 .margin6  { margin-left:50.0000%; }
 
  78 .margin7  { margin-left:58.3333%; }
 
  79 .margin8  { margin-left:66.6666%; }
 
  80 .margin9  { margin-left:75.0000%; }
 
  81 .margin10 { margin-left:83.3333%; }
 
  82 .margin11 { margin-left:91.6666%; }
 
  83 .margin12 { margin-left:100.0000%; }
 
  85 .fillL { background-color: white; }
 
  87 /* Default rules for the body of every page */
 
  90   box-sizing: border-box;
 
  94   font-family: 'Helvetica Neue',Arial,sans-serif;
 
  95   font-size: $typeheight;
 
  98   background-color: #fff;
 
 131 #container { position: relative; }
 
 135   margin: 0 0 $lineheight/2 0;
 
 139   vertical-align: middle;
 
 140   margin-right: $lineheight/4;
 
 143 .red { color: $red; }
 
 145 /* Rules for icons */
 
 148   display:inline-block;
 
 152   background:transparent image-url("sprite.png") no-repeat 0 0;
 
 157 .icon.search      { background-position: 0 0; }
 
 158 .icon.donate      { background-position: -20px 0; }
 
 159 .icon.zoomin      { background-position: -40px 0; }
 
 160 .icon.zoomout     { background-position: -60px 0; }
 
 161 .icon.geolocate   { background-position: -80px 0; }
 
 162 .active .icon.geolocate   { background-position: -80px -20px; }
 
 163 .icon.layers      { background-position: -100px 0; }
 
 164 .icon.key         { background-position: -120px 0; }
 
 165 .icon.share       { background-position: -140px 0; }
 
 166 .icon.clipboard   { background-position: -160px 0; }
 
 167 .icon.link        { background-position: -180px 0; }
 
 168 .icon.close       { background-position: -200px 0; }
 
 169 .icon.close:hover { background-position: -200px -20px; }
 
 170 .icon.check       { background-position: -220px 0; }
 
 171 .icon.note        { background-position: -240px 0; }
 
 172 .icon.query       { background-position: -260px 0; }
 
 174 /* Rules for links */
 
 178   text-decoration: none;
 
 179   -webkit-appearance: none;
 
 182     text-decoration: underline;
 
 186 /* Rules for horizontal lines */
 
 190   background-color: #ccc;
 
 195 /* General styles for tables */
 
 199   margin-bottom: $lineheight;
 
 202     padding: $lineheight/4;
 
 203     line-height: $lineheight;
 
 210     vertical-align: middle;
 
 214 /* Utility for de-emphasizing content */
 
 223 /* Rules for the header */
 
 226   display: none !important;
 
 228   background: image-url("menu-icon.png") no-repeat;
 
 229   background-size: 30px 30px;
 
 233   margin: 14px 10px 0 0;
 
 238   height: $headerHeight;
 
 243   h1, nav, nav > ul, nav > ul > li, .dropdown {
 
 244     display: inline-block;
 
 249     padding: $lineheight/2;
 
 257     text-decoration: none;
 
 264     vertical-align: middle;
 
 279     $border: 1px solid $green;
 
 282     border-radius: $border-radius;
 
 285       border-right: $border;
 
 290       > a:hover { background: lighten($green, 30%); }
 
 291       &.current > a:hover { background: $green; }
 
 292       &.disabled > a:hover { background: lighten($green, 38%); }
 
 294         > a.tab { border-right: 1px solid lighten($green, 30%); }
 
 295         &.current > a.tab { border-right: 1px solid lighten($green, 10%); }
 
 302     display: inline-block;
 
 313     border-top-color: $green;
 
 322       border-top-color: #ccc;
 
 327     background-color: $green;
 
 334       border-top-color: #fff;
 
 344     vertical-align: middle;
 
 345     a, .dropdown-toggle {
 
 346       display: inline-block;
 
 347       text-decoration: none;
 
 351       &:hover { color: darken($darkgrey, 25%); }
 
 356     color: darken($darkgrey, 25%);
 
 360     $border: 1px solid $grey;
 
 362     border-radius: $border-radius;
 
 366       border-right: $border;
 
 372           border-radius: 0 $border-radius $border-radius 0;
 
 375       &:first-child > a { border-radius: $border-radius 0 0 $border-radius; }
 
 376       &:hover a { background: lighten($darkgrey, 30%); }
 
 388         padding: 5px 10px 3px 6px;
 
 389         display: inline-block;
 
 392       &:hover > .user-button { color: darken($darkgrey, 5%); }
 
 397     border-top-color: $grey;
 
 401   img.user_thumbnail_tiny {
 
 410     display: inline-block;
 
 413     margin: 3px 0 3px 3px;
 
 414     background-color: lighten($grey, 10%);
 
 422     border-radius: 3px 0 3px 3px;
 
 432 #compact-secondary-nav {
 
 437     &:hover { color: #fff; }
 
 441 @media only screen and (max-width:960px) {
 
 442   #compact-secondary-nav {
 
 443     display: inline-block;
 
 450 /* Utility for styling notification numbers */
 
 453   padding: 2px $lineheight/4;
 
 455   background: lighten($green, 30%);
 
 461 /* Rules for the message shown in place of the map when javascript is disabled */
 
 469 /* Rules for bootstrap tooltips */
 
 507   display: inline-block;
 
 510   background-color: white;
 
 517   border-color: transparent;
 
 521 .tooltip.top .tooltip-arrow {
 
 525   border-top-color: white;
 
 526   border-width: 5px 5px 0;
 
 529 .tooltip.right .tooltip-arrow {
 
 533   border-right-color: white;
 
 534   border-width: 5px 5px 5px 0;
 
 537 .tooltip.left .tooltip-arrow {
 
 541   border-left-color: white;
 
 542   border-width: 5px 0 5px 5px;
 
 545 .tooltip.bottom .tooltip-arrow {
 
 549   border-bottom-color: white;
 
 550   border-width: 0 5px 5px;
 
 553 /* Rules for Leaflet maps */
 
 555 .leaflet-control .control-button {
 
 559   background-color: #333;
 
 560   background-color: rgba(0,0,0,.6);
 
 561   border-radius: 4px 0 0 4px;
 
 566     background-color: black;
 
 570     background-color: #333;
 
 571     background-color: rgba(0,0,0,.5);
 
 576     background-color: #9ed485;
 
 584 .leaflet-control .zoomin,
 
 585 .control-layers .control-button {
 
 587   border-radius: 4px 0 0 0;
 
 590 .leaflet-control .zoomout,
 
 591 .control-key .control-button {
 
 596 .control-locate .control-button,
 
 597 .control-share .control-button {
 
 598   border-radius: 0 0 0 4px;
 
 601 /* Rules for the sidebar and main map area */
 
 621     width: $sidebarWidth;
 
 626       padding: $lineheight $lineheight $lineheight/2;
 
 630       margin-top: $lineheight;
 
 631       margin-bottom: $lineheight/2;
 
 645   .overlay-sidebar #sidebar {
 
 649     border-bottom-right-radius: 5px;
 
 661       padding: $lineheight/2 $lineheight $lineheight;
 
 675         border-right: 1px solid #fff;
 
 703       border-bottom: 1px solid #DDD;
 
 713       border:1px solid #ddd;
 
 718       border: 1px solid #ccc;
 
 720         border-top-color: #ccc;
 
 744       border: 2px solid #fff;
 
 747       transition: border-color 0.08s ease-in;
 
 754         border-bottom-right-radius: 3px;
 
 758         text-stroke: 2px #fff;
 
 759         background: rgba(255,255,255,.9);
 
 760         z-index: 2; // For IE9
 
 761         input[type="radio"] {
 
 766       &.active { border-color: darken($green, 10%); }
 
 769         &.active { border-color: darken($green, 20%); }
 
 779     li.disabled { color: #999; }
 
 789       text-decoration: none;
 
 790       background-color: $lightblue;
 
 795       border-right: 1px solid #fff;
 
 796       border-radius: 4px 0 0 4px;
 
 800       border-left: 1px solid #fff;
 
 801       border-radius: 0 4px 4px 0;
 
 805       background-color: $blue;
 
 817       font-family: monospace;
 
 839   top: $lineheight/2 !important;
 
 841     margin-right: 0px !important;
 
 842     margin-top: 0px !important;
 
 846 .leaflet-popup-scrolled {
 
 847   padding-right: $lineheight;
 
 848   border-bottom: 0px !important;
 
 849   border-top: 0px !important;
 
 852 .leaflet-popup-content-wrapper {
 
 853   border-radius: 4px !important;
 
 856 /* Rules for attribution text under the main map shown on printouts */
 
 862 .attribution_license,
 
 863 .attribution_project {
 
 867 .attribution_notice {
 
 871 .donate-attr { color: darken($green, 10%) !important; }
 
 873 /* Rules for the sidebar */
 
 877   padding: $lineheight/2 $lineheight;
 
 878   // background: $offwhite;
 
 879   // border-bottom: 1px solid #ccc;
 
 889     padding: $lineheight;
 
 904     margin: $lineheight auto;
 
 910 /* Rules for the search box */
 
 912 header .search_form {
 
 918   padding: $lineheight/2;
 
 919   background-color: $lightgrey;
 
 924     border-radius: 2px 0 0 2px;
 
 932     transition: 300ms linear;
 
 937     box-shadow: 0px 0px 7px #9ED485;
 
 944     border-radius: 0 2px 2px 0;
 
 956 /* Rules for the map key which appears in the popout sidebar */
 
 959  .mapkey-table-key img {
 
 965     padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
 
 969 /* Rules for search sidebar */
 
 971 .search_results_entry {
 
 973     border-bottom: $keyline;
 
 975     &:first-child { border-top: $keyline; }
 
 976     &.selected { background: #FFFFE6; }
 
 988 .search_results_error {
 
 992 /* Rules for entity history */
 
 997     border-bottom: $keyline;
 
1005 /* Rules for the history sidebar */
 
1007 #sidebar .changesets {
 
1010     border-bottom: 1px solid #ddd;
 
1013     &.selected { background: #FFFFE6; }
 
1014     /* color is derived from changeset bbox fillColor in history.js */
 
1025 /* Rules for the browse sidebar */
 
1029     padding: $lineheight/2 $lineheight;
 
1030     border-bottom: 1px solid #ddd;
 
1034       word-wrap: break-word;
 
1038   .browse-section:last-of-type {
 
1039     border-bottom: none;
 
1045     border: 1px solid #eee;
 
1054     margin-bottom: 10px;
 
1057       padding: 5px 0 5px 10px;
 
1059       border: 1px solid #CCC;
 
1060       border-radius: 4px 4px 0 0;
 
1061       background-color: #F6F6F6;
 
1067       background-color: #FFF;
 
1068       border: 1px solid #CCC;
 
1070       border-radius: 0 0 4px 4px;
 
1075     background-color: #F6F6F6;
 
1076     border: 1px solid #ddd;
 
1079     table-layout: fixed;
 
1080     border-collapse: separate;
 
1083       border-bottom: 1px solid #ddd;
 
1086     tr:last-child th, tr:last-child td {
 
1094       word-wrap: break-word;
 
1099       background-color: #F6F6F6;
 
1103       border-left: 1px solid #ddd;
 
1104       background-color: #fff;
 
1109     margin: $lineheight/2 0;
 
1110     padding: $lineheight/2;
 
1114   .note-comments li, .changeset-comments li {
 
1115     margin: $lineheight/2 0;
 
1126   .subscribe-buttons {
 
1128     margin: 18px 10px 10px;
 
1132   .subscribe-buttons input {
 
1138   span.action-button:hover {
 
1140     text-decoration: underline;
 
1145     margin: 0 0 10px 10px;
 
1149     padding: $lineheight $lineheight $lineheight/2;
 
1156       padding: $lineheight $lineheight $lineheight/2;
 
1163         border-bottom: 1px solid #ddd;
 
1170           background: #FFFFE6;
 
1177 /* Rules for export sidebar */
 
1180   padding: $lineheight;
 
1182   .export_area_inputs,
 
1187   .export_area_inputs {
 
1188     margin-bottom: $lineheight/2;
 
1189     input[type="text"] {
 
1198     border: 1px solid #ccc;
 
1201     #maxlat { margin-top: -1px; }
 
1210     #minlat { margin-bottom: 0; }
 
1214     margin: $lineheight/4;
 
1218     margin-top: $lineheight;
 
1219     margin-bottom: $lineheight;
 
1223     padding-left: $lineheight/2;
 
1226       margin-bottom: 10px;
 
1231 /* Rules for edit pages */
 
1247 /* Rules for non-map content pages */
 
1250   background: $lightgrey;
 
1252   h1 { font-size: 22px; }
 
1256   h1, h2, h3, p, ul, ol {
 
1257     margin-bottom: $lineheight;
 
1261     margin-top: $lineheight/2;
 
1269   padding: $lineheight;
 
1272 /* Overrides for pages that use new layout conventions */
 
1277   .content-body .content-inner {
 
1286   .content-heading .content-inner {
 
1291 .header-illustration {
 
1292   background-position: 0 0;
 
1293   background-repeat: no-repeat;
 
1301     background-image: image-url("sign-up-illustration.png");
 
1305     background-image: image-url("confirm-illustration.png");
 
1309     background-image: image-url("terms-illustration.png");
 
1317     background-image: image-url("sign-up-illustration-arm.png");
 
1322 #content.maximised {
 
1331 /* Rules for small maps in content areas */
 
1337   border: 1px solid #ccc;
 
1338   margin-bottom: $lineheight;
 
1342 /* Rules for the trace list shown by the traces tab etc */
 
1345   font-size: $lineheight/2;
 
1362   .trace_identifiable {
 
1375 /* Rules for the new trace form */
 
1380     width: calc(100% - 150px);
 
1385 /* Rules for the edit trace form */
 
1394     width: calc(100% - 150px);
 
1399 /* Rules for the user profile page */
 
1404   .userinformation-inner {
 
1419 .admin-user-info small {
 
1420   margin-bottom: $lineheight/2;
 
1422   margin-right: $lineheight;
 
1427   border-bottom: 1px solid #ccc;
 
1428   padding-bottom: $lineheight;
 
1431     margin-bottom: $lineheight/2;
 
1436   margin-top: $lineheight;
 
1440 .activity-details p {
 
1445 #friends-container .contact-activity ul {
 
1450   // Silly exception; remove when user page is redesigned.
 
1454   p#no_home_location {
 
1455     margin: $lineheight;
 
1458     margin-top: $lineheight/4;
 
1463 /* Rules for the user map */
 
1465 .content_map .leaflet-popup-content {
 
1466   margin: $lineheight/2;
 
1470 /* Rules for user popups on maps */
 
1476     margin-top: 0 0 0 60px;
 
1479   img.user_thumbnail {
 
1481     margin: 0 $lineheight/2 0 0;
 
1485 /* Rules for the user list */
 
1488   font-size: $lineheight/2;
 
1492     vertical-align: middle;
 
1501 #user_list_actions {
 
1503   margin-top: $lineheight/2;
 
1506 /* Rules for the diary list page */
 
1510   margin-top: $lineheight/2;
 
1511   padding-top: $lineheight;
 
1512   border-top: 1px solid #ccc;
 
1515     margin-bottom: $lineheight;
 
1519       margin-bottom: $lineheight/2;
 
1524   img.user_thumbnail {
 
1533   ul.secondary-actions {
 
1534     display: inline-block;
 
1538 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
 
1542 /* Rules for the diary entry page */
 
1549     border: 1px solid #ccc;
 
1551     margin-bottom: $lineheight;
 
1554     border-top: 1px solid #ccc;
 
1555     padding-top: $lineheight;
 
1556     margin-top: $lineheight/2;
 
1562     margin-top: $lineheight/2;
 
1563     border-top: 1px dashed #ccc;
 
1564     padding-top: $lineheight/2;
 
1566       margin-top: $lineheight;
 
1567       padding-top: $lineheight;
 
1568       border-top: 1px solid #ccc;
 
1571       margin-bottom: $lineheight/2;
 
1580 .diary_entry-view img.user_thumbnail {
 
1584 /* Rules for the log in page */
 
1586 #login_openid_buttons {
 
1590 #login_openid_buttons li {
 
1592   padding: $lineheight/4 $lineheight/2;
 
1595 /* Rules for the account confirmation page */
 
1599     border: 1px solid #ccc;
 
1600     padding: $lineheight;
 
1601     margin-bottom: $lineheight;
 
1607     background: $lightblue;
 
1609       background: darken($lightblue, $hovercolor);
 
1614 /* Rules for the account settings page */
 
1616 #accountForm .user_map {
 
1620   border: 1px solid #ccc;
 
1623 #accountForm .user_image {
 
1627 #accountForm #user_image {
 
1631 #accountForm ul.accountImage-options {
 
1644   display: inline !important;
 
1647 .content_map.settings_map {
 
1652 /* Rules for the oauth settings page */
 
1654 .oauth_clients .buttons .oauth-edit {
 
1655   border-radius: 2px 0 0 2px;
 
1658 .oauth_clients .buttons .oauth-delete {
 
1659   border-radius: 0 2px 2px 0;
 
1662 /* Rules for messages pages */
 
1666   border: 1px solid #ddd;
 
1668   input[type="submit"] {
 
1672     border-top: 1px solid #ccc;
 
1676     background: #f8f8ff;
 
1689     padding: $lineheight/4;
 
1700     border-right: 1px solid $lightgrey;
 
1704 .inbox-row .inbox-mark-read {
 
1709   margin-bottom: $lineheight;
 
1710   padding: $lineheight/4 0px 4px 0px;
 
1711   border-bottom: 1px solid #ccc;
 
1718 .info-line .user_thumbnail_tiny {
 
1719   vertical-align: middle;
 
1723   white-space: nowrap;
 
1732 .inbox-row-unread .inbox-mark-unread {
 
1736 .message-read .message-buttons {
 
1737   margin-top: $lineheight;
 
1738   margin-bottom: $lineheight * 1.5;
 
1739   padding-top: $lineheight;
 
1740   border-top: 1px solid $lightgrey;
 
1743 .message-read .buttons .mark-unread-button {
 
1747 /* Rules for "flash" notice boxes shown at the top of the content area */
 
1750   padding: $lineheight;
 
1751   background-color: #ff7070;
 
1755   padding: $lineheight;
 
1756   background-color: #ffe0cc;
 
1760   padding: $lineheight;
 
1761   background-color: #CBEEA7;
 
1764 /* Rules for highlighting fields with rails validation errors */
 
1767   display: inline-block;
 
1773   background-color: #ff7070;
 
1776 /* Rules for rails validation error boxes */
 
1780   border: 2px solid #ff7070;
 
1781   padding: 0 $lineheight/2;
 
1782   margin-bottom: $lineheight;
 
1783   background-color: #f0f0f0;
 
1786     margin: 0 -10px 10px -10px;
 
1787     padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
 
1790     background-color: #c00;
 
1798     padding: $lineheight/4;
 
1802     padding-left: $lineheight;
 
1811 /* Rules for forms */
 
1815     margin-bottom: $lineheight;
 
1817   label.standard-label {
 
1819     margin-bottom: $lineheight/4;
 
1820     font-size: $typeheight;
 
1824   label.standard-label.secondary {
 
1825     display: inline-block;
 
1826     font-weight: normal;
 
1829     font-weight: normal;
 
1836     margin-top: $lineheight;
 
1837     padding-top: $lineheight;
 
1838     border-top: 1px solid $lightgrey;
 
1840   .horizontal-list .form-row { 
 
1842     padding-right: 10px;
 
1845     margin-bottom: $lineheight/2;
 
1853   input[type="checkbox"],
 
1854   input[type="radio"] {
 
1860 #remember_me_openid {
 
1864 input[type="checkbox"],
 
1865 input[type="radio"] {
 
1870 input[type="email"],
 
1872 input[type="password"],
 
1874   border: 1px solid #ccc;
 
1879   &.field_with_errors {
 
1880     border: 2px solid #ff7070;
 
1889 /* Rules for user images */
 
1894   border: 1px solid #ccc;
 
1895   margin-bottom: $lineheight;
 
1897   margin-right: $lineheight;
 
1900 img.user_thumbnail {
 
1903   border: 1px solid #ccc;
 
1904   margin-right: $lineheight;
 
1907 img.user_thumbnail_tiny {
 
1912   border: 1px solid #ccc;
 
1915 /* Rules for geo microformats */
 
1918   border-bottom: none;
 
1921 /* Rules for RSS buttons */
 
1928 /* General styles for action lists / subnavs / pager navs */
 
1930 ul.secondary-actions {
 
1935     display: inline-block;
 
1942     border-left: 1px solid #ccc;
 
1943     padding-left: $lineheight/2;
 
1944     margin-right: $lineheight/2;
 
1955 div.secondary-actions {
 
1960 /* Utility for managing inner content areas */
 
1962 .inner22 { padding: $lineheight;}
 
1964 .inner12 { padding: $lineheight/2 $lineheight;}
 
1966 .inner11 { padding: $lineheight/2;}
 
1968 .inner20 { padding: $lineheight 0;}
 
1970 .inner02 { padding: 0 $lineheight;}
 
1972 /* Utility for general button styles */
 
1974 input[type="button"],
 
1975 input[type="submit"],
 
1976 input[type="reset"],
 
1980   display: inline-block;
 
1981   padding: $lineheight/4 $lineheight/2;
 
1982   min-height: 20px + $lineheight/2;
 
1984   margin: 0 0 $lineheight/2 0;
 
1990     background: darken($blue, $hovercolor);
 
1991     text-decoration: none;
 
1994     background: $lightblue;
 
1996       background: darken($lightblue, $hovercolor);
 
2000     background: $lightgrey;
 
2002       background: $lightgrey;
 
2010 input[type="button"],
 
2011 input[type="submit"],
 
2012 input[type="reset"] {
 
2013   line-height: normal;
 
2022   input[type="submit"],
 
2023   input[type="button"],
 
2024   input[type="reset"],
 
2027     box-sizing: border-box;
 
2033     border-right:1px solid white;
 
2034     text-overflow: ellipsis;
 
2035     white-space: nowrap;
 
2039   .button:first-child,
 
2040   .button_to:first-child {
 
2041     border-radius:2px 0 0 2px;
 
2045   .button_to:last-child {
 
2046     border-radius:0 2px 2px 0;
 
2047     border-right-width: 0;
 
2051   .button_to:only-child,
 
2052   *[value="Hide"] + input:last-child,
 
2053   *[value="Hide"] + .button:last-child,
 
2054   *[value="Hide"] + .button_to:last-child {
 
2056     border-right-width: 0;
 
2058     /* if a 3-button set has a hidden middle button */
 
2059   *[value="Hide"] + input:nth-child(3),
 
2060   *[value="Hide"] + .button:nth-child(3),
 
2061   *[value="Hide"] + .button_to:nth-child(3) {
 
2062     border-radius:0 2px 2px 0;
 
2063     border-right-width: 0;
 
2065   /* if a 3-button set starts with a hidden button */
 
2066   *[value="Hide"] + input:nth-child(2):not(:last-child),
 
2067   *[value="Hide"] + .button:nth-child(2):not(:last-child),
 
2068   *[value="Hide"] + .button_to:nth-child(2):not(:last-child) {
 
2069     border-radius:2px 0 0 2px;
 
2070     border-right-width: 1px;
 
2074 /* Rules for doing distinct colour of alternate table rows */
 
2078   background: $offwhite;
 
2086 /* Rules for OpenID logo */
 
2089   vertical-align: text-bottom;
 
2093 /* Rules for rich text */
 
2098     padding-bottom: $lineheight/2;
 
2099     border-bottom: 1px dashed #cccccc;
 
2100     margin-bottom: $lineheight/2;
 
2112     font-size: $typeheight;
 
2117     background: #e8e8e8;
 
2123     background: #e8e8e8;
 
2132     padding: $lineheight;
 
2133     background-color: $offwhite;
 
2140     border-left: $lineheight solid $offwhite;
 
2141     padding-left: $lineheight;
 
2147     padding-left: $lineheight;
 
2148     margin-bottom: $lineheight;
 
2149     margin-left: $lineheight;
 
2157     list-style: decimal;
 
2161 .diary_post .richtext {
 
2162     margin-top: $lineheight;
 
2165 .comments .richtext {
 
2170 /* Rules for rich text editors */
 
2172 input.richtext_title[type="text"] {
 
2174   width: calc(100% - 235px);
 
2176   @media only screen and (max-width:768px) {
 
2181 .richtext_container {
 
2182   margin-bottom: $lineheight;
 
2186     width: calc(100% - 235px);
 
2187     display: inline-block;
 
2188     vertical-align: top;
 
2190     @media only screen and (max-width:768px) {
 
2195       display: inline-block;
 
2196       padding: $lineheight;
 
2197       background-color: $offwhite;
 
2201         background-image: image-url("loading.gif");
 
2202         background-repeat: no-repeat;
 
2203         background-position: center;
 
2213     display: inline-block;
 
2214     vertical-align: top;
 
2216     background-color: #f8f8ff;
 
2217     padding: $lineheight/2;
 
2225       border-bottom: 1px solid #ccc;
 
2226       margin-bottom: $lineheight/4;
 
2227       padding-bottom: $lineheight/4;
 
2230     li h4, li span, li p {
 
2231       display: inline-block;
 
2232       vertical-align: top;
 
2243       margin-left: $lineheight/2;
 
2244       margin-bottom: $lineheight/4;
 
2245       white-space: nowrap;
 
2250 /* Rules for the user notes list */
 
2254     background-color: #eeeeee;
 
2266 /* Rules for the iD editor */
 
2273 /* Rules for dropdown menus */
 
2280   *margin-bottom: -3px;
 
2283 .dropdown-toggle:active,
 
2284 .open .dropdown-toggle {
 
2289   display: inline-block;
 
2292   vertical-align: top;
 
2293   border-top: 4px solid #000000;
 
2294   border-right: 4px solid transparent;
 
2295   border-left: 4px solid transparent;
 
2315   background-color: #ffffff;
 
2316   border: 1px solid #ccc;
 
2317   border-radius: 0 3px 3px;
 
2318   *border-right-width: 2px;
 
2319   *border-bottom-width: 2px;
 
2320   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
 
2321   background-clip: padding-box;
 
2324 .dropdown-menu.pull-right {
 
2329 .dropdown-menu .divider {
 
2333   *margin: -5px 0 5px;
 
2335   background-color: #e5e5e5;
 
2336   border-bottom: 1px solid #ffffff;
 
2339 .dropdown-menu > li > a {
 
2343   font-weight: normal;
 
2346   white-space: nowrap;
 
2349 .dropdown-menu > li > a:hover,
 
2350 .dropdown-menu > li > a:focus,
 
2351 .dropdown-submenu:hover > a,
 
2352 .dropdown-submenu:focus > a {
 
2354   text-decoration: none;
 
2355   background-color: $green;
 
2358 .dropdown-menu > .active > a,
 
2359 .dropdown-menu > .active > a:hover,
 
2360 .dropdown-menu > .active > a:focus {
 
2362   text-decoration: none;
 
2363   background-color: $green;
 
2367 .dropdown-menu > .disabled > a,
 
2368 .dropdown-menu > .disabled > a:hover,
 
2369 .dropdown-menu > .disabled > a:focus {
 
2373 .dropdown-menu > .disabled > a:hover,
 
2374 .dropdown-menu > .disabled > a:focus {
 
2375   text-decoration: none;
 
2377   background-color: transparent;
 
2378   background-image: none;
 
2385 .open > .dropdown-menu {
 
2389 .dropdown-backdrop {
 
2398 /* Rules for the "Welcome" page */
 
2399 .site-welcome, .site-fixthemap {
 
2409     background-image: image-url("welcome-sprite.png");
 
2410     background-size: 500px 250px;
 
2416     padding-bottom: 20px;
 
2418       margin-bottom: 10px;
 
2430     background-position: -50px 0;
 
2435     vertical-align: middle;
 
2439     background-position: -100px 0;
 
2443     background-position: -150px 0;
 
2447     background-position: -200px 0;
 
2451     background-position: -250px 0;
 
2455     background-position: -300px 0;
 
2464     text-decoration: none;
 
2469     background-color: $offwhite;
 
2473     background-color: #333;
 
2478 .site-about #content {
 
2479   //background-color: #000;
 
2480   background-color: #eee;
 
2481   background-position: 50% 50%;
 
2482   background-repeat: no-repeat;
 
2483   background-size: cover;
 
2484   background-attachment: fixed;
 
2488     font: 13px/20px Helvetica, Arial, sans-serif;
 
2493     text-shadow: #000 0px 1px 5px;
 
2501     white-space: nowrap;
 
2502     text-decoration: none;
 
2513     text-indent: -9999px;
 
2515     background: image-url('about/sprite.png') -120px 0px no-repeat;
 
2516     background-color: #000;
 
2517     background-color: rgba(0, 0, 0, 0.5);
 
2527       margin-bottom: 30px;
 
2530     .section:last-child {
 
2542     padding: 170px 40px 20px;
 
2544     background: rgba(0, 0, 0, .8);
 
2564       background-position: 0 50%;
 
2565       background-repeat: no-repeat;
 
2566       background-image: image-url('about/osm.png');
 
2567       background-size: cover;
 
2568       background-color: #76c551;
 
2578       padding: 20px 20px 20px 40px;
 
2579       font: 500 20px/24px Helvetica, Arial, sans-serif;
 
2580       white-space: nowrap;
 
2582       background: #76c551;
 
2586       display: inline-block;
 
2593     margin-bottom: 10px;
 
2600     vertical-align: middle;
 
2601     background: 40px 40px image-url('about/sprite.png') no-repeat;
 
2603     &.local        { background-position: 0px    0px; }
 
2604     &.community    { background-position: 0px  -40px; }
 
2605     &.open         { background-position: 0px  -80px; }
 
2606     &.partners     { background-position: 0px -120px; }
 
2607     &.infringement { background-position: 0px -160px; }
 
2613 @media only screen and (max-width:960px) {
 
2614   .header-illustration.new-user-arm {