12 /* Styles common to large and small screens */
14 /* Minimal CSS reset */
16 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p, input {
23 fieldset,img { border: 0; }
25 legend { color: #000; }
27 sup { vertical-align: text-top; }
29 sub { vertical-align: text-bottom; }
32 border-collapse: collapse;
36 li { list-style: none; }
41 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
44 border-bottom: .1em dotted;
48 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
60 /* Default rules for the body of every page */
63 -moz-box-sizing: border-box;
64 -webkit-box-sizing: border-box;
65 box-sizing: border-box;
69 font-family: 'Helvetica Neue',Arial,sans-serif;
70 font-size: $typeheight;
73 background-color: #fff;
80 background-color: #f0f0f0;
84 margin-top: $lineheight/2;
85 margin-bottom: $lineheight;
100 margin-top: $lineheight/2;
101 margin-bottom: $lineheight;
105 font-size: $typeheight;
106 margin-top: $lineheight/2;
107 margin-bottom: $lineheight/2;
113 margin-bottom: $lineheight;
136 margin: 0 0 $lineheight/2 0;
140 vertical-align: middle;
141 margin-right: $lineheight/4;
144 /* Rules for icons */
147 display:inline-block;
151 background:transparent image-url("sprite.png") no-repeat 0 0;
160 .icon.search { background-position: 0 0; }
161 .icon.donate { background-position: -20px 0; }
162 .icon.zoomin { background-position: -40px 0; }
163 .icon.zoomout { background-position: -60px 0; }
164 .icon.geolocate { background-position: -80px 0; }
165 .active .icon.geolocate { background-position: -80px -20px; }
166 .icon.layers { background-position: -100px 0; }
167 .icon.key { background-position: -120px 0; }
168 .icon.share { background-position: -140px 0; }
169 .icon.clipboard { background-position: -160px 0; }
170 .icon.link { background-position: -180px 0; }
171 .icon.close { background-position: -200px 0; }
172 .icon.check { background-position: -220px 0; }
173 .icon.note { background-position: -240px 0; }
175 /* Rules for links */
179 text-decoration: none;
181 text-decoration: underline;
185 /* Rules for horizontal lines */
189 background-color: #ccc;
194 /* General styles for tables */
198 margin-bottom: $lineheight;
201 padding: $lineheight/4;
202 line-height: $lineheight;
209 vertical-align: middle;
213 /* Rules for the whole left sidebar, including the logo */
222 border-right: 1px solid #ccc;
225 /* Rules for the OpenStreetMap logo in the top left corner */
231 padding: $lineheight $lineheight/4;
244 font-size: $lineheight/2;
249 /* Rules for the site name */
255 /* Rules for the introductory text displayed in the left sidebar to new users */
258 padding: $lineheight/4 $lineheight/2;
260 margin: $lineheight/4 0;
263 .sidebar-copy.intro {
264 border-top: 1px solid #ccc;
268 * Rules for alert boxes shown in the left sidebar when important
269 * information needs to be conveyed such as when the site is
270 * undergoing maintenance.
274 padding: $lineheight/4;
275 border-top: 1px solid #ccc;
282 margin: $lineheight/4;
287 * Rules for notice boxes shown in the left sidebar when important, but
288 * non-critical information needs to be conveyed such as notices about
293 padding: $lineheight/4;
294 border-top: 1px solid #ccc;
300 margin: $lineheight/4;
304 /* Rules for the menu displayed in the left sidebar */
309 padding: $lineheight/4 $lineheight/2;
312 list-style-type: none;
313 border-bottom: 1px solid #ccc;
314 border-top: 1px solid #ccc;
316 margin: $lineheight/2 0px;
325 list-style-type: none;
331 padding: $lineheight/4 0 $lineheight/4 0;
342 * Rules for "optional boxes" which appear in the left sidebar on
343 * certain pages. Current users are the seach box on the main page
344 * and the tag cloud on the traces pages.
349 padding: $lineheight/4 $lineheight/2;
350 margin: $lineheight/4 0;
354 /* Rules for the search box */
366 font-size: $typeheight;
369 padding: 2px 0px 2px $lineheight/4;
370 box-shadow: inset #DDD 0px 1px 3px;
373 input[type="text"]:focus {
375 border: 1px solid #000;
378 input[type="submit"] {
385 text-indent: -1000px;
387 background: image-url("sprite.png") 0 0 no-repeat;
390 right: $lineheight/4;
396 margin: $lineheight/4 0 0 0;
399 /* Utility for de-emphasizing content */
408 /* Rules for donation request box */
413 padding: $lineheight/4;
414 border: 1px solid #AED1A0;
416 font-size: $typeheight;
421 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
425 text-decoration: none;
429 /* Rules for Creative Commons logo button */
432 margin: $lineheight/2 0;
436 /* Rules for tabbed navigation bar */
442 border-bottom: 1px solid #ccc;
448 .site-index #top-bar,
449 .site-export #top-bar {
462 a, a:link, a:visited {
465 padding: 3px $lineheight/2;
466 text-decoration: none;
470 -webkit-transition: color 200ms ease-in;
471 -moz-transition: color 200ms ease-in;
472 -o-transition: color 200ms ease-in;
473 transition: color 200ms ease-in;
477 .site-index #tabnav a#viewanchor,
478 .site-edit #tabnav a#editanchor,
479 .changeset-list #tabnav a#historyanchor,
480 .site-export #tabnav a#exportanchor {
481 border-bottom: 1px solid #aaa;
486 #tabnav a:link:hover, #tabnav a:visited:hover {
487 text-decoration: underline;
490 #tabnav a:link.disabled,
491 #tabnav a:visited.disabled,
492 #tabnav a:link:hover.disabled,
493 #tabnav a:visited:hover.disabled {
497 text-decoration: none;
501 /* Utility for styling notification numbers */
504 padding: 2px $lineheight/4;
512 /* Rules for greeting bar in the top right corner */
517 margin-right: $lineheight/4;
520 .greeting-bar-unread {
524 /* Rules for the message shown in place of the map when javascript is disabled */
533 /* Rules for Leaflet maps */
535 .leaflet-control .control-button {
539 background-color: white;
540 background-color: rgba(255,255,255,.8);
546 .leaflet-control .zoomin,
547 .control-layers .control-button {
549 border-radius: 4px 4px 0px 0px;
552 .site .leaflet-control .zoomout,
553 .control-key .control-button {
558 .leaflet-control .zoomout,
559 .control-locate .control-button,
560 .control-share .control-button {
561 border-radius: 0px 0px 4px 4px;
564 .leaflet-control .control-button:hover {
565 background-color: white;
568 .leaflet-control .control-button .icon {
572 /* Rules for the home page */
588 border-left: 1px solid #CCC;
592 border-bottom: 1px solid #DDD;
602 border:1px solid #ddd;
619 padding: 5px 5px 5px 7px;
620 background-color: #eee;
625 background-color: #ccc;
640 display: inline-block;
646 .site-index .leaflet-top,
647 .site-export .leaflet-top {
648 top: $lineheight/2 !important;
650 margin-top: 0px !important;
654 .leaflet-popup-scrolled {
655 padding-right: $lineheight;
656 border-bottom: 0px !important;
657 border-top: 0px !important;
660 .leaflet-popup-content-wrapper {
661 border-radius: 4px !important;
662 -webkit-border-radius: 4px !important;
665 /* Rules for edit menu */
668 padding: 0 $lineheight/4;
670 display: inline-block;
672 text-decoration: none !important;
680 background-color: #ffffff;
681 border: 1px solid $keyline;
687 padding: 2px $lineheight/4;
688 border-top: 1px solid #eee;
693 /* Rules for attribution text under the main map shown on printouts */
699 .attribution_license,
700 .attribution_project {
704 .attribution_notice {
708 /* Rules for the popout map sidebar */
715 border-right: 1px solid $keyline;
720 border-bottom: 1px solid #ccc;
723 margin-bottom: $lineheight/4;
733 padding: $lineheight/2 $lineheight;
735 background: $offwhite;
736 border-bottom: 1px solid #ccc;
756 padding: 0 $lineheight $lineheight/2 $lineheight;
757 margin-top: $lineheight/2;
759 border-bottom: 1px solid #ddd;
763 /* Rules for the map key which appears in the popout sidebar */
766 .mapkey-table-key img {
772 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
776 /* Rules for search results which appear in the popout sidebar */
779 margin-top: $lineheight/4;
780 margin-bottom: $lineheight/4;
783 .search_results_entry {
792 .search_results_entry .search_searching {
794 margin: $lineheight auto;
799 ul.results-list li { border-bottom: 1px solid #ccc; }
801 .search_results_error {
805 /* Rules for data browser information which appears in the popout sidebar */
809 .browse_show_list.button {
834 /* Rules for export information which appears in the popout sidebar */
840 .export_area_inputs {
841 margin-bottom: $lineheight/2;
849 margin: $lineheight/4;
852 .export_details input[type="text"]#export_html_text {
856 #sidebar #marker_inputs li:last-child {
857 margin-bottom: $lineheight/2;
866 /* Rules for the main content area */
869 padding: $lineheight;
874 .site-index #content,
875 .site-export #content {
878 top: 30px; bottom: 0;
879 left: 184px; right: 0;
880 border-left: 1px solid #ccc;
885 border-left: 1px solid #ccc;
889 .site-edit #content {
906 #slim_container_content {
908 background-color: #FFFFFF;
909 margin: $lineheight/2 auto;
912 -moz-border-radius: 25px;
913 border: 1px solid #e6e6e6;
917 margin: $lineheight/2;
927 margin: 30px $lineheight/2;
930 margin-right: $lineheight/4;
932 vertical-align: middle;
933 margin-bottom: $lineheight/4;
934 margin-right: $lineheight/4;
940 padding: $lineheight;
941 background: $offwhite;
943 margin-bottom: $lineheight/2;
950 margin-top: $lineheight/2;
955 /* Rules for small maps in content areas */
961 border: 1px solid #ccc;
962 margin-bottom: $lineheight;
966 .content_map #small_map {
969 margin-bottom: $lineheight;
972 /* Rules for the changeset list shown by the history tab etc */
977 padding: $lineheight/2 0;
979 border-top: 1px solid #ccc;
981 border-bottom: 1px solid #ccc;
989 border-left: 1px solid #ccc;
990 padding-left: $lineheight/4;
991 margin-right: $lineheight/4;
995 #changeset_list_map_wrapper {
1003 #changeset_list_map_wrapper.scrolled {
1007 #changeset_list_map {
1009 bottom: $lineheight;
1013 border: 1px solid #ccc;
1016 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1020 /* Rules for the data browser */
1023 border-top: 1px solid #ccc;
1024 margin-top: $lineheight/2;
1025 padding-top: $lineheight/2;
1030 background-color: #ffe0cc;
1036 margin-bottom: $lineheight/4;
1038 p, ul, .bbox, .geo {
1039 display: inline-block;
1040 vertical-align: top;
1049 display: inline-block;
1050 vertical-align: top;
1058 padding: $lineheight/4 0;
1060 text-overflow: ellipsis;
1071 #browse_map .geolink {
1075 #browse_map .secondary-actions {
1076 margin-bottom: $lineheight/2;
1079 /* Rules for the trace list shown by the traces tab etc */
1082 font-size: $lineheight/2;
1099 .trace_identifiable {
1112 /* Rules for the user profile page */
1117 .userinformation-inner {
1132 .admin-user-info small {
1133 margin-bottom: $lineheight/2;
1135 margin-right: $lineheight;
1140 border-bottom: 1px solid #ccc;
1141 padding-bottom: $lineheight;
1144 margin-bottom: $lineheight/2;
1149 margin-top: $lineheight;
1153 .activity-details p {
1158 #friends-container .contact-activity ul {
1163 p#no_home_location {
1164 margin: $lineheight;
1167 margin-top: $lineheight/4;
1172 /* Rules for the user map */
1174 .content_map .leaflet-popup-content {
1175 margin: $lineheight/2;
1179 /* Rules for user popups on maps */
1185 margin-top: 0 0 0 60px;
1188 img.user_thumbnail {
1190 margin: 0 $lineheight/2 0 0;
1194 /* Rules for the user list */
1197 font-size: $lineheight/2;
1201 vertical-align: middle;
1210 #user_list_actions {
1212 margin-top: $lineheight/2;
1215 /* Rules for the diary list page */
1217 .diary_entry-list img.user_thumbnail {
1224 margin-top: $lineheight/2;
1225 padding-top: $lineheight;
1226 border-top: 1px solid #ccc;
1241 ul.secondary-actions { display: inline-block;}
1244 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1248 #content .post_heading {
1249 margin-bottom: $lineheight;
1252 margin-bottom: $lineheight/2;
1257 /* Rules for the diary entry page */
1264 border: 1px solid #ccc;
1266 margin-bottom: $lineheight;
1269 border-top: 1px solid #ccc;
1270 padding-top: $lineheight;
1271 margin-top: $lineheight/2;
1277 margin-top: $lineheight/2;
1278 border-top: 1px dashed #ccc;
1279 padding-top: $lineheight/2;
1281 margin-top: $lineheight;
1282 padding-top: $lineheight;
1283 border-top: 1px solid #ccc;
1286 margin-bottom: $lineheight/2;
1295 .diary_entry-view img.user_thumbnail {
1299 /* Rules for the login page */
1301 #login_openid_buttons {
1305 #login_openid_buttons li {
1307 padding: $lineheight/4 $lineheight/2;
1310 /* Rules for the account confirmation page */
1314 border: 1px solid #ccc;
1315 padding: $lineheight;
1316 margin-bottom: $lineheight;
1330 margin: $lineheight auto inherit auto;
1335 input[type=submit] {
1341 background: darken($grey, $hovercolor);
1346 margin-bottom: $lineheight;
1348 #contributorGuidance {
1349 background-color: $offwhite;
1351 -moz-border-radius: 4px;
1358 /* Rules for the account settings page */
1360 #accountForm .user_map {
1364 border: 1px solid #ccc;
1367 #accountForm .user_image {
1371 #accountForm #user_image {
1375 #accountForm ul.accountImage-options {
1388 display: inline !important;
1391 .content_map.settings_map {
1396 /* Rules for the oauth settings page */
1398 .oauth_clients .buttons .oauth-edit {
1399 border-radius: 2px 0 0 2px;
1402 .oauth_clients .buttons .oauth-delete {
1403 border-radius: 0 2px 2px 0;
1406 /* Rules for messages pages */
1410 border: 1px solid #ddd;
1412 input[type="submit"] {
1416 border-top: 1px solid #ccc;
1420 background: #f8f8ff;
1433 padding: $lineheight/4;
1444 border-right: 1px solid $keyline;
1448 .inbox-row .inbox-mark-read {
1453 margin-bottom: $lineheight;
1454 padding: $lineheight/4 0px 4px 0px;
1455 border-bottom: 1px solid #ccc;
1462 .info-line .user_thumbnail_tiny {
1463 vertical-align: middle;
1472 .inbox-row-unread .inbox-mark-unread {
1476 .message-read .message-buttons {
1477 margin-top: $lineheight;
1478 padding-top: $lineheight;
1479 border-top: 1px solid $keyline;
1482 .message-read .buttons .mark-unread-button {
1486 /* Rules for "flash" notice boxes shown at the top of the content area */
1489 padding: $lineheight;
1491 background-color: #ff7070;
1494 background-color: #ffe0cc;
1497 background-color: #CBEEA7;
1501 /* Rules for highlighting fields with rails validation errors */
1503 .field_with_errors {
1505 background-color: #ff7070;
1509 /* Rules for rails validation error boxes */
1513 border: 2px solid #ff7070;
1514 padding: 0 $lineheight/2;
1515 margin-bottom: $lineheight;
1516 background-color: #f0f0f0;
1519 margin: 0 -10px 10px -10px;
1520 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1523 background-color: #c00;
1531 padding: $lineheight/4;
1535 padding-left: $lineheight;
1544 /* Rules for forms */
1548 margin-bottom: $lineheight;
1550 label.standard-label {
1552 margin-bottom: $lineheight/4;
1553 font-size: $typeheight;
1557 label.standard-label.secondary {
1558 display: inline-block;
1559 font-weight: normal;
1562 font-weight: normal;
1569 margin-top: $lineheight;
1570 padding-top: $lineheight;
1571 border-top: 1px solid $keyline;
1574 margin-bottom: $lineheight/2;
1582 input[type="checkbox"],
1583 input[type="radio"] {
1589 #remember_me_openid {
1593 input[type="checkbox"],
1594 input[type="radio"] {
1599 input[type="email"],
1601 input[type="password"],
1603 border: 1px solid #ccc;
1612 height: 100% !important;
1615 /* Rules for user images */
1620 border: 1px solid #ccc;
1621 margin-bottom: $lineheight;
1623 margin-right: $lineheight;
1626 img.user_thumbnail {
1629 border: 1px solid #ccc;
1630 margin-right: $lineheight;
1633 img.user_thumbnail_tiny {
1636 border: 1px solid #ccc;
1639 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1642 white-space: nowrap;
1645 /* Rules for geo microformats */
1648 border-bottom: none;
1651 /* Rules for RSS buttons */
1658 /* General styles for action lists / subnavs / pager navs */
1660 ul.secondary-actions {
1665 display: inline-block;
1672 border-left: 1px solid #ccc;
1673 padding-left: $lineheight/4;
1674 margin-right: $lineheight/4;
1685 /* Utility for managing inner content areas */
1687 .inner22 { padding: $lineheight;}
1689 .inner12 { padding: $lineheight/2 $lineheight;}
1691 .inner11 { padding: $lineheight/2;}
1693 .inner02 { padding: 0 $lineheight;}
1695 /* Utility for general button styles */
1697 input[type="button"],
1698 input[type="submit"],
1699 input[type="reset"],
1703 display: inline-block;
1705 padding: $lineheight/4 $lineheight/2;
1707 margin: 0 0 $lineheight/2 0;
1712 -moz-border-radius: 2px;
1714 background: darken($blue, $hovercolor);
1715 text-decoration: none;
1718 background: $lightblue;
1720 background: darken($lightblue, $hovercolor);
1724 background: $lightblue;
1733 input[type="submit"],
1734 input[type="button"],
1735 input[type="reset"],
1737 box-sizing: border-box;
1743 border-right:1px solid white;
1746 .button:first-child {
1747 border-radius:2px 0 0 2px;
1750 .button:last-child {
1751 border-radius:0 2px 2px 0;
1752 border-right-width: 0;
1756 *[value="Hide"] + input:last-child,
1757 *[value="Hide"] + .button:last-child {
1759 border-right-width: 0;
1761 /* if a 3-button set has a hidden middle button */
1762 *[value="Hide"] + input:nth-child(3),
1763 *[value="Hide"] + .button:nth-child(3) {
1764 border-radius:0 2px 2px 0;
1765 border-right-width: 0;
1767 /* if a 3-button set starts with a hidden button */
1768 *[value="Hide"] + input:nth-child(2):not(:last-child),
1769 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1770 border-radius:2px 0 0 2px;
1771 border-right-width: 1px solid white;
1775 /* Rules for doing distinct colour of alternate table rows */
1779 background: $offwhite;
1787 /* Rules for OpenID logo */
1790 vertical-align: text-bottom;
1794 /* Rules for rich text */
1799 padding-bottom: $lineheight/2;
1800 border-bottom: 1px dashed #cccccc;
1801 margin-bottom: $lineheight/2;
1813 font-size: $typeheight;
1818 background: #e8e8e8;
1824 background: #e8e8e8;
1833 padding: $lineheight;
1834 background-color: $offwhite;
1841 border-left: $lineheight solid $offwhite;
1842 padding-left: $lineheight;
1849 padding-left: $lineheight;
1850 margin-bottom: $lineheight;
1851 margin-left: $lineheight;
1859 list-style: decimal;
1863 .diary_post .richtext {
1864 margin-top: $lineheight;
1867 .comments .richtext {
1872 /* Rules for rich text editors */
1874 .richtext_container {
1875 margin-bottom: $lineheight;
1879 display: inline-block;
1880 vertical-align: top;
1883 display: inline-block;
1884 padding: $lineheight;
1885 background-color: $offwhite;
1889 background-image: image-url("loading.gif");
1890 background-repeat: no-repeat;
1891 background-position: center;
1901 display: inline-block;
1902 vertical-align: top;
1904 background-color: #f8f8ff;
1905 padding: $lineheight/2;
1913 border-bottom: 1px solid #ccc;
1914 margin-bottom: $lineheight/4;
1915 padding-bottom: $lineheight/4;
1918 li h4, li span, li p {
1919 display: inline-block;
1920 vertical-align: top;
1931 margin-left: $lineheight/2;
1932 margin-bottom: $lineheight/4;
1933 white-space: nowrap;
1938 /* Rules for the user notes list */
1942 background-color: #eeeeee;
1954 /* Rules for the notes interface */
1956 .leaflet-popup-content .note {
1957 padding-top: $lineheight/2;
1960 .leaflet-popup-content .note {
1962 margin-bottom: $lineheight/2;
1966 margin-top: $lineheight/2;
1972 left: $lineheight/4;
1975 background: image-url("sprite.png") 0 -45px no-repeat;
1980 padding-left: $lineheight;
1983 .permalink:hover span {
1989 background-color: #ffe0cc;
1991 margin-bottom: $lineheight/2;
2010 margin-top: $lineheight/4;
2016 * Rules for the iD editor
2023 /* Rules for rotating sidebar ads */
2029 border-bottom: 1px solid #ccc;