}
}
-
/* Utility for styling notification numbers */
.count-number {
#sidebar {
float: left;
width: $sidebarWidth;
+ background: #fff;
h2, h3, h4 {
padding: $lineheight $lineheight $lineheight/2;
cursor: pointer;
}
- p.large-text {
- font-size: 1.7em;
- line-height: 1.4em;
- font-weight: 300;
- }
+ -webkit-transition: margin 300ms linear;
+ -moz-transition: margin 300ms linear;
+ transition: margin 300ms linear;
}
#sidebar.minimized {
position: absolute;
z-index: 1000;
height: auto;
- border-right: none;
+ border-radius: 5px;
+ overflow: hidden;
+ margin-top: $typeheight;
+ margin-left: $typeheight;
+ }
- #sidebar_content {
- display: none;
+ .welcome {
+ p {
+ padding: $lineheight/2 $lineheight $lineheight;
+ font-size: 110%;
+ font-weight: 300;
}
- #search_form {
- background: none;
- width: 78%;
+ .button {
+ width: 50%;
+ float: left;
+ margin: 0;
+ border-radius: 0;
+ font-weight: 400;
+ padding: .6em;
+
+ &.learn-more {
+ border-right: 1px solid #fff;
+ }
}
}
}
#sidebar_content {
- position: absolute;
- top: 50px;
- bottom: 0;
- width: 100%;
- overflow-y: auto;
-
.loader,
.load_more {
text-align: center;
#search_form {
position: relative;
- padding: $lineheight/2 $lineheight;
+ padding: $lineheight/2;
background-color: $lightgrey;
#query_wrapper {
<% end %>
<% content_for :content do %>
- <div id="sidebar" class="<%= 'minimized' if @user %>">
+ <div id="sidebar" class="minimized">
<%= form_tag search_path, :id => "search_form" do %>
<%= submit_tag t('site.search.submit_text') %>
<div id='query_wrapper'>
</div>
<% end %>
- <div id="sidebar_content">
- <% if STATUS == :database_offline or STATUS == :api_offline %>
- <p class="error"><%= t 'layouts.osm_offline' %></p>
- <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
- <p class="error"><%= t 'layouts.osm_read_only' %></p>
- <% end %>
+ <% if STATUS == :database_offline or STATUS == :api_offline %>
+ <p class="error"><%= t 'layouts.osm_offline' %></p>
+ <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
+ <p class="error"><%= t 'layouts.osm_read_only' %></p>
+ <% end %>
+ <div id="sidebar_content">
<%= render :partial => "layouts/flash" %>
-
<%= yield %>
</div>
</div>
-<h2>
- <% if !@user %>
- <%= t 'layouts.intro_header' %>
- <% else %>
- <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
- <% end %>
-</h2>
-
-<% if !@user %>
- <p class="inner12 large-text"><%= t 'layouts.intro_text' %></p>
-
- <div class="inner12">
- <a class="button" href="<%= about_path %>"><%= t('layouts.learn_more') %></a>
- <a class="button" href="<%= user_new_path %>"><%= t('layouts.sign_up') %></a>
+<% unless @user %>
+ <div class="welcome">
+ <h2><%= t 'layouts.intro_header' %></h2>
+ <p><%= t 'layouts.intro_text' %></p>
+ <a class="button learn-more" href="<%= about_path %>"><%= t('layouts.learn_more') %></a>
+ <a class="button sign-up" href="<%= user_new_path %>"><%= t('layouts.sign_up') %></a>
</div>
<% end %>