15 $keyline: 1px solid $grey;
17 /* Styles common to large and small screens */
19 /* Minimal CSS reset */
21 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input {
28 fieldset,img { border: 0; }
30 legend { color: #000; }
32 sup { vertical-align: text-top; }
34 sub { vertical-align: text-bottom; }
37 border-collapse: collapse;
41 li { list-style: none; }
46 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
49 border-bottom: .1em dotted;
53 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
67 .col0 { float:left; width:04.1666%; }
68 .col1 { float:left; width:08.3333%; }
69 .col2 { float:left; width:16.6666%; }
70 .col3 { float:left; width:25.0000%; }
71 .col4 { float:left; width:33.3333%; }
72 .col5 { float:left; width:41.6666%; }
73 .col6 { float:left; width:50.0000%; }
74 .col7 { float:left; width:58.3333%; }
75 .col8 { float:left; width:66.6666%; }
76 .col9 { float:left; width:75.0000%; }
77 .col10 { float:left; width:83.3333%; }
78 .col11 { float:left; width:91.6666%; }
79 .col12 { width:100%; }
81 .margin0 { margin-left:04.1666%; }
82 .margin1 { margin-left:08.3333%; }
83 .margin2 { margin-left:16.6666%; }
84 .margin3 { margin-left:25.0000%; }
85 .margin4 { margin-left:33.3333%; }
86 .margin5 { margin-left:41.6666%; }
87 .margin6 { margin-left:50.0000%; }
88 .margin7 { margin-left:58.3333%; }
89 .margin8 { margin-left:66.6666%; }
90 .margin9 { margin-left:75.0000%; }
91 .margin10 { margin-left:83.3333%; }
92 .margin11 { margin-left:91.6666%; }
93 .margin12 { margin-left:100.0000%; }
95 .fillL { background-color: white; }
97 /* Default rules for the body of every page */
100 -moz-box-sizing: border-box;
101 -webkit-box-sizing: border-box;
102 box-sizing: border-box;
106 font-family: 'Helvetica Neue',Arial,sans-serif;
107 font-size: $typeheight;
110 background-color: #fff;
117 background-color: #f0f0f0;
134 margin-bottom: $lineheight;
157 margin: 0 0 $lineheight/2 0;
161 vertical-align: middle;
162 margin-right: $lineheight/4;
165 /* Rules for icons */
168 display:inline-block;
172 background:transparent image-url("sprite.png") no-repeat 0 0;
181 .icon.search { background-position: 0 0; }
182 .icon.donate { background-position: -20px 0; }
183 .icon.zoomin { background-position: -40px 0; }
184 .icon.zoomout { background-position: -60px 0; }
185 .icon.geolocate { background-position: -80px 0; }
186 .active .icon.geolocate { background-position: -80px -20px; }
187 .icon.layers { background-position: -100px 0; }
188 .icon.key { background-position: -120px 0; }
189 .icon.share { background-position: -140px 0; }
190 .icon.clipboard { background-position: -160px 0; }
191 .icon.link { background-position: -180px 0; }
192 .icon.close { background-position: -200px 0; }
193 .icon.check { background-position: -220px 0; }
194 .icon.note { background-position: -240px 0; }
195 .icon.gear { background-position: -260px 0; }
197 /* Rules for links */
201 text-decoration: none;
203 text-decoration: underline;
207 /* Rules for horizontal lines */
211 background-color: #ccc;
216 /* General styles for tables */
220 margin-bottom: $lineheight;
223 padding: $lineheight/4;
224 line-height: $lineheight;
231 vertical-align: middle;
235 /* Rules for the search box */
239 padding: $lineheight;
240 background-color: $lightgrey;
241 border-bottom: $keyline;
251 border-radius: 2px 0 0 2px;
253 transition: 300ms linear;
254 -webkit-transition: 300ms linear;
255 -moz-transition: 300ms linear;
260 box-shadow: 0px 0px 7px #9ED485;
267 border-radius: 0 2px 2px 0;
271 /* Utility for de-emphasizing content */
280 /* Rules for donation request box */
285 padding: $lineheight/4;
286 border: 1px solid #AED1A0;
288 font-size: $typeheight;
293 margin: $lineheight/2 auto;
297 text-decoration: none;
301 /* Rules for the header */
304 height: $headerHeight;
306 border-bottom: $keyline;
309 h1, nav, nav > ul, nav > ul > li, .dropdown {
310 display: inline-block;
315 padding: $lineheight;
325 vertical-align: middle;
330 border-right: $keyline;
336 border: 1px solid darken($green, 20%);
341 display: inline-block;
343 text-decoration: none;
346 border-right: 1px solid darken($green, 20%);
350 border-right: 1px solid lighten($green, 20%);
354 padding: 5px 10px 5px 5px;
359 border-top-color: $green;
367 text-decoration: none;
371 border-top-color: #ccc;
376 .site-index #view_tab,
377 .changeset-list #history_tab,
378 .site-export #export_tab,
379 .site-edit #edit_tab {
380 background-color: $green;
387 border-top-color: #fff;
397 text-decoration: none;
403 border: 1px solid $grey;
409 border-radius: 2px 0 0 2px;
414 display: inline-block;
427 text-decoration: none;
442 /* Utility for styling notification numbers */
445 padding: 2px $lineheight/4;
453 /* Rules for the message shown in place of the map when javascript is disabled */
462 /* Rules for bootstrap tooltips */
500 display: inline-block;
503 background-color: white;
510 border-color: transparent;
514 .tooltip.top .tooltip-arrow {
518 border-top-color: white;
519 border-width: 5px 5px 0;
522 .tooltip.right .tooltip-arrow {
526 border-right-color: white;
527 border-width: 5px 5px 5px 0;
530 .tooltip.left .tooltip-arrow {
534 border-left-color: white;
535 border-width: 5px 0 5px 5px;
538 .tooltip.bottom .tooltip-arrow {
542 border-bottom-color: white;
543 border-width: 0 5px 5px;
546 /* Rules for Leaflet maps */
548 .leaflet-control .control-button {
552 background-color: #333;
553 background-color: rgba(0,0,0,.6);
554 -bottom: 1px solid #333;
555 border-radius: 4px 0 0 4px;
560 background-color: black;
564 background-color: #9ed485;
568 background-color: #333;
569 background-color: rgba(0,0,0,.5);
578 .leaflet-control .zoomin,
579 .control-layers .control-button {
581 border-radius: 4px 0 0 0;
584 .leaflet-control .zoomout,
585 .control-key .control-button {
590 .control-locate .control-button,
591 .control-share .control-button {
592 border-radius: 0 0 0 4px;
595 /* Rules for the home page */
612 border-bottom: 1px solid #DDD;
622 border:1px solid #ddd;
628 ul, li:last-child, p:last-child {
642 padding: 5px 5px 5px 7px;
643 background-color: #eee;
648 background-color: #ccc;
666 text-decoration: none;
667 background-color: $lightblue;
672 border-right: 1px solid #fff;
673 border-radius: 4px 0 0 4px;
677 border-left: 1px solid #fff;
678 border-radius: 0 4px 4px 0;
682 background-color: $blue;
694 font-family: monospace;
715 .leaflet-top.leaflet-right {
716 top: 10px !important;
718 margin-right: 0px !important;
719 margin-top: 0px !important;
723 .leaflet-popup-scrolled {
724 padding-right: $lineheight;
725 border-bottom: 0px !important;
726 border-top: 0px !important;
729 .leaflet-popup-content-wrapper {
730 border-radius: 4px !important;
731 -webkit-border-radius: 4px !important;
734 /* Rules for edit menu */
740 background-color: #ffffff;
741 border: 1px solid $lightgrey;
747 padding: 2px $lineheight/4;
748 border-top: 1px solid #eee;
753 /* Rules for attribution text under the main map shown on printouts */
759 .attribution_license,
760 .attribution_project {
764 .attribution_notice {
768 /* Rules for the sidebar */
771 border-right: $keyline;
778 padding: $lineheight;
779 border-bottom: $keyline;
792 padding: $lineheight;
813 padding: $lineheight/2 $lineheight;
814 background: $offwhite;
815 border-bottom: 1px solid #ccc;
838 /* Rules for the map key which appears in the popout sidebar */
841 .mapkey-table-key img {
847 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
851 /* Rules for search results which appear in the popout sidebar */
854 margin-top: $lineheight/4;
855 margin-bottom: $lineheight/4;
858 .search_results_entry {
861 margin: $lineheight auto;
867 border-bottom: 1px solid #ccc;
879 .search_results_error {
883 /* Rules for data browser information which appears in the popout sidebar */
887 .browse_show_list.button {
912 /* Rules for export information which appears in the popout sidebar */
918 .export_area_inputs {
919 margin-bottom: $lineheight/2;
927 margin: $lineheight/4;
930 /* Rules for the sidebar and main content area */
953 width: $sidebarWidth;
959 padding: $lineheight;
960 background: $lightgrey;
961 border-bottom: $keyline;
965 padding: $lineheight;
968 /* Overrides for pages that use new layout conventions */
987 .header-illustration {
988 background-position: 0 0;
989 background-repeat: no-repeat;
997 background-image: image-url("sign-up-illustration.png");
1001 background-image: image-url("confirm-illustration.png");
1005 background-image: image-url("terms-illustration.png");
1013 background-image: image-url("sign-up-illustration-arm.png");
1017 @media only screen and (max-width:900px) {
1018 .header-illustration.new-user-arm { display: none;}
1020 margin-left: $sidebarWidth;
1026 #content.maximised {
1039 #slim_container_content {
1041 background-color: #FFFFFF;
1042 margin: $lineheight/2 auto;
1044 border-radius: 25px;
1045 -moz-border-radius: 25px;
1046 border: 1px solid #e6e6e6;
1050 margin: $lineheight/2;
1055 margin-bottom: 15px;
1060 margin: 30px $lineheight/2;
1063 margin-right: $lineheight/4;
1065 vertical-align: middle;
1066 margin-bottom: $lineheight/4;
1067 margin-right: $lineheight/4;
1071 /* Rules for small maps in content areas */
1077 border: 1px solid #ccc;
1078 margin-bottom: $lineheight;
1082 /* Rules for the changeset list shown by the history tab */
1084 #sidebar .changesets {
1086 padding: $lineheight;
1087 border-bottom: $keyline;
1095 /* Rules for the data browser */
1097 body.browse #sidebar_content {
1100 border-bottom: 1px solid #CCC;
1108 margin-bottom: 10px;
1112 padding: 5px 0 5px 10px;
1114 border: 1px solid #CCC;
1115 border-radius: 4px 4px 0 0;
1116 background-color: #F6F6F6;
1123 background-color: #FFF;
1124 border: 1px solid #CCC;
1126 border-radius: 0 0 4px 4px;
1131 border: 1px solid #CCC;
1136 border-bottom: 1px solid #CCC;
1145 display: inline-block;
1154 background-color: #F6F6F6;
1155 border-radius: 4px 0 0 4px;
1159 border-left: 1px solid #CCC;
1164 /* Rules for the trace list shown by the traces tab etc */
1167 font-size: $lineheight/2;
1184 .trace_identifiable {
1197 /* Rules for the user profile page */
1202 .userinformation-inner {
1217 .admin-user-info small {
1218 margin-bottom: $lineheight/2;
1220 margin-right: $lineheight;
1225 border-bottom: 1px solid #ccc;
1226 padding-bottom: $lineheight;
1229 margin-bottom: $lineheight/2;
1234 margin-top: $lineheight;
1238 .activity-details p {
1243 #friends-container .contact-activity ul {
1248 p#no_home_location {
1249 margin: $lineheight;
1252 margin-top: $lineheight/4;
1257 /* Rules for the user map */
1259 .content_map .leaflet-popup-content {
1260 margin: $lineheight/2;
1264 /* Rules for user popups on maps */
1270 margin-top: 0 0 0 60px;
1273 img.user_thumbnail {
1275 margin: 0 $lineheight/2 0 0;
1279 /* Rules for the user list */
1282 font-size: $lineheight/2;
1286 vertical-align: middle;
1295 #user_list_actions {
1297 margin-top: $lineheight/2;
1300 /* Rules for the diary list page */
1302 .diary_entry-list img.user_thumbnail {
1309 margin-top: $lineheight/2;
1310 padding-top: $lineheight;
1311 border-top: 1px solid #ccc;
1326 ul.secondary-actions { display: inline-block;}
1329 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1333 #content .post_heading {
1334 margin-bottom: $lineheight;
1337 margin-bottom: $lineheight/2;
1342 /* Rules for the diary entry page */
1349 border: 1px solid #ccc;
1351 margin-bottom: $lineheight;
1354 border-top: 1px solid #ccc;
1355 padding-top: $lineheight;
1356 margin-top: $lineheight/2;
1362 margin-top: $lineheight/2;
1363 border-top: 1px dashed #ccc;
1364 padding-top: $lineheight/2;
1366 margin-top: $lineheight;
1367 padding-top: $lineheight;
1368 border-top: 1px solid #ccc;
1371 margin-bottom: $lineheight/2;
1380 .diary_entry-view img.user_thumbnail {
1384 /* Rules for the log in page */
1386 #login_openid_buttons {
1390 #login_openid_buttons li {
1392 padding: $lineheight/4 $lineheight/2;
1395 /* Rules for the account confirmation page */
1399 border: 1px solid #ccc;
1400 padding: $lineheight;
1401 margin-bottom: $lineheight;
1415 margin: $lineheight auto inherit auto;
1420 background: $lightblue;
1422 background: darken($lightblue, $hovercolor);
1432 /* Rules for the account settings page */
1434 #accountForm .user_map {
1438 border: 1px solid #ccc;
1441 #accountForm .user_image {
1445 #accountForm #user_image {
1449 #accountForm ul.accountImage-options {
1462 display: inline !important;
1465 .content_map.settings_map {
1470 /* Rules for the oauth settings page */
1472 .oauth_clients .buttons .oauth-edit {
1473 border-radius: 2px 0 0 2px;
1476 .oauth_clients .buttons .oauth-delete {
1477 border-radius: 0 2px 2px 0;
1480 /* Rules for messages pages */
1484 border: 1px solid #ddd;
1486 input[type="submit"] {
1490 border-top: 1px solid #ccc;
1494 background: #f8f8ff;
1507 padding: $lineheight/4;
1518 border-right: 1px solid $lightgrey;
1522 .inbox-row .inbox-mark-read {
1527 margin-bottom: $lineheight;
1528 padding: $lineheight/4 0px 4px 0px;
1529 border-bottom: 1px solid #ccc;
1536 .info-line .user_thumbnail_tiny {
1537 vertical-align: middle;
1546 .inbox-row-unread .inbox-mark-unread {
1550 .message-read .message-buttons {
1551 margin-top: $lineheight;
1552 padding-top: $lineheight;
1553 border-top: 1px solid $lightgrey;
1556 .message-read .buttons .mark-unread-button {
1560 /* Rules for "flash" notice boxes shown at the top of the content area */
1563 padding: $lineheight;
1565 background-color: #ff7070;
1568 background-color: #ffe0cc;
1571 background-color: #CBEEA7;
1575 /* Rules for highlighting fields with rails validation errors */
1577 .field_with_errors {
1579 background-color: #ff7070;
1580 display: inline-block;
1584 display: inline-block;
1590 background-color: #ff7070;
1593 /* Rules for rails validation error boxes */
1597 border: 2px solid #ff7070;
1598 padding: 0 $lineheight/2;
1599 margin-bottom: $lineheight;
1600 background-color: #f0f0f0;
1603 margin: 0 -10px 10px -10px;
1604 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1607 background-color: #c00;
1615 padding: $lineheight/4;
1619 padding-left: $lineheight;
1628 /* Rules for forms */
1632 margin-bottom: $lineheight;
1634 label.standard-label {
1636 margin-bottom: $lineheight/4;
1637 font-size: $typeheight;
1641 label.standard-label.secondary {
1642 display: inline-block;
1643 font-weight: normal;
1646 font-weight: normal;
1653 margin-top: $lineheight;
1654 padding-top: $lineheight;
1655 border-top: 1px solid $lightgrey;
1657 .horizontal-list .form-row {
1659 padding-right: 10px;
1662 margin-bottom: $lineheight/2;
1670 input[type="checkbox"],
1671 input[type="radio"] {
1677 #remember_me_openid {
1681 input[type="checkbox"],
1682 input[type="radio"] {
1687 input[type="email"],
1689 input[type="password"],
1691 border: 1px solid #ccc;
1702 /* Rules for user images */
1707 border: 1px solid #ccc;
1708 margin-bottom: $lineheight;
1710 margin-right: $lineheight;
1713 img.user_thumbnail {
1716 border: 1px solid #ccc;
1717 margin-right: $lineheight;
1720 img.user_thumbnail_tiny {
1723 border: 1px solid #ccc;
1726 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1729 white-space: nowrap;
1732 /* Rules for geo microformats */
1735 border-bottom: none;
1738 /* Rules for RSS buttons */
1745 /* General styles for action lists / subnavs / pager navs */
1747 ul.secondary-actions {
1752 display: inline-block;
1759 border-left: 1px solid #ccc;
1760 padding-left: $lineheight/4;
1761 margin-right: $lineheight/4;
1776 /* Utility for managing inner content areas */
1778 .inner22 { padding: $lineheight;}
1780 .inner12 { padding: $lineheight/2 $lineheight;}
1782 .inner11 { padding: $lineheight/2;}
1784 .inner20 { padding: $lineheight 0;}
1786 .inner02 { padding: 0 $lineheight;}
1788 /* Utility for general button styles */
1790 input[type="button"],
1791 input[type="submit"],
1792 input[type="reset"],
1796 display: inline-block;
1798 padding: $lineheight/4 $lineheight/2;
1799 min-height: 20px + $lineheight/2;
1801 margin: 0 0 $lineheight/2 0;
1806 -moz-border-radius: 2px;
1808 background: darken($blue, $hovercolor);
1809 text-decoration: none;
1812 background: $lightblue;
1814 background: darken($lightblue, $hovercolor);
1818 background: $lightgrey;
1820 background: $lightgrey;
1830 input[type="submit"],
1831 input[type="button"],
1832 input[type="reset"],
1834 box-sizing: border-box;
1840 border-right:1px solid white;
1841 text-overflow: ellipsis;
1842 white-space: nowrap;
1846 .button:first-child {
1847 border-radius:2px 0 0 2px;
1850 .button:last-child {
1851 border-radius:0 2px 2px 0;
1852 border-right-width: 0;
1856 *[value="Hide"] + input:last-child,
1857 *[value="Hide"] + .button:last-child {
1859 border-right-width: 0;
1861 /* if a 3-button set has a hidden middle button */
1862 *[value="Hide"] + input:nth-child(3),
1863 *[value="Hide"] + .button:nth-child(3) {
1864 border-radius:0 2px 2px 0;
1865 border-right-width: 0;
1867 /* if a 3-button set starts with a hidden button */
1868 *[value="Hide"] + input:nth-child(2):not(:last-child),
1869 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1870 border-radius:2px 0 0 2px;
1871 border-right-width: 1px solid white;
1875 /* Rules for doing distinct colour of alternate table rows */
1879 background: $offwhite;
1887 /* Rules for OpenID logo */
1890 vertical-align: text-bottom;
1894 /* Rules for rich text */
1899 padding-bottom: $lineheight/2;
1900 border-bottom: 1px dashed #cccccc;
1901 margin-bottom: $lineheight/2;
1913 font-size: $typeheight;
1918 background: #e8e8e8;
1924 background: #e8e8e8;
1933 padding: $lineheight;
1934 background-color: $offwhite;
1941 border-left: $lineheight solid $offwhite;
1942 padding-left: $lineheight;
1948 padding-left: $lineheight;
1949 margin-bottom: $lineheight;
1950 margin-left: $lineheight;
1958 list-style: decimal;
1962 .diary_post .richtext {
1963 margin-top: $lineheight;
1966 .comments .richtext {
1971 /* Rules for rich text editors */
1973 .richtext_container {
1974 margin-bottom: $lineheight;
1978 display: inline-block;
1979 vertical-align: top;
1982 display: inline-block;
1983 padding: $lineheight;
1984 background-color: $offwhite;
1988 background-image: image-url("loading.gif");
1989 background-repeat: no-repeat;
1990 background-position: center;
2000 display: inline-block;
2001 vertical-align: top;
2003 background-color: #f8f8ff;
2004 padding: $lineheight/2;
2012 border-bottom: 1px solid #ccc;
2013 margin-bottom: $lineheight/4;
2014 padding-bottom: $lineheight/4;
2017 li h4, li span, li p {
2018 display: inline-block;
2019 vertical-align: top;
2030 margin-left: $lineheight/2;
2031 margin-bottom: $lineheight/4;
2032 white-space: nowrap;
2037 /* Rules for the user notes list */
2041 background-color: #eeeeee;
2053 /* Rules for the notes interface */
2055 .leaflet-popup-content .note {
2056 padding-top: $lineheight/2;
2059 .leaflet-popup-content .note {
2061 margin-bottom: $lineheight/2;
2065 margin-top: $lineheight/2;
2071 left: $lineheight/4;
2078 padding-left: $lineheight;
2081 .permalink:hover span {
2087 background-color: #ffe0cc;
2089 margin-bottom: $lineheight/2;
2108 margin-top: $lineheight/4;
2114 * Rules for the iD editor
2122 /* Rules for rotating sidebar ads */
2129 border-bottom: 1px solid #ccc;
2144 /* Rules for dropdown menus */
2151 *margin-bottom: -3px;
2154 .dropdown-toggle:active,
2155 .open .dropdown-toggle {
2160 display: inline-block;
2163 vertical-align: top;
2164 border-top: 4px solid #000000;
2165 border-right: 4px solid transparent;
2166 border-left: 4px solid transparent;
2186 background-color: #ffffff;
2187 border: 1px solid #ccc;
2188 *border-right-width: 2px;
2189 *border-bottom-width: 2px;
2190 -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2191 -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2192 box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2193 -webkit-background-clip: padding-box;
2194 -moz-background-clip: padding;
2195 background-clip: padding-box;
2198 .dropdown-menu.pull-right {
2203 .dropdown-menu .divider {
2207 *margin: -5px 0 5px;
2209 background-color: #e5e5e5;
2210 border-bottom: 1px solid #ffffff;
2213 .dropdown-menu > li > a {
2217 font-weight: normal;
2220 white-space: nowrap;
2223 .dropdown-menu > li > a:hover,
2224 .dropdown-menu > li > a:focus,
2225 .dropdown-submenu:hover > a,
2226 .dropdown-submenu:focus > a {
2228 text-decoration: none;
2229 background-color: #0081c2;
2232 .dropdown-menu > .active > a,
2233 .dropdown-menu > .active > a:hover,
2234 .dropdown-menu > .active > a:focus {
2236 text-decoration: none;
2237 background-color: #0081c2;
2241 .dropdown-menu > .disabled > a,
2242 .dropdown-menu > .disabled > a:hover,
2243 .dropdown-menu > .disabled > a:focus {
2247 .dropdown-menu > .disabled > a:hover,
2248 .dropdown-menu > .disabled > a:focus {
2249 text-decoration: none;
2251 background-color: transparent;
2252 background-image: none;
2259 .open > .dropdown-menu {
2263 .dropdown-backdrop {
2272 /* Rules for the "Welcome" page */
2283 background-image: image-url("welcome-sprite.png");
2284 background-size: 500px 250px;
2290 padding-bottom: 20px;
2292 margin-bottom: 10px;
2304 background-position: -50px 0;
2309 vertical-align: middle;
2313 background-position: -100px 0;
2317 background-position: -150px 0;
2321 background-position: -200px 0;
2325 background-position: -250px 0;
2329 background-position: -300px 0;
2338 text-decoration: none;
2343 background-color: $offwhite;
2347 background-color: #333;