+/* Rules for search 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 routing */
+
+#sidebar_content>table {
+ padding: 5px 20px 10px 15px;
+ width: 100%;
+ border-collapse: separate;
+}
+
+td.direction {
+ background-image: image-url('routing-sprite.png');
+ width: 20px; height: 20px;
+ background-repeat: no-repeat;
+}
+@for $i from 1 through 17 {
+td.direction.i#{$i} { background-position: #{($i)*-20+20}px 0px; }
+}
+
+td.instruction, td.distance {
+ padding-top: 0;
+ border-bottom: 1px solid #DDD;
+}
+td.distance {
+ color: #BBB;
+ text-align: right;
+ font-size: x-small;
+}
+tr.turn {
+ cursor: pointer;
+}
+tr.turn:hover {
+ background: lighten($green, 30%);
+}
+.routing_engines, #route_from, #route_to { margin-left: 25px; }
+.routing_marker { width: 15px; position: absolute; }
+
+/* Rules for entity history */
+
+#sidebar_content {
+ .browse_details {
+ position: relative;
+ border-bottom: $keyline;
+ }
+}
+
+.browse_status {
+ display: none;
+}
+
+/* Rules for the history sidebar */
+
+#sidebar .changesets {
+ li {
+ padding: 15px 20px;
+ border-bottom: 1px solid #ddd;
+ cursor: pointer;
+
+ &.selected { background: #FFFFE6; }
+ /* color is derived from changeset bbox fillColor in history.js */
+ }
+
+ h4 {
+ margin: 0;
+ a {
+ color: #000;
+ }
+ }
+}
+
+/* Rules for the browse sidebar */
+
+#sidebar_content {
+ .browse-section {
+ padding: $lineheight/2 $lineheight;
+ border-bottom: 1px solid #ddd;
+
+ h4:first-child {
+ margin-top: 0;
+ word-wrap: break-word;
+ }
+ }
+
+ .browse-section:last-of-type {
+ border-bottom: none;
+ }
+
+ .paginate {
+ float: right;
+ padding: 1px 6px;
+ border: 1px solid #eee;
+ border-radius: 3px;
+ }
+
+ .paginate 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 {
+ background-color: #F6F6F6;
+ border: 1px solid #ddd;
+ border-radius: 3px;
+ font-size: 12px;
+ table-layout: fixed;
+ border-collapse: separate;
+
+ th, td {
+ border-bottom: 1px solid #ddd;
+ }
+
+ tr:last-child th, tr:last-child td {
+ border-bottom: 0;
+ }