[#745] add max-width for top menu drop down

pull/41/head
Romano Licker 13 years ago
parent 2d791126a9
commit c2d554f467
  1. 6
      app/views/layouts/base.rhtml
  2. 3
      public/stylesheets/application.css

@ -51,7 +51,7 @@
<% if !Project.visible.empty? and (User.current.logged? or !Setting.login_required?) %>
<li class="drop-down">
<%= link_to l(:label_project_plural), :controller => 'projects', :action => 'index' %>
<ul style="display:none;">
<ul style="display:none;" class="limit-width-topmenu">
<li><%= link_to "View all Projects", :controller => 'projects', :action => 'index' %></li>
<li><%= render_project_jump_box Project.visible, :id => "project-search", :class => "chzn-select", :'data-placeholder' => "Enter Project Name..." %></li>
</ul>
@ -60,7 +60,7 @@
<% unless (items = more_top_menu_items).empty? %>
<li class="drop-down" id="more-menu">
<a class="more" href="#">Modules</a>
<ul style="display:none;">
<ul style="display:none;" class="limit-width-topmenu">
<% items.each do |item| %>
<%= render_menu_node(item) %>
<% end %>
@ -77,7 +77,7 @@
</ul>
<% else %>
<%= link_to_user(User.current) %>
<ul style="display:none;">
<ul style="display:none;" class="limit-width-topmenu">
<% menu_items_for(:account_menu) do |item| %>
<%= render_menu_node(item) %>
<% end %>

@ -1288,6 +1288,9 @@ input:-moz-placeholder {
border-top: 0px;
background-color:#FFFFFF;
}
#header li > ul.limit-width-topmenu {
max-width:350px;
}
#header li.last-child > ul {
left:auto;
right:-1px;

Loading…
Cancel
Save