+ &.active {
+ background-color: #9ed485;
+ }
+
+ &.disabled {
+ background-color: #333;
+ background-color: rgba(0,0,0,.5);
+ cursor: default;
+ }
+
+ .icon {
+ margin: 10px;
+ }
+}
+
+.leaflet-control .zoomin,
+.control-layers .control-button {
+ margin-bottom: 0px;
+ border-radius: 4px 0 0 0;
+}
+
+.leaflet-control .zoomout,
+.control-key .control-button {
+ margin-bottom: 0;
+ border-radius: 0;
+}
+
+.control-locate .control-button,
+.control-share .control-button {
+ border-radius: 0 0 0 4px;
+}
+
+/* Rules for the sidebar and main map area */
+
+.map-layout {
+ #content {
+ position: absolute;
+ top: $headerHeight;
+ bottom: 0;
+ width: 100%;
+ }
+
+ #sidebar, #map {
+ position: relative;
+ height: 100%;
+ overflow-x: hidden;
+ overflow-y: auto;
+ }
+
+ #sidebar {
+ float: left;
+ width: $sidebarWidth;
+
+ h2, h3, h4 {
+ padding: $lineheight $lineheight $lineheight/2;
+ }
+
+ h4, span.user, span.date {
+ font-weight: normal;
+ color: #666;
+ font-size: 12px;
+ }
+
+ .icon.close {
+ position: absolute;
+ right: $lineheight;
+ cursor: pointer;
+ }
+
+ .footer {
+ position: absolute;
+ bottom: 0;
+ }
+
+ p.credits {
+ font-size: 11px;
+ color: #999;
+
+ a {
+ color: #666;
+ }
+ }
+
+ p.large-text {
+ font-size: 1.7em;
+ line-height: 1.4em;
+ font-weight: 300;
+ }
+ }
+
+ #sidebar.minimized {
+ position: absolute;
+ z-index: 1000;
+ height: auto;
+ border-right: none;
+
+ #sidebar_content {
+ display: none;
+ }
+
+ #search_form {
+ background: none;
+ width: 78%;
+ }
+ }
+
+ #map {
+ height: 100%;
+ overflow: hidden;
+ }
+
+ #map-ui {
+ display: none;
+ position: relative;
+ float: right;
+ width: 250px;
+ height: 100%;
+ background: white;
+ overflow: auto;
+
+ .section {
+ border-bottom: 1px solid #DDD;
+ padding: 10px 20px;
+ }
+
+ a.close-button {
+ float: right;
+ padding:5px;
+ font-size:20px;
+ line-height:10px;
+ color:#222;
+ border:1px solid #ddd;
+ }
+ }
+}
+
+.layers-ui,
+.share-ui {
+ li:last-child {
+ margin-bottom: 0;
+ }
+}
+
+.layers-ui {
+ .base-layers {
+ .leaflet-container {
+ width: 100%;
+ height: 50px;
+ cursor: pointer;
+ }
+
+ li {
+ overflow: hidden;
+ border-radius: 3px;
+ border: 2px solid #fff;
+ margin-bottom: 8px;
+ position: relative;
+ transition: border-color 0.08s ease-in;
+
+ label {
+ position: absolute;
+ top: 0;
+ left: 0;
+ padding: 2px 6px;
+ border-bottom-right-radius: 3px;
+ cursor: pointer;
+ font-weight: 500;
+ font-size: 16px;
+ text-stroke: 2px #fff;
+ background: rgba(255,255,255,.9);
+ text-shadow:
+ -2px -2px 1px #fff,
+ 2px -2px 1px #fff,
+ -2px 2px 1px #fff,
+ 2px 2px 1px #fff;
+ input[type="radio"] {
+ display: none;
+ }
+ }
+
+ &.active { border-color: darken($green, 10%); }
+ &:hover {
+ border-color: $grey;
+ &.active { border-color: darken($green, 20%); }
+ }
+ }
+ }
+
+ .overlay-layers {
+ p {
+ font-size: 13px;
+ margin-bottom: 8px;
+ }
+ }
+}
+
+.share-ui {
+ .share-tabs {
+ margin-bottom: 10px;
+
+ a {
+ color: #fff;
+ text-decoration: none;
+ background-color: $lightblue;
+ padding: 5px 10px;
+ }
+
+ a:first-child {
+ border-right: 1px solid #fff;
+ border-radius: 4px 0 0 4px;
+ }
+
+ a:last-child {
+ border-left: 1px solid #fff;
+ border-radius: 0 4px 4px 0;
+ }
+
+ a.active {
+ background-color: $blue;
+ }
+ }
+
+ .share-tab {
+ display: none;
+ }
+
+ .share-link {
+ input[type=text],
+ textarea {
+ width: 100%;
+ font-family: monospace;
+ font-size: small;
+ line-height: 1.3;
+ }
+ }
+
+ .share-image {
+ label {
+ margin-right: 10px;
+ }
+ }
+
+ #embed_html {
+ resize: vertical;
+ }
+
+ #mapnik_scale {
+ width: 100px;
+ }
+}
+
+.leaflet-top.leaflet-right {
+ top: $lineheight !important;
+ .leaflet-control {
+ margin-right: 0px !important;
+ margin-top: 0px !important;
+ }
+}
+
+.leaflet-popup-scrolled {
+ padding-right: $lineheight;
+ border-bottom: 0px !important;
+ border-top: 0px !important;
+}
+
+.leaflet-popup-content-wrapper {
+ border-radius: 4px !important;
+ -webkit-border-radius: 4px !important;
+}
+
+/* Rules for attribution text under the main map shown on printouts */
+
+#attribution {
+ display: none;
+}
+
+.attribution_license,
+.attribution_project {
+ text-align: left;
+}
+
+.attribution_notice {
+ text-align: center;
+}
+
+.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;
+ }