-
Notifications
You must be signed in to change notification settings - Fork 0
/
members.css
164 lines (139 loc) · 2.99 KB
/
members.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
#membersList {
position: relative;
--year-fr: calc(100% / var(--years));
--month-fr: calc(var(--year-fr) / 12);
--day-fr: calc(var(--month-fr) / 31);
width: 94vw;
counter-reset: participant;
margin-left: calc(-1 * (47vw - var(--container-width) / 2));
}
@media (max-width: 1600px) {
#membersList thead th + th {
writing-mode: vertical-lr;
}
}
.terms {
position: relative;
}
#membersList table {
position: relative;
table-layout: fixed;
border-spacing: 0;
}
#membersList tbody tr:nth-child(odd) {
background: hsl(220 10% 97%);
}
#membersList tbody tr:hover {
background: hsl(220 10% 93%);
}
#membersList thead th {
--padding: .3em;
padding: var(--padding);
word-break: break-all;
}
#membersList thead th + th::before {
content: "";
position: absolute;
margin-left: calc(-1 * var(--padding));
top: 0;
bottom: 0;
width: 1px;
background: hsl(220 10% 50% / .3);
}
#membersList th.name {
padding: .1em;
white-space: nowrap;
counter-increment: participant;
}
#membersList th.name::before {
content: counter(participant) ". ";
opacity: .5;
}
#membersList th:first-child {
width: 17em;
}
#membersList td.terms > div {
display: grid;
grid-template-columns: repeat(calc(var(--years) + 1), 1fr);
}
.term {
--_sy: calc(var(--sy) - 1998);
--_ey: calc(var(--ey) - 1998);
--_sm: calc(var(--sm) - 1);
--_em: calc(var(--em) - 1);
--start: calc(var(--day-fr) * var(--sd) + var(--month-fr) * var(--_sm) + var(--_sy) * var(--year-fr) );
--end: calc(var(--day-fr) * var(--ed) + var(--month-fr) * var(--_em) + var(--_ey) * var(--year-fr) );
position: absolute;
top: 50%;
left: var(--start);
transform: translateY(-50%);
width: calc(var(--end) - var(--start));
grid-column-start: calc(1 + var(--_sy));
grid-column-end: calc(1 + var(--_ey));
box-sizing: border-box;
padding: 0 .3em;
font-size: 70%;
font-weight: bold;
color: white;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
background: hsl(220 10% 70%) linear-gradient(to right, white, hsl(0 0% 0% / .1) 2px, transparent);
border-radius: 1px;
}
.chair {
background: repeating-linear-gradient(
45deg,
#9f9f9f,
#9f9f9f 10px,
#7f7f7f 10px,
#7f7f7f 20px
);
}
.appointed {
background-color: hsl(195 70% 60%);
}
.appointed.chair {
background: repeating-linear-gradient(
45deg,
hsl(195 70% 60%),
hsl(195 70% 60%) 10px,
hsl(195 70% 40%) 10px,
hsl(195 70% 40%) 20px
);
}
.elected,
.auto-elected {
background-color: hsl(80 60% 45%);
}
.elected.chair,
.auto-elected.chair {
background: repeating-linear-gradient(
45deg,
hsl(80 60% 45%),
hsl(80 60% 45%) 10px,
hsl(80 60% 25%) 10px,
hsl(80 60% 25%) 20px
);
}
.staff-contact {
background-color: hsl(350 40% 70%);
}
.staff-contact.chair {
background: repeating-linear-gradient(
45deg,
hsl(350 40% 70%),
hsl(350 40% 70%) 10px,
hsl(350 40% 50%) 10px,
hsl(350 40% 50%) 20px
);
}
.resigned {
border-right: 3px solid hsl(0 80% 45%);
}
.legend {
font-size: 70%;
font-weight: bold;
color: white;
}