-
Notifications
You must be signed in to change notification settings - Fork 0
/
css.css
94 lines (78 loc) · 1.57 KB
/
css.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
table {
width: 100%;
border-collapse: collapse;
}
/* Zebra striping */
tr:nth-of-type(odd) {
background: #f4f4f4;
}
tr:nth-of-type(even) {
background: #fff;
}
th {
background: #782f40;
color: #ffffff;
font-weight: 300;
}
td,
th {
padding: 10px;
border: 1px solid #ccc;
text-align: left;
}
td:nth-of-type(1) {
font-weight: 500 !important;
}
td {
font-family: 'Roboto', sans-serif !important;
font-weight: 300;
line-height: 20px;
}
span {
font-style: italic
}
@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.responsive,
.responsive thead,
.responsive tbody,
.responsive th,
.responsive td,
.responsive tr {
display: block !important;
}
/* Hide table headers (but not display: none;, for accessibility) */
.responsive thead tr {
position: absolute !important;
top: -9999px;
left: -9999px;
}
.responsive tr {
border: 1px solid #ccc;
}
.responsive td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee !important;
position: relative !important;
padding-left: 25% !important;
}
.responsive td:before {
/* Now like a table header */
position: absolute !important;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap !important;
font-weight: 500 !important;
}
/*
Label the data
*/
.responsive td:before {
content: attr(data-table-header) !important;
}
}