Skip to content

Commit 1bf2f59

Browse files
committed
Adjust danger button colors and add ghost danger button
1 parent f0595cc commit 1bf2f59

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

web/src/app.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@
129129

130130
@utility btn-fill-danger {
131131
@apply btn-fill text-white;
132-
--btn-color: var(--color-red-500);
132+
--btn-color: var(--color-red-700);
133+
@variant dark {
134+
--btn-color: var(--color-red-800);
135+
}
133136
}
134137

135138
@utility btn-fill-primary {
@@ -175,6 +178,27 @@
175178
}
176179
}
177180

181+
@utility btn-ghost-danger {
182+
@apply border btn-ghost;
183+
--btn-color: var(--color-red-700);
184+
color: var(--color-red-800);
185+
@variant dark {
186+
--btn-color: var(--color-red-800);
187+
color: var(--color-red-300);
188+
}
189+
border-color: transparent;
190+
&:hover {
191+
color: white;
192+
border-color: var(--btn-border);
193+
@apply shadow-xs;
194+
}
195+
&:active {
196+
color: white;
197+
border-color: var(--btn-border);
198+
@apply shadow-none;
199+
}
200+
}
201+
178202
.png-bg {
179203
background: url("/png.gif") right bottom var(--color-gray-300);
180204
}

web/src/routes/OpenDiffDialog.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
<span class="iconify shrink-0 octicon--person-16"></span>
123123
{getGithubUsername()}
124124
</div>
125-
<Button.Root class="flex items-center gap-2 rounded-md btn-fill-danger px-2 py-1" onclick={logoutGithub}>
125+
<Button.Root class="flex items-center gap-2 rounded-md btn-ghost-danger px-2 py-1" onclick={logoutGithub}>
126126
<span class="iconify shrink-0 octicon--sign-out-16"></span>
127127
Sign out
128128
</Button.Root>

0 commit comments

Comments
 (0)