Skip to content

Commit 9abaa08

Browse files
committed
style tweaks: Button-Varianten und Klassen in mehreren Komponenten angepasst
1 parent 376cb75 commit 9abaa08

File tree

6 files changed

+10
-105
lines changed

6 files changed

+10
-105
lines changed

src/app.css

Lines changed: 5 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
--secondary: oklch(50% .02 250);
9898
--secondary-foreground: oklch(100% 0 0);
9999
--muted: oklch(30% .01 250);
100-
--muted-foreground: oklch(72% .01 250);
100+
--muted-foreground: oklch(65% .01 250);
101101
--accent: oklch(58% .19 35);
102102
--accent-foreground: oklch(100% 0 0);
103103
--destructive: oklch(65% .2 25);
@@ -229,7 +229,7 @@
229229
--secondary: oklch(50% .02 264);
230230
--secondary-foreground: oklch(100% 0 0);
231231
--muted: oklch(30% .01 264);
232-
--muted-foreground: oklch(72% .01 264);
232+
--muted-foreground: oklch(65% .01 264);
233233
--accent: oklch(79% .17 70);
234234
--accent-foreground: oklch(15% 0 0);
235235
--destructive: oklch(65% .2 25);
@@ -306,7 +306,7 @@
306306
transform: translateY(-2px);
307307
background: color-mix(in srgb, var(--accent) 6%, transparent);
308308
}
309-
button[data-slot="button"] {
309+
button[data-slot="button"]:not([class*="bg-primary"]):not([class*="bg-destructive"]):not([class*="bg-secondary"]):not([class*="bg-background"]):not(:hover) {
310310
background-color: var(--button);
311311
}
312312
button[data-slot="switch"] {
@@ -322,102 +322,7 @@
322322
border: 1px solid var(--border);
323323
}
324324
}
325-
326-
/* Button Hover Effects - Specific to shadcn-svelte variants */
327-
button:hover {
328-
transition: background-color 0.2s ease, color 0.2s ease;
329-
}
330-
.add-board-button {
331-
background-color: var(--muted);
332-
border: 2px dotted var(--border);
333-
color: var(--muted-foreground);
334-
}
335-
336-
337-
.menu-item:hover{
338-
background-color: var(--primary) !important;
339-
color: var(--primary-foreground) !important;
340-
border-color: var(--accent) !important;
341-
}
342-
.menu-item-danger:hover{
343-
background-color: var(--destructive) !important;
344-
color: var(--destructive-foreground) !important;
345-
border-color: var(--destructive) !important;
346-
}
347-
.editor-menu button.menu-item{
348-
background-color: transparent;
349-
}
350-
.editor-menu button.menu-item:hover{
351-
border-radius: 0!important;
352-
}
353-
button.btn:hover{
354-
border: 2px solid var(--border);
355-
border-color: var(--accent);
356-
}
357-
.editor-menu-item{
358-
background-color: transparent;
359-
}
360-
361-
/* hover:bg-primary hover:text-primary-foreground */
362-
.editor-menu-item:hover, .editor-menu-item:active{
363-
background-color: var(--primary) !important;
364-
color: var(--primary-foreground) !important;
365-
}
366-
.hamburger-menu-button:hover, .hamburger-menu-button:active{
367-
background-color: var(--primary) !important;
368-
color: var(--foreground) !important;
369-
}
370-
371-
button.trash{
372-
/* background-color: var(--destructive)!important; */
373-
color: var(--destructive)!important;
374-
375-
}
376-
377-
button.btn:focus-visible,
378-
.menu-item:focus-visible {
379-
outline: 2px solid var(--accent);
380-
outline-offset: 2px;
381-
border-color: var(--accent);
382-
}
383-
/* Primary Button Hover */
384-
button.bg-primary:hover {
385-
background-color: var(--primary) !important;
386-
color: var(--primary-foreground) !important;
387-
}
388-
389-
/* Secondary Button Hover */
390-
button.bg-secondary:hover {
391-
background-color: var(--secondary) !important;
392-
color: var(--secondary-foreground) !important;
393-
}
394-
395-
/* Outline Button Hover */
396-
button.border-border:hover {
397-
background-color: var(--accent) !important;
398-
color: var(--accent-foreground) !important;
399-
border-color: var(--accent) !important;
400-
}
401-
402-
/* Ghost Button Hover */
403-
button.bg-transparent:hover:not(.bg-primary):not(.bg-secondary) {
404-
background-color: var(--accent) !important;
405-
color: var(--accent-foreground) !important;
406-
}
407-
408-
/* Destructive Button Hover */
409-
button.bg-destructive:hover {
410-
background-color: var(--destructive) !important;
411-
color: var(--destructive-foreground) !important;
412-
}
413-
414-
.text-destructive {
415-
color: var(--destructive)!important;
416-
}
417-
418-
.card-content button {
419-
background-color: var(--primary);
420-
}
325+
/* ------------------------------------------- */
421326
.active-board .active-board-indicator {
422327
color: var(--accent);
423328
}
@@ -556,7 +461,7 @@ button.bg-destructive:hover {
556461
outline: none;
557462
}
558463

559-
*:focus-visible {
464+
*:focus-visible:not([data-slot="input"]):not([data-slot="textarea"]) {
560465
outline: 2px solid var(--accent);
561466
outline-offset: 2px;
562467
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);

src/routes/cardsboard/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function toggleRightSidebar() {
270270
<Button
271271
variant="ghost"
272272
size="icon"
273-
class="h-8 w-8 hamburger-menu-button"
273+
class="h-8 w-8"
274274
title="Board Einstellungen"
275275
onclick={() => { hamburgerMenuOpen = !hamburgerMenuOpen; }}
276276
>

src/routes/cardsboard/BoardsList.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@
770770
onclick={authStore.isAuthenticated ? handleCreateBoard : null}
771771
disabled={authStore.isAuthenticated ? false : true}
772772
class="w-full gap-2 h-auto py-2 whitespace-normal add-board-button"
773-
variant="default"
773+
variant="ghost"
774774
data-testid="create-board-button"
775775
>
776776
{#if isCreating}

src/routes/cardsboard/CardDetailsDialog.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@
825825
>
826826
Abbrechen
827827
</Button>
828-
<Button
828+
<Button variant="default"
829829
size="sm"
830830
onclick={handleSaveDescription}
831831
>

src/routes/cardsboard/Column.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@
536536

537537
<Separator />
538538

539-
<Button variant="destructive" size="sm" onclick={handleDelete} class="w-full btn">
539+
<Button variant="destructive" size="sm" onclick={handleDelete} class="w-full">
540540
<TrashIcon class="h-4 w-4" />
541541
Spalte löschen
542542
</Button>

src/routes/cardsboard/Topbar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267
bind:value={editTitleValue}
268268
onblur={saveTitle}
269269
onkeydown={handleTitleKeydown}
270-
class="font-semibold text-lg bg-transparent border-b-2 border-primary outline-none px-1 min-w-[150px] max-w-[400px]"
270+
class="font-semibold text-lg bg-transparent rounded outline-none px-1 min-w-[150px] max-w-[400px]"
271271
style="width: {Math.max(150, editTitleValue.length * 10)}px"
272272
/>
273273
{:else if canEdit}

0 commit comments

Comments
 (0)