first commit
This commit is contained in:
36
apps/frontend/templates/theme/giallo8/_fonts.html
Normal file
36
apps/frontend/templates/theme/giallo8/_fonts.html
Normal file
@@ -0,0 +1,36 @@
|
||||
{assign var='font_style' value=$theme_config->getConfigParameter('layout_config.font_style')}
|
||||
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap" rel="preload" as="style">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap" rel="stylesheet" type="text/css">
|
||||
|
||||
{if $font_style == 'poppins'}
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;1,400;1,700&display=swap" rel="preload" as="style">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;1,400;1,700&display=swap" rel="stylesheet" type="text/css">
|
||||
{literal}
|
||||
<style>
|
||||
body
|
||||
{
|
||||
font-family: 'Poppins', sans-serif;
|
||||
}
|
||||
</style>
|
||||
{/literal}
|
||||
{elseif $font_style == 'pt_serif'}
|
||||
<link href="https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="preload" as="style">
|
||||
<link href="https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet" type="text/css">
|
||||
{literal}
|
||||
<style>
|
||||
body
|
||||
{
|
||||
font-family: 'PT Serif', serif;
|
||||
}
|
||||
#nav-menu>.navbar-nav>li>a
|
||||
{
|
||||
font-weight: 400;
|
||||
}
|
||||
</style>
|
||||
{/literal}
|
||||
{else}
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,700&display=swap" rel="preload" as="style">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,700&display=swap" rel="stylesheet" type="text/css">
|
||||
{/if}
|
||||
|
||||
{include_file id="_script_theme"}
|
||||
Reference in New Issue
Block a user