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();"> <div class="title <%=LanguageProvider.GetCurrentCulture().Name%>" onclick="LanguageSelectorManager.openLngSelector();">
<span class="underline"><%=LanguageProvider.GetLanguageName(LanguageProvider.GetCurrentCulture().Parent)%></span> <span class="underline"><%=LanguageProvider.GetLanguageName(LanguageProvider.GetCurrentCulture().Parent)%></span>
</div> </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;"> <ul class="options" style="display: none;">
<%foreach (var availibleLanguage in LanguageProvider.GetAvailibleLanguages()) <%foreach (var availibleLanguage in LanguageProvider.GetAvailibleLanguages())
{ %> { %>

View File

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

View File

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

View File

@ -38,7 +38,7 @@ div.custom-select {
background: #fff; background: #fff;
.shadowFullCustomizable(0, 1px, 1px, rgba(0,0,0,0.2)); .shadowFullCustomizable(0, 1px, 1px, rgba(0,0,0,0.2));
display: none; display: none;
left: -15px; left: -13%;
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 6px 12px 6px; 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) { @media screen and (max-width: 767px) {
.langselector.footerLangSelector { .langselector.footerLangSelector {
display: none; display: none;
} }
} }
@media screen and (max-width: 500px) { @media screen and (max-width: 500px) {
.langselector.headerLengSelector { .langselector.headerLengSelector {
display: none; display: none;
@ -319,8 +343,8 @@ div.custom-select {
} }
} }
div.custom-select ul.options { div.custom-select ul.options {
top: -260px; top: -260px;
} }
#footerLangSelector { #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 { .pushy-content {
width: 100%; width: 100%;
@ -485,7 +465,7 @@
} }
#back-top { #back-top {
bottom: 50px; bottom: 100px;
left: auto; left: auto;
margin: 0; margin: 0;
padding: 0; padding: 0;

View File

@ -18,24 +18,3 @@ var LanguageSelectorManager = new function() {
openLngSelector: n 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
}
};