|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
import { templates } from '$lib/templates/templates';
|
|
|
|
|
|
|
|
|
|
/** @type number */ export let templateIndex;
|
|
|
|
|
import { heading } from '$lib/stores/store';
|
|
|
|
|
import { heading, multiplier } from '$lib/stores/store';
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{#if $heading && templates[templateIndex].heading}
|
|
|
|
@ -10,15 +10,15 @@
|
|
|
|
|
class="heading"
|
|
|
|
|
style="
|
|
|
|
|
top: {templates[templateIndex].heading.top}px;
|
|
|
|
|
height: {templates[templateIndex].heading.height}rem;
|
|
|
|
|
left: {templates[templateIndex].heading.left}rem;
|
|
|
|
|
right: {templates[templateIndex].heading.right}rem;
|
|
|
|
|
height: {templates[templateIndex].heading.height}px;
|
|
|
|
|
left: {templates[templateIndex].heading.left}px;
|
|
|
|
|
right: {templates[templateIndex].heading.right}px;
|
|
|
|
|
color: {templates[templateIndex].heading.color};
|
|
|
|
|
font-size: {templates[templateIndex].heading.fontSize}rem;
|
|
|
|
|
font-size: {templates[templateIndex].heading.fontSize * $multiplier}px;
|
|
|
|
|
font-family: {templates[templateIndex].heading.fontFamily};
|
|
|
|
|
text-align: {templates[templateIndex].heading.textAlign};
|
|
|
|
|
font-weight: {templates[templateIndex].heading.fontWeight};
|
|
|
|
|
line-height: {templates[templateIndex].heading.lineHeight}rem;
|
|
|
|
|
line-height: {templates[templateIndex].heading.lineHeight}px;
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
{$heading}
|
|
|
|
@ -28,7 +28,8 @@
|
|
|
|
|
<style>
|
|
|
|
|
.heading {
|
|
|
|
|
position: absolute;
|
|
|
|
|
font-variant: small-caps;
|
|
|
|
|
/* font-variant: small-caps; */
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|