-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsortable.css
144 lines (136 loc) · 3.38 KB
/
sortable.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* *** sortable.css for sortable.js *** */
/* custom >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
.divbefore { /* 'divBeforeTable' */
/* box-shadow: 0px 5px 5px rgba(0,0,0,0.1);*/
}
.divafter { /* 'divAfterTable' */
box-shadow: 0px -5px 5px rgba(0,0,0,0.5);
}
.sortable {
margin: 0;
padding: 0;
border-collapse: collapse;
border-style: none;
border-width: 0;
border-spacing: 0;
}
.sortable thead,
.sortableth2 {
height: 40px;
line-height: 40px;
background: #effbf8;
white-space: nowrap;
overflow: hidden;
}
.sortableth2 {
box-shadow: 0px 5px 5px rgba( 0,0,0,0.1 ) inset,
0px 5px 5px rgba( 0,0,0,0.5 );
opacity: 0.95;
}
.sortable tr {
height: 30px;
cursor: default;
}
.sortableth2 a,
.sortable td {
padding: 0 3px;
}
.sortable thead td { /* ios safari 'thead', 'tbody' - not support 'box-shadow' */
box-shadow: 0px 9px 5px -6px rgba( 0,0,0,0.1 ) inset;
}
.sortable thead td {
/* font-weight: bold;
text-align: center;*/ /* default */
}
.sortable tbody {
/* background: #fff;*/
}
/* reponsive ------------------------------------------------------------------------------------------------------------------------------------- */
/*
min-width: 0 !important - required for column with 'max-width'
:nth-child( n ) - column# start with left 'tdpad', n=1, table 1st column, n=2
*/
@media( max-width: 569px ) {
/* .sortable td:nth-child( 4 ) { min-width: 0 !important; display: none !important; }
.sortable td:nth-child( 5 ) { min-width: 0 !important; max-width: 300px; }*/
}
@media( max-width: 414px ) {
/* .sortable td:nth-child( 3 ) { min-width: 0 !important; display: none !important; }
.sortable td:nth-child( 5 ) { min-width: 0 !important; max-width: 220px; }*/
}
@media( max-width: 320px ) {
/* .sortable td:nth-child( 6 ) { display: none !important; }
.sortable td:nth-child( 5 ) { min-width: 0 !important; max-width: 200px; }*/
}
@media( max-height: 414px ) {
.sortable thead td {
border-bottom: 1px solid rgba( 0,0,0,0.05 );
}
}
/* SHOULD NOT change below this line ------------------------------------------------------------------------------------------- */
.sortableth2 a,
.sortable td { /* 3 lines for ellipsis: 'td max-width' must be set */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sortable tbody tr:nth-child( even ) { /* zebra stripe */
background: rgba( 0,0,0,0.05 );
}
.sortable tbody tr:hover {
background: rgba( 0,0,0,0.15 );
}
.sorted { /* sorted column */
background: rgba( 0,0,0,0.05 );
}
.asc:before, .asctmp:before {
content: '▲';
color: green;
}
.desc:before {
content: '▼';
color: crimson;
}
.asctmp:before {
opacity: 0;
}
/* custom <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< */
/* DO NOT change below this line ---------------------------------------------------------------------------------------------------- */
body {
width: 100% !important;
}
.divbefore,
.divafter {
position: fixed;
z-index: 10;
}
.divafter {
bottom: 0;
}
.sortable thead,
.sortableth2 {
cursor: pointer;
user-select: none;
}
.sortableth2 {
position: fixed;
width: 100%;
z-index: 1;
}
.sortableth2 a {
display: inline-block;
}
.sortable thead {
visibility: hidden;
}
.sortable thead td:empty {
pointer-events: none;
}
.sortable tbody {
overflow: auto;
-webkit-overflow-scrolling: touch; /* ios momentum scroll */
}
.sortable .tdpad {
width: 50%; /* oversize for centering table */
padding: 0;
}