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 {
870 .search_results_entry .search_searching {
872 margin: $lineheight auto;
877 ul.results-list li { 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 etc */
1085 /* Rules for the data browser */
1087 body.browse #sidebar_content {
1090 border-bottom: 1px solid #CCC;
1098 margin-bottom: 10px;
1102 padding: 5px 0 5px 10px;
1104 border: 1px solid #CCC;
1105 border-radius: 4px 4px 0 0;
1106 background-color: #F6F6F6;
1113 background-color: #FFF;
1114 border: 1px solid #CCC;
1116 border-radius: 0 0 4px 4px;
1121 border: 1px solid #CCC;
1126 border-bottom: 1px solid #CCC;
1135 display: inline-block;
1144 background-color: #F6F6F6;
1145 border-radius: 4px 0 0 4px;
1149 border-left: 1px solid #CCC;
1154 /* Rules for the trace list shown by the traces tab etc */
1157 font-size: $lineheight/2;
1174 .trace_identifiable {
1187 /* Rules for the user profile page */
1192 .userinformation-inner {
1207 .admin-user-info small {
1208 margin-bottom: $lineheight/2;
1210 margin-right: $lineheight;
1215 border-bottom: 1px solid #ccc;
1216 padding-bottom: $lineheight;
1219 margin-bottom: $lineheight/2;
1224 margin-top: $lineheight;
1228 .activity-details p {
1233 #friends-container .contact-activity ul {
1238 p#no_home_location {
1239 margin: $lineheight;
1242 margin-top: $lineheight/4;
1247 /* Rules for the user map */
1249 .content_map .leaflet-popup-content {
1250 margin: $lineheight/2;
1254 /* Rules for user popups on maps */
1260 margin-top: 0 0 0 60px;
1263 img.user_thumbnail {
1265 margin: 0 $lineheight/2 0 0;
1269 /* Rules for the user list */
1272 font-size: $lineheight/2;
1276 vertical-align: middle;
1285 #user_list_actions {
1287 margin-top: $lineheight/2;
1290 /* Rules for the diary list page */
1292 .diary_entry-list img.user_thumbnail {
1299 margin-top: $lineheight/2;
1300 padding-top: $lineheight;
1301 border-top: 1px solid #ccc;
1316 ul.secondary-actions { display: inline-block;}
1319 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1323 #content .post_heading {
1324 margin-bottom: $lineheight;
1327 margin-bottom: $lineheight/2;
1332 /* Rules for the diary entry page */
1339 border: 1px solid #ccc;
1341 margin-bottom: $lineheight;
1344 border-top: 1px solid #ccc;
1345 padding-top: $lineheight;
1346 margin-top: $lineheight/2;
1352 margin-top: $lineheight/2;
1353 border-top: 1px dashed #ccc;
1354 padding-top: $lineheight/2;
1356 margin-top: $lineheight;
1357 padding-top: $lineheight;
1358 border-top: 1px solid #ccc;
1361 margin-bottom: $lineheight/2;
1370 .diary_entry-view img.user_thumbnail {
1374 /* Rules for the log in page */
1376 #login_openid_buttons {
1380 #login_openid_buttons li {
1382 padding: $lineheight/4 $lineheight/2;
1385 /* Rules for the account confirmation page */
1389 border: 1px solid #ccc;
1390 padding: $lineheight;
1391 margin-bottom: $lineheight;
1405 margin: $lineheight auto inherit auto;
1410 background: $lightblue;
1412 background: darken($lightblue, $hovercolor);
1422 /* Rules for the account settings page */
1424 #accountForm .user_map {
1428 border: 1px solid #ccc;
1431 #accountForm .user_image {
1435 #accountForm #user_image {
1439 #accountForm ul.accountImage-options {
1452 display: inline !important;
1455 .content_map.settings_map {
1460 /* Rules for the oauth settings page */
1462 .oauth_clients .buttons .oauth-edit {
1463 border-radius: 2px 0 0 2px;
1466 .oauth_clients .buttons .oauth-delete {
1467 border-radius: 0 2px 2px 0;
1470 /* Rules for messages pages */
1474 border: 1px solid #ddd;
1476 input[type="submit"] {
1480 border-top: 1px solid #ccc;
1484 background: #f8f8ff;
1497 padding: $lineheight/4;
1508 border-right: 1px solid $lightgrey;
1512 .inbox-row .inbox-mark-read {
1517 margin-bottom: $lineheight;
1518 padding: $lineheight/4 0px 4px 0px;
1519 border-bottom: 1px solid #ccc;
1526 .info-line .user_thumbnail_tiny {
1527 vertical-align: middle;
1536 .inbox-row-unread .inbox-mark-unread {
1540 .message-read .message-buttons {
1541 margin-top: $lineheight;
1542 padding-top: $lineheight;
1543 border-top: 1px solid $lightgrey;
1546 .message-read .buttons .mark-unread-button {
1550 /* Rules for "flash" notice boxes shown at the top of the content area */
1553 padding: $lineheight;
1555 background-color: #ff7070;
1558 background-color: #ffe0cc;
1561 background-color: #CBEEA7;
1565 /* Rules for highlighting fields with rails validation errors */
1567 .field_with_errors {
1569 background-color: #ff7070;
1570 display: inline-block;
1574 display: inline-block;
1580 background-color: #ff7070;
1583 /* Rules for rails validation error boxes */
1587 border: 2px solid #ff7070;
1588 padding: 0 $lineheight/2;
1589 margin-bottom: $lineheight;
1590 background-color: #f0f0f0;
1593 margin: 0 -10px 10px -10px;
1594 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1597 background-color: #c00;
1605 padding: $lineheight/4;
1609 padding-left: $lineheight;
1618 /* Rules for forms */
1622 margin-bottom: $lineheight;
1624 label.standard-label {
1626 margin-bottom: $lineheight/4;
1627 font-size: $typeheight;
1631 label.standard-label.secondary {
1632 display: inline-block;
1633 font-weight: normal;
1636 font-weight: normal;
1643 margin-top: $lineheight;
1644 padding-top: $lineheight;
1645 border-top: 1px solid $lightgrey;
1647 .horizontal-list .form-row {
1649 padding-right: 10px;
1652 margin-bottom: $lineheight/2;
1660 input[type="checkbox"],
1661 input[type="radio"] {
1667 #remember_me_openid {
1671 input[type="checkbox"],
1672 input[type="radio"] {
1677 input[type="email"],
1679 input[type="password"],
1681 border: 1px solid #ccc;
1692 /* Rules for user images */
1697 border: 1px solid #ccc;
1698 margin-bottom: $lineheight;
1700 margin-right: $lineheight;
1703 img.user_thumbnail {
1706 border: 1px solid #ccc;
1707 margin-right: $lineheight;
1710 img.user_thumbnail_tiny {
1713 border: 1px solid #ccc;
1716 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1719 white-space: nowrap;
1722 /* Rules for geo microformats */
1725 border-bottom: none;
1728 /* Rules for RSS buttons */
1735 /* General styles for action lists / subnavs / pager navs */
1737 ul.secondary-actions {
1742 display: inline-block;
1749 border-left: 1px solid #ccc;
1750 padding-left: $lineheight/4;
1751 margin-right: $lineheight/4;
1766 /* Utility for managing inner content areas */
1768 .inner22 { padding: $lineheight;}
1770 .inner12 { padding: $lineheight/2 $lineheight;}
1772 .inner11 { padding: $lineheight/2;}
1774 .inner20 { padding: $lineheight 0;}
1776 .inner02 { padding: 0 $lineheight;}
1778 /* Utility for general button styles */
1780 input[type="button"],
1781 input[type="submit"],
1782 input[type="reset"],
1786 display: inline-block;
1788 padding: $lineheight/4 $lineheight/2;
1789 min-height: 20px + $lineheight/2;
1791 margin: 0 0 $lineheight/2 0;
1796 -moz-border-radius: 2px;
1798 background: darken($blue, $hovercolor);
1799 text-decoration: none;
1802 background: $lightblue;
1804 background: darken($lightblue, $hovercolor);
1808 background: $lightgrey;
1810 background: $lightgrey;
1820 input[type="submit"],
1821 input[type="button"],
1822 input[type="reset"],
1824 box-sizing: border-box;
1830 border-right:1px solid white;
1831 text-overflow: ellipsis;
1832 white-space: nowrap;
1836 .button:first-child {
1837 border-radius:2px 0 0 2px;
1840 .button:last-child {
1841 border-radius:0 2px 2px 0;
1842 border-right-width: 0;
1846 *[value="Hide"] + input:last-child,
1847 *[value="Hide"] + .button:last-child {
1849 border-right-width: 0;
1851 /* if a 3-button set has a hidden middle button */
1852 *[value="Hide"] + input:nth-child(3),
1853 *[value="Hide"] + .button:nth-child(3) {
1854 border-radius:0 2px 2px 0;
1855 border-right-width: 0;
1857 /* if a 3-button set starts with a hidden button */
1858 *[value="Hide"] + input:nth-child(2):not(:last-child),
1859 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1860 border-radius:2px 0 0 2px;
1861 border-right-width: 1px solid white;
1865 /* Rules for doing distinct colour of alternate table rows */
1869 background: $offwhite;
1877 /* Rules for OpenID logo */
1880 vertical-align: text-bottom;
1884 /* Rules for rich text */
1889 padding-bottom: $lineheight/2;
1890 border-bottom: 1px dashed #cccccc;
1891 margin-bottom: $lineheight/2;
1903 font-size: $typeheight;
1908 background: #e8e8e8;
1914 background: #e8e8e8;
1923 padding: $lineheight;
1924 background-color: $offwhite;
1931 border-left: $lineheight solid $offwhite;
1932 padding-left: $lineheight;
1938 padding-left: $lineheight;
1939 margin-bottom: $lineheight;
1940 margin-left: $lineheight;
1948 list-style: decimal;
1952 .diary_post .richtext {
1953 margin-top: $lineheight;
1956 .comments .richtext {
1961 /* Rules for rich text editors */
1963 .richtext_container {
1964 margin-bottom: $lineheight;
1968 display: inline-block;
1969 vertical-align: top;
1972 display: inline-block;
1973 padding: $lineheight;
1974 background-color: $offwhite;
1978 background-image: image-url("loading.gif");
1979 background-repeat: no-repeat;
1980 background-position: center;
1990 display: inline-block;
1991 vertical-align: top;
1993 background-color: #f8f8ff;
1994 padding: $lineheight/2;
2002 border-bottom: 1px solid #ccc;
2003 margin-bottom: $lineheight/4;
2004 padding-bottom: $lineheight/4;
2007 li h4, li span, li p {
2008 display: inline-block;
2009 vertical-align: top;
2020 margin-left: $lineheight/2;
2021 margin-bottom: $lineheight/4;
2022 white-space: nowrap;
2027 /* Rules for the user notes list */
2031 background-color: #eeeeee;
2043 /* Rules for the notes interface */
2045 .leaflet-popup-content .note {
2046 padding-top: $lineheight/2;
2049 .leaflet-popup-content .note {
2051 margin-bottom: $lineheight/2;
2055 margin-top: $lineheight/2;
2061 left: $lineheight/4;
2068 padding-left: $lineheight;
2071 .permalink:hover span {
2077 background-color: #ffe0cc;
2079 margin-bottom: $lineheight/2;
2098 margin-top: $lineheight/4;
2104 * Rules for the iD editor
2112 /* Rules for rotating sidebar ads */
2119 border-bottom: 1px solid #ccc;
2134 /* Rules for dropdown menus */
2141 *margin-bottom: -3px;
2144 .dropdown-toggle:active,
2145 .open .dropdown-toggle {
2150 display: inline-block;
2153 vertical-align: top;
2154 border-top: 4px solid #000000;
2155 border-right: 4px solid transparent;
2156 border-left: 4px solid transparent;
2176 background-color: #ffffff;
2177 border: 1px solid #ccc;
2178 *border-right-width: 2px;
2179 *border-bottom-width: 2px;
2180 -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2181 -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2182 box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
2183 -webkit-background-clip: padding-box;
2184 -moz-background-clip: padding;
2185 background-clip: padding-box;
2188 .dropdown-menu.pull-right {
2193 .dropdown-menu .divider {
2197 *margin: -5px 0 5px;
2199 background-color: #e5e5e5;
2200 border-bottom: 1px solid #ffffff;
2203 .dropdown-menu > li > a {
2207 font-weight: normal;
2210 white-space: nowrap;
2213 .dropdown-menu > li > a:hover,
2214 .dropdown-menu > li > a:focus,
2215 .dropdown-submenu:hover > a,
2216 .dropdown-submenu:focus > a {
2218 text-decoration: none;
2219 background-color: #0081c2;
2222 .dropdown-menu > .active > a,
2223 .dropdown-menu > .active > a:hover,
2224 .dropdown-menu > .active > a:focus {
2226 text-decoration: none;
2227 background-color: #0081c2;
2231 .dropdown-menu > .disabled > a,
2232 .dropdown-menu > .disabled > a:hover,
2233 .dropdown-menu > .disabled > a:focus {
2237 .dropdown-menu > .disabled > a:hover,
2238 .dropdown-menu > .disabled > a:focus {
2239 text-decoration: none;
2241 background-color: transparent;
2242 background-image: none;
2249 .open > .dropdown-menu {
2253 .dropdown-backdrop {
2262 /* Rules for the "Welcome" page */
2273 background-image: image-url("welcome-sprite.png");
2274 background-size: 500px 250px;
2280 padding-bottom: 20px;
2282 margin-bottom: 10px;
2294 background-position: -50px 0;
2299 vertical-align: middle;
2303 background-position: -100px 0;
2307 background-position: -150px 0;
2311 background-position: -200px 0;
2315 background-position: -250px 0;
2319 background-position: -300px 0;
2328 text-decoration: none;
2333 background-color: $offwhite;
2337 background-color: #333;