5 /* Styles common to large and small screens */
7 /* Minimal CSS reset */
9 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p {
16 fieldset,img { border: 0; }
18 legend { color: #000; }
20 sup { vertical-align: text-top; }
22 sub { vertical-align: text-bottom; }
25 border-collapse: collapse;
29 li { list-style: none; }
34 body { font: $typeheight/$lineheight "Helvetica Neue",Arial,sans-serif; }
37 border-bottom: .1em dotted;
41 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
53 /* Default rules for the body of every page */
56 -moz-box-sizing: border-box;
57 -webkit-box-sizing: border-box;
58 box-sizing: border-box;
62 font-family: 'Helvetica Neue',Arial,sans-serif;
63 font-size: $typeheight;
66 background-color: #fff;
73 background-color: #f0f0f0;
77 margin-top: $lineheight/2;
78 margin-bottom: $lineheight;
93 margin-top: $lineheight/2;
94 margin-bottom: $lineheight;
98 font-size: $typeheight;
99 margin-top: $lineheight/2;
100 margin-bottom: $lineheight/2;
106 margin-bottom: $lineheight;
129 margin-bottom: $lineheight/2;
133 vertical-align: middle;
134 margin-right: $lineheight/4;
137 /* Rules for links */
141 text-decoration: none;
143 text-decoration: underline;
147 /* Rules for horizontal lines */
151 background-color: #ccc;
156 /* General styles for tables */
160 margin-bottom: $lineheight;
163 padding: $lineheight/4;
164 line-height: $lineheight;
171 vertical-align: middle;
175 /* Rules for the whole left sidebar, including the logo */
184 border-right: 1px solid #ccc;
187 /* Rules for the OpenStreetMap logo in the top left corner */
193 padding: $lineheight $lineheight/4;
206 font-size: $lineheight/2;
211 /* Rules for the site name */
217 /* Rules for the introductory text displayed in the left sidebar to new users */
220 padding: $lineheight/4 $lineheight/2;
222 margin: $lineheight/4 0;
225 .sidebar-copy.intro {
226 border-top: 1px solid #ccc;
230 * Rules for alert boxes shown in the left sidebar when important
231 * information needs to be conveyed such as when the site is
232 * undergoing maintenance.
236 padding: $lineheight/4;
237 border-top: 1px solid #ccc;
244 margin: $lineheight/4;
249 * Rules for notice boxes shown in the left sidebar when important, but
250 * non-critical information needs to be conveyed such as notices about
255 padding: $lineheight/4;
256 border-top: 1px solid #ccc;
262 margin: $lineheight/4;
266 /* Rules for the menu displayed in the left sidebar */
271 padding: $lineheight/4 $lineheight/2;
274 list-style-type: none;
275 border-bottom: 1px solid #ccc;
276 border-top: 1px solid #ccc;
278 margin: $lineheight/2 0px;
287 list-style-type: none;
293 padding: $lineheight/4 0 $lineheight/4 0;
303 /* Rules for SOTM advert */
307 margin: $lineheight/2;
317 * Rules for "optional boxes" which appear in the left sidebar on
318 * certain pages. Current users are the seach box on the main page
319 * and the tag cloud on the traces pages.
324 padding: $lineheight/4 $lineheight/2;
325 margin: $lineheight/4 0;
329 /* Rules for the search box */
341 font-size: $typeheight;
344 padding: 2px 0px 2px $lineheight/4;
345 box-shadow: inset #DDD 0px 1px 3px;
348 input[type="text"]:focus {
350 border: 1px solid #000;
353 input[type="submit"] {
359 text-indent: -1000px;
361 background: image-url("sprite.png") 0 0 no-repeat;
364 right: $lineheight/4;
370 margin: $lineheight/4 0 0 0;
373 /* Utility for de-emphasizing content */
382 /* Rules for donation request box */
387 padding: $lineheight/4;
388 border: 1px solid #AED1A0;
390 font-size: $typeheight;
395 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
399 text-decoration: none;
404 background: image-url("sprite.png") 0 -29px no-repeat;
408 /* Rules for Creative Commons logo button */
411 margin: $lineheight/2 0;
415 /* Rules for tabbed navigation bar */
421 border-bottom: 1px solid #ccc;
427 .site-index #top-bar,
428 .site-export #top-bar {
441 a, a:link, a:visited {
444 padding: 3px $lineheight/2;
445 text-decoration: none;
449 -webkit-transition: color 200ms ease-in;
450 -moz-transition: color 200ms ease-in;
451 -o-transition: color 200ms ease-in;
452 transition: color 200ms ease-in;
456 .site-index #tabnav a#viewanchor,
457 .site-edit #tabnav a#editanchor,
458 .changeset-list #tabnav a#historyanchor,
459 .site-export #tabnav a#exportanchor {
460 border-bottom: 1px solid #aaa;
465 #tabnav a:link:hover, #tabnav a:visited:hover {
466 text-decoration: underline;
469 #tabnav a:link.disabled,
470 #tabnav a:visited.disabled,
471 #tabnav a:link:hover.disabled,
472 #tabnav a:visited:hover.disabled {
476 text-decoration: none;
480 /* Utility for styling notification numbers */
483 padding: 2px $lineheight/4;
491 /* Rules for greeting bar in the top right corner */
496 margin-right: $lineheight/4;
499 .greeting-bar-unread {
503 /* Rules for the message shown in place of the map when javascript is disabled */
512 /* Rules for Leaflet maps */
514 .leaflet-control-attribution {
518 text-decoration: none;
521 ul.secondary-actions {
523 margin-right: $lineheight/4;
531 .site-index .leaflet-top,
532 .site-export .leaflet-top {
533 top: $lineheight/2 !important;
535 margin-top: 0px !important;
539 .site-index #map .olControlScaleLine,
540 .site-export #map .olControlScaleLine {
541 left: $lineheight/2 !important;
544 .leaflet-popup-scrolled {
545 padding-right: $lineheight;
546 border-bottom: 0px !important;
547 border-top: 0px !important;
550 .leaflet-popup-content-wrapper {
551 border-radius: 4px !important;
552 -webkit-border-radius: 4px !important;
555 /* Rules for edit menu */
558 padding: 0 $lineheight/4;
560 display: inline-block;
562 text-decoration: none !important;
570 background-color: #ffffff;
571 border: 1px solid #cccccc;
577 padding: 2px $lineheight/4;
578 border-top: 1px solid #eee;
583 /* Rules for attribution text under the main map shown on printouts */
589 .attribution_license,
590 .attribution_project {
594 .attribution_notice {
598 /* Rules for the popout map sidebar */
607 border-right: 1px solid #ccc;
611 padding: $lineheight/2 $lineheight;
614 border-bottom: 1px solid #ccc;
622 margin-bottom: $lineheight/4;
644 padding: 0 $lineheight $lineheight/2 $lineheight;
645 margin-top: $lineheight/2;
647 border-bottom: 1px solid #ddd;
651 /* Rules for the map key which appears in the popout sidebar */
654 padding: $lineheight;
655 .mapkey-table-key img {
661 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
665 /* Rules for search results which appear in the popout sidebar */
668 margin-top: $lineheight/4;
669 margin-bottom: $lineheight/4;
672 .search_results_entry {
681 .search_results_entry .search_searching {
683 margin: $lineheight auto;
688 ul.results-list li { border-bottom: 1px solid #ccc; }
690 .search_results_error {
694 /* Rules for data browser information which appears in the popout sidebar */
698 .browse_show_list.button {
723 /* Rules for export information which appears in the popout sidebar */
729 .export_area_inputs {
730 margin-bottom: $lineheight/2;
734 margin: $lineheight/4;
737 .export_details input[type="text"]#export_html_text {
741 #sidebar #marker_inputs li:last-child {
742 margin-bottom: $lineheight/2;
756 /* Rules for the main content area */
759 padding: $lineheight;
764 .site-index #content,
765 .site-export #content {
768 top: 30px; bottom: 0;
769 left: 184px; right: 0;
770 border-left: 1px solid #ccc;
775 border-left: 1px solid #ccc;
779 .site-edit #content {
796 #slim_container_content {
798 background-color: #FFFFFF;
799 margin: $lineheight/2 auto;
802 -moz-border-radius: 25px;
803 border: 1px solid #e6e6e6;
807 margin: $lineheight/2;
817 margin: 30px $lineheight/2;
820 margin-right: $lineheight/4;
822 vertical-align: middle;
823 margin-bottom: $lineheight/4;
824 margin-right: $lineheight/4;
830 padding: $lineheight;
833 margin-bottom: $lineheight/2;
840 margin-top: $lineheight/2;
845 /* Rules for small maps in content areas */
851 border: 1px solid #ccc;
852 margin-bottom: $lineheight;
856 .content_map #small_map {
859 margin-bottom: $lineheight;
862 /* Rules for the home page */
873 /* Rules for the edit page */
884 /* Rules for the changeset list shown by the history tab etc */
889 padding: $lineheight/2 0;
891 border-top: 1px solid #ccc;
893 border-bottom: 1px solid #ccc;
901 border-left: 1px solid #ccc;
902 padding-left: $lineheight/4;
903 margin-right: $lineheight/4;
907 #changeset_list_map_wrapper {
915 #changeset_list_map_wrapper.scrolled {
919 #changeset_list_map {
925 border: 1px solid #ccc;
928 #changeset_list_map_wrapper.scrolled #changeset_list_map {
932 /* Rules for the data browser */
935 border-top: 1px solid #ccc;
936 margin-top: $lineheight/2;
937 padding-top: $lineheight/2;
942 background-color: #ffe0cc;
948 margin-bottom: $lineheight/4;
951 display: inline-block;
961 display: inline-block;
970 padding: $lineheight/4 0;
972 text-overflow: ellipsis;
983 #browse_map .geolink {
987 #browse_map .secondary-actions {
988 margin-bottom: $lineheight/2;
991 /* Rules for the trace list shown by the traces tab etc */
994 font-size: $lineheight/2;
1011 .trace_identifiable {
1024 /* Rules for the user profile page */
1028 .userinformation-inner {
1043 .admin-user-info small {
1044 margin-bottom: $lineheight/2;
1046 margin-right: $lineheight;
1051 border-bottom: 1px solid #ccc;
1052 padding-bottom: $lineheight;
1055 margin-bottom: $lineheight/2;
1060 margin-top: $lineheight;
1064 .activity-details p {
1069 #friends-container .contact-activity ul {
1074 p#no_home_location {
1075 margin: $lineheight;
1078 margin-top: $lineheight/4;
1083 /* Rules for the user map */
1085 .content_map .leaflet-popup-content {
1086 margin: $lineheight/2;
1090 /* Rules for user popups on maps */
1097 padding-bottom: 5px;
1104 img.user_thumbnail {
1106 margin: 0 $lineheight/2 0 0;
1110 /* Rules for the user list */
1113 font-size: $lineheight/2;
1117 vertical-align: middle;
1126 #user_list_actions {
1128 margin-top: $lineheight/2;
1131 /* Rules for the diary list page */
1133 .diary_entry-list img.user_thumbnail {
1140 margin-top: $lineheight/2;
1141 padding-top: $lineheight;
1142 border-top: 1px solid #ccc;
1157 ul.secondary-actions { display: inline-block;}
1160 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1164 #content .post_heading {
1165 margin-bottom: $lineheight;
1168 margin-bottom: $lineheight/2;
1173 /* Rules for the diary entry page */
1180 border: 1px solid #ccc;
1182 margin-bottom: $lineheight;
1185 border-top: 1px solid #ccc;
1186 padding-top: $lineheight;
1187 margin-top: $lineheight/2;
1193 margin-top: $lineheight/2;
1194 border-top: 1px dashed #ccc;
1195 padding-top: $lineheight/2;
1197 margin-top: $lineheight;
1198 padding-top: $lineheight;
1199 border-top: 1px solid #ccc;
1202 margin-bottom: $lineheight/2;
1211 .diary_entry-view img.user_thumbnail {
1215 /* Rules for the login page */
1217 #login_openid_buttons {
1221 #login_openid_buttons li {
1223 padding: $lineheight/4 $lineheight/2;
1226 /* Rules for the account confirmation page */
1230 border: 1px solid #ccc;
1231 padding: $lineheight;
1232 margin-bottom: $lineheight;
1246 margin: $lineheight auto inherit auto;
1251 input[type=submit] {
1262 margin-bottom: $lineheight;
1264 #contributorGuidance {
1265 background-color: #f4f4ff;
1267 -moz-border-radius: 4px;
1274 /* Rules for the account settings page */
1276 #accountForm .user_map {
1280 border: 1px solid #ccc;
1283 .accountImage-options {
1285 display: inline-block;
1297 display: inline !important;
1300 .content_map.settings_map {
1305 /* Rules for message in/out box page */
1309 border: 1px solid #ddd;
1312 border-top: 1px solid #ccc;
1316 background: #f8f8ff;
1329 padding: $lineheight/4;
1333 .inbox-row .inbox-mark-read {
1338 margin-bottom: $lineheight;
1339 padding: $lineheight/4 0px 4px 0px;
1340 border-bottom: 1px solid #ccc;
1347 .info-line .user_thumbnail_tiny {
1348 vertical-align: middle;
1351 .inbox-row-unread .inbox-mark-unread {
1355 /* Rules for "flash" notice boxes shown at the top of the content area */
1358 padding: $lineheight;
1360 background-color: #ff7070;
1363 background-color: #ffe0cc;
1366 background-color: #CBEEA7;
1370 /* Rules for highlighting fields with rails validation errors */
1372 .field_with_errors {
1374 background-color: #ff7070;
1378 /* Rules for rails validation error boxes */
1382 border: 2px solid #ff7070;
1383 padding: $lineheight/2;
1384 margin-bottom: $lineheight;
1385 background-color: #f0f0f0;
1388 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1391 background-color: #c00;
1399 padding: $lineheight/4;
1409 /* Rules for forms */
1413 margin-bottom: $lineheight;
1418 margin-right: $lineheight/2;
1419 font-size: $typeheight;
1424 margin-bottom: $lineheight/2;
1426 input[name=remember_me] {
1431 #remember_me_openid {
1436 input[type="email"],
1438 input[type="password"],
1440 border: 1px solid #ccc;
1443 /* Rules for user images */
1448 border: 1px solid #ccc;
1449 margin-bottom: $lineheight;
1451 margin-right: $lineheight;
1454 img.user_thumbnail {
1457 border: 1px solid #ccc;
1458 margin-right: $lineheight;
1461 img.user_thumbnail_tiny {
1464 border: 1px solid #ccc;
1467 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1470 white-space: nowrap;
1473 /* Rules for geo microformats */
1476 border-bottom: none;
1479 /* Rules for RSS buttons */
1486 /* General styles for action lists / subnavs / pager navs */
1488 ul.secondary-actions {
1493 display: inline-block;
1500 border-left: 1px solid #ccc;
1501 padding-left: $lineheight/4;
1502 margin-right: $lineheight/4;
1513 /* Utility for managing inner content areas */
1515 .inner22 { padding: $lineheight;}
1517 .inner12 { padding: $lineheight/2 $lineheight;}
1519 .inner02 { padding: 0 $lineheight;}
1521 /* Utility for general button styles */
1523 input[type="button"],
1524 input[type="submit"],
1525 input[type="reset"],
1530 padding: $lineheight/4;
1532 margin-bottom: $lineheight/2;
1534 background: #7092FF;
1537 -moz-border-radius: 2px;
1540 text-decoration: none;
1548 background-color: #cbeea7;
1550 background-color: #9ed485;
1554 /* Rules for doing distinct colour of alternate table rows */
1558 background: #F4F4FF;
1566 /* Rules for OpenID logo */
1569 vertical-align: text-bottom;
1573 /* Rules for rich text */
1577 padding-bottom: $lineheight/2;
1578 border-bottom: 1px dashed #cccccc;
1579 margin-bottom: $lineheight/2;
1591 font-size: $typeheight;
1596 background: #e8e8e8;
1602 background: #e8e8e8;
1611 padding: $lineheight;
1612 background-color: #f4f4ff;
1619 border-left: $lineheight solid #f4f4ff;
1620 padding-left: $lineheight;
1627 padding-left: $lineheight;
1628 margin-bottom: $lineheight;
1629 margin-left: $lineheight;
1637 list-style: decimal;
1641 .diary_post .richtext {
1642 margin-top: $lineheight;
1645 .comments .richtext {
1650 /* Rules for rich text editors */
1652 .richtext_container {
1654 display: inline-block;
1655 vertical-align: top;
1658 display: inline-block;
1659 padding: $lineheight;
1660 background-color: #f4f4ff;
1664 background-image: image-url("loading.gif");
1665 background-repeat: no-repeat;
1666 background-position: center;
1676 display: inline-block;
1677 vertical-align: top;
1679 background-color: #f8f8ff;
1680 padding: $lineheight/2;
1689 border-bottom: 1px solid #ccc;
1690 margin-bottom: $lineheight/4;
1691 padding-bottom: $lineheight/4;
1694 li h4, li span, li p {
1695 display: inline-block;
1696 vertical-align: top;
1707 margin-left: $lineheight/2;
1708 margin-bottom: $lineheight/4;
1709 white-space: nowrap;
1712 input.richtext_doedit,
1713 input.richtext_dopreview {
1714 margin-right: $lineheight/2;
1718 .buttons input[type="submit"] {
1719 display: inline-block;
1724 .buttons input:first-child {
1725 border-radius:2px 0 0 2px;
1728 .buttons input:last-child {
1729 border-radius:0 2px 2px 0;
1733 /* Rules for the user notes list */
1737 background-color: #eeeeee;
1749 /* Rules for the notes interface */
1752 padding-top: $lineheight/2;
1757 margin-bottom: $lineheight/2;
1761 margin-top: $lineheight/2;
1767 left: $lineheight/4;
1770 background: image-url("sprite.png") 0 -45px no-repeat;
1775 padding-left: $lineheight;
1778 .permalink:hover span {
1784 background-color: #ffe0cc;
1786 margin-bottom: $lineheight/2;
1805 margin-top: $lineheight/4;
1811 * Rules for the iD editor
1818 /* Rules for rotating sidebar ads */
1824 border-bottom: 1px solid #ccc;
1836 padding: $lineheight/2;