Files
grzanieplus.pl/apps/frontend/templates/theme/moda/_fonts.html
2025-03-12 17:06:23 +01:00

195 lines
5.7 KiB
HTML

<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,400i,600,600i&display=swap&subset=latin-ext" rel="preload" as="style">
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,400i,600,600i&display=swap&subset=latin-ext" rel="stylesheet" type="text/css">
{if $theme_config->getConfigParameter('layout_config.banner_font_description') == 'serif'}
{literal}
<style>
.homepage-carousel .swiper-slide .caption p
{
font-family: 'Playfair Display',serif;
font-weight: 400;
font-size: 22px;
line-height: 130%;
}
</style>
{/literal}
{/if}
{if $theme_config->getConfigParameter('layout_config.banner_font_title') == 'dancing_script'}
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap" rel="preload" as="style">
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap" rel="stylesheet" type="text/css">
{literal}
<style>
.homepage-carousel .swiper-slide .caption h3
{
font-family: 'Dancing Script', cursive;
font-weight: 400;
font-size: 48px;
line-height: 100%;
margin-bottom: 10px;
}
@media (min-width: 768px){
.homepage-carousel .swiper-slide .caption h3
{
font-size: 65px;
}
}
</style>
{/literal}
{elseif $theme_config->getConfigParameter('layout_config.banner_font_title') == 'great_vibes'}
<link href="https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap" rel="preload" as="style">
<link href="https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap" rel="stylesheet" type="text/css">
{literal}
<style>
.homepage-carousel .swiper-slide .caption h3
{
font-family: 'Great Vibes', cursive;
font-weight: 400;
font-size: 48px;
line-height: 80%;
margin-bottom: 10px;
}
@media (min-width: 768px){
.homepage-carousel .swiper-slide .caption h3
{
font-size: 65px;
}
}
</style>
{/literal}
{elseif $theme_config->getConfigParameter('layout_config.banner_font_title') == 'comfortaa'}
<link href="https://fonts.googleapis.com/css2?family=Comfortaa&display=swap" rel="preload" as="style">
<link href="https://fonts.googleapis.com/css2?family=Comfortaa&display=swap" rel="stylesheet" type="text/css">
{literal}
<style>
.homepage-carousel .swiper-slide .caption h3
{
font-family: 'Comfortaa', sans-serif;
font-weight: 400;
margin-bottom: 10px;
}
@media (min-width: 768px){
.homepage-carousel .swiper-slide .caption h3
{
font-size: 48px;
}
}
</style>
{/literal}
{/if}
{literal}
<!--[if IE 9]>
<style type="text/css">
select.form-control
{
padding-right: 0;
background-image: none;
}
</style>
<![endif]-->
<script type="text/javascript">
//<![CDATA[
jQuery(function($) {
var menuHeight = $('#header-navbar').height();
var dropdown = $('#header-navbar .dropdown-menu');
var dropdownSettings = $('#nav-settings .dropdown-menu');
function menuFix() {
if ($(window).width() > 768) {
var scrolled = $(window).scrollTop();
var menuTop = $('#header-navbar-position').offset().top;
var windowHeight = $(window).height();
var headerHeight = $('#header').outerHeight();
if (scrolled > menuTop) {
$('#header-navbar').addClass('navbar-fixed-top');
$('#header-navbar-position').css('min-height', menuHeight - 1);
dropdown.css('max-height', windowHeight - menuHeight - 15);
dropdownSettings.css('max-height', windowHeight - menuHeight - 15 - 48);
} else if (scrolled < menuTop) {
$('#header-navbar').removeClass('navbar-fixed-top');
$('#header-navbar-position').css('min-height', '');
dropdown.css('max-height', windowHeight - headerHeight - menuHeight - 15);
dropdownSettings.css('max-height', windowHeight - headerHeight - menuHeight - 15 - 48);
};
} else {
dropdown.removeAttr("style");
};
}
$(document).ready(function(){
$('body [data-equalizer]').equalizer({ use_tallest: true });
$(window).scroll(function () {
if ($(this).scrollTop() > 200) {
$('#toTopNew').addClass('show');
} else {
$('#toTopNew').removeClass('show');
}
});
$('#toTopNew').click(function () {
$("html, body").animate({
scrollTop: 0
}, 300);
return false;
});
$(window).load(function(){
setTimeout(function(){
if (($('#chat-application').length == 1) || ($('#livechat').length == 1) || ($('.fb_dialog_content iframe').length == 1)) {
$('#toTopNew').addClass('upper');
}
}, 500);
});
var scroll = false;
var $window = $(window);
$window.scroll(function() {
scroll = true;
});
setInterval(function() {
if (scroll) {
if($window.scrollTop() + $window.height() >= $(document).height()-250) {
$('#phone-call').addClass('show');
}else{
$('#phone-call').removeClass('show');
}
scroll = false;
}
}, 255);
$('#nav-button-search.collapsed').click(function() {
setTimeout(function(){
$('#nav-search .form-control').focus();
}, 300);
});
if ($('#nav-settings > ul > li:empty').length == 2)
{
$('#nav-button-settings').hide();
}
if ($(window).width() < 768) {
var windowHeightMobile = $(window).height();
var menuHeightMobile = $('#header-navbar').height();
$('#header-navbar .navbar-collapse').css('max-height', windowHeightMobile - menuHeightMobile);
};
menuFix();
});
$(window).scroll(function(){
menuFix();
});
$(window).resize(function(){
menuFix();
});
});
//]]>
</script>
{/literal}