-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathresponsive-table.css
More file actions
46 lines (40 loc) · 1.27 KB
/
responsive-table.css
File metadata and controls
46 lines (40 loc) · 1.27 KB
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
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
/* Force table to not be like tables anymore */
table, thead, tbody, th, td, tr {
display: block;
}
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 70%;
}
td:before {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
width: 25%;
padding-right: 10px;
white-space: nowrap;
}
/* Label the data */
.projects-1 td:nth-of-type(1):before { content: "Geocoder"; }
.projects-1 td:nth-of-type(2):before { content: "GeocoderBundle (Symfony2)"; }
.projects-1 td:nth-of-type(3):before { content: "GeocoderModule (ZF2)"; }
.projects-1 td:nth-of-type(4):before { content: "GeocodableBehavior (Propel)"; }
.projects-2 td:nth-of-type(1):before { content: "StackGeoIp"; }
.projects-2 td:nth-of-type(2):before { content: "Geocoder for Silex"; }
.projects-2 td:nth-of-type(3):before { content: "Geocoder for Laravel"; }
.projects-2 td:nth-of-type(4):before { content: "GeocoderJS"; }
.ecg td {
text-align: left;
}
}