#small-title {
display: none;
+
+ img {
+ vertical-align: text-bottom;
+ }
}
/* Rules for the introductory text displayed in the left sidebar to new users */
.site-index #top-bar,
.site-export #top-bar {
position: fixed;
+ top: 0;
left: 0;
right: 0;
}
text-align: left;
}
-.site-edit #content {
- top: 30px;
-}
-
#content.maximised {
top: 0;
left: 0;
/*
* Rules for the iD editor
*/
+
+.site-edit-id {
+ #left,
+ #large-title {
+ display: none;
+ }
+
+ #small-title {
+ display: inline-block;
+ width: 185px;
+ height: 30px;
+ font-size: 14px;
+ margin: 0;
+ background-color: #eee;
+ border-bottom: 1px solid #ccc;
+ text-align: center;
+ padding-top: 7px;
+ }
+
+ #content {
+ left: 0;
+ }
+}
+
.id-embed {
width: 100%;
height: 100%;
/* Rules for the site name - shown when left sidebar is hidden */
#small-title {
- font-size: 12px;
- line-height: 14px;
- height: 16px;
+ font-size: 10px;
display: block;
position: absolute;
left: 5px;
top: 5px;
- padding: 2px;
- width: 110px;
- background-color: #fff;
- z-index: 100;
-}
-
-#small-title img {
- position: absolute;
-}
-
-#small-title h1 {
- position: absolute;
- font-size: 10px;
- line-height: 18px;
margin: 0;
- left: 22px;
}
/* Rules for greeting bar in the top right corner */
return
end
+ @extra_body_class = "site-edit-#{editor}"
+
if params[:node]
bbox = Node.find(params[:node]).bbox.to_unscaled
@lat = bbox.centre_lat
def friendly_date(date)
content_tag(:span, time_ago_in_words(date), :title => l(date, :format => :friendly))
end
+
+ def body_class
+ [params[:controller], "#{params[:controller]}-#{params[:action]}", @extra_body_class].compact.join(" ")
+ end
end
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= I18n.locale %>" lang="<%= I18n.locale %>" dir="<%= dir %>">
<%= render :partial => "layouts/head" %>
- <body class="<%= params[:controller] %> <%= params[:controller] %>-<%= params[:action] %>">
- <div id="small-title">
- <%= link_to(image_tag("osm_logo.png", :size => "16x16", :alt => t('layouts.logo.alt_text')), root_path) %>
- <h1><%= t 'layouts.project_name.h1' %></h1>
- </div>
- <div id="left">
+ <body class="<%= body_class %>">
+ <h1 id="small-title">
+ <%= image_tag "osm_logo.png", :size => "16x16", :alt => t('layouts.logo.alt_text') %>
+ <%= t 'layouts.project_name.h1' %>
+ </h1>
+ <div id="left">
<div id="logo">
<%= link_to(image_tag("osm_logo.png",
:size => "120x120",