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 $lineheight/2 $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;
338 * Rules for "optional boxes" which appear in the left sidebar on
339 * certain pages. Current users are the seach box on the main page
340 * and the tag cloud on the traces pages.
345 padding: $lineheight/4 $lineheight/2;
346 margin: $lineheight/4 0;
350 /* Rules for the search box */
362 font-size: $typeheight;
365 padding: 2px 0px 2px $lineheight/4;
366 box-shadow: inset #DDD 0px 1px 3px;
369 input[type="text"]:focus {
371 border: 1px solid #000;
374 input[type="submit"] {
381 text-indent: -1000px;
383 background: image-url("sprite.png") -2px -2px no-repeat;
386 right: $lineheight/4;
392 margin: $lineheight/4 0 0 0;
395 /* Utility for de-emphasizing content */
404 /* Rules for donation request box */
409 padding: $lineheight/4;
410 border: 1px solid #AED1A0;
412 font-size: $typeheight;
417 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
421 text-decoration: none;
425 /* Rules for Creative Commons logo button */
428 margin: $lineheight/2 0;
432 /* Rules for tabbed navigation bar */
438 border-bottom: 1px solid #ccc;
444 .site-index #top-bar,
445 .site-export #top-bar {
458 a, a:link, a:visited {
461 padding: 3px $lineheight/2;
462 text-decoration: none;
466 -webkit-transition: color 200ms ease-in;
467 -moz-transition: color 200ms ease-in;
468 -o-transition: color 200ms ease-in;
469 transition: color 200ms ease-in;
473 .site-index #tabnav a#viewanchor,
474 .site-edit #tabnav a#editanchor,
475 .changeset-list #tabnav a#historyanchor {
476 border-bottom: 1px solid #aaa;
481 #tabnav a:link:hover, #tabnav a:visited:hover {
482 text-decoration: underline;
485 #tabnav a:link.disabled,
486 #tabnav a:visited.disabled,
487 #tabnav a:link:hover.disabled,
488 #tabnav a:visited:hover.disabled {
492 text-decoration: none;
496 /* Utility for styling notification numbers */
499 padding: 2px $lineheight/4;
507 /* Rules for greeting bar in the top right corner */
512 margin-right: $lineheight/4;
515 .greeting-bar-unread {
519 /* Rules for the message shown in place of the map when javascript is disabled */
528 /* Rules for Leaflet maps */
530 .leaflet-control .control-button {
534 background-color: #333;
535 background-color: rgba(0,0,0,.6);
536 -bottom: 1px solid #333;
537 border-radius: 4px 0 0 4px;
542 .leaflet-control .zoomin,
543 .control-layers .control-button {
545 border-radius: 4px 0 0 0;
548 .site .leaflet-control .zoomout,
549 .control-key .control-button {
554 .control-locate .control-button,
555 .control-share .control-button {
556 border-radius: 0 0 0 4px;
559 .leaflet-control .control-button:hover {
560 background-color: black;
563 .leaflet-control .control-button.active {
564 background-color: #9ed485;
567 .leaflet-control .control-button .icon {
571 /* Rules for the home page */
587 border-left: 1px solid #CCC;
591 border-bottom: 1px solid #DDD;
601 border:1px solid #ddd;
607 ul, li:last-child, p:last-child {
621 padding: 5px 5px 5px 7px;
622 background-color: #eee;
627 background-color: #ccc;
644 background-color: $lightblue;
649 border-right: 1px solid #fff;
650 border-radius: 4px 0 0 4px;
654 border-left: 1px solid #fff;
655 border-radius: 0 4px 4px 0;
659 background-color: $blue;
679 font-family: monospace;
693 .site-index .leaflet-top,
694 .site-export .leaflet-top {
695 top: $lineheight/2 !important;
697 margin-right: 0px !important;
698 margin-top: 0px !important;
702 .leaflet-popup-scrolled {
703 padding-right: $lineheight;
704 border-bottom: 0px !important;
705 border-top: 0px !important;
708 .leaflet-popup-content-wrapper {
709 border-radius: 4px !important;
710 -webkit-border-radius: 4px !important;
713 /* Rules for edit menu */
716 padding: 0 $lineheight/4;
718 display: inline-block;
720 text-decoration: none !important;
728 background-color: #ffffff;
729 border: 1px solid $lightgrey;
735 padding: 2px $lineheight/4;
736 border-top: 1px solid #eee;
741 /* Rules for attribution text under the main map shown on printouts */
747 .attribution_license,
748 .attribution_project {
752 .attribution_notice {
756 /* Rules for the popout map sidebar */
762 border-right: 1px solid $lightgrey;
768 border-bottom: 1px solid #ccc;
771 margin-bottom: $lineheight/4;
781 padding: $lineheight/2 $lineheight;
783 background: $offwhite;
784 border-bottom: 1px solid #ccc;
806 padding: 0 $lineheight $lineheight/2 $lineheight;
807 margin-top: $lineheight/2;
809 border-bottom: 1px solid #ddd;
813 /* Rules for the map key which appears in the popout sidebar */
816 .mapkey-table-key img {
822 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
826 /* Rules for search results which appear in the popout sidebar */
829 margin-top: $lineheight/4;
830 margin-bottom: $lineheight/4;
833 .search_results_entry {
842 .search_results_entry .search_searching {
844 margin: $lineheight auto;
849 ul.results-list li { border-bottom: 1px solid #ccc; }
851 .search_results_error {
855 /* Rules for data browser information which appears in the popout sidebar */
859 .browse_show_list.button {
884 /* Rules for export information which appears in the popout sidebar */
890 .export_area_inputs {
891 margin-bottom: $lineheight/2;
899 margin: $lineheight/4;
902 /* Rules for the main content area */
905 padding: $lineheight;
910 .site-index #content,
911 .site-export #content {
914 top: 30px; bottom: 0;
915 left: 184px; right: 0;
916 border-left: 1px solid #ccc;
921 border-left: 1px solid #ccc;
925 .site-edit #content {
942 #slim_container_content {
944 background-color: #FFFFFF;
945 margin: $lineheight/2 auto;
948 -moz-border-radius: 25px;
949 border: 1px solid #e6e6e6;
953 margin: $lineheight/2;
963 margin: 30px $lineheight/2;
966 margin-right: $lineheight/4;
968 vertical-align: middle;
969 margin-bottom: $lineheight/4;
970 margin-right: $lineheight/4;
976 padding: $lineheight;
977 background: $offwhite;
979 margin-bottom: $lineheight/2;
986 margin-top: $lineheight/2;
991 /* Rules for small maps in content areas */
997 border: 1px solid #ccc;
998 margin-bottom: $lineheight;
1002 .content_map #small_map {
1005 margin-bottom: $lineheight;
1008 /* Rules for the changeset list shown by the history tab etc */
1013 padding: $lineheight/2 0;
1015 border-top: 1px solid #ccc;
1017 border-bottom: 1px solid #ccc;
1021 background: #FFFFC0;
1025 border-left: 1px solid #ccc;
1026 padding-left: $lineheight/4;
1027 margin-right: $lineheight/4;
1031 #changeset_list_map_wrapper {
1039 #changeset_list_map_wrapper.scrolled {
1043 #changeset_list_map {
1045 bottom: $lineheight;
1049 border: 1px solid #ccc;
1052 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1056 /* Rules for the data browser */
1059 border-top: 1px solid #ccc;
1060 margin-top: $lineheight/2;
1061 padding-top: $lineheight/2;
1066 background-color: #ffe0cc;
1072 margin-bottom: $lineheight/4;
1075 display: inline-block;
1076 vertical-align: top;
1086 display: inline-block;
1087 vertical-align: top;
1095 padding: $lineheight/4 0;
1097 text-overflow: ellipsis;
1108 #browse_map .geolink {
1112 #browse_map .secondary-actions {
1113 margin-bottom: $lineheight/2;
1116 /* Rules for the trace list shown by the traces tab etc */
1119 font-size: $lineheight/2;
1136 .trace_identifiable {
1149 /* Rules for the user profile page */
1154 .userinformation-inner {
1169 .admin-user-info small {
1170 margin-bottom: $lineheight/2;
1172 margin-right: $lineheight;
1177 border-bottom: 1px solid #ccc;
1178 padding-bottom: $lineheight;
1181 margin-bottom: $lineheight/2;
1186 margin-top: $lineheight;
1190 .activity-details p {
1195 #friends-container .contact-activity ul {
1200 p#no_home_location {
1201 margin: $lineheight;
1204 margin-top: $lineheight/4;
1209 /* Rules for the user map */
1211 .content_map .leaflet-popup-content {
1212 margin: $lineheight/2;
1216 /* Rules for user popups on maps */
1222 margin-top: 0 0 0 60px;
1225 img.user_thumbnail {
1227 margin: 0 $lineheight/2 0 0;
1231 /* Rules for the user list */
1234 font-size: $lineheight/2;
1238 vertical-align: middle;
1247 #user_list_actions {
1249 margin-top: $lineheight/2;
1252 /* Rules for the diary list page */
1254 .diary_entry-list img.user_thumbnail {
1261 margin-top: $lineheight/2;
1262 padding-top: $lineheight;
1263 border-top: 1px solid #ccc;
1278 ul.secondary-actions { display: inline-block;}
1281 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1285 #content .post_heading {
1286 margin-bottom: $lineheight;
1289 margin-bottom: $lineheight/2;
1294 /* Rules for the diary entry page */
1301 border: 1px solid #ccc;
1303 margin-bottom: $lineheight;
1306 border-top: 1px solid #ccc;
1307 padding-top: $lineheight;
1308 margin-top: $lineheight/2;
1314 margin-top: $lineheight/2;
1315 border-top: 1px dashed #ccc;
1316 padding-top: $lineheight/2;
1318 margin-top: $lineheight;
1319 padding-top: $lineheight;
1320 border-top: 1px solid #ccc;
1323 margin-bottom: $lineheight/2;
1332 .diary_entry-view img.user_thumbnail {
1336 /* Rules for the login page */
1338 #login_openid_buttons {
1342 #login_openid_buttons li {
1344 padding: $lineheight/4 $lineheight/2;
1347 /* Rules for the account confirmation page */
1351 border: 1px solid #ccc;
1352 padding: $lineheight;
1353 margin-bottom: $lineheight;
1367 margin: $lineheight auto inherit auto;
1372 input[type=submit] {
1378 background: darken($grey, $hovercolor);
1383 margin-bottom: $lineheight;
1385 #contributorGuidance {
1386 background-color: $offwhite;
1388 -moz-border-radius: 4px;
1395 /* Rules for the account settings page */
1397 #accountForm .user_map {
1401 border: 1px solid #ccc;
1404 #accountForm .user_image {
1408 #accountForm #user_image {
1412 #accountForm ul.accountImage-options {
1425 display: inline !important;
1428 .content_map.settings_map {
1433 /* Rules for the oauth settings page */
1435 .oauth_clients .buttons .oauth-edit {
1436 border-radius: 2px 0 0 2px;
1439 .oauth_clients .buttons .oauth-delete {
1440 border-radius: 0 2px 2px 0;
1443 /* Rules for messages pages */
1447 border: 1px solid #ddd;
1449 input[type="submit"] {
1453 border-top: 1px solid #ccc;
1457 background: #f8f8ff;
1470 padding: $lineheight/4;
1481 border-right: 1px solid $lightgrey;
1485 .inbox-row .inbox-mark-read {
1490 margin-bottom: $lineheight;
1491 padding: $lineheight/4 0px 4px 0px;
1492 border-bottom: 1px solid #ccc;
1499 .info-line .user_thumbnail_tiny {
1500 vertical-align: middle;
1509 .inbox-row-unread .inbox-mark-unread {
1513 .message-read .message-buttons {
1514 margin-top: $lineheight;
1515 padding-top: $lineheight;
1516 border-top: 1px solid $lightgrey;
1519 .message-read .buttons .mark-unread-button {
1523 /* Rules for "flash" notice boxes shown at the top of the content area */
1526 padding: $lineheight;
1528 background-color: #ff7070;
1531 background-color: #ffe0cc;
1534 background-color: #CBEEA7;
1538 /* Rules for highlighting fields with rails validation errors */
1540 .field_with_errors {
1542 background-color: #ff7070;
1546 /* Rules for rails validation error boxes */
1550 border: 2px solid #ff7070;
1551 padding: 0 $lineheight/2;
1552 margin-bottom: $lineheight;
1553 background-color: #f0f0f0;
1556 margin: 0 -10px 10px -10px;
1557 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1560 background-color: #c00;
1568 padding: $lineheight/4;
1572 padding-left: $lineheight;
1581 /* Rules for forms */
1585 margin-bottom: $lineheight;
1587 label.standard-label {
1589 margin-bottom: $lineheight/4;
1590 font-size: $typeheight;
1594 label.standard-label.secondary {
1595 display: inline-block;
1596 font-weight: normal;
1599 font-weight: normal;
1606 margin-top: $lineheight;
1607 padding-top: $lineheight;
1608 border-top: 1px solid $lightgrey;
1611 margin-bottom: $lineheight/2;
1619 input[type="checkbox"],
1620 input[type="radio"] {
1626 #remember_me_openid {
1630 input[type="checkbox"],
1631 input[type="radio"] {
1636 input[type="email"],
1638 input[type="password"],
1640 border: 1px solid #ccc;
1651 /* Rules for user images */
1656 border: 1px solid #ccc;
1657 margin-bottom: $lineheight;
1659 margin-right: $lineheight;
1662 img.user_thumbnail {
1665 border: 1px solid #ccc;
1666 margin-right: $lineheight;
1669 img.user_thumbnail_tiny {
1672 border: 1px solid #ccc;
1675 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1678 white-space: nowrap;
1681 /* Rules for geo microformats */
1684 border-bottom: none;
1687 /* Rules for RSS buttons */
1694 /* General styles for action lists / subnavs / pager navs */
1696 ul.secondary-actions {
1701 display: inline-block;
1708 border-left: 1px solid #ccc;
1709 padding-left: $lineheight/4;
1710 margin-right: $lineheight/4;
1721 /* Utility for managing inner content areas */
1723 .inner22 { padding: $lineheight;}
1725 .inner12 { padding: $lineheight/2 $lineheight;}
1727 .inner11 { padding: $lineheight/2;}
1729 .inner02 { padding: 0 $lineheight;}
1731 /* Utility for general button styles */
1733 input[type="button"],
1734 input[type="submit"],
1735 input[type="reset"],
1739 display: inline-block;
1741 padding: $lineheight/4 $lineheight/2;
1742 min-height: 20px + $lineheight/2;
1744 margin: 0 0 $lineheight/2 0;
1749 -moz-border-radius: 2px;
1751 background: darken($blue, $hovercolor);
1752 text-decoration: none;
1755 background: $lightblue;
1757 background: darken($lightblue, $hovercolor);
1761 background: $lightgrey;
1763 background: $lightgrey;
1773 input[type="submit"],
1774 input[type="button"],
1775 input[type="reset"],
1777 box-sizing: border-box;
1783 border-right:1px solid white;
1784 text-overflow: ellipsis;
1785 white-space: nowrap;
1789 .button:first-child {
1790 border-radius:2px 0 0 2px;
1793 .button:last-child {
1794 border-radius:0 2px 2px 0;
1795 border-right-width: 0;
1799 *[value="Hide"] + input:last-child,
1800 *[value="Hide"] + .button:last-child {
1802 border-right-width: 0;
1804 /* if a 3-button set has a hidden middle button */
1805 *[value="Hide"] + input:nth-child(3),
1806 *[value="Hide"] + .button:nth-child(3) {
1807 border-radius:0 2px 2px 0;
1808 border-right-width: 0;
1810 /* if a 3-button set starts with a hidden button */
1811 *[value="Hide"] + input:nth-child(2):not(:last-child),
1812 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1813 border-radius:2px 0 0 2px;
1814 border-right-width: 1px solid white;
1818 /* Rules for doing distinct colour of alternate table rows */
1822 background: $offwhite;
1830 /* Rules for OpenID logo */
1833 vertical-align: text-bottom;
1837 /* Rules for rich text */
1842 padding-bottom: $lineheight/2;
1843 border-bottom: 1px dashed #cccccc;
1844 margin-bottom: $lineheight/2;
1856 font-size: $typeheight;
1861 background: #e8e8e8;
1867 background: #e8e8e8;
1876 padding: $lineheight;
1877 background-color: $offwhite;
1884 border-left: $lineheight solid $offwhite;
1885 padding-left: $lineheight;
1891 padding-left: $lineheight;
1892 margin-bottom: $lineheight;
1893 margin-left: $lineheight;
1901 list-style: decimal;
1905 .diary_post .richtext {
1906 margin-top: $lineheight;
1909 .comments .richtext {
1914 /* Rules for rich text editors */
1916 .richtext_container {
1917 margin-bottom: $lineheight;
1921 display: inline-block;
1922 vertical-align: top;
1925 display: inline-block;
1926 padding: $lineheight;
1927 background-color: $offwhite;
1931 background-image: image-url("loading.gif");
1932 background-repeat: no-repeat;
1933 background-position: center;
1943 display: inline-block;
1944 vertical-align: top;
1946 background-color: #f8f8ff;
1947 padding: $lineheight/2;
1955 border-bottom: 1px solid #ccc;
1956 margin-bottom: $lineheight/4;
1957 padding-bottom: $lineheight/4;
1960 li h4, li span, li p {
1961 display: inline-block;
1962 vertical-align: top;
1973 margin-left: $lineheight/2;
1974 margin-bottom: $lineheight/4;
1975 white-space: nowrap;
1980 /* Rules for the user notes list */
1984 background-color: #eeeeee;
1996 /* Rules for the notes interface */
1998 .leaflet-popup-content .note {
1999 padding-top: $lineheight/2;
2002 .leaflet-popup-content .note {
2004 margin-bottom: $lineheight/2;
2008 margin-top: $lineheight/2;
2014 left: $lineheight/4;
2021 padding-left: $lineheight;
2024 .permalink:hover span {
2030 background-color: #ffe0cc;
2032 margin-bottom: $lineheight/2;
2051 margin-top: $lineheight/4;
2057 * Rules for the iD editor
2064 /* Rules for rotating sidebar ads */
2070 border-bottom: 1px solid #ccc;