// Repairs sake of performance on tables with many lines.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,6 +1,4 @@
|
||||
.table
|
||||
@extend .table-striped
|
||||
@extend .table-hover
|
||||
border-collapse: separate
|
||||
border-spacing: 0 2px 0 0
|
||||
margin-bottom: 5px
|
||||
@@ -24,15 +22,20 @@
|
||||
color: black
|
||||
input, select
|
||||
margin: 0
|
||||
tbody > tr > td
|
||||
border-top: none
|
||||
background-color: white
|
||||
tbody > tr > td
|
||||
padding: 3px 7px
|
||||
vertical-align: middle
|
||||
word-wrap: nowrap
|
||||
font-size: 12px
|
||||
border-bottom: solid 1px #eee
|
||||
tbody
|
||||
> tr > td
|
||||
border-top: none
|
||||
background-color: white
|
||||
padding: 3px 7px
|
||||
vertical-align: middle
|
||||
word-wrap: nowrap
|
||||
font-size: 12px
|
||||
border-bottom: solid 1px #eee
|
||||
> tr.odd > td
|
||||
background-color: $table-bg-accent
|
||||
> tr:hover > td
|
||||
background-color: $table-bg-hover
|
||||
|
||||
td.center, th.center
|
||||
text-align: center
|
||||
td.pointer
|
||||
|
||||
@@ -27,10 +27,11 @@
|
||||
{foreach $list AS $index => $tr}
|
||||
<tr
|
||||
{if $position_identifier}id="tr_{$id_category}_{$tr.$identifier}_{if isset($tr.position['position'])}{$tr.position['position']}{else}0{/if}"{/if}
|
||||
class="{if isset($tr.class)} {$tr.class}{/if}"
|
||||
class="{if isset($tr.class)} {$tr.class}{/if} {if $tr@iteration is odd by 1}odd{/if}"
|
||||
{if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if}
|
||||
|
||||
>
|
||||
<td class="center">
|
||||
<td class="text-center">
|
||||
{if $bulk_actions && $has_bulk_actions}
|
||||
{if isset($list_skip_actions.delete)}
|
||||
{if !in_array($tr.$identifier, $list_skip_actions.delete)}
|
||||
@@ -40,6 +41,7 @@
|
||||
<input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" />
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
{foreach $fields_display AS $key => $params}
|
||||
{block name="open_td"}
|
||||
|
||||
Reference in New Issue
Block a user