-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
221 lines (187 loc) · 4.38 KB
/
styles.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
/* Default dark theme (dark mode as default) */
:root {
--bg-color: #1c1c1e;
--text-color: #eaeaea;
--table-bg-color: #2c2c2e;
--table-border-color: #444;
--table-hover-bg-color: #3a3a3c;
--th-bg-color: #3a3a3c;
--th-hover-bg-color: #5a5a5c;
--th-text-color: #eaeaea;
--icon-invert: 1; /* White icons for dark mode */
}
/* Light mode theme */
.light-mode {
--bg-color: #f4f4f9;
--text-color: #333;
--table-bg-color: white;
--table-border-color: #ddd;
--table-hover-bg-color: #f1f1f1;
--th-bg-color: #007bff;
--th-hover-bg-color: #0056b3;
--th-text-color: white;
--icon-invert: 0.3; /* Darker icons for light mode */
}
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: var(--bg-color);
color: var(--text-color);
}
h1 {
text-align: center;
}
.filters {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 20px;
}
.filters-row {
width: 100%;
text-align: center;
margin-bottom: 10px;
}
.filters label {
margin-right: 15px;
font-size: 16px;
}
.dark-mode-toggle {
text-align: center;
margin-bottom: 20px;
}
.dark-mode-toggle button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: var(--th-bg-color);
color: var(--th-text-color);
border: none;
border-radius: 4px;
}
/* Ensure the table cells adjust to fit content */
table {
width: 90%;
margin: 0 auto;
border-collapse: collapse;
background-color: var(--table-bg-color);
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
th, td {
padding: 12px;
border: 1px solid var(--table-border-color);
text-align: left;
white-space: nowrap; /* Prevent wrapping by default */
}
/* Allow wrapping only for the "Control" column */
td.control-column {
white-space: normal; /* Enable wrapping for this column */
word-wrap: break-word; /* Ensure long words break properly */
}
th {
background-color: var(--th-bg-color);
color: var(--th-text-color);
cursor: pointer;
}
th.sortable:hover {
background-color: var(--th-hover-bg-color);
}
tr:nth-child(even) {
background-color: var(--table-hover-bg-color);
}
tr:hover {
background-color: var(--table-hover-bg-color);
}
.control-column {
cursor: pointer;
}
.control-column:hover {
text-decoration: underline;
}
#methodologyPopup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.popup-content {
background-color: var(--table-bg-color);
color: var(--text-color);
padding: 20px;
border-radius: 5px;
max-width: 80%;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.popup-content h3 {
margin-top: 0;
}
.popup-content button {
margin-top: 15px;
padding: 8px 16px;
background-color: var(--th-bg-color);
color: var(--th-text-color);
border: none;
border-radius: 4px;
cursor: pointer;
}
.popup-content button:hover {
background-color: var(--th-hover-bg-color);
}
.methodology-row {
background-color: var(--table-bg-color) !important;
}
.methodology-row.hidden {
display: none;
}
.methodology-content {
padding: 15px 30px;
border-left: 4px solid var(--th-bg-color);
margin: 0 20px;
background-color: rgba(0, 0, 0, 0.2);
}
.light-mode .methodology-content {
background-color: rgba(0, 0, 0, 0.05);
}
.methodology-content strong {
color: var(--th-text-color);
display: block;
margin-bottom: 8px;
}
.light-mode .methodology-content strong {
color: var(--th-bg-color);
}
.methodology-content p {
margin: 0;
line-height: 1.4;
}
tr.active {
background-color: var(--table-hover-bg-color) !important;
}
.author-info {
text-align: center;
margin: 20px 0;
font-size: 0.9em;
}
.social-links {
display: flex;
justify-content: center;
gap: 12px;
margin-top: 4px;
}
.social-icon {
width: 18px;
height: 18px;
filter: invert(var(--icon-invert));
transition: opacity 0.2s;
}
.social-icon:hover {
opacity: 0.7;
}