first commit
This commit is contained in:
76
apps/frontend/templates/theme/watch/_fonts.html
Normal file
76
apps/frontend/templates/theme/watch/_fonts.html
Normal file
@@ -0,0 +1,76 @@
|
||||
{assign var='font_style' value=$theme_config->getConfigParameter('layout_config.font_style')}
|
||||
|
||||
{if $font_style == 'poppins'}
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,700;1,400;1,600&display=swap" rel="preload" as="style">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,700;1,400;1,600&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;
|
||||
}
|
||||
</style>
|
||||
{/literal}
|
||||
{else}
|
||||
{literal}
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'Myriad Pro';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Myriad Pro Regular'), url('/fonts/myriadpro/MYRIADPRO-REGULAR.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Myriad Pro';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Myriad Pro Italic'), url('/fonts/myriadpro/MYRIADPRO-ITALIC.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Myriad Pro';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Myriad Pro Semibold'), url('/fonts/myriadpro/MYRIADPRO-SEMIBOLD.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Myriad Pro';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local('Myriad Pro Semibold Italic'), url('/fonts/myriadpro/MYRIADPRO-SEMIBOLDIT.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Myriad Pro';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Myriad Pro Bold'), url('/fonts/myriadpro/MYRIADPRO-BOLD.woff') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Myriad Pro';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Myriad Pro Bold Italic'), url('/fonts/myriadpro/MYRIADPRO-BOLDIT.woff') format('woff');
|
||||
}
|
||||
</style>
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Asap+Condensed&family=Roboto+Condensed&display=swap" rel="preload" as="style">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Asap+Condensed&family=Roboto+Condensed&display=swap" rel="stylesheet" type="text/css">
|
||||
|
||||
{include_file id="_script_theme"}
|
||||
Reference in New Issue
Block a user