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 .icon.layers { background-position: -100px 0; }
166 .icon.key { background-position: -120px 0; }
167 .icon.share { background-position: -140px 0; }
168 .icon.clipboard { background-position: -160px 0; }
169 .icon.link { background-position: -180px 0; }
170 .icon.close { background-position: -200px 0; }
171 .icon.check { background-position: -220px 0; }
172 .icon.note { background-position: -240px 0; }
174 /* Rules for links */
178 text-decoration: none;
180 text-decoration: underline;
184 /* Rules for horizontal lines */
188 background-color: #ccc;
193 /* General styles for tables */
197 margin-bottom: $lineheight;
200 padding: $lineheight/4;
201 line-height: $lineheight;
208 vertical-align: middle;
212 /* Rules for the whole left sidebar, including the logo */
221 border-right: 1px solid #ccc;
224 /* Rules for the OpenStreetMap logo in the top left corner */
230 padding: $lineheight $lineheight/4;
243 font-size: $lineheight/2;
248 /* Rules for the site name */
254 /* Rules for the introductory text displayed in the left sidebar to new users */
257 padding: $lineheight/4 $lineheight/2;
259 margin: $lineheight/4 0;
262 .sidebar-copy.intro {
263 border-top: 1px solid #ccc;
267 * Rules for alert boxes shown in the left sidebar when important
268 * information needs to be conveyed such as when the site is
269 * undergoing maintenance.
273 padding: $lineheight/4;
274 border-top: 1px solid #ccc;
281 margin: $lineheight/4;
286 * Rules for notice boxes shown in the left sidebar when important, but
287 * non-critical information needs to be conveyed such as notices about
292 padding: $lineheight/4;
293 border-top: 1px solid #ccc;
299 margin: $lineheight/4;
303 /* Rules for the menu displayed in the left sidebar */
308 padding: $lineheight/4 $lineheight/2;
311 list-style-type: none;
312 border-bottom: 1px solid #ccc;
313 border-top: 1px solid #ccc;
315 margin: $lineheight/2 0px;
324 list-style-type: none;
330 padding: $lineheight/4 0 $lineheight/4 0;
340 /* Rules for SOTM advert */
344 margin: $lineheight/2;
354 * Rules for "optional boxes" which appear in the left sidebar on
355 * certain pages. Current users are the seach box on the main page
356 * and the tag cloud on the traces pages.
361 padding: $lineheight/4 $lineheight/2;
362 margin: $lineheight/4 0;
366 /* Rules for the search box */
378 font-size: $typeheight;
381 padding: 2px 0px 2px $lineheight/4;
382 box-shadow: inset #DDD 0px 1px 3px;
385 input[type="text"]:focus {
387 border: 1px solid #000;
390 input[type="submit"] {
397 text-indent: -1000px;
399 background: image-url("sprite.png") 0 0 no-repeat;
402 right: $lineheight/4;
408 margin: $lineheight/4 0 0 0;
411 /* Utility for de-emphasizing content */
420 /* Rules for donation request box */
425 padding: $lineheight/4;
426 border: 1px solid #AED1A0;
428 font-size: $typeheight;
433 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
437 text-decoration: none;
441 /* Rules for Creative Commons logo button */
444 margin: $lineheight/2 0;
448 /* Rules for tabbed navigation bar */
454 border-bottom: 1px solid #ccc;
460 .site-index #top-bar,
461 .site-export #top-bar {
474 a, a:link, a:visited {
477 padding: 3px $lineheight/2;
478 text-decoration: none;
482 -webkit-transition: color 200ms ease-in;
483 -moz-transition: color 200ms ease-in;
484 -o-transition: color 200ms ease-in;
485 transition: color 200ms ease-in;
489 .site-index #tabnav a#viewanchor,
490 .site-edit #tabnav a#editanchor,
491 .changeset-list #tabnav a#historyanchor,
492 .site-export #tabnav a#exportanchor {
493 border-bottom: 1px solid #aaa;
498 #tabnav a:link:hover, #tabnav a:visited:hover {
499 text-decoration: underline;
502 #tabnav a:link.disabled,
503 #tabnav a:visited.disabled,
504 #tabnav a:link:hover.disabled,
505 #tabnav a:visited:hover.disabled {
509 text-decoration: none;
513 /* Utility for styling notification numbers */
516 padding: 2px $lineheight/4;
524 /* Rules for greeting bar in the top right corner */
529 margin-right: $lineheight/4;
532 .greeting-bar-unread {
536 /* Rules for the message shown in place of the map when javascript is disabled */
545 /* Rules for Leaflet maps */
551 background-color: white;
552 background-color: rgba(255,255,255,.8);
557 .leaflet-control a:hover {
558 background-color: white;
561 .leaflet-control a .icon {
565 .leaflet-map-ui-layers {
566 box-shadow: 0 1px 7px rgba(0, 0, 0, 0.4);
568 -webkit-border-radius: 8px;
570 background-position: 50% 50%;
571 background-repeat: no-repeat;
577 .leaflet-control-layers-separator {
578 margin: 5px -10px !important;
581 .leaflet-control-attribution {
585 text-decoration: none;
588 ul.secondary-actions {
590 margin-right: $lineheight/4;
598 .site-index .leaflet-top,
599 .site-export .leaflet-top {
600 top: $lineheight/2 !important;
602 margin-top: 0px !important;
606 .site-index #map .olControlScaleLine,
607 .site-export #map .olControlScaleLine {
608 left: $lineheight/2 !important;
611 .leaflet-popup-scrolled {
612 padding-right: $lineheight;
613 border-bottom: 0px !important;
614 border-top: 0px !important;
617 .leaflet-popup-content-wrapper {
618 border-radius: 4px !important;
619 -webkit-border-radius: 4px !important;
622 /* Rules for edit menu */
625 padding: 0 $lineheight/4;
627 display: inline-block;
629 text-decoration: none !important;
637 background-color: #ffffff;
638 border: 1px solid $keyline;
644 padding: 2px $lineheight/4;
645 border-top: 1px solid #eee;
650 /* Rules for attribution text under the main map shown on printouts */
656 .attribution_license,
657 .attribution_project {
661 .attribution_notice {
665 /* Rules for the popout map sidebar */
674 border-right: 1px solid $keyline;
678 padding: $lineheight/2 $lineheight;
680 background: $offwhite;
681 border-bottom: 1px solid #ccc;
689 border-bottom: 1px solid #ccc;
692 margin-bottom: $lineheight/4;
714 padding: 0 $lineheight $lineheight/2 $lineheight;
715 margin-top: $lineheight/2;
717 border-bottom: 1px solid #ddd;
721 /* Rules for the map key which appears in the popout sidebar */
724 padding: $lineheight $lineheight 0 $lineheight;
725 .mapkey-table-key img {
731 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
735 /* Rules for search results which appear in the popout sidebar */
738 margin-top: $lineheight/4;
739 margin-bottom: $lineheight/4;
742 .search_results_entry {
751 .search_results_entry .search_searching {
753 margin: $lineheight auto;
758 ul.results-list li { border-bottom: 1px solid #ccc; }
760 .search_results_error {
764 /* Rules for data browser information which appears in the popout sidebar */
768 .browse_show_list.button {
793 /* Rules for export information which appears in the popout sidebar */
799 .export_area_inputs {
800 margin-bottom: $lineheight/2;
808 margin: $lineheight/4;
811 .export_details input[type="text"]#export_html_text {
815 #sidebar #marker_inputs li:last-child {
816 margin-bottom: $lineheight/2;
825 /* Rules for the main content area */
828 padding: $lineheight;
833 .site-index #content,
834 .site-export #content {
837 top: 30px; bottom: 0;
838 left: 184px; right: 0;
839 border-left: 1px solid #ccc;
844 border-left: 1px solid #ccc;
848 .site-edit #content {
865 #slim_container_content {
867 background-color: #FFFFFF;
868 margin: $lineheight/2 auto;
871 -moz-border-radius: 25px;
872 border: 1px solid #e6e6e6;
876 margin: $lineheight/2;
886 margin: 30px $lineheight/2;
889 margin-right: $lineheight/4;
891 vertical-align: middle;
892 margin-bottom: $lineheight/4;
893 margin-right: $lineheight/4;
899 padding: $lineheight;
900 background: $offwhite;
902 margin-bottom: $lineheight/2;
909 margin-top: $lineheight/2;
914 /* Rules for small maps in content areas */
920 border: 1px solid #ccc;
921 margin-bottom: $lineheight;
925 .content_map #small_map {
928 margin-bottom: $lineheight;
931 /* Rules for the home page */
942 /* Rules for the edit page */
953 /* Rules for the changeset list shown by the history tab etc */
958 padding: $lineheight/2 0;
960 border-top: 1px solid #ccc;
962 border-bottom: 1px solid #ccc;
970 border-left: 1px solid #ccc;
971 padding-left: $lineheight/4;
972 margin-right: $lineheight/4;
976 #changeset_list_map_wrapper {
984 #changeset_list_map_wrapper.scrolled {
988 #changeset_list_map {
994 border: 1px solid #ccc;
997 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1001 /* Rules for the data browser */
1004 border-top: 1px solid #ccc;
1005 margin-top: $lineheight/2;
1006 padding-top: $lineheight/2;
1011 background-color: #ffe0cc;
1017 margin-bottom: $lineheight/4;
1019 p, ul, .bbox, .geo {
1020 display: inline-block;
1021 vertical-align: top;
1030 display: inline-block;
1031 vertical-align: top;
1039 padding: $lineheight/4 0;
1041 text-overflow: ellipsis;
1052 #browse_map .geolink {
1056 #browse_map .secondary-actions {
1057 margin-bottom: $lineheight/2;
1060 /* Rules for the trace list shown by the traces tab etc */
1063 font-size: $lineheight/2;
1080 .trace_identifiable {
1093 /* Rules for the user profile page */
1098 .userinformation-inner {
1113 .admin-user-info small {
1114 margin-bottom: $lineheight/2;
1116 margin-right: $lineheight;
1121 border-bottom: 1px solid #ccc;
1122 padding-bottom: $lineheight;
1125 margin-bottom: $lineheight/2;
1130 margin-top: $lineheight;
1134 .activity-details p {
1139 #friends-container .contact-activity ul {
1144 p#no_home_location {
1145 margin: $lineheight;
1148 margin-top: $lineheight/4;
1153 /* Rules for the user map */
1155 .content_map .leaflet-popup-content {
1156 margin: $lineheight/2;
1160 /* Rules for user popups on maps */
1166 margin-top: 0 0 0 60px;
1169 img.user_thumbnail {
1171 margin: 0 $lineheight/2 0 0;
1175 /* Rules for the user list */
1178 font-size: $lineheight/2;
1182 vertical-align: middle;
1191 #user_list_actions {
1193 margin-top: $lineheight/2;
1196 /* Rules for the diary list page */
1198 .diary_entry-list img.user_thumbnail {
1205 margin-top: $lineheight/2;
1206 padding-top: $lineheight;
1207 border-top: 1px solid #ccc;
1222 ul.secondary-actions { display: inline-block;}
1225 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1229 #content .post_heading {
1230 margin-bottom: $lineheight;
1233 margin-bottom: $lineheight/2;
1238 /* Rules for the diary entry page */
1245 border: 1px solid #ccc;
1247 margin-bottom: $lineheight;
1250 border-top: 1px solid #ccc;
1251 padding-top: $lineheight;
1252 margin-top: $lineheight/2;
1258 margin-top: $lineheight/2;
1259 border-top: 1px dashed #ccc;
1260 padding-top: $lineheight/2;
1262 margin-top: $lineheight;
1263 padding-top: $lineheight;
1264 border-top: 1px solid #ccc;
1267 margin-bottom: $lineheight/2;
1276 .diary_entry-view img.user_thumbnail {
1280 /* Rules for the login page */
1282 #login_openid_buttons {
1286 #login_openid_buttons li {
1288 padding: $lineheight/4 $lineheight/2;
1291 /* Rules for the account confirmation page */
1295 border: 1px solid #ccc;
1296 padding: $lineheight;
1297 margin-bottom: $lineheight;
1311 margin: $lineheight auto inherit auto;
1316 input[type=submit] {
1322 background: darken($grey, $hovercolor);
1327 margin-bottom: $lineheight;
1329 #contributorGuidance {
1330 background-color: $offwhite;
1332 -moz-border-radius: 4px;
1339 /* Rules for the account settings page */
1341 #accountForm .user_map {
1345 border: 1px solid #ccc;
1348 #accountForm .user_image {
1352 #accountForm #user_image {
1356 #accountForm ul.accountImage-options {
1369 display: inline !important;
1372 .content_map.settings_map {
1377 /* Rules for the oauth settings page */
1379 .oauth_clients .buttons .oauth-edit {
1380 border-radius: 2px 0 0 2px;
1383 .oauth_clients .buttons .oauth-delete {
1384 border-radius: 0 2px 2px 0;
1387 /* Rules for messages pages */
1391 border: 1px solid #ddd;
1393 input[type="submit"] {
1397 border-top: 1px solid #ccc;
1401 background: #f8f8ff;
1414 padding: $lineheight/4;
1425 border-right: 1px solid $keyline;
1429 .inbox-row .inbox-mark-read {
1434 margin-bottom: $lineheight;
1435 padding: $lineheight/4 0px 4px 0px;
1436 border-bottom: 1px solid #ccc;
1443 .info-line .user_thumbnail_tiny {
1444 vertical-align: middle;
1453 .inbox-row-unread .inbox-mark-unread {
1457 .message-read .message-buttons {
1458 margin-top: $lineheight;
1459 padding-top: $lineheight;
1460 border-top: 1px solid $keyline;
1463 .message-read .buttons .mark-unread-button {
1467 /* Rules for "flash" notice boxes shown at the top of the content area */
1470 padding: $lineheight;
1472 background-color: #ff7070;
1475 background-color: #ffe0cc;
1478 background-color: #CBEEA7;
1482 /* Rules for highlighting fields with rails validation errors */
1484 .field_with_errors {
1486 background-color: #ff7070;
1490 /* Rules for rails validation error boxes */
1494 border: 2px solid #ff7070;
1495 padding: 0 $lineheight/2;
1496 margin-bottom: $lineheight;
1497 background-color: #f0f0f0;
1500 margin: 0 -10px 10px -10px;
1501 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1504 background-color: #c00;
1512 padding: $lineheight/4;
1516 padding-left: $lineheight;
1525 /* Rules for forms */
1529 margin-bottom: $lineheight;
1531 label.standard-label {
1533 margin-bottom: $lineheight/4;
1534 font-size: $typeheight;
1538 label.standard-label.secondary {
1539 display: inline-block;
1540 font-weight: normal;
1543 font-weight: normal;
1550 margin-top: $lineheight;
1551 padding-top: $lineheight;
1552 border-top: 1px solid $keyline;
1555 margin-bottom: $lineheight/2;
1563 input[type="checkbox"],
1564 input[type="radio"] {
1570 #remember_me_openid {
1574 input[type="checkbox"],
1575 input[type="radio"] {
1580 input[type="email"],
1582 input[type="password"],
1584 border: 1px solid #ccc;
1593 height: 100% !important;
1596 /* Rules for user images */
1601 border: 1px solid #ccc;
1602 margin-bottom: $lineheight;
1604 margin-right: $lineheight;
1607 img.user_thumbnail {
1610 border: 1px solid #ccc;
1611 margin-right: $lineheight;
1614 img.user_thumbnail_tiny {
1617 border: 1px solid #ccc;
1620 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1623 white-space: nowrap;
1626 /* Rules for geo microformats */
1629 border-bottom: none;
1632 /* Rules for RSS buttons */
1639 /* General styles for action lists / subnavs / pager navs */
1641 ul.secondary-actions {
1646 display: inline-block;
1653 border-left: 1px solid #ccc;
1654 padding-left: $lineheight/4;
1655 margin-right: $lineheight/4;
1666 /* Utility for managing inner content areas */
1668 .inner22 { padding: $lineheight;}
1670 .inner12 { padding: $lineheight/2 $lineheight;}
1672 .inner11 { padding: $lineheight/2;}
1674 .inner02 { padding: 0 $lineheight;}
1676 /* Utility for general button styles */
1678 input[type="button"],
1679 input[type="submit"],
1680 input[type="reset"],
1684 display: inline-block;
1686 padding: $lineheight/4 $lineheight/2;
1688 margin: 0 0 $lineheight/2 0;
1693 -moz-border-radius: 2px;
1695 background: darken($blue, $hovercolor);
1696 text-decoration: none;
1699 background: $lightblue;
1701 background: darken($lightblue, $hovercolor);
1705 background: $lightblue;
1714 input[type="submit"],
1715 input[type="button"],
1716 input[type="reset"],
1718 box-sizing: border-box;
1724 border-right:1px solid white;
1727 .button:first-child {
1728 border-radius:2px 0 0 2px;
1731 .button:last-child {
1732 border-radius:0 2px 2px 0;
1733 border-right-width: 0;
1737 *[value="Hide"] + input:last-child,
1738 *[value="Hide"] + .button:last-child {
1740 border-right-width: 0;
1742 /* if a 3-button set has a hidden middle button */
1743 *[value="Hide"] + input:nth-child(3),
1744 *[value="Hide"] + .button:nth-child(3) {
1745 border-radius:0 2px 2px 0;
1746 border-right-width: 0;
1748 /* if a 3-button set starts with a hidden button */
1749 *[value="Hide"] + input:nth-child(2):not(:last-child),
1750 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1751 border-radius:2px 0 0 2px;
1752 border-right-width: 1px solid white;
1756 /* Rules for doing distinct colour of alternate table rows */
1760 background: $offwhite;
1768 /* Rules for OpenID logo */
1771 vertical-align: text-bottom;
1775 /* Rules for rich text */
1780 padding-bottom: $lineheight/2;
1781 border-bottom: 1px dashed #cccccc;
1782 margin-bottom: $lineheight/2;
1794 font-size: $typeheight;
1799 background: #e8e8e8;
1805 background: #e8e8e8;
1814 padding: $lineheight;
1815 background-color: $offwhite;
1822 border-left: $lineheight solid $offwhite;
1823 padding-left: $lineheight;
1830 padding-left: $lineheight;
1831 margin-bottom: $lineheight;
1832 margin-left: $lineheight;
1840 list-style: decimal;
1844 .diary_post .richtext {
1845 margin-top: $lineheight;
1848 .comments .richtext {
1853 /* Rules for rich text editors */
1855 .richtext_container {
1856 margin-bottom: $lineheight;
1860 display: inline-block;
1861 vertical-align: top;
1864 display: inline-block;
1865 padding: $lineheight;
1866 background-color: $offwhite;
1870 background-image: image-url("loading.gif");
1871 background-repeat: no-repeat;
1872 background-position: center;
1882 display: inline-block;
1883 vertical-align: top;
1885 background-color: #f8f8ff;
1886 padding: $lineheight/2;
1894 border-bottom: 1px solid #ccc;
1895 margin-bottom: $lineheight/4;
1896 padding-bottom: $lineheight/4;
1899 li h4, li span, li p {
1900 display: inline-block;
1901 vertical-align: top;
1912 margin-left: $lineheight/2;
1913 margin-bottom: $lineheight/4;
1914 white-space: nowrap;
1919 /* Rules for the user notes list */
1923 background-color: #eeeeee;
1935 /* Rules for the notes interface */
1937 .leaflet-popup-content .note {
1938 padding-top: $lineheight/2;
1941 .leaflet-popup-content .note {
1943 margin-bottom: $lineheight/2;
1947 margin-top: $lineheight/2;
1953 left: $lineheight/4;
1956 background: image-url("sprite.png") 0 -45px no-repeat;
1961 padding-left: $lineheight;
1964 .permalink:hover span {
1970 background-color: #ffe0cc;
1972 margin-bottom: $lineheight/2;
1991 margin-top: $lineheight/4;
1997 * Rules for the iD editor
2004 /* Rules for rotating sidebar ads */
2010 border-bottom: 1px solid #ccc;