forked from saurabh/orbit4-5
language in orbit bar fixed
This commit is contained in:
parent
4638b4bca9
commit
7654fc7f23
|
@ -41,7 +41,7 @@ $orbit-bar-bgc-lighter: lighten($orbit-bar-bgc, 20%) !default;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
font-family: 'Chivo';
|
font-family: 'Chivo';
|
||||||
i {
|
i {
|
||||||
display: block;
|
display: inline-block;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
|
@ -51,6 +51,13 @@ $orbit-bar-bgc-lighter: lighten($orbit-bar-bgc, 20%) !default;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.orbit-bar-language-icon {
|
||||||
|
width: 30px;
|
||||||
|
}
|
||||||
|
.orbit-bar-language-text {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#orbit-bar {
|
#orbit-bar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -402,6 +409,9 @@ $orbit-bar-bgc-lighter: lighten($orbit-bar-bgc, 20%) !default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#language {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
label {
|
label {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
@ -470,6 +480,8 @@ $orbit-bar-bgc-lighter: lighten($orbit-bar-bgc, 20%) !default;
|
||||||
}
|
}
|
||||||
.orbit-bar-title {
|
.orbit-bar-title {
|
||||||
display: block;
|
display: block;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
ul.orbit-bar-search-sign-language {
|
ul.orbit-bar-search-sign-language {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
<li>
|
<li>
|
||||||
<% if @site_in_use_locales.count > 1 || current_site.enable_zh_cn %>
|
<% if @site_in_use_locales.count > 1 || current_site.enable_zh_cn %>
|
||||||
<% locale = session[:zh_cn] ? :zh_cn : I18n.locale %>
|
<% locale = session[:zh_cn] ? :zh_cn : I18n.locale %>
|
||||||
<span id="language"><%= t((locale==:zh_tw ? :zh_tw_ : locale.to_s)) %></span>
|
<span id="language"><i class="icons-earth orbit-bar-language-icon"></i><span class="orbit-bar-language-text">Language</span></span>
|
||||||
<ul>
|
<ul>
|
||||||
<% @site_in_use_locales.each do |l| %>
|
<% @site_in_use_locales.each do |l| %>
|
||||||
<li class="<%= (l == I18n.locale and !session['zh_cn']) ? "active" : "" %>">
|
<li class="<%= (l == I18n.locale and !session['zh_cn']) ? "active" : "" %>">
|
||||||
|
|
Loading…
Reference in New Issue