+.donate-attr { color: darken($green, 10%) !important; }
+
+/* Rules for the sidebar */
+
+.sidebar_heading {
+ position: relative;
+ padding: $lineheight/2 $lineheight;
+ // background: $offwhite;
+ // border-bottom: 1px solid #ccc;
+ > .close {
+ float: right;
+ margin-top: 2px;
+ cursor: pointer;
+ }
+}
+
+#sidebar_content {
+ position: absolute;
+ top: 50px;
+ bottom: 0;
+ width: 100%;
+ overflow-y: auto;
+
+ .loader,
+ .load_more {
+ text-align: center;
+ margin: $lineheight auto;
+ width: $lineheight;
+ display: block;
+ }
+}
+
+/* Rules for the search box */
+
+#search_form {
+ position: relative;
+ padding: $lineheight/2 $lineheight;
+ background-color: $lightgrey;
+
+ #query_wrapper {
+ position: relative;
+ overflow: hidden;
+ }
+
+ input {
+ width: 100%;
+ height: 30px;
+ border-right: none;
+ border-radius: 2px 0 0 2px;
+
+ transition: 300ms linear;
+ -webkit-transition: 300ms linear;
+ -moz-transition: 300ms linear;
+ }
+
+ input:focus {
+ outline: none;
+ box-shadow: 0px 0px 7px #9ED485;
+ }
+
+ input[type=submit] {
+ float: right;
+ width: auto;
+ min-width: 0;
+ border-radius: 0 2px 2px 0;
+ }
+
+ #describe_location {
+ position: absolute;
+ top: 6px;
+ right: 6px;
+ font-size: 10px;
+ color: $blue;
+ }
+}
+
+/* Rules for donation request box */
+
+a.donate {
+ display: block;
+ padding: $lineheight/4 $lineheight;
+ border: 1px solid $green;
+ font-size: $typeheight;
+ line-height: 1.4;
+ text-align: center;
+ border-radius: 2px;
+ color: #222;
+ margin: $lineheight/2 $lineheight;
+
+ &:hover {
+ background: $green;
+ text-decoration: none;
+ }
+}
+
+/* Rules for rotating sidebar ads */
+
+.ad-container {
+ display: block;
+ height: 120px;
+ margin: auto;
+ overflow: hidden;
+ position: relative;
+ border-bottom: 1px solid #ccc;
+
+ a {
+ display: block;
+ width: 165px;
+ margin: auto;
+ }
+
+ .ad {
+ height: 100px;
+ border: 0;
+ background: #fff;
+ }
+}
+
+/* Rules for the map key which appears in the popout sidebar */
+
+#mapkey {
+ .mapkey-table-key img {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ }
+ td {
+ padding: 0 $lineheight/4 $lineheight/4 $lineheight/4;
+ }
+}
+
+/* Rules for search results which appear in the popout sidebar */
+
+.search_results_entry {
+ ul li {
+ border-bottom: $keyline;
+ &:first-child { border-top: $keyline; }
+ }
+
+ .search_details {
+ display: block;
+ float: right;
+ text-align: right;
+ margin-top: 0.2em;
+ margin-left: 0.5em;
+ }
+}
+
+.search_results_error {
+ color: #f00;
+}
+
+/* Rules for data browser information which appears in the popout sidebar */
+
+#browse_content {
+ position: relative;
+ .browse_show_list.button {
+ position: absolute;
+ left: $lineheight;
+ right: $lineheight;
+ bottom: -40px;
+ margin-bottom: 0;
+ }
+ a.more-details {
+ position: absolute;
+ top: 0;
+ right: $lineheight;
+ }
+ ul li {
+ margin-bottom: 0;
+ }
+}
+
+/* Rules for entity history */
+#sidebar_content {
+ .browse_details {
+ position: relative;
+ border-bottom: $keyline;
+ }
+}
+
+.browse_status {
+ display: none;
+}
+
+/* Rules for the changeset list shown by the history tab */
+
+#sidebar .changesets {
+ li {
+ padding: $lineheight;
+ border-bottom: $keyline;
+ cursor: pointer;
+
+ &.selected { background: #FFFFE6; }
+ /* color is derived from changeset bbox fillColor in history.js */
+ }
+
+ .comment a {
+ font-weight: 500;
+ color: #000;
+ }
+}
+
+/* Rules for the data browser */
+
+#sidebar_content {
+ .browse-section {
+ padding: 10px 20px;
+
+ h4 {
+ padding: 0;
+ }
+ }
+
+ .paginate ul, .note-comments ul {
+ padding-left: 20px;
+ }
+
+ .browse-field {
+ margin-bottom: 10px;
+
+ h4 {
+ padding: 5px 0 5px 10px;
+ font-size: 12px;
+ border: 1px solid #CCC;
+ border-radius: 4px 4px 0 0;
+ background-color: #F6F6F6;
+ }
+
+ p {
+ padding: 7px 10px;
+ font-size: 12px;
+ background-color: #FFF;
+ border: 1px solid #CCC;
+ border-top: 0;
+ border-radius: 0 0 4px 4px;
+ }
+ }
+
+ .browse-tag-list {
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #ddd;
+ font-size: 12px;
+ margin-left: -$lineheight;
+ margin-right: -$lineheight;
+
+ li {
+ border-bottom: 1px solid #ddd;
+ }
+
+ li:last-child {
+ border-bottom: 0;
+ }
+
+ .browse-tag-k,
+ .browse-tag-v {
+ display: inline-block;
+ width: 50%;
+ height: 30px;
+ float: left;
+ padding: 6px 10px 6px $lineheight;
+ }
+
+ .browse-tag-k {
+ font-weight: 500;
+ background-color: #F6F6F6;
+ }
+
+ .browse-tag-v {
+ border-left: 1px solid #ddd;
+ }
+ }
+}
+
+/* Rules for export information which appears in the popout sidebar */
+
+.export_bounds {
+ text-align: center;
+}
+
+.export_area_inputs {
+ margin-bottom: $lineheight/2;
+ input[type="text"] {
+ width: 80px;
+ margin-bottom: 5px;
+ }
+}
+
+.export_bound {
+ margin: $lineheight/4;
+}
+
+#export_osm {
+ span.small-title {
+ font-weight: 500;
+ display: block;
+ font-size: 14px;
+ padding-bottom: 5px;
+ }
+
+ dl {
+ padding-left: 30px;
+ font-size: 13px;
+ color: #666;
+ dd {
+ margin-left: 0;
+ margin-bottom: 10px;
+ }
+ }
+}
+
+/* Rules for edit pages */
+
+.site-edit {
+ #content {
+ position: absolute;
+ top: $headerHeight;
+ bottom: 0;
+ width: 100%;
+ }
+
+ #map {
+ height: 100%;
+ }
+}
+
+/* Rules for non-map content pages */
+
+.content-heading {
+ background: $lightgrey;
+
+ h1 { font-size: 22px; }
+}
+
+.content-body {
+ h1, h2, h3, p {
+ margin-bottom: $lineheight;
+ }
+
+ h1, h2, h3 {
+ margin-top: $lineheight/2;
+ }
+}
+
+.content-inner {
+ position: relative;
+ max-width: 900px;
+ margin: auto;
+ padding: $lineheight;
+}
+
+/* Overrides for pages that use new layout conventions */
+
+.user-new,
+.user-create,
+.user-terms {
+ .content-body .content-inner {
+ padding: 0;
+ }
+}
+
+.user-new,
+.user-create,
+.user-terms,
+.user-confirm {
+ .content-heading .content-inner {
+ height: 200px;
+ }
+}
+
+.header-illustration {
+ background-position: 0 0;
+ background-repeat: no-repeat;
+ position: absolute;
+ height: 200px;
+ width: 100%;
+ left: 0;
+ bottom: 0;
+
+ &.new-user-main {
+ background-image: image-url("sign-up-illustration.png");
+ }
+
+ &.confirm-main {
+ background-image: image-url("confirm-illustration.png");
+ }
+
+ &.new-user-terms {
+ background-image: image-url("terms-illustration.png");
+ }
+
+ &.new-user-arm {
+ height: 110px;
+ width: 130px;
+ left: 260px;
+ top: 160px;
+ background-image: image-url("sign-up-illustration-arm.png");
+ z-index: 100;
+ }
+}
+
+#content.maximised {
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ border: 0;
+ z-index: 1000;
+}
+
+#slim_container {
+ width: 100%;
+}
+
+#slim_container_content {
+ max-width: 50em;
+ background-color: #FFFFFF;
+ margin: $lineheight/2 auto;
+ padding: 3px;
+ border-radius: 25px;
+ -moz-border-radius: 25px;
+ border: 1px solid #e6e6e6;
+}
+
+#slim_content {
+ margin: $lineheight/2;
+ margin-top: 95px;
+ max-width: 50em;
+
+ .content-heading {
+ margin-bottom: 15px;
+ }
+}
+
+#slim_header {
+ margin: 30px $lineheight/2;
+ position: absolute;
+ top: 0px;
+ margin-right: $lineheight/4;
+ img {
+ vertical-align: middle;
+ margin-bottom: $lineheight/4;
+ margin-right: $lineheight/4;
+ }
+}
+
+/* Rules for small maps in content areas */
+
+.content_map {
+ position: relative;
+ width: 45%;
+ height: 400px;
+ border: 1px solid #ccc;
+ margin-bottom: $lineheight;
+ float: right;
+}
+
+/* Rules for the trace list shown by the traces tab etc */
+
+#trace_list {
+ font-size: $lineheight/2;
+ border-width: 0px;
+ text-align: right;
+
+ .trace_summary {
+ font-size: 12px;
+ color: gray;
+ }
+
+ .trace_pending {
+ color: red;
+ }
+
+ .trace_public {
+ color: green;
+ }
+
+ .trace_identifiable {
+ color: green;
+ }
+
+ .trace_trackable {
+ color: red;
+ }
+
+ .trace_private {
+ color: red;
+ }
+}
+
+/* Rules for the user profile page */
+
+#userinformation {
+
+ min-height: 100px;
+ .userinformation-inner {
+ float: left;
+ }
+ h2 {
+ margin-top: 0;
+ }
+ .user-description {
+ width: 100%;
+ clear: both;
+ }
+ .deemphasize {
+ margin: 0;
+ }
+}
+
+.admin-user-info small {
+ margin-bottom: $lineheight/2;
+ display: inline;
+ margin-right: $lineheight;
+}
+
+.activity-block {
+ clear: left;
+ border-bottom: 1px solid #ccc;
+ padding-bottom: $lineheight;
+ float: left;
+ h3 {
+ margin-bottom: $lineheight/2;
+ }
+}
+
+.contact-activity {
+ margin-top: $lineheight;
+ width: 100%;
+}
+
+.activity-details p {
+ margin-left: 70px;
+ margin-bottom: 0;
+}
+
+#friends-container .contact-activity ul {
+ margin-left: 70px;
+}
+
+.user-view {
+ p#no_home_location {
+ margin: $lineheight;
+ }
+ .user_thumbnail {
+ margin-top: $lineheight/4;
+ float: left;
+ }
+}
+
+/* Rules for the user map */
+
+.content_map .leaflet-popup-content {
+ margin: $lineheight/2;
+ min-height: 50px;
+}
+
+/* Rules for user popups on maps */
+
+.user_popup {
+ min-width: 200px;
+ p {
+ padding: 0 0 5px 0;
+ margin-top: 0 0 0 60px;
+ font-size: 12px;
+ }
+ img.user_thumbnail {
+ float: left;
+ margin: 0 $lineheight/2 0 0;
+ }
+}
+
+/* Rules for the user list */
+
+#user_list {
+ font-size: $lineheight/2;
+ width: 100%;
+
+ tr {
+ vertical-align: middle;
+ }
+
+ p {
+ margin-top: 0px;
+ margin-bottom: 0px;
+ }
+}
+
+#user_list_actions {
+ float: right;
+ margin-top: $lineheight/2;
+}
+
+/* Rules for the diary list page */
+
+.diary_post {
+ position: relative;
+ margin-top: $lineheight/2;
+ padding-top: $lineheight;
+ border-top: 1px solid #ccc;
+
+ .post_heading {
+ margin-bottom: $lineheight;
+
+ h2 {
+ margin-top: 0;
+ margin-bottom: $lineheight/2;
+ font-size: 24px;
+ }
+ }
+
+ img.user_thumbnail {
+ float: left;
+ }
+
+ small.deemphasize {
+ float: left;
+ display: block;
+ }
+
+ ul.secondary-actions {
+ display: inline-block;
+ }
+}
+
+.content-heading .hide_unless_logged_in { // hacky selector, better to just add a new class to this div
+ display: inline;
+}
+
+/* Rules for the diary entry page */
+
+.diary_entry {
+ #map {
+ position: relative;
+ width: 90%;
+ height: 400px;
+ border: 1px solid #ccc;
+ display: none;
+ margin-bottom: $lineheight;
+ }
+ #newcomment {
+ border-top: 1px solid #ccc;
+ padding-top: $lineheight;
+ margin-top: $lineheight/2;
+ }
+ .comments {
+ max-width: 740px;
+ }
+ .diary-comment {
+ margin-top: $lineheight/2;
+ border-top: 1px dashed #ccc;
+ padding-top: $lineheight/2;
+ &:first-child {
+ margin-top: $lineheight;
+ padding-top: $lineheight;
+ border-top: 1px solid #ccc;
+ }
+ p {
+ margin-bottom: $lineheight/2;
+ }
+ .comment-heading {
+ margin-bottom: 0;
+ margin-top: 0;
+ }
+ }
+}
+
+.diary_entry-view img.user_thumbnail {
+ float: left;