-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-table.css
107 lines (107 loc) · 1.57 KB
/
main-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
96
97
98
99
100
101
102
103
104
105
106
107
td {
text-align: center;
margin: 0px;
border: 0px;
padding: 5px;
height: 30px;
cursor: pointer;
}
td:first-child, th:first-child {
border-radius: 5px 0px 0px 5px;
}
td:last-child, th:last-child {
border-radius: 0px 5px 5px 0px;
}
td:nth-child(2) {
text-align: left;
padding-left: 20px;
}
td:nth-child(3) {
text-align: right;
}
tr {
position: relative;
overflow: auto;
}
td:nth-child(1) {
position: sticky;
left: 0px;
z-index: 10;
}
td:nth-child(2) {
position: sticky;
left: 30px;
z-index: 10;
}
th:nth-child(1) {
position: sticky;
left: 0px;
z-index: 10;
}
th:nth-child(2) {
position: sticky;
left: 30px;
z-index: 20;
}
th {
text-align: center;
margin: 0px;
border: 0px;
padding: 5px 8px;
hyphens: auto;
flex-direction: column;
cursor: pointer;
font-weight: normal;
}
th.treaty-header {
width: 120px;
min-width: 50px;
vertical-align: top;
}
th.data-header {
vertical-align: bottom;
}
td, th {
cursor: pointer;
}
td:first-child,th:first-child {
width: 5px;
font-size: 24px;
}
th.sort-arrows {
text-align: center;
}
td:nth-child(2),th:nth-child(2) {
width: 10%;
}
td:nth-child(3),th:nth-child(3) {
width: 10px;
text-align: center;
}
td:nth-child(4) {
width: 10%;
padding-right: 20px;
text-align: right;
}
th:nth-child(2) {
text-align: left;
padding-left: 20px;
}
.country-name {
flex-grow
}
tr:nth-child(2n) td,th {
background-color: white;
}
tr:nth-child(2n+1) td {
background-color: #eee;
}
thead {
position: sticky;
z-index: 30;
top: 0;
background-color: #fff
}
img.treaty-logo {
height: 48px;
}