conditionally render remainder of dropcap word
This commit is contained in:
parent
54bcec280d
commit
b68220fa2e
@ -34,9 +34,8 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<p>
|
|
||||||
<span class="drop-cap">{initial}</span>
|
|
||||||
<span class="first-word" style:--shift={shift}>{remainder}</span>
|
|
||||||
<slot></slot>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
<span class="drop-cap">{initial}</span>
|
||||||
|
{#if remainder.length}
|
||||||
|
<span class="first-word" style:--shift={shift}>{remainder}</span>
|
||||||
|
{/if}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user