Skip to content

Commit

Permalink
delete button basic styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mishankov committed Jan 18, 2024
1 parent 8e916f9 commit b954a17
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/manipulations/components/Manipulation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{:else if manipulation.type == "splitJoin"}
<SplitJoin bind:splitString={manipulation.splitString} bind:joinString={manipulation.joinString} bind:innerManipulations={manipulation.innerManipulations}/>
{/if}
<button on:click={sendDeleteEvent}>x</button>
<button class="delete" on:click={sendDeleteEvent}>x</button>
</div>

<style>
Expand All @@ -55,4 +55,21 @@
gap: 10px;
align-items: center;
}
.delete {
background-color: var(--bg-color-100);
color: var(--text-color);
border: none;
border-radius: 10px;
}
.delete:hover {
outline: none;
background-color: var(--bg-color-110);
}
.delete:active {
outline: none;
background-color: var(--bg-color-120);
}
</style>
3 changes: 3 additions & 0 deletions src/manipulations/components/SplitJoin.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
}
.inner-manipulations {
display: flex;
flex-direction: column;
gap: 10px;
padding-left: 10px;
}
</style>

0 comments on commit b954a17

Please sign in to comment.