-
Notifications
You must be signed in to change notification settings - Fork 2
/
smpSortableTable.css
113 lines (97 loc) · 2.61 KB
/
smpSortableTable.css
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
.smpSortableTable--processed,
.smpSortableTable--processed thead,
.smpSortableTable--processed tbody,
.smpSortableTable--processed tr,
.smpSortableTable--processed th,
.smpSortableTable--processed td {
border-collapse: collapse;
border: 1px solid black;
padding: 5px;
}
.smpSortableTable--processed tr:nth-child(even) {
background-color: #eeeeee;
}
.smpSortableTable--nav {
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
margin-top: 10px;
}
.smpSortableTable--sortable,
.smpSortableTable--nav-links {
cursor: pointer;
color: #3b8ede;
}
.smpSortableTable--nav-links {
color: white;
background-color: #3b8ede;
padding: 5px 10px;
}
.smpSortableTable--nav-links:not(.smpSortableTable--disabled):hover {
color: white;
background-color: #41a9ff;
text-decoration: none;
}
.smpSortableTable--sortable.desc::after {
content: '\25B2';
}
.smpSortableTable--sortable.asc::after {
content: '\25BC';
}
.smpSortableTable--nav-links.smpSortableTable--disabled {
background-color: #eeeeee;
cursor: not-allowed;
color: lightgrey;
}
.smpSortableTable--prev,
.smpSortableTable--first {
float: left;
margin-right: 15px;
}
.smpSortableTable--next,
.smpSortableTable--last{
float: right;
margin-left: 15px;
}
@media (max-width: 768px) {
.smpSortableTable--processed.responsive,
.smpSortableTable--processed.responsive thead,
.smpSortableTable--processed.responsive tbody,
.smpSortableTable--processed.responsive tr,
.smpSortableTable--processed.responsive td {
display:block;
width:95vw;
max-width: 100%;
border:none;
padding:2px;
}
.smpSortableTable--processed.responsive th {
display: inline-block;
width: auto;
color: white;
background-color: #3b8ede;
padding: 5px 10px;
margin: 5px 10px 5px 0;
border:none;
}
.smpSortableTable--processed.responsive th.smp-not-sortable {
display:none;
}
.smpSortableTable--processed.responsive thead:before {
content: attr(data-smp-content) ;
font-weight: bold;
}
.smpSortableTable--processed.responsive tbody td:before {
content: attr(data-smp-content) ': ' ;
font-weight: bold;
}
}
@media (max-width: 450px) {
.smpSortableTable--processed.responsive + .smpSortableTable--nav > * {
display:block;
float:none;
margin:15px 0 0 0;
}
}