forked from nobleclem/jQuery-RTable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.rtable.css
88 lines (78 loc) · 1.66 KB
/
jquery.rtable.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
.rtable {
max-width: 100%;
}
.rtable > thead > tr > th,
.rtable > tbody > tr > td {
white-space: nowrap;
}
.rtable.active,
.rtable.active thead,
.rtable.active tbody,
.rtable.active th,
.rtable.active td,
.rtable.active tr {
display: block;
}
/* NOTABLE LAYOUT */
.rtable.notable.active > thead {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
}
.rtable.notable.active > tbody > tr {
padding-top: 5px;
padding-bottom: 5px;
}
.rtable.notable.active > tbody > tr + tr {
border-top: 1px solid;
}
.rtable.notable.active > tbody > tr > td {
position: relative;
padding-left: 50% !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
white-space: normal;
}
.rtable.notable.active > tbody > tr > td:before {
display: block;
float: left;
width: 95%;
min-height: 1px;
margin-left: -100%;
left: 0;
font-weight: bold;
content: attr(data-title);
text-align: right;
}
.rtable.notable.active > tbody > tr > td:after {
content: ' ';
display: table;
clear: both;
}
/* FLIPSCROLL LAYOUT */
.rtable.flipscroll.active {
position: relative;
width: 100%;
}
.rtable.flipscroll.active > thead {
float: left;
border-right: 1px solid;
}
.rtable.flipscroll.active > thead > tr {
padding-right: 5px;
}
.rtable.flipscroll.active > tbody {
position: relative;
white-space: nowrap;
overflow-x: auto;
}
.rtable.flipscroll.active > tbody > tr {
display: inline-block;
padding: 0 5px;
}
.rtable.flipscroll.active > tbody > tr + tr {
border-left: 1px solid;
}