mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Adding warning color to the remove button.
This commit is contained in:
parent
6e716f6465
commit
b2e34606fe
6 changed files with 53 additions and 5 deletions
|
|
@ -38,7 +38,7 @@
|
||||||
<DialogDescription>Are you sure you want to remove from your collection?</DialogDescription>
|
<DialogDescription>Are you sure you want to remove from your collection?</DialogDescription>
|
||||||
|
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
<button on:click={removeGame}>Remove</button>
|
<button class="remove" on:click={removeGame}>Remove</button>
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
boredState.update((n) => ({ ...n, dialog: { isOpen: false } }));
|
boredState.update((n) => ({ ...n, dialog: { isOpen: false } }));
|
||||||
|
|
@ -82,6 +82,14 @@
|
||||||
background-color: var(--color-btn-primary-active-hover);
|
background-color: var(--color-btn-primary-active-hover);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.remove {
|
||||||
|
background-color: var(--warning);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--warning-hover);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
<DialogDescription>Are you sure you want to remove from your wishlist?</DialogDescription>
|
<DialogDescription>Are you sure you want to remove from your wishlist?</DialogDescription>
|
||||||
|
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
<button on:click={removeGame}>Remove</button>
|
<button class="remove" on:click={removeGame}>Remove</button>
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
boredState.update((n) => ({ ...n, dialog: { isOpen: false } }));
|
boredState.update((n) => ({ ...n, dialog: { isOpen: false } }));
|
||||||
|
|
@ -82,6 +82,14 @@
|
||||||
background-color: var(--color-btn-primary-active-hover);
|
background-color: var(--color-btn-primary-active-hover);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.remove {
|
||||||
|
background-color: var(--warning);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--warning-hover);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
max-height: 50px;
|
max-height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remove {
|
||||||
|
background-color: var(--warning);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--warning-hover);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{#if existsInCollection}
|
{#if existsInCollection}
|
||||||
<button class="btn button-icon" type="button" on:click={() => removeGame()}
|
<button class="btn button-icon remove" type="button" on:click={() => removeGame()}
|
||||||
>Remove from collection <MinusCircleIcon width="24" height="24" /></button
|
>Remove from collection <MinusCircleIcon width="24" height="24" /></button
|
||||||
>
|
>
|
||||||
{:else}
|
{:else}
|
||||||
|
|
@ -139,6 +139,14 @@
|
||||||
background-color: var(--color-btn-primary-active);
|
background-color: var(--color-btn-primary-active);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.remove {
|
||||||
|
background-color: var(--warning);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--warning-hover);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.button-icon {
|
.button-icon {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, auto);
|
grid-template-columns: repeat(2, auto);
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
--clr-input-txt: hsl(177 100% 15%);
|
--clr-input-txt: hsl(177 100% 15%);
|
||||||
|
|
||||||
--red: #990000;
|
--red: #990000;
|
||||||
--tomatoOrange: #e54b4b;
|
--tomatoOrange: hsla(0, 75%, 60%, 1);
|
||||||
--redBrown: #633539;
|
--redBrown: #633539;
|
||||||
--blue: #336699;
|
--blue: #336699;
|
||||||
--black: #1f273a;
|
--black: #1f273a;
|
||||||
|
|
@ -318,6 +318,14 @@ input {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.remove {
|
||||||
|
background-color: var(--warning);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--warning-hover);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,10 @@ html[data-theme='🌛 Night'] {
|
||||||
|
|
||||||
/* Input Fields */
|
/* Input Fields */
|
||||||
--input-bg: #181a1b;
|
--input-bg: #181a1b;
|
||||||
|
|
||||||
|
/* Button */
|
||||||
|
--warning: hsla(0, 75%, 60%, 0.90);
|
||||||
|
--warning-hover: hsla(0, 75%, 60%, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-theme='☀️ Daylight'] {
|
html[data-theme='☀️ Daylight'] {
|
||||||
|
|
@ -126,4 +130,8 @@ html[data-theme='☀️ Daylight'] {
|
||||||
|
|
||||||
/* Input Fields */
|
/* Input Fields */
|
||||||
--input-bg: #181a1b;
|
--input-bg: #181a1b;
|
||||||
|
|
||||||
|
/* Button */
|
||||||
|
--warning: hsla(0, 75%, 60%, 0.90);
|
||||||
|
--warning-hover: hsla(0, 75%, 60%, 1);
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue