forked from tofsjonas/sortable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsortable.scss
executable file
·72 lines (66 loc) · 1.5 KB
/
sortable.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
$sortable-stripe-color: #e4e4e4;
$sortable-th-color: #fff;
$sortable-th-bg: #808080;
$sortable-th-color-active: #000;
.sortable {
border-spacing: 0;
thead {
td {
font-weight: bold;
text-align: center;
text-transform: uppercase;
}
}
tbody {
tr {
&:nth-child(odd) {
background: $sortable-stripe-color;
}
}
}
td,
th {
padding: 10px;
&:first-child {
border-top-left-radius: 4px;
}
&:last-child {
border-top-right-radius: 4px;
}
}
th {
background: $sortable-th-bg;
color: $sortable-th-color;
cursor: pointer;
font-weight: normal;
text-align: left;
text-transform: capitalize;
vertical-align: baseline;
white-space: nowrap;
&:hover {
color: $sortable-th-color-active;
&::after {
color: inherit;
content: " \025B8";
}
}
&::after {
color: transparent;
content: " \025B8";
}
&.dir-d {
color: $sortable-th-color-active;
&::after {
color: inherit;
content: " \025BE";
}
}
&.dir-u {
color: $sortable-th-color-active;
&::after {
color: inherit;
content: " \025B4";
}
}
}
}