feat(styles): one stylesheet source for react and svelte (#3350)
* feat(styles): create stylesheets for react and svelte based on one source * refactor(styling): cleanup * refactor(postcss): share a config * refactor(postcss): replace env hack with env file
This commit is contained in:
@@ -47,30 +47,3 @@
|
||||
</div>
|
||||
</EdgeLabelRenderer>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.svelte-flow__edge-label {
|
||||
position: absolute;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.svelte-flow__edge-path {
|
||||
stroke: var(--edge-color, var(--edge-color-default));
|
||||
stroke-width: 1;
|
||||
}
|
||||
|
||||
:global(.selected) .svelte-flow__edge-path {
|
||||
stroke: var(--edge-color-selected, var(--edge-color-selected-default));
|
||||
}
|
||||
|
||||
:global(.animated) .svelte-flow__edge-path {
|
||||
stroke-dasharray: 5;
|
||||
animation: dashdraw 0.5s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes dashdraw {
|
||||
from {
|
||||
stroke-dashoffset: 10;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user