...
This commit is contained in:
parent
83896cdc99
commit
bfe13bd913
|
@ -275,7 +275,7 @@ input.search-form:hover {
|
|||
}
|
||||
|
||||
.navbar-nav>li{
|
||||
margin-left: 35px;
|
||||
margin-left: 15px;
|
||||
padding-bottom: 28px;
|
||||
}
|
||||
|
||||
|
@ -2204,6 +2204,16 @@ ul.pagination > li:hover > a {
|
|||
box-shadow: none;
|
||||
}
|
||||
|
||||
.search_small_box {
|
||||
background-image: url("/assets/search_icon.png");
|
||||
background-position: 320px 8px;
|
||||
background-repeat: no-repeat;
|
||||
border-color: #DEDEDE;
|
||||
outline: medium none;
|
||||
box-shadow: none;
|
||||
width: 350px;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
box-shadow:none;
|
||||
outline: 0 none;
|
||||
|
|
|
@ -26,8 +26,16 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<% if logged? %>
|
||||
<ul class="nav navbar-nav navbar-right top-navbar mt12">
|
||||
<ul class="nav navbar-nav navbar-right top-navbar mt12">
|
||||
<li>
|
||||
<div class="search">
|
||||
<form role="form">
|
||||
<input type="text" class="form-control search_small_box" autocomplete="off" placeholder="Search Here">
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<% if logged? %>
|
||||
<li class="dropdown iconify hide-phone">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-envelope"></i><span class="label label-danger absolute">3</span></a>
|
||||
<ul class="dropdown-menu dropdown-message">
|
||||
|
@ -66,15 +74,13 @@
|
|||
<li><%= link_to "<i class='icon-logout-1'></i> 退出".html_safe, logout_path, method: :delete, class: "md-trigger" %></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<% else %>
|
||||
<ul class="nav navbar-nav navbar-right top-navbar mt12">
|
||||
</ul>
|
||||
<% else %>
|
||||
<li class="ml5"><%= link_to "登录", login_path %></li>
|
||||
<li class="color-white mt5 ml5">|</li>
|
||||
<li class="ml5"><%= link_to "注册", signup_path %></li>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div><!--/.container-->
|
||||
|
|
Loading…
Reference in New Issue