This commit is contained in:
Andras Bacsai 2024-03-27 14:51:58 +01:00
parent 39082541ff
commit 6cc93250b8
4 changed files with 14 additions and 14 deletions

View File

@ -198,16 +198,16 @@ .box {
@apply flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 bg-white border border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:no-underline; @apply flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 bg-white border border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:no-underline;
} }
.box-boarding { .box-boarding {
@apply flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 dark:text-white bg-neutral-50 border border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:text-black hover:no-underline text-black; @apply flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 dark:text-white bg-neutral-50 border border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:text-black hover:no-underline text-black ;
}
.box-without-bg {
@apply flex p-2 transition-colors dark:hover:text-white hover:no-underline min-h-[4rem] border border-neutral-200 dark:border-black;
} }
.on-box { .on-box {
@apply rounded hover:bg-neutral-300 dark:hover:bg-coolgray-500/20; @apply rounded hover:bg-neutral-300 dark:hover:bg-coolgray-500/20;
} }
.box-without-bg {
@apply flex p-2 transition-colors dark:hover:text-white hover:no-underline min-h-[4rem];
}
.box-title { .box-title {
@apply font-bold text-black dark:text-white group-hover:dark:text-white; @apply font-bold text-black dark:text-white group-hover:dark:text-white;

View File

@ -1,7 +1,7 @@
<div @class([ <div @class([
'transition-all duration-150 box-without-bg dark:bg-coolgray-100 bg-white group border-l-2 border-transparent', 'transition-all duration-150 box-without-bg dark:bg-coolgray-100 bg-white group',
'hover:border-coollabs cursor-pointer' => !$upgrade, 'hover:border-l-coollabs cursor-pointer' => !$upgrade,
'hover:border-red-500 cursor-not-allowed' => $upgrade, 'hover:border-l-red-500 cursor-not-allowed' => $upgrade,
]) @if (!$upgrade) wire:click={{ $wire }} @endif> ]) @if (!$upgrade) wire:click={{ $wire }} @endif>
<div class="flex items-center"> <div class="flex items-center">
{{ $logo }} {{ $logo }}

View File

@ -15,8 +15,8 @@
<div class="pt-4 pb-2">Docker Networks</div> <div class="pt-4 pb-2">Docker Networks</div>
<div class="grid grid-cols-1 gap-2 pb-4 lg:grid-cols-4"> <div class="grid grid-cols-1 gap-2 pb-4 lg:grid-cols-4">
@foreach ($server->destinations() as $destination) @foreach ($server->destinations() as $destination)
<div class="cursor-pointer box-without-bg bg-coolgray-200 group" <div class="cursor-pointer box-without-bg group"
:class="'{{ $selectedDestination === $destination->id }}' && 'bg-coollabs dark:text-white'" :class="'{{ $selectedDestination === $destination->id }}' ? 'bg-coollabs text-white' : 'dark:bg-coolgray-100 bg-white'"
wire:click="selectServer('{{ $server->id }}', '{{ $destination->id }}')"> wire:click="selectServer('{{ $server->id }}', '{{ $destination->id }}')">
{{ $destination->name }} {{ $destination->name }}
</div> </div>
@ -30,7 +30,7 @@
<div>These will be cloned to the new project</div> <div>These will be cloned to the new project</div>
<div class="grid grid-cols-1 gap-2 pt-4 opacity-95 lg:grid-cols-2 xl:grid-cols-3"> <div class="grid grid-cols-1 gap-2 pt-4 opacity-95 lg:grid-cols-2 xl:grid-cols-3">
@foreach ($environment->applications->sortBy('name') as $application) @foreach ($environment->applications->sortBy('name') as $application)
<div class="cursor-default box-without-bg bg-coolgray-100 group"> <div class="bg-white cursor-default box-without-bg dark:bg-coolgray-100 group">
<div class="flex flex-col"> <div class="flex flex-col">
<div class="font-bold dark:text-white">{{ $application->name }}</div> <div class="font-bold dark:text-white">{{ $application->name }}</div>
<div class="description">{{ $application->description }}</div> <div class="description">{{ $application->description }}</div>
@ -38,7 +38,7 @@
</div> </div>
@endforeach @endforeach
@foreach ($environment->databases()->sortBy('name') as $database) @foreach ($environment->databases()->sortBy('name') as $database)
<div class="cursor-default box-without-bg bg-coolgray-100 group"> <div class="bg-white cursor-default box-without-bg dark:bg-coolgray-100 group">
<div class="flex flex-col"> <div class="flex flex-col">
<div class="font-bold dark:text-white">{{ $database->name }}</div> <div class="font-bold dark:text-white">{{ $database->name }}</div>
<div class="description">{{ $database->description }}</div> <div class="description">{{ $database->description }}</div>
@ -46,7 +46,7 @@
</div> </div>
@endforeach @endforeach
@foreach ($environment->services->sortBy('name') as $service) @foreach ($environment->services->sortBy('name') as $service)
<div class="cursor-default box-without-bg bg-coolgray-100 group"> <div class="bg-white cursor-default box-without-bg dark:bg-coolgray-100 group">
<div class="flex flex-col"> <div class="flex flex-col">
<div class="font-bold dark:text-white">{{ $service->name }}</div> <div class="font-bold dark:text-white">{{ $service->name }}</div>
<div class="description">{{ $service->description }}</div> <div class="description">{{ $service->description }}</div>

View File

@ -51,7 +51,7 @@
$application->status)->contains(['running']), $application->status)->contains(['running']),
'border-l border-dashed border-warning' => Str::of( 'border-l border-dashed border-warning' => Str::of(
$application->status)->contains(['starting']), $application->status)->contains(['starting']),
'flex gap-2 box-without-bg bg-coolgray-100 hover:text-neutral-300 group', 'flex gap-2 box-without-bg dark:bg-coolgray-100 bg-white dark:hover:text-neutral-300 group',
])> ])>
<div class="flex flex-row w-full"> <div class="flex flex-row w-full">
<div class="flex flex-col flex-1"> <div class="flex flex-col flex-1">
@ -95,7 +95,7 @@
$database->status)->contains(['running']), $database->status)->contains(['running']),
'border-l border-dashed border-warning' => Str::of( 'border-l border-dashed border-warning' => Str::of(
$database->status)->contains(['restarting']), $database->status)->contains(['restarting']),
'flex gap-2 box-without-bg bg-coolgray-100 hover:text-neutral-300 group', 'flex gap-2 box-without-bg dark:bg-coolgray-100 bg-white dark:hover:text-neutral-300 group',
])> ])>
<div class="flex flex-row w-full"> <div class="flex flex-row w-full">
<div class="flex flex-col flex-1"> <div class="flex flex-col flex-1">