Use full page width when editing with iD
This commit is contained in:
parent
78e97ade45
commit
452eabc941
5 changed files with 42 additions and 28 deletions
|
@ -250,6 +250,10 @@ table {
|
|||
|
||||
#small-title {
|
||||
display: none;
|
||||
|
||||
img {
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
/* Rules for the introductory text displayed in the left sidebar to new users */
|
||||
|
@ -444,6 +448,7 @@ a.donate {
|
|||
.site-index #top-bar,
|
||||
.site-export #top-bar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
@ -1013,10 +1018,6 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
|
|||
text-align: left;
|
||||
}
|
||||
|
||||
.site-edit #content {
|
||||
top: 30px;
|
||||
}
|
||||
|
||||
#content.maximised {
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
@ -2147,6 +2148,30 @@ a.button {
|
|||
/*
|
||||
* 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%;
|
||||
|
|
|
@ -74,29 +74,12 @@ h2, h3, h4 {
|
|||
/* 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 */
|
||||
|
|
|
@ -59,6 +59,8 @@ class SiteController < ApplicationController
|
|||
return
|
||||
end
|
||||
|
||||
@extra_body_class = "site-edit-#{editor}"
|
||||
|
||||
if params[:node]
|
||||
bbox = Node.find(params[:node]).bbox.to_unscaled
|
||||
@lat = bbox.centre_lat
|
||||
|
|
|
@ -102,4 +102,8 @@ module ApplicationHelper
|
|||
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
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<!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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue