-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresponsive-table.css
48 lines (43 loc) · 951 Bytes
/
responsive-table.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
table.responsive-table,
table.responsive-table thead,
table.responsive-table tbody,
table.responsive-table th,
table.responsive-table td,
table.responsive-table tr {
display: block;
}
table.responsive-table thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
table.responsive-table tbody tr td {
position: relative;
padding: 13px 6px;
padding-left: 50%;
}
table.responsive-table tbody tr td:first-child {
border-top: 0;
}
table.responsive-table tbody td,
table.responsive-table tbody td.text-center,
table.responsive-table tbody td.text-right {
text-align: left !important;
}
table.responsive-table tbody td:before {
position: absolute;
display: table-cell;
vertical-align: middle;
top: 0;
left: 0;
width: 48%;
height: 100%;
padding-right: 10px;
padding-left: 6px;
padding-top: 3px;
content: attr(title);
white-space: normal;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}