Skip to content
Snippets Groups Projects
Commit 73dc84a7 authored by Otto Zaiser's avatar Otto Zaiser
Browse files

Language switcher style

parent c1bcf6b5
No related branches found
No related tags found
No related merge requests found
.topnav{ .topnav{
position: relative; position: relative;
z-index: 1050; z-index: 1035;
padding-top: 15px; padding-top: 15px;
font-size: 0.65em; font-size: 0.65em;
@media (max-width: 768px) { @media (max-width: 768px) {
margin-right: 60px; margin-right: 60px;
font-size: 0.85em; font-size: 0.85em;
} }
.menu{ .menu, .links{
float: right; float: right;
} }
ul > li { ul > li {
float: left !important; float: left !important;
display: block;
a{ a{
padding: 0; padding: 0;
......
This diff is collapsed.
!function(o,t){function a(){o(this).scrollTop()>110?(o("#navbar").addClass("navbar-fondo"),n()&&o(".path-frontpage #logo").attr("src","/themes/bfa/logo.svg")):(o("#navbar").removeClass("navbar-fondo"),n()&&o(".path-frontpage #logo").attr("src","/themes/bfa/logo-white.svg"))}function n(){return!!(window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))}o(".bt-top").hide(),o(window).scroll(function(){a()}),a(),o(document).on("click",'[data-toggle="lightbox"]',function(t){t.preventDefault(),o(this).ekkoLightbox({alwaysShowClose:!1})})}(jQuery,Drupal); (function ($, Drupal) {
\ No newline at end of file $('.bt-top').hide();
$(window).scroll(function() {
checkNav();
});
function checkNav(){
var currentScroll = $(this).scrollTop();
if(currentScroll > 110) {
$('#navbar').addClass('navbar-fondo');
if(isIE()) $(".path-frontpage #logo").attr("src", "/themes/bfa/logo.svg");
} else {
$('#navbar').removeClass('navbar-fondo');
if(isIE()) $(".path-frontpage #logo").attr("src", "/themes/bfa/logo-white.svg");
}
}
function isIE() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // If Internet Explorer, return version number
{
//alert(parseInt(ua.substring(msie + 5, ua.indexOf(".", msie))));
return true;
}
else // If another browser, return 0
{
return false;
}
return false;
}
checkNav();
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
$(this).ekkoLightbox({
alwaysShowClose: false
});
});
})(jQuery, Drupal);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment