set defaults
This commit is contained in:
parent
b6e4d4e941
commit
d5d84aed78
|
@ -50,7 +50,7 @@ main {
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<Divide mode="v">
|
<Divide>
|
||||||
<div slot="1">
|
<div slot="1">
|
||||||
<h1>Hello World</h1>
|
<h1>Hello World</h1>
|
||||||
<p>{ text }</p>
|
<p>{ text }</p>
|
||||||
|
|
|
@ -15,8 +15,8 @@ $: style = s({
|
||||||
'--divide-size': `${size}px`,
|
'--divide-size': `${size}px`,
|
||||||
'--divide-basis-first': `${basisFirst * 100}%`,
|
'--divide-basis-first': `${basisFirst * 100}%`,
|
||||||
'--divide-basis-second': `${basisSecond * 100}%`,
|
'--divide-basis-second': `${basisSecond * 100}%`,
|
||||||
'--divide-min-width': minSize > 0 && mode === 'h' ? `${minSize}px` : false,
|
'--divide-min-width': minSize > 0 && mode === 'h' ? `${minSize}px` : '0',
|
||||||
'--divide-min-height': minSize > 0 && mode === 'v' ? `${minSize}px` : false,
|
'--divide-min-height': minSize > 0 && mode === 'v' ? `${minSize}px` : '0',
|
||||||
});
|
});
|
||||||
|
|
||||||
$: total = getTotal();
|
$: total = getTotal();
|
||||||
|
|
Loading…
Reference in New Issue