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;
308 h1, nav, nav > ul, nav > ul > li, .dropdown {
309 display: inline-block;
314 padding: $lineheight;
324 vertical-align: middle;
329 border-right: $keyline;
335 border: 1px solid darken($green, 20%);
340 display: inline-block;
342 text-decoration: none;
345 border-right: 1px solid darken($green, 20%);
349 border-right: 1px solid lighten($green, 20%);
353 padding: 5px 10px 5px 5px;
358 border-top-color: $green;
366 text-decoration: none;
370 border-top-color: #ccc;
375 .site-index #view_tab,
376 .changeset-list #history_tab,
377 .site-export #export_tab,
378 .site-edit #edit_tab {
379 background-color: $green;
386 border-top-color: #fff;
396 text-decoration: none;
402 border: 1px solid $grey;
408 border-radius: 2px 0 0 2px;
413 display: inline-block;
426 text-decoration: none;
441 /* Utility for styling notification numbers */
444 padding: 2px $lineheight/4;
452 /* Rules for the message shown in place of the map when javascript is disabled */
461 /* Rules for bootstrap tooltips */
499 display: inline-block;
502 background-color: white;
509 border-color: transparent;
513 .tooltip.top .tooltip-arrow {
517 border-top-color: white;
518 border-width: 5px 5px 0;
521 .tooltip.right .tooltip-arrow {
525 border-right-color: white;
526 border-width: 5px 5px 5px 0;
529 .tooltip.left .tooltip-arrow {
533 border-left-color: white;
534 border-width: 5px 0 5px 5px;
537 .tooltip.bottom .tooltip-arrow {
541 border-bottom-color: white;
542 border-width: 0 5px 5px;
545 /* Rules for Leaflet maps */
547 .leaflet-control .control-button {
551 background-color: #333;
552 background-color: rgba(0,0,0,.6);
553 -bottom: 1px solid #333;
554 border-radius: 4px 0 0 4px;
559 background-color: black;
563 background-color: #9ed485;
567 background-color: #333;
568 background-color: rgba(0,0,0,.5);
577 .leaflet-control .zoomin,
578 .control-layers .control-button {
580 border-radius: 4px 0 0 0;
583 .site .leaflet-control .zoomout,
584 .control-key .control-button {
589 .leaflet-control .zoomout, // For non-main page maps
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 */
776 padding: $lineheight;
777 border-bottom: $keyline;
786 padding: $lineheight;
807 padding: $lineheight/2 $lineheight;
808 background: $offwhite;
809 border-bottom: 1px solid #ccc;
832 /* Rules for the map key which appears in the popout sidebar */
835 .mapkey-table-key img {
841 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
845 /* Rules for search results which appear in the popout sidebar */
848 margin-top: $lineheight/4;
849 margin-bottom: $lineheight/4;
852 .search_results_entry {
864 .search_results_entry .search_searching {
866 margin: $lineheight auto;
871 ul.results-list li { border-bottom: 1px solid #ccc; }
873 .search_results_error {
877 /* Rules for data browser information which appears in the popout sidebar */
881 .browse_show_list.button {
906 /* Rules for export information which appears in the popout sidebar */
912 .export_area_inputs {
913 margin-bottom: $lineheight/2;
921 margin: $lineheight/4;
924 /* Rules for the sidebar and main content area */
946 width: $sidebarWidth;
952 padding: $lineheight;
953 background: $lightgrey;
954 border-bottom: $keyline;
958 padding: $lineheight;
961 /* Overrides for pages that use new layout conventions */
980 .header-illustration {
981 background-position: 0 0;
982 background-repeat: no-repeat;
990 background-image: image-url("sign-up-illustration.png");
994 background-image: image-url("confirm-illustration.png");
998 background-image: image-url("terms-illustration.png");
1006 background-image: image-url("sign-up-illustration-arm.png");
1010 @media only screen and (max-width:900px) {
1011 .header-illustration.new-user-arm { display: none;}
1013 margin-left: $sidebarWidth;
1019 #content.maximised {
1032 #slim_container_content {
1034 background-color: #FFFFFF;
1035 margin: $lineheight/2 auto;
1037 border-radius: 25px;
1038 -moz-border-radius: 25px;
1039 border: 1px solid #e6e6e6;
1043 margin: $lineheight/2;
1048 margin-bottom: 15px;
1053 margin: 30px $lineheight/2;
1056 margin-right: $lineheight/4;
1058 vertical-align: middle;
1059 margin-bottom: $lineheight/4;
1060 margin-right: $lineheight/4;
1064 /* Rules for small maps in content areas */
1070 border: 1px solid #ccc;
1071 margin-bottom: $lineheight;
1075 .content_map #small_map {
1078 margin-bottom: $lineheight;
1081 /* Rules for the changeset list shown by the history tab etc */
1084 /* Rules for the data browser */
1087 border-top: 1px solid #ccc;
1088 margin-top: $lineheight/2;
1089 padding-top: $lineheight/2;
1094 background-color: #ffe0cc;
1100 margin-bottom: $lineheight/4;
1103 display: inline-block;
1104 vertical-align: top;
1114 display: inline-block;
1115 vertical-align: top;
1123 padding: $lineheight/4 0;
1125 text-overflow: ellipsis;
1136 #browse_map .secondary-actions {
1138 margin-bottom: $lineheight/2;
1141 /* Rules for the trace list shown by the traces tab etc */
1144 font-size: $lineheight/2;
1161 .trace_identifiable {
1174 /* Rules for the user profile page */
1179 .userinformation-inner {
1194 .admin-user-info small {
1195 margin-bottom: $lineheight/2;
1197 margin-right: $lineheight;
1202 border-bottom: 1px solid #ccc;
1203 padding-bottom: $lineheight;
1206 margin-bottom: $lineheight/2;
1211 margin-top: $lineheight;
1215 .activity-details p {
1220 #friends-container .contact-activity ul {
1225 p#no_home_location {
1226 margin: $lineheight;
1229 margin-top: $lineheight/4;
1234 /* Rules for the user map */
1236 .content_map .leaflet-popup-content {
1237 margin: $lineheight/2;
1241 /* Rules for user popups on maps */
1247 margin-top: 0 0 0 60px;
1250 img.user_thumbnail {
1252 margin: 0 $lineheight/2 0 0;
1256 /* Rules for the user list */
1259 font-size: $lineheight/2;
1263 vertical-align: middle;
1272 #user_list_actions {
1274 margin-top: $lineheight/2;
1277 /* Rules for the diary list page */
1279 .diary_entry-list img.user_thumbnail {
1286 margin-top: $lineheight/2;
1287 padding-top: $lineheight;
1288 border-top: 1px solid #ccc;
1303 ul.secondary-actions { display: inline-block;}
1306 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1310 #content .post_heading {
1311 margin-bottom: $lineheight;
1314 margin-bottom: $lineheight/2;
1319 /* Rules for the diary entry page */
1326 border: 1px solid #ccc;
1328 margin-bottom: $lineheight;
1331 border-top: 1px solid #ccc;
1332 padding-top: $lineheight;
1333 margin-top: $lineheight/2;
1339 margin-top: $lineheight/2;
1340 border-top: 1px dashed #ccc;
1341 padding-top: $lineheight/2;
1343 margin-top: $lineheight;
1344 padding-top: $lineheight;
1345 border-top: 1px solid #ccc;
1348 margin-bottom: $lineheight/2;
1357 .diary_entry-view img.user_thumbnail {
1361 /* Rules for the log in page */
1363 #login_openid_buttons {
1367 #login_openid_buttons li {
1369 padding: $lineheight/4 $lineheight/2;
1372 /* Rules for the account confirmation page */
1376 border: 1px solid #ccc;
1377 padding: $lineheight;
1378 margin-bottom: $lineheight;
1392 margin: $lineheight auto inherit auto;
1397 background: $lightblue;
1399 background: darken($lightblue, $hovercolor);
1409 /* Rules for the account settings page */
1411 #accountForm .user_map {
1415 border: 1px solid #ccc;
1418 #accountForm .user_image {
1422 #accountForm #user_image {
1426 #accountForm ul.accountImage-options {
1439 display: inline !important;
1442 .content_map.settings_map {
1447 /* Rules for the oauth settings page */
1449 .oauth_clients .buttons .oauth-edit {
1450 border-radius: 2px 0 0 2px;
1453 .oauth_clients .buttons .oauth-delete {
1454 border-radius: 0 2px 2px 0;
1457 /* Rules for messages pages */
1461 border: 1px solid #ddd;
1463 input[type="submit"] {
1467 border-top: 1px solid #ccc;
1471 background: #f8f8ff;
1484 padding: $lineheight/4;
1495 border-right: 1px solid $lightgrey;
1499 .inbox-row .inbox-mark-read {
1504 margin-bottom: $lineheight;
1505 padding: $lineheight/4 0px 4px 0px;
1506 border-bottom: 1px solid #ccc;
1513 .info-line .user_thumbnail_tiny {
1514 vertical-align: middle;
1523 .inbox-row-unread .inbox-mark-unread {
1527 .message-read .message-buttons {
1528 margin-top: $lineheight;
1529 padding-top: $lineheight;
1530 border-top: 1px solid $lightgrey;
1533 .message-read .buttons .mark-unread-button {
1537 /* Rules for "flash" notice boxes shown at the top of the content area */
1540 padding: $lineheight;
1542 background-color: #ff7070;
1545 background-color: #ffe0cc;
1548 background-color: #CBEEA7;
1552 /* Rules for highlighting fields with rails validation errors */
1554 .field_with_errors {
1556 background-color: #ff7070;
1557 display: inline-block;
1561 display: inline-block;
1567 background-color: #ff7070;
1570 /* Rules for rails validation error boxes */
1574 border: 2px solid #ff7070;
1575 padding: 0 $lineheight/2;
1576 margin-bottom: $lineheight;
1577 background-color: #f0f0f0;
1580 margin: 0 -10px 10px -10px;
1581 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1584 background-color: #c00;
1592 padding: $lineheight/4;
1596 padding-left: $lineheight;
1605 /* Rules for forms */
1609 margin-bottom: $lineheight;
1611 label.standard-label {
1613 margin-bottom: $lineheight/4;
1614 font-size: $typeheight;
1618 label.standard-label.secondary {
1619 display: inline-block;
1620 font-weight: normal;
1623 font-weight: normal;
1630 margin-top: $lineheight;
1631 padding-top: $lineheight;
1632 border-top: 1px solid $lightgrey;
1634 .horizontal-list .form-row {
1636 padding-right: 10px;
1639 margin-bottom: $lineheight/2;
1647 input[type="checkbox"],
1648 input[type="radio"] {
1654 #remember_me_openid {
1658 input[type="checkbox"],
1659 input[type="radio"] {
1664 input[type="email"],
1666 input[type="password"],
1668 border: 1px solid #ccc;
1679 /* Rules for user images */
1684 border: 1px solid #ccc;
1685 margin-bottom: $lineheight;
1687 margin-right: $lineheight;
1690 img.user_thumbnail {
1693 border: 1px solid #ccc;
1694 margin-right: $lineheight;
1697 img.user_thumbnail_tiny {
1700 border: 1px solid #ccc;
1703 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1706 white-space: nowrap;
1709 /* Rules for geo microformats */
1712 border-bottom: none;
1715 /* Rules for RSS buttons */
1722 /* General styles for action lists / subnavs / pager navs */
1724 ul.secondary-actions {
1729 display: inline-block;
1736 border-left: 1px solid #ccc;
1737 padding-left: $lineheight/4;
1738 margin-right: $lineheight/4;
1753 /* Utility for managing inner content areas */
1755 .inner22 { padding: $lineheight;}
1757 .inner12 { padding: $lineheight/2 $lineheight;}
1759 .inner11 { padding: $lineheight/2;}
1761 .inner20 { padding: $lineheight 0;}
1763 .inner02 { padding: 0 $lineheight;}
1765 /* Utility for general button styles */
1767 input[type="button"],
1768 input[type="submit"],
1769 input[type="reset"],
1773 display: inline-block;
1775 padding: $lineheight/4 $lineheight/2;
1776 min-height: 20px + $lineheight/2;
1778 margin: 0 0 $lineheight/2 0;
1783 -moz-border-radius: 2px;
1785 background: darken($blue, $hovercolor);
1786 text-decoration: none;
1789 background: $lightblue;
1791 background: darken($lightblue, $hovercolor);
1795 background: $lightgrey;
1797 background: $lightgrey;
1807 input[type="submit"],
1808 input[type="button"],
1809 input[type="reset"],
1811 box-sizing: border-box;
1817 border-right:1px solid white;
1818 text-overflow: ellipsis;
1819 white-space: nowrap;
1823 .button:first-child {
1824 border-radius:2px 0 0 2px;
1827 .button:last-child {
1828 border-radius:0 2px 2px 0;
1829 border-right-width: 0;
1833 *[value="Hide"] + input:last-child,
1834 *[value="Hide"] + .button:last-child {
1836 border-right-width: 0;
1838 /* if a 3-button set has a hidden middle button */
1839 *[value="Hide"] + input:nth-child(3),
1840 *[value="Hide"] + .button:nth-child(3) {
1841 border-radius:0 2px 2px 0;
1842 border-right-width: 0;
1844 /* if a 3-button set starts with a hidden button */
1845 *[value="Hide"] + input:nth-child(2):not(:last-child),
1846 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1847 border-radius:2px 0 0 2px;
1848 border-right-width: 1px solid white;
1852 /* Rules for doing distinct colour of alternate table rows */
1856 background: $offwhite;
1864 /* Rules for OpenID logo */
1867 vertical-align: text-bottom;
1871 /* Rules for rich text */
1876 padding-bottom: $lineheight/2;
1877 border-bottom: 1px dashed #cccccc;
1878 margin-bottom: $lineheight/2;
1890 font-size: $typeheight;
1895 background: #e8e8e8;
1901 background: #e8e8e8;
1910 padding: $lineheight;
1911 background-color: $offwhite;
1918 border-left: $lineheight solid $offwhite;
1919 padding-left: $lineheight;
1925 padding-left: $lineheight;
1926 margin-bottom: $lineheight;
1927 margin-left: $lineheight;
1935 list-style: decimal;
1939 .diary_post .richtext {
1940 margin-top: $lineheight;
1943 .comments .richtext {
1948 /* Rules for rich text editors */
1950 .richtext_container {
1951 margin-bottom: $lineheight;
1955 display: inline-block;
1956 vertical-align: top;
1959 display: inline-block;
1960 padding: $lineheight;
1961 background-color: $offwhite;
1965 background-image: image-url("loading.gif");
1966 background-repeat: no-repeat;
1967 background-position: center;
1977 display: inline-block;
1978 vertical-align: top;
1980 background-color: #f8f8ff;
1981 padding: $lineheight/2;
1989 border-bottom: 1px solid #ccc;
1990 margin-bottom: $lineheight/4;
1991 padding-bottom: $lineheight/4;
1994 li h4, li span, li p {
1995 display: inline-block;
1996 vertical-align: top;
2007 margin-left: $lineheight/2;
2008 margin-bottom: $lineheight/4;
2009 white-space: nowrap;
2014 /* Rules for the user notes list */
2018 background-color: #eeeeee;
2030 /* Rules for the notes interface */
2032 .leaflet-popup-content .note {
2033 padding-top: $lineheight/2;
2036 .leaflet-popup-content .note {
2038 margin-bottom: $lineheight/2;
2042 margin-top: $lineheight/2;
2048 left: $lineheight/4;
2055 padding-left: $lineheight;
2058 .permalink:hover span {
2064 background-color: #ffe0cc;
2066 margin-bottom: $lineheight/2;
2085 margin-top: $lineheight/4;
2091 * Rules for the iD editor
2099 /* Rules for rotating sidebar ads */
2106 border-bottom: 1px solid #ccc;
2121 /* Rules for dropdown menus */
2128 *margin-bottom: -3px;
2131 .dropdown-toggle:active,
2132 .open .dropdown-toggle {
2137 display: inline-block;
2140 vertical-align: top;
2141 border-top: 4px solid #000000;
2142 border-right: 4px solid transparent;
2143 border-left: 4px solid transparent;
2163 background-color: #ffffff;
2164 border: 1px solid #ccc;
2165 *border-right-width: 2px;
2166 *border-bottom-width: 2px;
2167 -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2168 -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2169 box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2170 -webkit-background-clip: padding-box;
2171 -moz-background-clip: padding;
2172 background-clip: padding-box;
2175 .dropdown-menu.pull-right {
2180 .dropdown-menu .divider {
2184 *margin: -5px 0 5px;
2186 background-color: #e5e5e5;
2187 border-bottom: 1px solid #ffffff;
2190 .dropdown-menu > li > a {
2194 font-weight: normal;
2197 white-space: nowrap;
2200 .dropdown-menu > li > a:hover,
2201 .dropdown-menu > li > a:focus,
2202 .dropdown-submenu:hover > a,
2203 .dropdown-submenu:focus > a {
2205 text-decoration: none;
2206 background-color: #0081c2;
2209 .dropdown-menu > .active > a,
2210 .dropdown-menu > .active > a:hover,
2211 .dropdown-menu > .active > a:focus {
2213 text-decoration: none;
2214 background-color: #0081c2;
2218 .dropdown-menu > .disabled > a,
2219 .dropdown-menu > .disabled > a:hover,
2220 .dropdown-menu > .disabled > a:focus {
2224 .dropdown-menu > .disabled > a:hover,
2225 .dropdown-menu > .disabled > a:focus {
2226 text-decoration: none;
2228 background-color: transparent;
2229 background-image: none;
2236 .open > .dropdown-menu {
2240 .dropdown-backdrop {
2249 /* Rules for the "Welcome" page */
2260 background-image: image-url("welcome-sprite.png");
2261 background-size: 500px 250px;
2267 padding-bottom: 20px;
2269 margin-bottom: 10px;
2281 background-position: -50px 0;
2286 vertical-align: middle;
2290 background-position: -100px 0;
2294 background-position: -150px 0;
2298 background-position: -200px 0;
2302 background-position: -250px 0;
2306 background-position: -300px 0;
2315 text-decoration: none;
2320 background-color: $offwhite;
2324 background-color: #333;