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 */
547 .leaflet-control .control-button {
551 background-color: white;
552 background-color: rgba(255,255,255,.8);
557 .leaflet-control .zoomin,
558 .control-layers .control-button,
559 .control-note .control-button {
561 border-radius: 4px 4px 0px 0px;
564 .leaflet-control .zoomout {
569 .control-locate .control-button,
570 .control-key .control-button,
571 .control-share .control-button {
572 border-radius: 0px 0px 4px 4px;
575 .leaflet-control .control-button:hover {
576 background-color: white;
579 .leaflet-control .control-button .icon {
595 border-top: 1px solid #868e85;
599 section:first-child {
616 background-color: #eee;
621 background-color: #ccc;
637 .leaflet-control-attribution {
641 text-decoration: none;
644 ul.secondary-actions {
646 margin-right: $lineheight/4;
654 .site-index .leaflet-top,
655 .site-export .leaflet-top {
656 top: $lineheight/2 !important;
658 margin-top: 0px !important;
662 .site-index #map .olControlScaleLine,
663 .site-export #map .olControlScaleLine {
664 left: $lineheight/2 !important;
667 .leaflet-popup-scrolled {
668 padding-right: $lineheight;
669 border-bottom: 0px !important;
670 border-top: 0px !important;
673 .leaflet-popup-content-wrapper {
674 border-radius: 4px !important;
675 -webkit-border-radius: 4px !important;
678 /* Rules for edit menu */
681 padding: 0 $lineheight/4;
683 display: inline-block;
685 text-decoration: none !important;
693 background-color: #ffffff;
694 border: 1px solid $keyline;
700 padding: 2px $lineheight/4;
701 border-top: 1px solid #eee;
706 /* Rules for attribution text under the main map shown on printouts */
712 .attribution_license,
713 .attribution_project {
717 .attribution_notice {
721 /* Rules for the popout map sidebar */
730 border-right: 1px solid $keyline;
734 padding: $lineheight/2 $lineheight;
736 background: $offwhite;
737 border-bottom: 1px solid #ccc;
745 border-bottom: 1px solid #ccc;
748 margin-bottom: $lineheight/4;
770 padding: 0 $lineheight $lineheight/2 $lineheight;
771 margin-top: $lineheight/2;
773 border-bottom: 1px solid #ddd;
777 /* Rules for the map key which appears in the popout sidebar */
780 .mapkey-table-key img {
786 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
790 /* Rules for search results which appear in the popout sidebar */
793 margin-top: $lineheight/4;
794 margin-bottom: $lineheight/4;
797 .search_results_entry {
806 .search_results_entry .search_searching {
808 margin: $lineheight auto;
813 ul.results-list li { border-bottom: 1px solid #ccc; }
815 .search_results_error {
819 /* Rules for data browser information which appears in the popout sidebar */
823 .browse_show_list.button {
848 /* Rules for export information which appears in the popout sidebar */
854 .export_area_inputs {
855 margin-bottom: $lineheight/2;
863 margin: $lineheight/4;
866 .export_details input[type="text"]#export_html_text {
870 #sidebar #marker_inputs li:last-child {
871 margin-bottom: $lineheight/2;
880 /* Rules for the main content area */
883 padding: $lineheight;
888 .site-index #content,
889 .site-export #content {
892 top: 30px; bottom: 0;
893 left: 184px; right: 0;
894 border-left: 1px solid #ccc;
899 border-left: 1px solid #ccc;
903 .site-edit #content {
920 #slim_container_content {
922 background-color: #FFFFFF;
923 margin: $lineheight/2 auto;
926 -moz-border-radius: 25px;
927 border: 1px solid #e6e6e6;
931 margin: $lineheight/2;
941 margin: 30px $lineheight/2;
944 margin-right: $lineheight/4;
946 vertical-align: middle;
947 margin-bottom: $lineheight/4;
948 margin-right: $lineheight/4;
954 padding: $lineheight;
955 background: $offwhite;
957 margin-bottom: $lineheight/2;
964 margin-top: $lineheight/2;
969 /* Rules for small maps in content areas */
975 border: 1px solid #ccc;
976 margin-bottom: $lineheight;
980 .content_map #small_map {
983 margin-bottom: $lineheight;
986 /* Rules for the home page */
997 /* Rules for the edit page */
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;
1074 p, ul, .bbox, .geo {
1075 display: inline-block;
1076 vertical-align: top;
1085 display: inline-block;
1086 vertical-align: top;
1094 padding: $lineheight/4 0;
1096 text-overflow: ellipsis;
1107 #browse_map .geolink {
1111 #browse_map .secondary-actions {
1112 margin-bottom: $lineheight/2;
1115 /* Rules for the trace list shown by the traces tab etc */
1118 font-size: $lineheight/2;
1135 .trace_identifiable {
1148 /* Rules for the user profile page */
1153 .userinformation-inner {
1168 .admin-user-info small {
1169 margin-bottom: $lineheight/2;
1171 margin-right: $lineheight;
1176 border-bottom: 1px solid #ccc;
1177 padding-bottom: $lineheight;
1180 margin-bottom: $lineheight/2;
1185 margin-top: $lineheight;
1189 .activity-details p {
1194 #friends-container .contact-activity ul {
1199 p#no_home_location {
1200 margin: $lineheight;
1203 margin-top: $lineheight/4;
1208 /* Rules for the user map */
1210 .content_map .leaflet-popup-content {
1211 margin: $lineheight/2;
1215 /* Rules for user popups on maps */
1221 margin-top: 0 0 0 60px;
1224 img.user_thumbnail {
1226 margin: 0 $lineheight/2 0 0;
1230 /* Rules for the user list */
1233 font-size: $lineheight/2;
1237 vertical-align: middle;
1246 #user_list_actions {
1248 margin-top: $lineheight/2;
1251 /* Rules for the diary list page */
1253 .diary_entry-list img.user_thumbnail {
1260 margin-top: $lineheight/2;
1261 padding-top: $lineheight;
1262 border-top: 1px solid #ccc;
1277 ul.secondary-actions { display: inline-block;}
1280 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1284 #content .post_heading {
1285 margin-bottom: $lineheight;
1288 margin-bottom: $lineheight/2;
1293 /* Rules for the diary entry page */
1300 border: 1px solid #ccc;
1302 margin-bottom: $lineheight;
1305 border-top: 1px solid #ccc;
1306 padding-top: $lineheight;
1307 margin-top: $lineheight/2;
1313 margin-top: $lineheight/2;
1314 border-top: 1px dashed #ccc;
1315 padding-top: $lineheight/2;
1317 margin-top: $lineheight;
1318 padding-top: $lineheight;
1319 border-top: 1px solid #ccc;
1322 margin-bottom: $lineheight/2;
1331 .diary_entry-view img.user_thumbnail {
1335 /* Rules for the login page */
1337 #login_openid_buttons {
1341 #login_openid_buttons li {
1343 padding: $lineheight/4 $lineheight/2;
1346 /* Rules for the account confirmation page */
1350 border: 1px solid #ccc;
1351 padding: $lineheight;
1352 margin-bottom: $lineheight;
1366 margin: $lineheight auto inherit auto;
1371 input[type=submit] {
1377 background: darken($grey, $hovercolor);
1382 margin-bottom: $lineheight;
1384 #contributorGuidance {
1385 background-color: $offwhite;
1387 -moz-border-radius: 4px;
1394 /* Rules for the account settings page */
1396 #accountForm .user_map {
1400 border: 1px solid #ccc;
1403 #accountForm .user_image {
1407 #accountForm #user_image {
1411 #accountForm ul.accountImage-options {
1424 display: inline !important;
1427 .content_map.settings_map {
1432 /* Rules for the oauth settings page */
1434 .oauth_clients .buttons .oauth-edit {
1435 border-radius: 2px 0 0 2px;
1438 .oauth_clients .buttons .oauth-delete {
1439 border-radius: 0 2px 2px 0;
1442 /* Rules for messages pages */
1446 border: 1px solid #ddd;
1448 input[type="submit"] {
1452 border-top: 1px solid #ccc;
1456 background: #f8f8ff;
1469 padding: $lineheight/4;
1480 border-right: 1px solid $keyline;
1484 .inbox-row .inbox-mark-read {
1489 margin-bottom: $lineheight;
1490 padding: $lineheight/4 0px 4px 0px;
1491 border-bottom: 1px solid #ccc;
1498 .info-line .user_thumbnail_tiny {
1499 vertical-align: middle;
1508 .inbox-row-unread .inbox-mark-unread {
1512 .message-read .message-buttons {
1513 margin-top: $lineheight;
1514 padding-top: $lineheight;
1515 border-top: 1px solid $keyline;
1518 .message-read .buttons .mark-unread-button {
1522 /* Rules for "flash" notice boxes shown at the top of the content area */
1525 padding: $lineheight;
1527 background-color: #ff7070;
1530 background-color: #ffe0cc;
1533 background-color: #CBEEA7;
1537 /* Rules for highlighting fields with rails validation errors */
1539 .field_with_errors {
1541 background-color: #ff7070;
1545 /* Rules for rails validation error boxes */
1549 border: 2px solid #ff7070;
1550 padding: 0 $lineheight/2;
1551 margin-bottom: $lineheight;
1552 background-color: #f0f0f0;
1555 margin: 0 -10px 10px -10px;
1556 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1559 background-color: #c00;
1567 padding: $lineheight/4;
1571 padding-left: $lineheight;
1580 /* Rules for forms */
1584 margin-bottom: $lineheight;
1586 label.standard-label {
1588 margin-bottom: $lineheight/4;
1589 font-size: $typeheight;
1593 label.standard-label.secondary {
1594 display: inline-block;
1595 font-weight: normal;
1598 font-weight: normal;
1605 margin-top: $lineheight;
1606 padding-top: $lineheight;
1607 border-top: 1px solid $keyline;
1610 margin-bottom: $lineheight/2;
1618 input[type="checkbox"],
1619 input[type="radio"] {
1625 #remember_me_openid {
1629 input[type="checkbox"],
1630 input[type="radio"] {
1635 input[type="email"],
1637 input[type="password"],
1639 border: 1px solid #ccc;
1648 height: 100% !important;
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;
1743 margin: 0 0 $lineheight/2 0;
1748 -moz-border-radius: 2px;
1750 background: darken($blue, $hovercolor);
1751 text-decoration: none;
1754 background: $lightblue;
1756 background: darken($lightblue, $hovercolor);
1760 background: $lightblue;
1769 input[type="submit"],
1770 input[type="button"],
1771 input[type="reset"],
1773 box-sizing: border-box;
1779 border-right:1px solid white;
1782 .button:first-child {
1783 border-radius:2px 0 0 2px;
1786 .button:last-child {
1787 border-radius:0 2px 2px 0;
1788 border-right-width: 0;
1792 *[value="Hide"] + input:last-child,
1793 *[value="Hide"] + .button:last-child {
1795 border-right-width: 0;
1797 /* if a 3-button set has a hidden middle button */
1798 *[value="Hide"] + input:nth-child(3),
1799 *[value="Hide"] + .button:nth-child(3) {
1800 border-radius:0 2px 2px 0;
1801 border-right-width: 0;
1803 /* if a 3-button set starts with a hidden button */
1804 *[value="Hide"] + input:nth-child(2):not(:last-child),
1805 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1806 border-radius:2px 0 0 2px;
1807 border-right-width: 1px solid white;
1811 /* Rules for doing distinct colour of alternate table rows */
1815 background: $offwhite;
1823 /* Rules for OpenID logo */
1826 vertical-align: text-bottom;
1830 /* Rules for rich text */
1835 padding-bottom: $lineheight/2;
1836 border-bottom: 1px dashed #cccccc;
1837 margin-bottom: $lineheight/2;
1849 font-size: $typeheight;
1854 background: #e8e8e8;
1860 background: #e8e8e8;
1869 padding: $lineheight;
1870 background-color: $offwhite;
1877 border-left: $lineheight solid $offwhite;
1878 padding-left: $lineheight;
1885 padding-left: $lineheight;
1886 margin-bottom: $lineheight;
1887 margin-left: $lineheight;
1895 list-style: decimal;
1899 .diary_post .richtext {
1900 margin-top: $lineheight;
1903 .comments .richtext {
1908 /* Rules for rich text editors */
1910 .richtext_container {
1911 margin-bottom: $lineheight;
1915 display: inline-block;
1916 vertical-align: top;
1919 display: inline-block;
1920 padding: $lineheight;
1921 background-color: $offwhite;
1925 background-image: image-url("loading.gif");
1926 background-repeat: no-repeat;
1927 background-position: center;
1937 display: inline-block;
1938 vertical-align: top;
1940 background-color: #f8f8ff;
1941 padding: $lineheight/2;
1949 border-bottom: 1px solid #ccc;
1950 margin-bottom: $lineheight/4;
1951 padding-bottom: $lineheight/4;
1954 li h4, li span, li p {
1955 display: inline-block;
1956 vertical-align: top;
1967 margin-left: $lineheight/2;
1968 margin-bottom: $lineheight/4;
1969 white-space: nowrap;
1974 /* Rules for the user notes list */
1978 background-color: #eeeeee;
1990 /* Rules for the notes interface */
1992 .leaflet-popup-content .note {
1993 padding-top: $lineheight/2;
1996 .leaflet-popup-content .note {
1998 margin-bottom: $lineheight/2;
2002 margin-top: $lineheight/2;
2008 left: $lineheight/4;
2011 background: image-url("sprite.png") 0 -45px no-repeat;
2016 padding-left: $lineheight;
2019 .permalink:hover span {
2025 background-color: #ffe0cc;
2027 margin-bottom: $lineheight/2;
2046 margin-top: $lineheight/4;
2052 * Rules for the iD editor
2059 /* Rules for rotating sidebar ads */
2065 border-bottom: 1px solid #ccc;