CSS tweaks to i18n stuff

This commit is contained in:
James Allen 2014-08-14 16:33:01 +01:00
parent aa4f748608
commit ac4b3663cb
6 changed files with 32 additions and 36 deletions

View file

@ -4,6 +4,25 @@ footer.site-footer
.container .container
.row .row
ul.col-md-6 ul.col-md-6
if Object.keys(settings.i18n.subdomainLang).length > 1
li.dropdown.dropup.subdued
a.dropdown-toggle(
href="#",
data-toggle="dropdown",
aria-haspopup="true",
aria-expanded="false",
tooltip="#{translate('language')}"
)
img(src="/img/flags/24/#{currentLngCode}.png")
ul.dropdown-menu(role="menu")
li.dropdown-header #{translate("language")}
each subdomainDetails, subdomain in settings.i18n.subdomainLang
li.lngOption
a.menu-indent(href=subdomainDetails.url+currentUrl) #{translate(subdomainDetails.lngCode)}
img(src="/img/flags/24/#{subdomainDetails.lngCode}.png")
each item in nav.left_footer each item in nav.left_footer
li li
if item.url if item.url
@ -11,27 +30,7 @@ footer.site-footer
else else
| !{item.text} | !{item.text}
ul.col-md-6.text-right
.col-md-3
if Object.keys(settings.i18n.subdomainLang).length > 1
.dropdown.dropup.subdued
a.dropdown-toggle(
href="#",
data-toggle="dropdown",
aria-haspopup="true",
aria-expanded="false"
) #{translate("language")}
|  
img(src="/img/flags/24/#{currentLngCode}.png")
ul.dropdown-menu(role="menu")
each subdomainDetails, subdomain in settings.i18n.subdomainLang
li.lngOption
a.menu-indent(href=subdomainDetails.url+currentUrl) #{translate(subdomainDetails.lngCode)}
img(src="/img/flags/24/#{subdomainDetails.lngCode}.png")
ul.col-md-3
each item in nav.right_footer each item in nav.right_footer
li li

View file

@ -33,3 +33,5 @@ nav.navbar.navbar-default
| !{translate(item.text)} | !{translate(item.text)}

View file

@ -1,5 +1,5 @@
.dropdown .dropdown
a.btn.dropdown-toggle( a.btn.btn-primary.dropdown-toggle(
href="#", href="#",
data-toggle="dropdown" data-toggle="dropdown"
) )

View file

@ -1,11 +1,8 @@
- if(typeof(recomendSubdomain) != "undefined") - if(typeof(recomendSubdomain) != "undefined")
span(ng-controller="TranslationsPopupController", ng-cloak) span(ng-controller="TranslationsPopupController", ng-cloak)
.translations-message(ng-hide="hidei18nNotification") .translations-message(ng-hide="hidei18nNotification")
.container a(href=recomendSubdomain.url+currentUrl) !{translate("click_here_to_view_sl_in_lng", {lngName:"<strong>" + translate(recomendSubdomain.lngCode) + "</strong>"})}
.row img(src="/img/flags/24/#{recomendSubdomain.lngCode}.png")
.col-md-12 button.close.pull-right
a(href=recomendSubdomain.url+currentUrl) #{translate("click_here_to_view_sl_in_lng", {lngName:translate(recomendSubdomain.lngCode)})} span(aria-hidden="true", ng-click="dismiss()") &times;
img(src="/img/flags/32/#{recomendSubdomain.lngCode}.png") span.sr-only Close
button.close
span(aria-hidden="true", ng-click="dismiss()") ×
span.sr-only Close

View file

@ -1,13 +1,14 @@
.translations-message { .translations-message {
padding: (@line-height-computed / 4) (@line-height-computed / 2); padding: (@line-height-computed / 4) (@line-height-computed / 2);
background-color: @state-success-bg; background-color: @state-warning-bg;
color: #333; color: #333;
border-bottom: 1px solid @toolbar-border-color; border-bottom: 1px solid @toolbar-border-color;
text-align:center; text-align:center;
img { img {
padding-left: 20px; vertical-align: text-bottom;
margin-bottom: -1px;
} }
} }

View file

@ -13,9 +13,6 @@ footer.site-footer {
font-size: 1.2rem; font-size: 1.2rem;
} }
} }
ul:last-child {
text-align: right;
}
li.lngOption { li.lngOption {
text-align: left; text-align: left;