-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage-facemash.css
More file actions
255 lines (223 loc) · 4.82 KB
/
Copy pathimage-facemash.css
File metadata and controls
255 lines (223 loc) · 4.82 KB
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
/* Main container for the Facemash image comparison interface */
#facemash-container {
display: flex;
justify-content: center;
gap: 20px;
flex-direction: row;
max-width: 1000px;
margin: 0 auto;
padding: 20px;
}
/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
#facemash-container {
flex-direction: column;
align-items: center;
}
}
/* Rating display (hidden by default) */
.facemash-rating {
display: none;
text-align: center;
padding: 10px 0;
font-weight: bold;
}
/* Styling for individual image containers */
.facemash-image {
flex: 1;
cursor: pointer;
transition: transform 0.2s;
}
/* Hover effect for images */
.facemash-image:hover {
transform: scale(1.05);
}
/* Image styling within facemash-image */
.facemash-image img {
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: block;
height: auto;
margin: auto;
max-height: 585px;
max-width: 100%;
}
/* Title styling above each image */
.facemash-title {
text-align: center;
padding: 5px 0;
font-weight: bold;
font-size: 1.1em;
}
/* Description styling below each image */
.facemash-description {
text-align: center;
padding: 5px 1rem;
font-size: 0.9em;
color: #555;
}
/* Container for the results table */
#facemash-results-container {
max-width: 1200px;
margin: 20px auto;
padding: 20px;
}
/* Row styling for results table */
.facemash-results-row {
display: flex;
border-bottom: 1px solid #eee;
padding: 10px 0;
align-items: center;
}
/* Responsive adjustment for results rows */
@media (max-width: 768px) {
.facemash-results-row {
flex-direction: column;
align-items: flex-start;
}
}
/* Header row styling (not explicitly used in HTML but reserved) */
.facemash-results-header {
font-weight: bold;
background-color: #f5f5f5;
border-bottom: 2px solid #ddd;
}
/* General cell styling in results table */
.facemash-results-cell {
flex: 1;
padding: 5px 10px;
}
/* Thumbnail image styling in results */
.facemash-results-cell img {
max-width: 80px;
height: auto;
border-radius: 5px;
}
/* Fixed-width thumbnail column */
.facemash-results-th-thumbnail,
.facemash-results-td-thumbnail {
flex: 0 0 100px;
}
/* Description column with larger flex weight */
.facemash-results-th-description,
.facemash-results-td-description {
flex: 4;
word-wrap: break-word;
}
/* Rating column styling */
.facemash-results-th-rating,
.facemash-results-td-rating {
flex: 1;
font-size: 1.1em;
color: #f1c40f;
}
/* Adjust description column on mobile */
@media (max-width: 768px) {
.facemash-results-th-description,
.facemash-results-td-description {
flex: 1;
}
}
/* Adjust rating column on mobile */
@media (max-width: 768px) {
.facemash-results-th-rating,
.facemash-results-td-rating {
font-size: 1em;
}
}
/* Subtext for rating (Elo score) */
.facemash-results-td-rating span {
margin-left: 5px;
color: #333;
font-size: 0.66em;
}
/* Pagination container */
.facemash-pagination {
margin: 20px 0;
text-align: center;
display: flex;
justify-content: center;
gap: 10px;
flex-direction: row;
flex-wrap: wrap;
}
/* Responsive pagination adjustment */
@media (max-width: 768px) {
.facemash-pagination {
flex-direction: column;
align-items: center;
}
}
/* Styling for pagination links */
.facemash-page-link {
padding: 8px 12px;
text-decoration: none;
color: #0073aa;
border: 1px solid #ddd;
border-radius: 4px;
transition: background-color 0.2s;
}
/* Hover effect for pagination links */
.facemash-page-link:hover {
background-color: #f5f5f5;
}
/* Current page indicator */
.facemash-page-current {
padding: 8px 12px;
background-color: #0073aa;
color: white;
border-radius: 4px;
font-weight: bold;
}
/* Ensure header rating text is readable */
.facemash-results-th-rating {
color: #111;
}
/* Adjust padding for title and description on mobile */
@media (max-width: 768px) {
.facemash-title,
.facemash-description {
padding: 8px 0;
}
}
/* Skip button styling */
.facemash-skip-button {
display: block;
margin: auto;
padding: 10px 20px;
background-color: #f5f5f5;
border: 1px solid #ddd;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
color: #333;
transition: background-color 0.2s;
height: 5.3rem;
}
/* Hover effect for skip button */
.facemash-skip-button:hover {
background-color: #e0e0e0;
}
/* Responsive skip button adjustment */
@media (max-width: 768px) {
.facemash-skip-button {
width: 100%;
max-width: 200px;
}
}
/* Styling for the rank column header */
.facemash-results-th-rank {
flex: 0 0 50px;
}
/* Styling for the rank column data */
.facemash-results-td-rank {
flex: 0 0 50px;
text-align: center;
}
/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
.facemash-results-th-rank,
.facemash-results-td-rank {
flex: 0 0 40px;
}
}