added hover and border to reports
This commit is contained in:
12822
public/css/app.css
vendored
12822
public/css/app.css
vendored
File diff suppressed because it is too large
Load Diff
@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
@if ($row_total = array_sum($rows))
|
@if ($row_total = array_sum($rows))
|
||||||
@if (isset($parent_id))
|
@if (isset($parent_id))
|
||||||
<tr class="collapse-sub collapse-sub-report" data-collapse="child-{{ $parent_id }}">
|
<tr class="hover:bg-gray-100 border-b collapse-sub collapse-sub-report" data-collapse="child-{{ $parent_id }}">
|
||||||
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" style="padding-left: {{ $tree_level * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
|
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" style="padding-left: {{ $tree_level * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
|
||||||
@else
|
@else
|
||||||
<tr>
|
<tr class="hover:bg-gray-100 border-b">
|
||||||
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
|
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@ -40,10 +40,10 @@
|
|||||||
|
|
||||||
@if ($row_total = array_sum($parent_row_values))
|
@if ($row_total = array_sum($parent_row_values))
|
||||||
@if (isset($parent_id))
|
@if (isset($parent_id))
|
||||||
<tr class="collapse-sub collapse-sub-report" data-collapse="child-{{ $parent_id }}">
|
<tr class="hover:bg-gray-100 border-b collapse-sub collapse-sub-report" data-collapse="child-{{ $parent_id }}">
|
||||||
<td class="{{ $class->column_name_width }} w-24 py-top text-left text-black-400" style="padding-left: {{ $tree_level * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">
|
<td class="{{ $class->column_name_width }} w-24 py-top text-left text-black-400" style="padding-left: {{ $tree_level * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">
|
||||||
@else
|
@else
|
||||||
<tr>
|
<tr class="hover:bg-gray-100 border-b">
|
||||||
<td class="{{ $class->column_name_width }} w-24 py-top text-left text-black-400" title="{{ $class->row_names[$table_key][$id] }}">
|
<td class="{{ $class->column_name_width }} w-24 py-top text-left text-black-400" title="{{ $class->row_names[$table_key][$id] }}">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@ -66,7 +66,7 @@
|
|||||||
<!-- no categories part -->
|
<!-- no categories part -->
|
||||||
@php $rows = $class->row_values[$table_key][$id]; @endphp
|
@php $rows = $class->row_values[$table_key][$id]; @endphp
|
||||||
@if (($row_total = array_sum($rows)) && array_sum($parent_row_values) != array_sum($rows))
|
@if (($row_total = array_sum($rows)) && array_sum($parent_row_values) != array_sum($rows))
|
||||||
<tr class="collapse-sub collapse-sub-report" data-collapse="child-{{ $id }}">
|
<tr class="hover:bg-gray-100 border-b collapse-sub collapse-sub-report" data-collapse="child-{{ $id }}">
|
||||||
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" style="padding-left: {{ ($tree_level + 1) * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
|
<td class="{{ $class->column_name_width }} py-top text-left text-black-400" style="padding-left: {{ ($tree_level + 1) * 20 }}px;" title="{{ $class->row_names[$table_key][$id] }}">{{ $class->row_names[$table_key][$id] }}</td>
|
||||||
@foreach($rows as $row)
|
@foreach($rows as $row)
|
||||||
<td class="{{ $class->column_value_width }} py-top ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs">{{ $class->has_money ? money($row, default_currency(), true) : $row }}</td>
|
<td class="{{ $class->column_value_width }} py-top ltr:text-right rtl:text-left text-alignment-right text-black-400 text-xs">{{ $class->has_money ? money($row, default_currency(), true) : $row }}</td>
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
<li
|
<li
|
||||||
@class([
|
@class([
|
||||||
'mt-1' => $is_print,
|
'mt-1' => $is_print,
|
||||||
'collapse-sub collapse-sub-report' => ! $is_print
|
'hover:bg-gray-100 collapse-sub collapse-sub-report' => ! $is_print
|
||||||
])
|
])
|
||||||
data-collapse="child-{{ $parent_id }}">
|
data-collapse="child-{{ $parent_id }}">
|
||||||
@else
|
@else
|
||||||
<li>
|
<li class="hover:bg-gray-100">
|
||||||
@endif
|
@endif
|
||||||
<div
|
<div
|
||||||
@class([
|
@class([
|
||||||
@ -56,11 +56,11 @@
|
|||||||
<li
|
<li
|
||||||
@class([
|
@class([
|
||||||
'mt-1' => $is_print,
|
'mt-1' => $is_print,
|
||||||
'collapse-sub collapse-sub-report' => ! $is_print
|
'hover:bg-gray-100 collapse-sub collapse-sub-report' => ! $is_print
|
||||||
])
|
])
|
||||||
data-collapse="child-{{ $parent_id }}">
|
data-collapse="child-{{ $parent_id }}">
|
||||||
@else
|
@else
|
||||||
<li>
|
<li class="hover:bg-gray-100">
|
||||||
@endif
|
@endif
|
||||||
<div style="display: flex; justify-content: space-between;">
|
<div style="display: flex; justify-content: space-between;">
|
||||||
<div style="display:flex; align-items: center; padding-left: {{ $tree_level * 20 }}px;">
|
<div style="display:flex; align-items: center; padding-left: {{ $tree_level * 20 }}px;">
|
||||||
@ -84,7 +84,7 @@
|
|||||||
<li
|
<li
|
||||||
@class([
|
@class([
|
||||||
'mt-1' => $is_print,
|
'mt-1' => $is_print,
|
||||||
'collapse-sub collapse-sub-report' => ! $is_print
|
'hover:bg-gray-100 collapse-sub collapse-sub-report' => ! $is_print
|
||||||
])
|
])
|
||||||
data-collapse="child-{{ $id }}">
|
data-collapse="child-{{ $id }}">
|
||||||
<div style="display: flex; justify-content: space-between;">
|
<div style="display: flex; justify-content: space-between;">
|
||||||
|
Reference in New Issue
Block a user