11 /* Styles common to large and small screens */
13 /* Minimal CSS reset */
15 html, body, ul, ol, li, form, fieldset, legend, h1, h2, h3, h4, h5, h6, p {
22 fieldset,img { border: 0; }
24 legend { color: #000; }
26 sup { vertical-align: text-top; }
28 sub { vertical-align: text-bottom; }
31 border-collapse: collapse;
35 li { list-style: none; }
40 body { font: #{$typeheight}/#{$lineheight} "Helvetica Neue",Arial,sans-serif; }
43 border-bottom: .1em dotted;
47 /* Micro Clearfix | Details: http://nicolasgallagher.com/micro-clearfix-hack/ */
59 /* Default rules for the body of every page */
62 -moz-box-sizing: border-box;
63 -webkit-box-sizing: border-box;
64 box-sizing: border-box;
68 font-family: 'Helvetica Neue',Arial,sans-serif;
69 font-size: $typeheight;
72 background-color: #fff;
79 background-color: #f0f0f0;
83 margin-top: $lineheight/2;
84 margin-bottom: $lineheight;
99 margin-top: $lineheight/2;
100 margin-bottom: $lineheight;
104 font-size: $typeheight;
105 margin-top: $lineheight/2;
106 margin-bottom: $lineheight/2;
112 margin-bottom: $lineheight;
135 margin-bottom: $lineheight/2;
139 vertical-align: middle;
140 margin-right: $lineheight/4;
143 /* Rules for links */
147 text-decoration: none;
149 text-decoration: underline;
153 /* Rules for horizontal lines */
157 background-color: #ccc;
162 /* General styles for tables */
166 margin-bottom: $lineheight;
169 padding: $lineheight/4;
170 line-height: $lineheight;
177 vertical-align: middle;
181 /* Rules for the whole left sidebar, including the logo */
190 border-right: 1px solid #ccc;
193 /* Rules for the OpenStreetMap logo in the top left corner */
199 padding: $lineheight $lineheight/4;
212 font-size: $lineheight/2;
217 /* Rules for the site name */
223 /* Rules for the introductory text displayed in the left sidebar to new users */
226 padding: $lineheight/4 $lineheight/2;
228 margin: $lineheight/4 0;
231 .sidebar-copy.intro {
232 border-top: 1px solid #ccc;
236 * Rules for alert boxes shown in the left sidebar when important
237 * information needs to be conveyed such as when the site is
238 * undergoing maintenance.
242 padding: $lineheight/4;
243 border-top: 1px solid #ccc;
250 margin: $lineheight/4;
255 * Rules for notice boxes shown in the left sidebar when important, but
256 * non-critical information needs to be conveyed such as notices about
261 padding: $lineheight/4;
262 border-top: 1px solid #ccc;
268 margin: $lineheight/4;
272 /* Rules for the menu displayed in the left sidebar */
277 padding: $lineheight/4 $lineheight/2;
280 list-style-type: none;
281 border-bottom: 1px solid #ccc;
282 border-top: 1px solid #ccc;
284 margin: $lineheight/2 0px;
293 list-style-type: none;
299 padding: $lineheight/4 0 $lineheight/4 0;
309 /* Rules for SOTM advert */
313 margin: $lineheight/2;
323 * Rules for "optional boxes" which appear in the left sidebar on
324 * certain pages. Current users are the seach box on the main page
325 * and the tag cloud on the traces pages.
330 padding: $lineheight/4 $lineheight/2;
331 margin: $lineheight/4 0;
335 /* Rules for the search box */
347 font-size: $typeheight;
350 padding: 2px 0px 2px $lineheight/4;
351 box-shadow: inset #DDD 0px 1px 3px;
354 input[type="text"]:focus {
356 border: 1px solid #000;
359 input[type="submit"] {
365 text-indent: -1000px;
367 background: image-url("sprite.png") 0 0 no-repeat;
370 right: $lineheight/4;
376 margin: $lineheight/4 0 0 0;
379 /* Utility for de-emphasizing content */
388 /* Rules for donation request box */
393 padding: $lineheight/4;
394 border: 1px solid #AED1A0;
396 font-size: $typeheight;
401 margin: $lineheight/2 $lineheight/2 0px $lineheight/2;
405 text-decoration: none;
410 background: image-url("sprite.png") 0 -29px no-repeat;
414 /* Rules for Creative Commons logo button */
417 margin: $lineheight/2 0;
421 /* Rules for tabbed navigation bar */
427 border-bottom: 1px solid #ccc;
433 .site-index #top-bar,
434 .site-export #top-bar {
447 a, a:link, a:visited {
450 padding: 3px $lineheight/2;
451 text-decoration: none;
455 -webkit-transition: color 200ms ease-in;
456 -moz-transition: color 200ms ease-in;
457 -o-transition: color 200ms ease-in;
458 transition: color 200ms ease-in;
462 .site-index #tabnav a#viewanchor,
463 .site-edit #tabnav a#editanchor,
464 .changeset-list #tabnav a#historyanchor,
465 .site-export #tabnav a#exportanchor {
466 border-bottom: 1px solid #aaa;
471 #tabnav a:link:hover, #tabnav a:visited:hover {
472 text-decoration: underline;
475 #tabnav a:link.disabled,
476 #tabnav a:visited.disabled,
477 #tabnav a:link:hover.disabled,
478 #tabnav a:visited:hover.disabled {
482 text-decoration: none;
486 /* Utility for styling notification numbers */
489 padding: 2px $lineheight/4;
497 /* Rules for greeting bar in the top right corner */
502 margin-right: $lineheight/4;
505 .greeting-bar-unread {
509 /* Rules for the message shown in place of the map when javascript is disabled */
518 /* Rules for Leaflet maps */
520 .leaflet-control-attribution {
524 text-decoration: none;
527 ul.secondary-actions {
529 margin-right: $lineheight/4;
537 .site-index .leaflet-top,
538 .site-export .leaflet-top {
539 top: $lineheight/2 !important;
541 margin-top: 0px !important;
545 .site-index #map .olControlScaleLine,
546 .site-export #map .olControlScaleLine {
547 left: $lineheight/2 !important;
550 .leaflet-popup-scrolled {
551 padding-right: $lineheight;
552 border-bottom: 0px !important;
553 border-top: 0px !important;
556 .leaflet-popup-content-wrapper {
557 border-radius: 4px !important;
558 -webkit-border-radius: 4px !important;
561 /* Rules for edit menu */
564 padding: 0 $lineheight/4;
566 display: inline-block;
568 text-decoration: none !important;
576 background-color: #ffffff;
577 border: 1px solid $keyline;
583 padding: 2px $lineheight/4;
584 border-top: 1px solid #eee;
589 /* Rules for attribution text under the main map shown on printouts */
595 .attribution_license,
596 .attribution_project {
600 .attribution_notice {
604 /* Rules for the popout map sidebar */
613 border-right: 1px solid $keyline;
617 padding: $lineheight/2 $lineheight;
619 background: $offwhite;
620 border-bottom: 1px solid #ccc;
628 border-bottom: 1px solid #ccc;
631 margin-bottom: $lineheight/4;
653 padding: 0 $lineheight $lineheight/2 $lineheight;
654 margin-top: $lineheight/2;
656 border-bottom: 1px solid #ddd;
660 /* Rules for the map key which appears in the popout sidebar */
663 padding: $lineheight $lineheight 0 $lineheight;
664 .mapkey-table-key img {
670 padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
674 /* Rules for search results which appear in the popout sidebar */
677 margin-top: $lineheight/4;
678 margin-bottom: $lineheight/4;
681 .search_results_entry {
690 .search_results_entry .search_searching {
692 margin: $lineheight auto;
697 ul.results-list li { border-bottom: 1px solid #ccc; }
699 .search_results_error {
703 /* Rules for data browser information which appears in the popout sidebar */
707 .browse_show_list.button {
732 /* Rules for export information which appears in the popout sidebar */
738 .export_area_inputs {
739 margin-bottom: $lineheight/2;
743 margin: $lineheight/4;
746 .export_details input[type="text"]#export_html_text {
750 #sidebar #marker_inputs li:last-child {
751 margin-bottom: $lineheight/2;
760 /* Rules for the main content area */
763 padding: $lineheight;
768 .site-index #content,
769 .site-export #content {
772 top: 30px; bottom: 0;
773 left: 184px; right: 0;
774 border-left: 1px solid #ccc;
779 border-left: 1px solid #ccc;
783 .site-edit #content {
800 #slim_container_content {
802 background-color: #FFFFFF;
803 margin: $lineheight/2 auto;
806 -moz-border-radius: 25px;
807 border: 1px solid #e6e6e6;
811 margin: $lineheight/2;
821 margin: 30px $lineheight/2;
824 margin-right: $lineheight/4;
826 vertical-align: middle;
827 margin-bottom: $lineheight/4;
828 margin-right: $lineheight/4;
834 padding: $lineheight;
835 background: $offwhite;
837 margin-bottom: $lineheight/2;
844 margin-top: $lineheight/2;
849 /* Rules for small maps in content areas */
855 border: 1px solid #ccc;
856 margin-bottom: $lineheight;
860 .content_map #small_map {
863 margin-bottom: $lineheight;
866 /* Rules for the home page */
877 /* Rules for the edit page */
888 /* Rules for the changeset list shown by the history tab etc */
893 padding: $lineheight/2 0;
895 border-top: 1px solid #ccc;
897 border-bottom: 1px solid #ccc;
905 border-left: 1px solid #ccc;
906 padding-left: $lineheight/4;
907 margin-right: $lineheight/4;
911 #changeset_list_map_wrapper {
919 #changeset_list_map_wrapper.scrolled {
923 #changeset_list_map {
929 border: 1px solid #ccc;
932 #changeset_list_map_wrapper.scrolled #changeset_list_map {
936 /* Rules for the data browser */
939 border-top: 1px solid #ccc;
940 margin-top: $lineheight/2;
941 padding-top: $lineheight/2;
946 background-color: #ffe0cc;
952 margin-bottom: $lineheight/4;
955 display: inline-block;
965 display: inline-block;
974 padding: $lineheight/4 0;
976 text-overflow: ellipsis;
987 #browse_map .geolink {
991 #browse_map .secondary-actions {
992 margin-bottom: $lineheight/2;
995 /* Rules for the trace list shown by the traces tab etc */
998 font-size: $lineheight/2;
1015 .trace_identifiable {
1028 /* Rules for the user profile page */
1032 .userinformation-inner {
1047 .admin-user-info small {
1048 margin-bottom: $lineheight/2;
1050 margin-right: $lineheight;
1055 border-bottom: 1px solid #ccc;
1056 padding-bottom: $lineheight;
1059 margin-bottom: $lineheight/2;
1064 margin-top: $lineheight;
1068 .activity-details p {
1073 #friends-container .contact-activity ul {
1078 p#no_home_location {
1079 margin: $lineheight;
1082 margin-top: $lineheight/4;
1087 /* Rules for the user map */
1089 .content_map .leaflet-popup-content {
1090 margin: $lineheight/2;
1094 /* Rules for user popups on maps */
1101 padding-bottom: 5px;
1108 img.user_thumbnail {
1110 margin: 0 $lineheight/2 0 0;
1114 /* Rules for the user list */
1117 font-size: $lineheight/2;
1121 vertical-align: middle;
1130 #user_list_actions {
1132 margin-top: $lineheight/2;
1135 /* Rules for the diary list page */
1137 .diary_entry-list img.user_thumbnail {
1144 margin-top: $lineheight/2;
1145 padding-top: $lineheight;
1146 border-top: 1px solid #ccc;
1161 ul.secondary-actions { display: inline-block;}
1164 .content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
1168 #content .post_heading {
1169 margin-bottom: $lineheight;
1172 margin-bottom: $lineheight/2;
1177 /* Rules for the diary entry page */
1184 border: 1px solid #ccc;
1186 margin-bottom: $lineheight;
1189 border-top: 1px solid #ccc;
1190 padding-top: $lineheight;
1191 margin-top: $lineheight/2;
1197 margin-top: $lineheight/2;
1198 border-top: 1px dashed #ccc;
1199 padding-top: $lineheight/2;
1201 margin-top: $lineheight;
1202 padding-top: $lineheight;
1203 border-top: 1px solid #ccc;
1206 margin-bottom: $lineheight/2;
1215 .diary_entry-view img.user_thumbnail {
1219 /* Rules for the login page */
1221 #login_openid_buttons {
1225 #login_openid_buttons li {
1227 padding: $lineheight/4 $lineheight/2;
1230 /* Rules for the account confirmation page */
1234 border: 1px solid #ccc;
1235 padding: $lineheight;
1236 margin-bottom: $lineheight;
1250 margin: $lineheight auto inherit auto;
1255 input[type=submit] {
1261 background: darken($grey, $hovercolor);
1266 margin-bottom: $lineheight;
1268 #contributorGuidance {
1269 background-color: $offwhite;
1271 -moz-border-radius: 4px;
1278 /* Rules for the account settings page */
1280 #accountForm .user_map {
1284 border: 1px solid #ccc;
1287 .accountImage-options p {
1300 display: inline !important;
1303 .content_map.settings_map {
1308 /* Rules for message in/out box page */
1316 border: 1px solid #ddd;
1318 input[type="submit"] {
1322 border-top: 1px solid #ccc;
1326 background: #f8f8ff;
1339 padding: $lineheight/4;
1342 border-right: 1px solid $keyline;
1346 .inbox-row .inbox-mark-read {
1351 margin-bottom: $lineheight;
1352 padding: $lineheight/4 0px 4px 0px;
1353 border-bottom: 1px solid #ccc;
1360 .info-line .user_thumbnail_tiny {
1361 vertical-align: middle;
1364 .inbox-row-unread .inbox-mark-unread {
1368 /* Rules for "flash" notice boxes shown at the top of the content area */
1371 padding: $lineheight;
1373 background-color: #ff7070;
1376 background-color: #ffe0cc;
1379 background-color: #CBEEA7;
1383 /* Rules for highlighting fields with rails validation errors */
1385 .field_with_errors {
1387 background-color: #ff7070;
1391 /* Rules for rails validation error boxes */
1395 border: 2px solid #ff7070;
1396 padding: $lineheight/2;
1397 margin-bottom: $lineheight;
1398 background-color: #f0f0f0;
1401 padding: $lineheight/4 $lineheight/4 $lineheight/4 15px;
1404 background-color: #c00;
1412 padding: $lineheight/4;
1422 /* Rules for forms */
1426 margin-bottom: $lineheight/2;
1431 margin-bottom: $lineheight/4;
1432 font-size: $typeheight;
1437 margin-bottom: $lineheight/2;
1439 input[name=remember_me] {
1444 #remember_me_openid {
1449 input[type="email"],
1451 input[type="password"],
1453 border: 1px solid #ccc;
1457 /* Rules for user images */
1462 border: 1px solid #ccc;
1463 margin-bottom: $lineheight;
1465 margin-right: $lineheight;
1468 img.user_thumbnail {
1471 border: 1px solid #ccc;
1472 margin-right: $lineheight;
1475 img.user_thumbnail_tiny {
1478 border: 1px solid #ccc;
1481 /* Rule for "nowrap" class that can be applied to anything to stop wrapping */
1484 white-space: nowrap;
1487 /* Rules for geo microformats */
1490 border-bottom: none;
1493 /* Rules for RSS buttons */
1500 /* General styles for action lists / subnavs / pager navs */
1502 ul.secondary-actions {
1507 display: inline-block;
1514 border-left: 1px solid #ccc;
1515 padding-left: $lineheight/4;
1516 margin-right: $lineheight/4;
1527 /* Utility for managing inner content areas */
1529 .inner22 { padding: $lineheight;}
1531 .inner12 { padding: $lineheight/2 $lineheight;}
1533 .inner02 { padding: 0 $lineheight;}
1535 /* Utility for general button styles */
1537 input[type="button"],
1538 input[type="submit"],
1539 input[type="reset"],
1544 padding: $lineheight/4;
1546 margin: 0 0 $lineheight/2 0;
1551 -moz-border-radius: 2px;
1553 background: darken($blue, $hovercolor);
1554 text-decoration: none;
1562 background-color: #cbeea7;
1564 background-color: #9ed485;
1571 input[type="submit"],
1573 box-sizing: border-box;
1574 display: inline-block;
1580 .button:first-child {
1581 border-radius:2px 0 0 2px;
1582 border-right:1px solid white;
1585 .button:first-child {
1586 border-radius:0 2px 2px 0;
1590 /* Rules for doing distinct colour of alternate table rows */
1594 background: $offwhite;
1602 /* Rules for OpenID logo */
1605 vertical-align: text-bottom;
1609 /* Rules for rich text */
1613 padding-bottom: $lineheight/2;
1614 border-bottom: 1px dashed #cccccc;
1615 margin-bottom: $lineheight/2;
1627 font-size: $typeheight;
1632 background: #e8e8e8;
1638 background: #e8e8e8;
1647 padding: $lineheight;
1648 background-color: $offwhite;
1655 border-left: $lineheight solid $offwhite;
1656 padding-left: $lineheight;
1663 padding-left: $lineheight;
1664 margin-bottom: $lineheight;
1665 margin-left: $lineheight;
1673 list-style: decimal;
1677 .diary_post .richtext {
1678 margin-top: $lineheight;
1681 .comments .richtext {
1686 /* Rules for rich text editors */
1688 .richtext_container {
1690 display: inline-block;
1691 vertical-align: top;
1694 display: inline-block;
1695 padding: $lineheight;
1696 background-color: $offwhite;
1700 background-image: image-url("loading.gif");
1701 background-repeat: no-repeat;
1702 background-position: center;
1712 display: inline-block;
1713 vertical-align: top;
1715 background-color: #f8f8ff;
1716 padding: $lineheight/2;
1725 border-bottom: 1px solid #ccc;
1726 margin-bottom: $lineheight/4;
1727 padding-bottom: $lineheight/4;
1730 li h4, li span, li p {
1731 display: inline-block;
1732 vertical-align: top;
1743 margin-left: $lineheight/2;
1744 margin-bottom: $lineheight/4;
1745 white-space: nowrap;
1750 /* Rules for the user notes list */
1754 background-color: #eeeeee;
1766 /* Rules for the notes interface */
1769 padding-top: $lineheight/2;
1774 margin-bottom: $lineheight/2;
1778 margin-top: $lineheight/2;
1784 left: $lineheight/4;
1787 background: image-url("sprite.png") 0 -45px no-repeat;
1792 padding-left: $lineheight;
1795 .permalink:hover span {
1801 background-color: #ffe0cc;
1803 margin-bottom: $lineheight/2;
1822 margin-top: $lineheight/4;
1828 * Rules for the iD editor
1835 /* Rules for rotating sidebar ads */
1841 border-bottom: 1px solid #ccc;
1853 padding: $lineheight/2;