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: #868e85;
621 background-color: #68c879;
633 .leaflet-control-attribution {
637 text-decoration: none;
640 ul.secondary-actions {
642 margin-right: $lineheight/4;
650 .site-index .leaflet-top,
651 .site-export .leaflet-top {
652 top: $lineheight/2 !important;
654 margin-top: 0px !important;
658 .site-index #map .olControlScaleLine,
659 .site-export #map .olControlScaleLine {
660 left: $lineheight/2 !important;
663 .leaflet-popup-scrolled {
664 padding-right: $lineheight;
665 border-bottom: 0px !important;
666 border-top: 0px !important;
669 .leaflet-popup-content-wrapper {
670 border-radius: 4px !important;
671 -webkit-border-radius: 4px !important;
674 /* Rules for edit menu */
677 padding: 0 $lineheight/4;
679 display: inline-block;
681 text-decoration: none !important;
689 background-color: #ffffff;
690 border: 1px solid $keyline;
696 padding: 2px $lineheight/4;
697 border-top: 1px solid #eee;
702 /* Rules for attribution text under the main map shown on printouts */
708 .attribution_license,
709 .attribution_project {
713 .attribution_notice {
717 /* Rules for the popout map sidebar */
726 border-right: 1px solid $keyline;
730 padding: $lineheight/2 $lineheight;
732 background: $offwhite;
733 border-bottom: 1px solid #ccc;
741 border-bottom: 1px solid #ccc;
744 margin-bottom: $lineheight/4;
766 padding: 0 $lineheight $lineheight/2 $lineheight;
767 margin-top: $lineheight/2;
769 border-bottom: 1px solid #ddd;
773 /* Rules for the map key which appears in the popout sidebar */
776 .mapkey-table-key img {
782 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
786 /* Rules for search results which appear in the popout sidebar */
789 margin-top: $lineheight/4;
790 margin-bottom: $lineheight/4;
793 .search_results_entry {
802 .search_results_entry .search_searching {
804 margin: $lineheight auto;
809 ul.results-list li { border-bottom: 1px solid #ccc; }
811 .search_results_error {
815 /* Rules for data browser information which appears in the popout sidebar */
819 .browse_show_list.button {
844 /* Rules for export information which appears in the popout sidebar */
850 .export_area_inputs {
851 margin-bottom: $lineheight/2;
859 margin: $lineheight/4;
862 .export_details input[type="text"]#export_html_text {
866 #sidebar #marker_inputs li:last-child {
867 margin-bottom: $lineheight/2;
876 /* Rules for the main content area */
879 padding: $lineheight;
884 .site-index #content,
885 .site-export #content {
888 top: 30px; bottom: 0;
889 left: 184px; right: 0;
890 border-left: 1px solid #ccc;
895 border-left: 1px solid #ccc;
899 .site-edit #content {
916 #slim_container_content {
918 background-color: #FFFFFF;
919 margin: $lineheight/2 auto;
922 -moz-border-radius: 25px;
923 border: 1px solid #e6e6e6;
927 margin: $lineheight/2;
937 margin: 30px $lineheight/2;
940 margin-right: $lineheight/4;
942 vertical-align: middle;
943 margin-bottom: $lineheight/4;
944 margin-right: $lineheight/4;
950 padding: $lineheight;
951 background: $offwhite;
953 margin-bottom: $lineheight/2;
960 margin-top: $lineheight/2;
965 /* Rules for small maps in content areas */
971 border: 1px solid #ccc;
972 margin-bottom: $lineheight;
976 .content_map #small_map {
979 margin-bottom: $lineheight;
982 /* Rules for the home page */
993 /* Rules for the edit page */
1004 /* Rules for the changeset list shown by the history tab etc */
1009 padding: $lineheight/2 0;
1011 border-top: 1px solid #ccc;
1013 border-bottom: 1px solid #ccc;
1017 background: #FFFFC0;
1021 border-left: 1px solid #ccc;
1022 padding-left: $lineheight/4;
1023 margin-right: $lineheight/4;
1027 #changeset_list_map_wrapper {
1035 #changeset_list_map_wrapper.scrolled {
1039 #changeset_list_map {
1041 bottom: $lineheight;
1045 border: 1px solid #ccc;
1048 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1052 /* Rules for the data browser */
1055 border-top: 1px solid #ccc;
1056 margin-top: $lineheight/2;
1057 padding-top: $lineheight/2;
1062 background-color: #ffe0cc;
1068 margin-bottom: $lineheight/4;
1070 p, ul, .bbox, .geo {
1071 display: inline-block;
1072 vertical-align: top;
1081 display: inline-block;
1082 vertical-align: top;
1090 padding: $lineheight/4 0;
1092 text-overflow: ellipsis;
1103 #browse_map .geolink {
1107 #browse_map .secondary-actions {
1108 margin-bottom: $lineheight/2;
1111 /* Rules for the trace list shown by the traces tab etc */
1114 font-size: $lineheight/2;
1131 .trace_identifiable {
1144 /* Rules for the user profile page */
1149 .userinformation-inner {
1164 .admin-user-info small {
1165 margin-bottom: $lineheight/2;
1167 margin-right: $lineheight;
1172 border-bottom: 1px solid #ccc;
1173 padding-bottom: $lineheight;
1176 margin-bottom: $lineheight/2;
1181 margin-top: $lineheight;
1185 .activity-details p {
1190 #friends-container .contact-activity ul {
1195 p#no_home_location {
1196 margin: $lineheight;
1199 margin-top: $lineheight/4;
1204 /* Rules for the user map */
1206 .content_map .leaflet-popup-content {
1207 margin: $lineheight/2;
1211 /* Rules for user popups on maps */
1217 margin-top: 0 0 0 60px;
1220 img.user_thumbnail {
1222 margin: 0 $lineheight/2 0 0;
1226 /* Rules for the user list */
1229 font-size: $lineheight/2;
1233 vertical-align: middle;
1242 #user_list_actions {
1244 margin-top: $lineheight/2;
1247 /* Rules for the diary list page */
1249 .diary_entry-list img.user_thumbnail {
1256 margin-top: $lineheight/2;
1257 padding-top: $lineheight;
1258 border-top: 1px solid #ccc;
1273 ul.secondary-actions { display: inline-block;}
1276 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1280 #content .post_heading {
1281 margin-bottom: $lineheight;
1284 margin-bottom: $lineheight/2;
1289 /* Rules for the diary entry page */
1296 border: 1px solid #ccc;
1298 margin-bottom: $lineheight;
1301 border-top: 1px solid #ccc;
1302 padding-top: $lineheight;
1303 margin-top: $lineheight/2;
1309 margin-top: $lineheight/2;
1310 border-top: 1px dashed #ccc;
1311 padding-top: $lineheight/2;
1313 margin-top: $lineheight;
1314 padding-top: $lineheight;
1315 border-top: 1px solid #ccc;
1318 margin-bottom: $lineheight/2;
1327 .diary_entry-view img.user_thumbnail {
1331 /* Rules for the login page */
1333 #login_openid_buttons {
1337 #login_openid_buttons li {
1339 padding: $lineheight/4 $lineheight/2;
1342 /* Rules for the account confirmation page */
1346 border: 1px solid #ccc;
1347 padding: $lineheight;
1348 margin-bottom: $lineheight;
1362 margin: $lineheight auto inherit auto;
1367 input[type=submit] {
1373 background: darken($grey, $hovercolor);
1378 margin-bottom: $lineheight;
1380 #contributorGuidance {
1381 background-color: $offwhite;
1383 -moz-border-radius: 4px;
1390 /* Rules for the account settings page */
1392 #accountForm .user_map {
1396 border: 1px solid #ccc;
1399 #accountForm .user_image {
1403 #accountForm #user_image {
1407 #accountForm ul.accountImage-options {
1420 display: inline !important;
1423 .content_map.settings_map {
1428 /* Rules for the oauth settings page */
1430 .oauth_clients .buttons .oauth-edit {
1431 border-radius: 2px 0 0 2px;
1434 .oauth_clients .buttons .oauth-delete {
1435 border-radius: 0 2px 2px 0;
1438 /* Rules for messages pages */
1442 border: 1px solid #ddd;
1444 input[type="submit"] {
1448 border-top: 1px solid #ccc;
1452 background: #f8f8ff;
1465 padding: $lineheight/4;
1476 border-right: 1px solid $keyline;
1480 .inbox-row .inbox-mark-read {
1485 margin-bottom: $lineheight;
1486 padding: $lineheight/4 0px 4px 0px;
1487 border-bottom: 1px solid #ccc;
1494 .info-line .user_thumbnail_tiny {
1495 vertical-align: middle;
1504 .inbox-row-unread .inbox-mark-unread {
1508 .message-read .message-buttons {
1509 margin-top: $lineheight;
1510 padding-top: $lineheight;
1511 border-top: 1px solid $keyline;
1514 .message-read .buttons .mark-unread-button {
1518 /* Rules for "flash" notice boxes shown at the top of the content area */
1521 padding: $lineheight;
1523 background-color: #ff7070;
1526 background-color: #ffe0cc;
1529 background-color: #CBEEA7;
1533 /* Rules for highlighting fields with rails validation errors */
1535 .field_with_errors {
1537 background-color: #ff7070;
1541 /* Rules for rails validation error boxes */
1545 border: 2px solid #ff7070;
1546 padding: 0 $lineheight/2;
1547 margin-bottom: $lineheight;
1548 background-color: #f0f0f0;
1551 margin: 0 -10px 10px -10px;
1552 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1555 background-color: #c00;
1563 padding: $lineheight/4;
1567 padding-left: $lineheight;
1576 /* Rules for forms */
1580 margin-bottom: $lineheight;
1582 label.standard-label {
1584 margin-bottom: $lineheight/4;
1585 font-size: $typeheight;
1589 label.standard-label.secondary {
1590 display: inline-block;
1591 font-weight: normal;
1594 font-weight: normal;
1601 margin-top: $lineheight;
1602 padding-top: $lineheight;
1603 border-top: 1px solid $keyline;
1606 margin-bottom: $lineheight/2;
1614 input[type="checkbox"],
1615 input[type="radio"] {
1621 #remember_me_openid {
1625 input[type="checkbox"],
1626 input[type="radio"] {
1631 input[type="email"],
1633 input[type="password"],
1635 border: 1px solid #ccc;
1644 height: 100% !important;
1647 /* Rules for user images */
1652 border: 1px solid #ccc;
1653 margin-bottom: $lineheight;
1655 margin-right: $lineheight;
1658 img.user_thumbnail {
1661 border: 1px solid #ccc;
1662 margin-right: $lineheight;
1665 img.user_thumbnail_tiny {
1668 border: 1px solid #ccc;
1671 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1674 white-space: nowrap;
1677 /* Rules for geo microformats */
1680 border-bottom: none;
1683 /* Rules for RSS buttons */
1690 /* General styles for action lists / subnavs / pager navs */
1692 ul.secondary-actions {
1697 display: inline-block;
1704 border-left: 1px solid #ccc;
1705 padding-left: $lineheight/4;
1706 margin-right: $lineheight/4;
1717 /* Utility for managing inner content areas */
1719 .inner22 { padding: $lineheight;}
1721 .inner12 { padding: $lineheight/2 $lineheight;}
1723 .inner11 { padding: $lineheight/2;}
1725 .inner02 { padding: 0 $lineheight;}
1727 /* Utility for general button styles */
1729 input[type="button"],
1730 input[type="submit"],
1731 input[type="reset"],
1735 display: inline-block;
1737 padding: $lineheight/4 $lineheight/2;
1739 margin: 0 0 $lineheight/2 0;
1744 -moz-border-radius: 2px;
1746 background: darken($blue, $hovercolor);
1747 text-decoration: none;
1750 background: $lightblue;
1752 background: darken($lightblue, $hovercolor);
1756 background: $lightblue;
1765 input[type="submit"],
1766 input[type="button"],
1767 input[type="reset"],
1769 box-sizing: border-box;
1775 border-right:1px solid white;
1778 .button:first-child {
1779 border-radius:2px 0 0 2px;
1782 .button:last-child {
1783 border-radius:0 2px 2px 0;
1784 border-right-width: 0;
1788 *[value="Hide"] + input:last-child,
1789 *[value="Hide"] + .button:last-child {
1791 border-right-width: 0;
1793 /* if a 3-button set has a hidden middle button */
1794 *[value="Hide"] + input:nth-child(3),
1795 *[value="Hide"] + .button:nth-child(3) {
1796 border-radius:0 2px 2px 0;
1797 border-right-width: 0;
1799 /* if a 3-button set starts with a hidden button */
1800 *[value="Hide"] + input:nth-child(2):not(:last-child),
1801 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1802 border-radius:2px 0 0 2px;
1803 border-right-width: 1px solid white;
1807 /* Rules for doing distinct colour of alternate table rows */
1811 background: $offwhite;
1819 /* Rules for OpenID logo */
1822 vertical-align: text-bottom;
1826 /* Rules for rich text */
1831 padding-bottom: $lineheight/2;
1832 border-bottom: 1px dashed #cccccc;
1833 margin-bottom: $lineheight/2;
1845 font-size: $typeheight;
1850 background: #e8e8e8;
1856 background: #e8e8e8;
1865 padding: $lineheight;
1866 background-color: $offwhite;
1873 border-left: $lineheight solid $offwhite;
1874 padding-left: $lineheight;
1881 padding-left: $lineheight;
1882 margin-bottom: $lineheight;
1883 margin-left: $lineheight;
1891 list-style: decimal;
1895 .diary_post .richtext {
1896 margin-top: $lineheight;
1899 .comments .richtext {
1904 /* Rules for rich text editors */
1906 .richtext_container {
1907 margin-bottom: $lineheight;
1911 display: inline-block;
1912 vertical-align: top;
1915 display: inline-block;
1916 padding: $lineheight;
1917 background-color: $offwhite;
1921 background-image: image-url("loading.gif");
1922 background-repeat: no-repeat;
1923 background-position: center;
1933 display: inline-block;
1934 vertical-align: top;
1936 background-color: #f8f8ff;
1937 padding: $lineheight/2;
1945 border-bottom: 1px solid #ccc;
1946 margin-bottom: $lineheight/4;
1947 padding-bottom: $lineheight/4;
1950 li h4, li span, li p {
1951 display: inline-block;
1952 vertical-align: top;
1963 margin-left: $lineheight/2;
1964 margin-bottom: $lineheight/4;
1965 white-space: nowrap;
1970 /* Rules for the user notes list */
1974 background-color: #eeeeee;
1986 /* Rules for the notes interface */
1988 .leaflet-popup-content .note {
1989 padding-top: $lineheight/2;
1992 .leaflet-popup-content .note {
1994 margin-bottom: $lineheight/2;
1998 margin-top: $lineheight/2;
2004 left: $lineheight/4;
2007 background: image-url("sprite.png") 0 -45px no-repeat;
2012 padding-left: $lineheight;
2015 .permalink:hover span {
2021 background-color: #ffe0cc;
2023 margin-bottom: $lineheight/2;
2042 margin-top: $lineheight/4;
2048 * Rules for the iD editor
2055 /* Rules for rotating sidebar ads */
2061 border-bottom: 1px solid #ccc;