-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.css
95 lines (80 loc) · 1.39 KB
/
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
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
body {
line-height: 20px;
-webkit-font-smoothing: antialiased;
text-align: center;
}
@media screen and (max-width: 580px) {
body {
font-size: 16px;
line-height: 22px;
}
}
.wrapper {
margin: 0 auto;
padding-top: 40px;
width: 80%;
}
@media screen and (max-width: 580px) {
.table {
display: block;
}
}
.table {
margin: 0 0 40px 0;
width: 100%;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
display: table;
}
.row {
display: table-row;
background: #f6f6f6
}
.row:nth-of-type(odd) {
background: #e9e9e9}
.row.header.green {
font-weight: 900;
color: #ffffff;
background: #27ae60;
}
.row.header.blue {
font-weight: 900;
color: #ffffff;
background: #0F52BA;
}
.row.header.black {
background: #343434;
}
@media screen and (max-width: 580px) {
.row {
padding: 14px 0 7px;
display: block;
}
.row.header, .row.cell {
display: none;
}
.row .cell {
margin-bottom: 10px;
}
.row .cell:before {
margin-bottom: 3px;
content: attr(data-title);
min-width: 98px;
font-size: 10px;
line-height: 10px;
font-weight: bold;
text-transform: uppercase;
color: #969696;
display: block;
}
}
.cell {
padding: 16px 22px;
display: table-cell;
vertical-align: middle;
}
@media screen and (max-width: 580px) {
.cell {
padding: 2px 16px;
display: block;
}
}