Completed
Push — master ( 65fa37...c7bb09 )
by Song
02:44
created

CanFixHeader::fixHeader()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 21

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 21
rs 9.584
c 0
b 0
f 0
1
<?php
2
3
namespace Encore\Admin\Grid\Concerns;
4
5
use Encore\Admin\Admin;
6
7
trait CanFixHeader
8
{
9
    public function fixHeader()
10
    {
11
        Admin::style(<<<STYLE
12
.wrapper, .grid-box .box-body {
13
    overflow: visible;
14
}
15
16
.grid-table {
17
    position: relative;
18
    border-collapse: separate;
19
}
20
21
.grid-table thead tr:first-child th {
22
    background: white;
23
    position: sticky;
24
    top: 0;
25
    z-index: 1;
26
}
27
STYLE
28
        );
29
    }
30
}
31