Fixing issues with header dropdown menu's submenu

This commit is contained in:
Victoria Wang 2014-10-13 17:10:22 -07:00
parent 7f5f028cc5
commit 1b75c950bd
2 changed files with 20 additions and 2 deletions

View file

@ -274,7 +274,7 @@
li {
width:100%;
a:hover {
a:hover, a:focus {
background:#3C6670;
}
}
@ -287,6 +287,24 @@
padding: 0px 5px;
}
}
.dropdown-submenu {
float: left;
&:hover > a, &:focus > a {
background:#3C6670;
}
.dropdown-menu {
margin-left: -1px;
top: 0;
margin-top: -1px;
margin-right: 3px;
}
>a:after {
border-left-color: #fff;
}
}
}
.constant-Nav{
float:left;

View file

@ -45,7 +45,7 @@
<li><a href="/settings">Settings</a></li>
<% if current_site.other_sites_dataset.count > 0 %>
<li class="dropdown-submenu pull-right">
<li class="dropdown-submenu pull-left">
<a tabindex="-1" href="#" onclick="return false">Switch Site</a>
<ul class="dropdown-menu">
<% current_site.other_sites_dataset.select(:username).all.each do |site| %>