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;
341 /* Rules for SOTM advert */
345 margin: $lineheight/2;
355 * Rules for "optional boxes" which appear in the left sidebar on
356 * certain pages. Current users are the seach box on the main page
357 * and the tag cloud on the traces pages.
362 padding: $lineheight/4 $lineheight/2;
363 margin: $lineheight/4 0;
367 /* Rules for the search box */
379 font-size: $typeheight;
382 padding: 2px 0px 2px $lineheight/4;
383 box-shadow: inset #DDD 0px 1px 3px;
386 input[type="text"]:focus {
388 border: 1px solid #000;
391 input[type="submit"] {
398 text-indent: -1000px;
400 background: image-url("sprite.png") 0 0 no-repeat;
403 right: $lineheight/4;
409 margin: $lineheight/4 0 0 0;
412 /* Utility for de-emphasizing content */
421 /* Rules for donation request box */
426 padding: $lineheight/4;
427 border: 1px solid #AED1A0;
429 font-size: $typeheight;
434 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
438 text-decoration: none;
442 /* Rules for Creative Commons logo button */
445 margin: $lineheight/2 0;
449 /* Rules for tabbed navigation bar */
455 border-bottom: 1px solid #ccc;
461 .site-index #top-bar,
462 .site-export #top-bar {
475 a, a:link, a:visited {
478 padding: 3px $lineheight/2;
479 text-decoration: none;
483 -webkit-transition: color 200ms ease-in;
484 -moz-transition: color 200ms ease-in;
485 -o-transition: color 200ms ease-in;
486 transition: color 200ms ease-in;
490 .site-index #tabnav a#viewanchor,
491 .site-edit #tabnav a#editanchor,
492 .changeset-list #tabnav a#historyanchor,
493 .site-export #tabnav a#exportanchor {
494 border-bottom: 1px solid #aaa;
499 #tabnav a:link:hover, #tabnav a:visited:hover {
500 text-decoration: underline;
503 #tabnav a:link.disabled,
504 #tabnav a:visited.disabled,
505 #tabnav a:link:hover.disabled,
506 #tabnav a:visited:hover.disabled {
510 text-decoration: none;
514 /* Utility for styling notification numbers */
517 padding: 2px $lineheight/4;
525 /* Rules for greeting bar in the top right corner */
530 margin-right: $lineheight/4;
533 .greeting-bar-unread {
537 /* Rules for the message shown in place of the map when javascript is disabled */
546 /* Rules for Leaflet maps */
548 .leaflet-control .control-button {
552 background-color: white;
553 background-color: rgba(255,255,255,.8);
558 .leaflet-control .zoomin,
559 .control-layers .control-button,
560 .control-note .control-button {
562 border-radius: 4px 4px 0px 0px;
565 .leaflet-control .zoomout {
570 .control-locate .control-button,
571 .control-key .control-button,
572 .control-share .control-button {
573 border-radius: 0px 0px 4px 4px;
576 .leaflet-control .control-button:hover {
577 background-color: white;
580 .leaflet-control .control-button .icon {
596 border-top: 1px solid #868e85;
600 section:first-child {
614 border:1px solid #ddd;
626 background-color: #eee;
631 background-color: #ccc;
647 .leaflet-control-attribution {
651 text-decoration: none;
654 ul.secondary-actions {
656 margin-right: $lineheight/4;
664 .site-index .leaflet-top,
665 .site-export .leaflet-top {
666 top: $lineheight/2 !important;
668 margin-top: 0px !important;
672 .site-index #map .olControlScaleLine,
673 .site-export #map .olControlScaleLine {
674 left: $lineheight/2 !important;
677 .leaflet-popup-scrolled {
678 padding-right: $lineheight;
679 border-bottom: 0px !important;
680 border-top: 0px !important;
683 .leaflet-popup-content-wrapper {
684 border-radius: 4px !important;
685 -webkit-border-radius: 4px !important;
688 /* Rules for edit menu */
691 padding: 0 $lineheight/4;
693 display: inline-block;
695 text-decoration: none !important;
703 background-color: #ffffff;
704 border: 1px solid $keyline;
710 padding: 2px $lineheight/4;
711 border-top: 1px solid #eee;
716 /* Rules for attribution text under the main map shown on printouts */
722 .attribution_license,
723 .attribution_project {
727 .attribution_notice {
731 /* Rules for the popout map sidebar */
740 border-right: 1px solid $keyline;
744 padding: $lineheight/2 $lineheight;
746 background: $offwhite;
747 border-bottom: 1px solid #ccc;
755 border-bottom: 1px solid #ccc;
758 margin-bottom: $lineheight/4;
780 padding: 0 $lineheight $lineheight/2 $lineheight;
781 margin-top: $lineheight/2;
783 border-bottom: 1px solid #ddd;
787 /* Rules for the map key which appears in the popout sidebar */
790 .mapkey-table-key img {
796 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
800 /* Rules for search results which appear in the popout sidebar */
803 margin-top: $lineheight/4;
804 margin-bottom: $lineheight/4;
807 .search_results_entry {
816 .search_results_entry .search_searching {
818 margin: $lineheight auto;
823 ul.results-list li { border-bottom: 1px solid #ccc; }
825 .search_results_error {
829 /* Rules for data browser information which appears in the popout sidebar */
833 .browse_show_list.button {
858 /* Rules for export information which appears in the popout sidebar */
864 .export_area_inputs {
865 margin-bottom: $lineheight/2;
873 margin: $lineheight/4;
876 .export_details input[type="text"]#export_html_text {
880 #sidebar #marker_inputs li:last-child {
881 margin-bottom: $lineheight/2;
890 /* Rules for the main content area */
893 padding: $lineheight;
898 .site-index #content,
899 .site-export #content {
902 top: 30px; bottom: 0;
903 left: 184px; right: 0;
904 border-left: 1px solid #ccc;
909 border-left: 1px solid #ccc;
913 .site-edit #content {
930 #slim_container_content {
932 background-color: #FFFFFF;
933 margin: $lineheight/2 auto;
936 -moz-border-radius: 25px;
937 border: 1px solid #e6e6e6;
941 margin: $lineheight/2;
951 margin: 30px $lineheight/2;
954 margin-right: $lineheight/4;
956 vertical-align: middle;
957 margin-bottom: $lineheight/4;
958 margin-right: $lineheight/4;
964 padding: $lineheight;
965 background: $offwhite;
967 margin-bottom: $lineheight/2;
974 margin-top: $lineheight/2;
979 /* Rules for small maps in content areas */
985 border: 1px solid #ccc;
986 margin-bottom: $lineheight;
990 .content_map #small_map {
993 margin-bottom: $lineheight;
996 /* Rules for the home page */
1007 /* Rules for the edit page */
1018 /* Rules for the changeset list shown by the history tab etc */
1023 padding: $lineheight/2 0;
1025 border-top: 1px solid #ccc;
1027 border-bottom: 1px solid #ccc;
1031 background: #FFFFC0;
1035 border-left: 1px solid #ccc;
1036 padding-left: $lineheight/4;
1037 margin-right: $lineheight/4;
1041 #changeset_list_map_wrapper {
1049 #changeset_list_map_wrapper.scrolled {
1053 #changeset_list_map {
1055 bottom: $lineheight;
1059 border: 1px solid #ccc;
1062 #changeset_list_map_wrapper.scrolled #changeset_list_map {
1066 /* Rules for the data browser */
1069 border-top: 1px solid #ccc;
1070 margin-top: $lineheight/2;
1071 padding-top: $lineheight/2;
1076 background-color: #ffe0cc;
1082 margin-bottom: $lineheight/4;
1084 p, ul, .bbox, .geo {
1085 display: inline-block;
1086 vertical-align: top;
1095 display: inline-block;
1096 vertical-align: top;
1104 padding: $lineheight/4 0;
1106 text-overflow: ellipsis;
1117 #browse_map .geolink {
1121 #browse_map .secondary-actions {
1122 margin-bottom: $lineheight/2;
1125 /* Rules for the trace list shown by the traces tab etc */
1128 font-size: $lineheight/2;
1145 .trace_identifiable {
1158 /* Rules for the user profile page */
1163 .userinformation-inner {
1178 .admin-user-info small {
1179 margin-bottom: $lineheight/2;
1181 margin-right: $lineheight;
1186 border-bottom: 1px solid #ccc;
1187 padding-bottom: $lineheight;
1190 margin-bottom: $lineheight/2;
1195 margin-top: $lineheight;
1199 .activity-details p {
1204 #friends-container .contact-activity ul {
1209 p#no_home_location {
1210 margin: $lineheight;
1213 margin-top: $lineheight/4;
1218 /* Rules for the user map */
1220 .content_map .leaflet-popup-content {
1221 margin: $lineheight/2;
1225 /* Rules for user popups on maps */
1231 margin-top: 0 0 0 60px;
1234 img.user_thumbnail {
1236 margin: 0 $lineheight/2 0 0;
1240 /* Rules for the user list */
1243 font-size: $lineheight/2;
1247 vertical-align: middle;
1256 #user_list_actions {
1258 margin-top: $lineheight/2;
1261 /* Rules for the diary list page */
1263 .diary_entry-list img.user_thumbnail {
1270 margin-top: $lineheight/2;
1271 padding-top: $lineheight;
1272 border-top: 1px solid #ccc;
1287 ul.secondary-actions { display: inline-block;}
1290 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1294 #content .post_heading {
1295 margin-bottom: $lineheight;
1298 margin-bottom: $lineheight/2;
1303 /* Rules for the diary entry page */
1310 border: 1px solid #ccc;
1312 margin-bottom: $lineheight;
1315 border-top: 1px solid #ccc;
1316 padding-top: $lineheight;
1317 margin-top: $lineheight/2;
1323 margin-top: $lineheight/2;
1324 border-top: 1px dashed #ccc;
1325 padding-top: $lineheight/2;
1327 margin-top: $lineheight;
1328 padding-top: $lineheight;
1329 border-top: 1px solid #ccc;
1332 margin-bottom: $lineheight/2;
1341 .diary_entry-view img.user_thumbnail {
1345 /* Rules for the login page */
1347 #login_openid_buttons {
1351 #login_openid_buttons li {
1353 padding: $lineheight/4 $lineheight/2;
1356 /* Rules for the account confirmation page */
1360 border: 1px solid #ccc;
1361 padding: $lineheight;
1362 margin-bottom: $lineheight;
1376 margin: $lineheight auto inherit auto;
1381 input[type=submit] {
1387 background: darken($grey, $hovercolor);
1392 margin-bottom: $lineheight;
1394 #contributorGuidance {
1395 background-color: $offwhite;
1397 -moz-border-radius: 4px;
1404 /* Rules for the account settings page */
1406 #accountForm .user_map {
1410 border: 1px solid #ccc;
1413 #accountForm .user_image {
1417 #accountForm #user_image {
1421 #accountForm ul.accountImage-options {
1434 display: inline !important;
1437 .content_map.settings_map {
1442 /* Rules for the oauth settings page */
1444 .oauth_clients .buttons .oauth-edit {
1445 border-radius: 2px 0 0 2px;
1448 .oauth_clients .buttons .oauth-delete {
1449 border-radius: 0 2px 2px 0;
1452 /* Rules for messages pages */
1456 border: 1px solid #ddd;
1458 input[type="submit"] {
1462 border-top: 1px solid #ccc;
1466 background: #f8f8ff;
1479 padding: $lineheight/4;
1490 border-right: 1px solid $keyline;
1494 .inbox-row .inbox-mark-read {
1499 margin-bottom: $lineheight;
1500 padding: $lineheight/4 0px 4px 0px;
1501 border-bottom: 1px solid #ccc;
1508 .info-line .user_thumbnail_tiny {
1509 vertical-align: middle;
1518 .inbox-row-unread .inbox-mark-unread {
1522 .message-read .message-buttons {
1523 margin-top: $lineheight;
1524 padding-top: $lineheight;
1525 border-top: 1px solid $keyline;
1528 .message-read .buttons .mark-unread-button {
1532 /* Rules for "flash" notice boxes shown at the top of the content area */
1535 padding: $lineheight;
1537 background-color: #ff7070;
1540 background-color: #ffe0cc;
1543 background-color: #CBEEA7;
1547 /* Rules for highlighting fields with rails validation errors */
1549 .field_with_errors {
1551 background-color: #ff7070;
1555 /* Rules for rails validation error boxes */
1559 border: 2px solid #ff7070;
1560 padding: 0 $lineheight/2;
1561 margin-bottom: $lineheight;
1562 background-color: #f0f0f0;
1565 margin: 0 -10px 10px -10px;
1566 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1569 background-color: #c00;
1577 padding: $lineheight/4;
1581 padding-left: $lineheight;
1590 /* Rules for forms */
1594 margin-bottom: $lineheight;
1596 label.standard-label {
1598 margin-bottom: $lineheight/4;
1599 font-size: $typeheight;
1603 label.standard-label.secondary {
1604 display: inline-block;
1605 font-weight: normal;
1608 font-weight: normal;
1615 margin-top: $lineheight;
1616 padding-top: $lineheight;
1617 border-top: 1px solid $keyline;
1620 margin-bottom: $lineheight/2;
1628 input[type="checkbox"],
1629 input[type="radio"] {
1635 #remember_me_openid {
1639 input[type="checkbox"],
1640 input[type="radio"] {
1645 input[type="email"],
1647 input[type="password"],
1649 border: 1px solid #ccc;
1658 height: 100% !important;
1661 /* Rules for user images */
1666 border: 1px solid #ccc;
1667 margin-bottom: $lineheight;
1669 margin-right: $lineheight;
1672 img.user_thumbnail {
1675 border: 1px solid #ccc;
1676 margin-right: $lineheight;
1679 img.user_thumbnail_tiny {
1682 border: 1px solid #ccc;
1685 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1688 white-space: nowrap;
1691 /* Rules for geo microformats */
1694 border-bottom: none;
1697 /* Rules for RSS buttons */
1704 /* General styles for action lists / subnavs / pager navs */
1706 ul.secondary-actions {
1711 display: inline-block;
1718 border-left: 1px solid #ccc;
1719 padding-left: $lineheight/4;
1720 margin-right: $lineheight/4;
1731 /* Utility for managing inner content areas */
1733 .inner22 { padding: $lineheight;}
1735 .inner12 { padding: $lineheight/2 $lineheight;}
1737 .inner11 { padding: $lineheight/2;}
1739 .inner02 { padding: 0 $lineheight;}
1741 /* Utility for general button styles */
1743 input[type="button"],
1744 input[type="submit"],
1745 input[type="reset"],
1749 display: inline-block;
1751 padding: $lineheight/4 $lineheight/2;
1753 margin: 0 0 $lineheight/2 0;
1758 -moz-border-radius: 2px;
1760 background: darken($blue, $hovercolor);
1761 text-decoration: none;
1764 background: $lightblue;
1766 background: darken($lightblue, $hovercolor);
1770 background: $lightblue;
1779 input[type="submit"],
1780 input[type="button"],
1781 input[type="reset"],
1783 box-sizing: border-box;
1789 border-right:1px solid white;
1792 .button:first-child {
1793 border-radius:2px 0 0 2px;
1796 .button:last-child {
1797 border-radius:0 2px 2px 0;
1798 border-right-width: 0;
1802 *[value="Hide"] + input:last-child,
1803 *[value="Hide"] + .button:last-child {
1805 border-right-width: 0;
1807 /* if a 3-button set has a hidden middle button */
1808 *[value="Hide"] + input:nth-child(3),
1809 *[value="Hide"] + .button:nth-child(3) {
1810 border-radius:0 2px 2px 0;
1811 border-right-width: 0;
1813 /* if a 3-button set starts with a hidden button */
1814 *[value="Hide"] + input:nth-child(2):not(:last-child),
1815 *[value="Hide"] + .button:nth-child(2):not(:last-child) {
1816 border-radius:2px 0 0 2px;
1817 border-right-width: 1px solid white;
1821 /* Rules for doing distinct colour of alternate table rows */
1825 background: $offwhite;
1833 /* Rules for OpenID logo */
1836 vertical-align: text-bottom;
1840 /* Rules for rich text */
1845 padding-bottom: $lineheight/2;
1846 border-bottom: 1px dashed #cccccc;
1847 margin-bottom: $lineheight/2;
1859 font-size: $typeheight;
1864 background: #e8e8e8;
1870 background: #e8e8e8;
1879 padding: $lineheight;
1880 background-color: $offwhite;
1887 border-left: $lineheight solid $offwhite;
1888 padding-left: $lineheight;
1895 padding-left: $lineheight;
1896 margin-bottom: $lineheight;
1897 margin-left: $lineheight;
1905 list-style: decimal;
1909 .diary_post .richtext {
1910 margin-top: $lineheight;
1913 .comments .richtext {
1918 /* Rules for rich text editors */
1920 .richtext_container {
1921 margin-bottom: $lineheight;
1925 display: inline-block;
1926 vertical-align: top;
1929 display: inline-block;
1930 padding: $lineheight;
1931 background-color: $offwhite;
1935 background-image: image-url("loading.gif");
1936 background-repeat: no-repeat;
1937 background-position: center;
1947 display: inline-block;
1948 vertical-align: top;
1950 background-color: #f8f8ff;
1951 padding: $lineheight/2;
1959 border-bottom: 1px solid #ccc;
1960 margin-bottom: $lineheight/4;
1961 padding-bottom: $lineheight/4;
1964 li h4, li span, li p {
1965 display: inline-block;
1966 vertical-align: top;
1977 margin-left: $lineheight/2;
1978 margin-bottom: $lineheight/4;
1979 white-space: nowrap;
1984 /* Rules for the user notes list */
1988 background-color: #eeeeee;
2000 /* Rules for the notes interface */
2002 .leaflet-popup-content .note {
2003 padding-top: $lineheight/2;
2006 .leaflet-popup-content .note {
2008 margin-bottom: $lineheight/2;
2012 margin-top: $lineheight/2;
2018 left: $lineheight/4;
2021 background: image-url("sprite.png") 0 -45px no-repeat;
2026 padding-left: $lineheight;
2029 .permalink:hover span {
2035 background-color: #ffe0cc;
2037 margin-bottom: $lineheight/2;
2056 margin-top: $lineheight/4;
2062 * Rules for the iD editor
2069 /* Rules for rotating sidebar ads */
2075 border-bottom: 1px solid #ccc;