UNPKG

1.71 kBSCSSView Raw
1.vgt-table{
2 & th{
3 padding: .75em 1.5em .75em .75em;
4 vertical-align: middle;
5 position: relative;
6 &.sorting{
7 cursor: pointer;
8 }
9 &.sorting:after {
10 content: '';
11 display: none;
12 position: absolute;
13 height: 0px;
14 width: 0px;
15 right: 6px;
16 top: 50%;
17 margin-top: -3px;
18 border-left: 6px solid transparent;
19 border-right: 6px solid transparent;
20 border-bottom: 6px solid $link-color;
21 }
22 &.sorting:hover:after{
23 display: inline-block;
24 border-bottom-color: lighten($link-color, 10%);
25 }
26 }
27 & th.line-numbers, & th.vgt-checkbox-col {
28 padding: 0 .75em 0 .75em;
29 color: $text-color;
30 border-right: 1px solid $border-color;
31 word-wrap: break-word;
32 width: 25px;
33 text-align: center;
34 background: linear-gradient($thead-bg-color-1, $thead-bg-color-2);
35 }
36 & th.filter-th {
37 padding: .75em .75em .75em .75em;
38 }
39
40 th.vgt-row-header{
41 border-bottom: 2px solid $border-color;
42 border-top: 2px solid $border-color;
43 background-color: lighten($border-color, 10%);
44 }
45
46 thead th{
47 color: $text-color;
48 vertical-align: bottom;
49 border-bottom: 1px solid $border-color;
50 padding-right: 1.5em;
51 background: linear-gradient($thead-bg-color-1, $thead-bg-color-2);
52 &.vgt-checkbox-col{
53 vertical-align: middle;
54 }
55 &.sorting-asc, &.sorting-desc {
56 color: darken($text-color, 15%);
57 &:after {
58 content: '';
59 display: block;
60 }
61 }
62 &.sorting-desc:after {
63 border-top: 6px solid $link-color;
64 border-left: 6px solid transparent;
65 border-right: 6px solid transparent;
66 border-bottom: none;
67 }
68 }
69}