.appendTo($container);
var $ui = $('<div>')
- .attr('class', 'layers-ui');
+ .attr('class', 'key-ui');
- $('<section>')
+ $('<header>')
+ .attr('class', 'sidebar_heading')
.appendTo($ui)
.append(
- $('<a>')
- .html('»')
- .attr('class', 'close-button')
- .attr('href', '#')
- .bind('click', toggle))
+ $('<a>')
+ .text(I18n.t('javascripts.close'))
+ .attr('class', 'sidebar_close')
+ .attr('href', '#')
+ .bind('click', toggle))
.append(
- $('<h2>')
- .text(I18n.t('javascripts.key.title')));
+ $('<h4>')
+ .text(I18n.t('javascripts.key.title')));
var $section = $('<section>')
.appendTo($ui);
var $ui = $('<div>')
.attr('class', 'layers-ui');
- $('<section>')
- .appendTo($ui)
- .append(
- $('<a>')
- .html('»')
- .attr('class', 'close-button')
- .attr('href', '#')
- .bind('click', toggle))
- .append(
- $('<h2>')
+ $('<header>')
+ .attr('class', 'sidebar_heading')
+ .appendTo($ui)
+ .append(
+ $('<a>')
+ .text(I18n.t('javascripts.close'))
+ .attr('class', 'sidebar_close')
+ .attr('href', '#')
+ .bind('click', toggle))
+ .append(
+ $('<h4>')
.text(I18n.t('javascripts.map.layers.header')));
var baseSection = $('<section>')
var $ui = $('<div>')
.attr('class', 'share-ui');
- $('<section>')
+ $('<header>')
+ .attr('class', 'sidebar_heading')
.appendTo($ui)
.append(
- $('<a>')
- .html('»')
- .attr('class', 'close-button')
- .attr('href', '#')
- .bind('click', toggle))
+ $('<a>')
+ .text(I18n.t('javascripts.close'))
+ .attr('class', 'sidebar_close')
+ .attr('href', '#')
+ .bind('click', toggle))
.append(
- $('<h2>')
- .text(I18n.t('javascripts.share.title')));
+ $('<h4>')
+ .text(I18n.t('javascripts.share.title')));
- var $share_link = $('<section></section>')
+ var $share_link = $('<section>')
.appendTo($ui);
- var $title = $('<h3></h3>')
+ var $title = $('<h4>')
.text(I18n.t('javascripts.share.link'))
.appendTo($share_link);
width: 250px;
height: 100%;
background: white;
+ border-left: 1px solid #CCC;
overflow: auto;
}
#map-ui {
section {
- border-top: 1px solid #868e85;
+ border-bottom: 1px solid #DDD;
padding: 15px;
}
- section:first-child {
- border-top:0;
- }
-
- h2 {
- margin:0;
- }
-
a.close-button {
float: right;
padding:5px;
font-size:20px;
- line-height:15px;
+ line-height:10px;
color:#222;
border:1px solid #ddd;
}
left: 0px;
border-right: 1px solid $keyline;
width: 33.3333%;
- .sidebar_heading {
- position: relative;
- padding: $lineheight/2 $lineheight;
- z-index: 9999;
- background: $offwhite;
- border-bottom: 1px solid #ccc;
- }
- h4 {
- margin: 0;
- }
ul {
margin-bottom: 0;
&:last-child {
}
}
-#sidebar_close {
+.sidebar_heading {
+ position: relative;
+ padding: $lineheight/2 $lineheight;
+ z-index: 9999;
+ background: $offwhite;
+ border-bottom: 1px solid #ccc;
+ h4 {
+ margin: 0;
+ }
+}
+
+.sidebar_close {
position: absolute;
height: $lineheight;
top: 0px;
<div id="sidebar">
<div class="sidebar_heading">
<h4 id="sidebar_title"><% t 'site.sidebar.search_results' %></h4>
- <div id="sidebar_close"><a class="sidebar_close" href="#"><%= t 'site.sidebar.close' %></a></div>
+ <a class="sidebar_close" href="#"><%= t 'site.sidebar.close' %></a>
</div>
<div id="sidebar_content">
</div>
last_changed: "Last changed"
ago_html: "%{when} ago"
javascripts:
+ close: Close
share:
title: "Share"
cancel: "Cancel"
short_url: "Short URL"
key:
title: "Map Key"
- tooltip: "Key for the map"
+ tooltip: "Map Key"
map:
zoom:
in: Zoom In