Set weekends apart in the dark calendar and make invoice cards white
Days off in the task calendar used the dark page colour, so they did not show in the dark theme: they are zinc-950 now. Invoice cards on the billing material page get a white background (zinc-900 in dark mode) so they stand out from the grey page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -384,7 +384,7 @@ new class extends Component
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@foreach ($export->invoices as $invoiceNumber => $invoice)
|
@foreach ($export->invoices as $invoiceNumber => $invoice)
|
||||||
<section wire:key="invoice-{{ $invoice->key }}" aria-labelledby="invoice-{{ $invoice->key }}-heading" class="space-y-4 rounded-lg border border-zinc-300 p-4 dark:border-zinc-600">
|
<section wire:key="invoice-{{ $invoice->key }}" aria-labelledby="invoice-{{ $invoice->key }}-heading" class="space-y-4 rounded-lg border border-zinc-300 bg-white p-4 dark:border-zinc-600 dark:bg-zinc-900">
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<h3 id="invoice-{{ $invoice->key }}-heading" class="text-lg font-semibold">{{ __('billing.invoices.heading', ['number' => $invoiceNumber + 1, 'customer' => $invoice->customerName]) }}</h3>
|
<h3 id="invoice-{{ $invoice->key }}-heading" class="text-lg font-semibold">{{ __('billing.invoices.heading', ['number' => $invoiceNumber + 1, 'customer' => $invoice->customerName]) }}</h3>
|
||||||
<dl class="grid gap-x-4 gap-y-1 text-sm sm:grid-cols-[auto_1fr]">
|
<dl class="grid gap-x-4 gap-y-1 text-sm sm:grid-cols-[auto_1fr]">
|
||||||
|
|||||||
@@ -556,7 +556,7 @@ new class extends Component
|
|||||||
wire:key="head-{{ $day }}"
|
wire:key="head-{{ $day }}"
|
||||||
@class([
|
@class([
|
||||||
'border-l border-zinc-200 px-1 py-2 text-center dark:border-zinc-700',
|
'border-l border-zinc-200 px-1 py-2 text-center dark:border-zinc-700',
|
||||||
'bg-zinc-200 dark:bg-zinc-800' => $this->isDayOff($day),
|
'bg-zinc-200 dark:bg-zinc-950' => $this->isDayOff($day),
|
||||||
])
|
])
|
||||||
>
|
>
|
||||||
<div @class(['font-semibold' => $day === now()->format('Y-m-d')])>{{ $this->dayLabel($day) }}</div>
|
<div @class(['font-semibold' => $day === now()->format('Y-m-d')])>{{ $this->dayLabel($day) }}</div>
|
||||||
@@ -602,7 +602,7 @@ new class extends Component
|
|||||||
x-bind:class="isTarget('{{ $day }}', '{{ $row->userId ?? '' }}') && 'outline-2 -outline-offset-2 outline-blue-700 dark:outline-blue-300'"
|
x-bind:class="isTarget('{{ $day }}', '{{ $row->userId ?? '' }}') && 'outline-2 -outline-offset-2 outline-blue-700 dark:outline-blue-300'"
|
||||||
@class([
|
@class([
|
||||||
'min-h-12 border-l border-zinc-200 dark:border-zinc-700',
|
'min-h-12 border-l border-zinc-200 dark:border-zinc-700',
|
||||||
'bg-zinc-200 dark:bg-zinc-800' => $this->isDayOff($day),
|
'bg-zinc-200 dark:bg-zinc-950' => $this->isDayOff($day),
|
||||||
])
|
])
|
||||||
style="grid-column: {{ $index + 2 }}; grid-row: 1 / span {{ $row->lanes + 1 }};"
|
style="grid-column: {{ $index + 2 }}; grid-row: 1 / span {{ $row->lanes + 1 }};"
|
||||||
></div>
|
></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user