This commit is contained in:
SvetlanaLisina 2021-04-29 18:23:25 +03:00
parent ce0720a44f
commit ccb592add1
6 changed files with 38 additions and 55 deletions

View File

@ -4,9 +4,6 @@
<div class="title <%=LanguageProvider.GetCurrentCulture().Name%>" onclick="LanguageSelectorManager.openLngSelector();">
<span class="underline"><%=LanguageProvider.GetLanguageName(LanguageProvider.GetCurrentCulture().Parent)%></span>
</div>
<div id="footerLangSelector" class="title <%=LanguageProvider.GetCurrentCulture().Name%>" onclick="LanguageSelectorFooter.openLngSelector();">
<span class="underline"><%=LanguageProvider.GetLanguageName(LanguageProvider.GetCurrentCulture().Parent)%></span>
</div>
<ul class="options" style="display: none;">
<%foreach (var availibleLanguage in LanguageProvider.GetAvailibleLanguages())
{ %>

View File

@ -463,9 +463,6 @@
display: none;
}
#LanguageSelector {
width: 50px !important;
}
/*.advent-mobile-hide {
display: none;
}*/

View File

@ -3581,7 +3581,7 @@ h2.MainHCPage {
.allkeywords {
float: right;
margin: -50px 0 0 0;
margin: 0;
a {
color: @redColor;
@ -5977,6 +5977,12 @@ input ~ .tab { /* grey line between tab and contents */
}
}
.allkeywords {
float: none !important;
margin: -10px 0 0 0;
padding: 10px 0 5px 0;
}
.page_version_link {
margin: 5px 0px;
}
@ -6333,7 +6339,7 @@ input ~ .tab { /* grey line between tab and contents */
@media screen and (max-width: 350px) {
.block_also {
width: 270px;
width: 90%;
}
#mainPage.InnerPage .icon-program-block .img-title {

View File

@ -38,7 +38,7 @@ div.custom-select {
background: #fff;
.shadowFullCustomizable(0, 1px, 1px, rgba(0,0,0,0.2));
display: none;
left: -15px;
left: -13%;
list-style: none;
margin: 0;
padding: 6px 12px 6px;
@ -183,14 +183,38 @@ div.custom-select {
}
}
@media screen and (max-width: 1245px) {
#LanguageSelector {
width: 50px !important;
}
div.custom-select.open {
ul.options {
width: 21px;
}
}
div.custom-select {
ul.options {
li.option {
a {
color: transparent;
width: 0;
}
}
}
}
}
@media screen and (max-width: 767px) {
.langselector.footerLangSelector {
display: none;
}
}
}
@media screen and (max-width: 500px) {
@media screen and (max-width: 500px) {
.langselector.headerLengSelector {
display: none;
@ -319,8 +343,8 @@ div.custom-select {
}
}
div.custom-select ul.options {
top: -260px;
div.custom-select ul.options {
top: -260px;
}
#footerLangSelector {

View File

@ -150,26 +150,6 @@
}
}
div.custom-select {
ul.options {
li.option {
a {
color: transparent;
width: 0;
}
}
}
}
#LanguageSelector {
width: 46px;
}
div.custom-select.open {
ul.options {
width: 21px;
}
}
.pushy-content {
width: 100%;
@ -485,7 +465,7 @@
}
#back-top {
bottom: 50px;
bottom: 100px;
left: auto;
margin: 0;
padding: 0;

View File

@ -18,24 +18,3 @@ var LanguageSelectorManager = new function() {
openLngSelector: n
}
};
var LanguageSelectorFooter = new function () {
var e = function () {
$("div.custom-select").hover(function () {
$(this).css("background", "none")
}, function () {
$(this).css("background", "none")
})
},
n = function () {
$(".footerLangSelector").hasClass("open") || ($("div.custom-select").unbind("mouseenter mouseleave"), $("div.custom-select").css("background", "none"), $(".footerLangSelector ul.options:first").slideDown(10, function () {
$(".footerLangSelector").addClass("open"), $(document).one("click", function () {
$("div.custom-select").css("background", "none"), e(), $(".footerLangSelector ul.options:first").hide(), $(".footerLangSelector").removeClass("open")
})
}))
};
return {
init: e,
openLngSelector: n
}
};