Commit c4566bf1 authored by Daniel S. Billing's avatar Daniel S. Billing
Browse files

Updated table styling to work for dark and light

parent 1fdc8850
Pipeline #509119456 passed with stages
in 5 minutes and 27 seconds
<x-dashboard-tile :position="$position">
<div class="grid grid-rows-auto-1 gap-2 h-full">
<div class="flex items-center justify-center rounded-full"
style="background-color: rgba(255, 255, 255, .9)" >
<div class="">
@lang('dashboard-packagist-tile::packagisttile.Packagist data')
</div>
<div class="flex items-center justify-center">
@lang('dashboard-packagist-tile::packagisttile.Packagist data')
</div>
<div wire:poll.{{ $refreshIntervalInSeconds }}s class="self-center | divide-y-2">
<table class="table-auto w-full">
<tr class="bg-gray-600" >
<table class="w-full">
<thead class="bg-dimmed text-invers">
<tr>
<th class="border p-2">@lang('dashboard-packagist-tile::packagisttile.Package')</th>
<th class="border p-2">@lang('dashboard-packagist-tile::packagisttile.Daily')</th>
<th class="border p-2">@lang('dashboard-packagist-tile::packagisttile.Monthly')</th>
<th class="border p-2">@lang('dashboard-packagist-tile::packagisttile.Total')</th>
@if(config('dashboard.tiles.packagist.display.faves'))
<th class="border p-2">@lang('dashboard-packagist-tile::packagisttile.Faves')</th>
<th class="border p-2">@lang('dashboard-packagist-tile::packagisttile.Faves')</th>
@endif
@if(config('dashboard.tiles.packagist.display.github_stars'))
<th class="border p-2">@lang('dashboard-packagist-tile::packagisttile.GitHub stars')</th>
@endif
</tr>
</thead>
@if(isset($totals))
<tr class="bg-gray-400" >
<tr class="border-b bg-invers text-dimmed">
<td class="border p-2">
@lang('dashboard-packagist-tile::packagisttile.Totals')
</td>
......@@ -35,9 +34,9 @@
{{number_format($totals['totalDownloads'], 0, ',', '.')}}
</td>
@if(config('dashboard.tiles.packagist.display.faves'))
<td class="border p-2">
{{number_format($totals['favers'], 0, ',', '.')}}
</td>
<td class="border p-2">
{{number_format($totals['favers'], 0, ',', '.')}}
</td>
@endif
@if(config('dashboard.tiles.packagist.display.github_stars'))
<td class="border p-2">
......@@ -47,7 +46,7 @@
</tr>
@endif
@foreach($packages as $package)
<tr class="@if($loop->even) bg-gray-200 @endif @if($package->getAbandoned())line-through @endif">
<tr class="@if($loop->even) bg-dimmed text-invers @endif @if($package->getAbandoned())line-through @endif">
<td class="border p-2">
<a href="https://packagist.org/packages/{{$package->getname()}}" target="_blank">{{$package->getname()}}</a>
</td>
......@@ -61,9 +60,9 @@
{{number_format($package->getTotalDownloads(), 0, ',', '.')}}
</td>
@if(config('dashboard.tiles.packagist.display.faves'))
<td class="border p-2">
{{number_format($package->getFavers(), 0, ',', '.')}}
</td>
<td class="border p-2">
{{number_format($package->getFavers(), 0, ',', '.')}}
</td>
@endif
@if(config('dashboard.tiles.packagist.display.github_stars'))
<td class="border p-2">
......@@ -73,7 +72,7 @@
</tr>
@endforeach
@if(isset($totals))
<tr class="bg-gray-400" >
<tr class="border-b bg-invers text-dimmed">
<td class="border p-2">
@lang('dashboard-packagist-tile::packagisttile.Totals')
</td>
......@@ -87,9 +86,9 @@
{{number_format($totals['totalDownloads'], 0, ',', '.')}}
</td>
@if(config('dashboard.tiles.packagist.display.faves'))
<td class="border p-2">
{{number_format($totals['favers'], 0, ',', '.')}}
</td>
<td class="border p-2">
{{number_format($totals['favers'], 0, ',', '.')}}
</td>
@endif
@if(config('dashboard.tiles.packagist.display.github_stars'))
<td class="border p-2">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment