mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
CSS tweaks to i18n stuff
This commit is contained in:
parent
aa4f748608
commit
ac4b3663cb
6 changed files with 32 additions and 36 deletions
|
@ -4,6 +4,25 @@ footer.site-footer
|
|||
.container
|
||||
.row
|
||||
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
|
||||
li
|
||||
if item.url
|
||||
|
@ -11,27 +30,7 @@ footer.site-footer
|
|||
else
|
||||
| !{item.text}
|
||||
|
||||
|
||||
.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
|
||||
ul.col-md-6.text-right
|
||||
|
||||
each item in nav.right_footer
|
||||
li
|
||||
|
|
|
@ -33,3 +33,5 @@ nav.navbar.navbar-default
|
|||
| !{translate(item.text)}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.dropdown
|
||||
a.btn.dropdown-toggle(
|
||||
a.btn.btn-primary.dropdown-toggle(
|
||||
href="#",
|
||||
data-toggle="dropdown"
|
||||
)
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
- if(typeof(recomendSubdomain) != "undefined")
|
||||
span(ng-controller="TranslationsPopupController", ng-cloak)
|
||||
.translations-message(ng-hide="hidei18nNotification")
|
||||
.container
|
||||
.row
|
||||
.col-md-12
|
||||
a(href=recomendSubdomain.url+currentUrl) #{translate("click_here_to_view_sl_in_lng", {lngName:translate(recomendSubdomain.lngCode)})}
|
||||
img(src="/img/flags/32/#{recomendSubdomain.lngCode}.png")
|
||||
button.close
|
||||
span(aria-hidden="true", ng-click="dismiss()") ×
|
||||
a(href=recomendSubdomain.url+currentUrl) !{translate("click_here_to_view_sl_in_lng", {lngName:"<strong>" + translate(recomendSubdomain.lngCode) + "</strong>"})}
|
||||
img(src="/img/flags/24/#{recomendSubdomain.lngCode}.png")
|
||||
button.close.pull-right
|
||||
span(aria-hidden="true", ng-click="dismiss()") ×
|
||||
span.sr-only Close
|
|
@ -1,13 +1,14 @@
|
|||
|
||||
.translations-message {
|
||||
padding: (@line-height-computed / 4) (@line-height-computed / 2);
|
||||
background-color: @state-success-bg;
|
||||
background-color: @state-warning-bg;
|
||||
color: #333;
|
||||
border-bottom: 1px solid @toolbar-border-color;
|
||||
text-align:center;
|
||||
|
||||
img {
|
||||
padding-left: 20px;
|
||||
vertical-align: text-bottom;
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
|
||||
}
|
|
@ -13,9 +13,6 @@ footer.site-footer {
|
|||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
ul:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
li.lngOption {
|
||||
|
||||
text-align: left;
|
||||
|
|
Loading…
Reference in a new issue