Made changes to CSS and merged together.
This commit is contained in:
@@ -158,4 +158,19 @@
|
|||||||
|
|
||||||
--pending-block-bg: #222b;
|
--pending-block-bg: #222b;
|
||||||
--pending-block-color: #62ff7a;
|
--pending-block-color: #62ff7a;
|
||||||
|
|
||||||
|
/* TaskEditView styles */
|
||||||
|
--toggle-btn-bg: #f3f3f3;
|
||||||
|
--toggle-btn-color: #444;
|
||||||
|
--toggle-btn-border: #cbd5e1;
|
||||||
|
|
||||||
|
--toggle-btn-good-bg: #38c172;
|
||||||
|
--toggle-btn-good-color: #fff;
|
||||||
|
--toggle-btn-good-shadow: #38c17233;
|
||||||
|
--toggle-btn-good-border: #38c172;
|
||||||
|
|
||||||
|
--toggle-btn-bad-bg: #e53e3e;
|
||||||
|
--toggle-btn-bad-color: #fff;
|
||||||
|
--toggle-btn-bad-shadow: #e53e3e33;
|
||||||
|
--toggle-btn-bad-border: #e53e3e;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -160,48 +160,4 @@ const submit = async () => {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped></style>
|
||||||
.good-bad-toggle {
|
|
||||||
display: flex;
|
|
||||||
gap: 0.5rem;
|
|
||||||
margin-bottom: 1.1rem;
|
|
||||||
justify-content: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
button.toggle-btn {
|
|
||||||
flex: 1 1 0;
|
|
||||||
padding: 0.5rem 1.2rem;
|
|
||||||
border-width: 2px;
|
|
||||||
border-radius: 7px;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 1rem;
|
|
||||||
cursor: pointer;
|
|
||||||
background: #f3f3f3;
|
|
||||||
color: #444;
|
|
||||||
transition:
|
|
||||||
background 0.18s,
|
|
||||||
color 0.18s,
|
|
||||||
border-style 0.18s;
|
|
||||||
outline: none;
|
|
||||||
border-style: outset; /* Default style */
|
|
||||||
border-color: #cbd5e1;
|
|
||||||
}
|
|
||||||
|
|
||||||
button.toggle-btn.good-active {
|
|
||||||
background: #38c172;
|
|
||||||
color: #fff;
|
|
||||||
box-shadow: 0 2px 8px #38c17233;
|
|
||||||
transform: translateY(2px) scale(0.97);
|
|
||||||
border-style: ridge;
|
|
||||||
border-color: #38c172;
|
|
||||||
}
|
|
||||||
|
|
||||||
button.toggle-btn.bad-active {
|
|
||||||
background: #e53e3e;
|
|
||||||
color: #fff;
|
|
||||||
box-shadow: 0 2px 8px #e53e3e33;
|
|
||||||
transform: translateY(2px) scale(0.97);
|
|
||||||
border-style: ridge;
|
|
||||||
border-color: #e53e3e;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ const listHeight = computed(() => {
|
|||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
v-if="props.deletable"
|
v-if="props.deletable"
|
||||||
class="btn btn-danger"
|
class="delete-btn"
|
||||||
@click.stop="handleDelete(reward.id)"
|
@click.stop="handleDelete(reward.id)"
|
||||||
aria-label="Delete reward"
|
aria-label="Delete reward"
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
@@ -203,32 +203,32 @@ button.toggle-btn {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: #f3f3f3;
|
|
||||||
color: #444;
|
|
||||||
transition:
|
transition:
|
||||||
background 0.18s,
|
background 0.18s,
|
||||||
color 0.18s,
|
color 0.18s,
|
||||||
border-style 0.18s;
|
border-style 0.18s;
|
||||||
outline: none;
|
outline: none;
|
||||||
border-style: outset; /* Default style */
|
border-style: outset; /* Default style */
|
||||||
border-color: #cbd5e1;
|
background: var(--toggle-btn-bg);
|
||||||
|
color: var(--toggle-btn-color);
|
||||||
|
border-color: var(--toggle-btn-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
button.toggle-btn.good-active {
|
button.toggle-btn.good-active {
|
||||||
background: #38c172;
|
background: var(--toggle-btn-good-bg);
|
||||||
color: #fff;
|
color: var(--toggle-btn-good-color);
|
||||||
box-shadow: 0 2px 8px #38c17233;
|
box-shadow: 0 2px 8px var(--toggle-btn-good-shadow);
|
||||||
transform: translateY(2px) scale(0.97);
|
transform: translateY(2px) scale(0.97);
|
||||||
border-style: ridge;
|
border-style: ridge;
|
||||||
border-color: #38c172;
|
border-color: var(--toggle-btn-good-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
button.toggle-btn.bad-active {
|
button.toggle-btn.bad-active {
|
||||||
background: #e53e3e;
|
background: var(--toggle-btn-bad-bg);
|
||||||
color: #fff;
|
color: var(--toggle-btn-bad-color);
|
||||||
box-shadow: 0 2px 8px #e53e3e33;
|
box-shadow: 0 2px 8px var(--toggle-btn-bad-shadow);
|
||||||
transform: translateY(2px) scale(0.97);
|
transform: translateY(2px) scale(0.97);
|
||||||
border-style: ridge;
|
border-style: ridge;
|
||||||
border-color: #e53e3e;
|
border-color: var(--toggle-btn-bad-border);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ const filteredTasks = computed(() => {
|
|||||||
@click.stop="handleDelete(task.id)"
|
@click.stop="handleDelete(task.id)"
|
||||||
aria-label="Delete task"
|
aria-label="Delete task"
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-danger"
|
class="delete-btn"
|
||||||
>
|
>
|
||||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" aria-hidden="true">
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" aria-hidden="true">
|
||||||
<circle cx="10" cy="10" r="9" fill="#fff" stroke="#ef4444" stroke-width="2" />
|
<circle cx="10" cy="10" r="9" fill="#fff" stroke="#ef4444" stroke-width="2" />
|
||||||
|
|||||||
Reference in New Issue
Block a user