-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
573 lines (501 loc) · 12 KB
/
Copy pathstyle.css
File metadata and controls
573 lines (501 loc) · 12 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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic");
@import url("font-awesome.min.css");
.usc-logo {
width: 20px; /* Adjust the size as necessary */
height: auto;
margin-right: 20px; /* Space between the logo and the title */
}
.header {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
}
.title{
font-family: "Source Sans Pro", Palatino, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:48px;
font-weight:100;
/* letter-spacing:4px; */
line-height:64px;
margin-top:0;
margin-bottom:0;
}
.divider{
height: 2px;
width: 40%; /* Even shorter line */
margin: 25px auto;
background:
linear-gradient(
to right,
transparent,
#808080 30%, /* Gray color */
#808080 70%,
transparent
);
position: relative;
}
.vert-divider{
width: 2px;
height: 500px; /* Even shorter line */
margin: 25px auto;
background:
linear-gradient(
to bottom,
transparent,
#808080 10%, /* Gray color */
#808080 90%,
transparent
);
position: relative;
}
.subtitle{
font-family: Palatino, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:48px;
font-weight:100;
line-height:52px;
margin-top:0;
margin-bottom:0;
}
.sectitle{
font-family: "Source Sans Pro","Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:24px;
font-weight:800;
line-height:28px;
margin-top:10px;
margin-bottom:30px;
}
.sectitle2{
font-family: "Source Sans Pro","Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:24px;
font-weight:800;
line-height:28px;
text-align: center;
margin-top:10px;
margin-bottom:30px;
}
.author{
font-family: FontAwesome, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:22px;
font-weight:400;
line-height:22px;
margin-top:5px;
margin-bottom:10px;
padding-left:25px;
padding-right:25px;
text-align:justify;
}
.text{
font-family: FontAwesome, "Source Sans Pro", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:20px;
font-weight:400;
line-height:22px;
margin-top:5px;
margin-bottom:10px;
padding-left:25px;
padding-right:25px;
text-align:justify;
}
.container{
margin-top:15px;
margin-left:auto;
margin-right:auto;
max-width:1200px;
}
.container:before,.container:after{
content:"";
display:table;
grid-column-start:1;
grid-row-start:1;
grid-column-end:2;
grid-row-end:2
}
.grey_container{
background-color:#f2f2f2
}
.widget_container {
display: flex;
margin-bottom:15px;
padding-left:25px;
padding-right:25px;
}
.video_container {
margin: 0.4em;
width: 100%;
}
.citation {
background-color:#e6e6e6;
font-family:"Lucida Console", monospace, sans-serif;
font-size:14px;
padding-top:25px;
padding-bottom:25px;
}
.top-image img {
width: 100%; /* Full width for the top image */
max-width: 800px; /* Optional: limit max width */
border-radius: 8px;
margin-bottom: 20px;
}
.bottom-images {
display: flex;
justify-content: space-around;
gap: 20px;
}
.image-case {
width: 45%; /* Adjust to control the width of each bottom image */
}
.image-case img {
width: 100%;
border-radius: 8px;
}
img {
max-width: 100%;
height: auto;
}
button {
padding: 0.5em 0.75em;
margin: 0.4em 0.4em;
min-width: 20ch;
background-color: #ddd;
color: #333;
border-radius: 5px;
border: none;
cursor: pointer;
display: block;
}
button.on {
background-color: #333;
color: #bbb;
}
video {
width: 100%;
}
video.on {
display: block;
}
/* Layout for Representative Failure Cases: Three videos in one row */
.failure-videos {
display: flex;
justify-content: space-between;
gap: 20px;
}
/* Layout for Funny Cases: Two videos in one row */
.funny-videos {
display: flex;
justify-content: space-around;
gap: 20px;
}
a:link,a:visited {
color: #1367a7;
text-decoration: none;
}
a:hover {
color: #208799;
}
.layered-paper-big { /* modified from: http://css-tricks.com/snippets/css/layered-paper/ */
box-shadow:
0px 0px 1px 1px rgba(0,0,0,0.35), /* The top layer shadow */
5px 5px 0 0px #fff, /* The second layer */
5px 5px 1px 1px rgba(0,0,0,0.35), /* The second layer shadow */
10px 10px 0 0px #fff, /* The third layer */
10px 10px 1px 1px rgba(0,0,0,0.35), /* The third layer shadow */
15px 15px 0 0px #fff, /* The fourth layer */
15px 15px 1px 1px rgba(0,0,0,0.35), /* The fourth layer shadow */
20px 20px 0 0px #fff, /* The fifth layer */
20px 20px 1px 1px rgba(0,0,0,0.35), /* The fifth layer shadow */
25px 25px 0 0px #fff, /* The fifth layer */
25px 25px 1px 1px rgba(0,0,0,0.35); /* The fifth layer shadow */
margin-left: 10px;
margin-right: 45px;
}
.layered-paper { /* modified from: http://css-tricks.com/snippets/css/layered-paper/ */
box-shadow:
0px 0px 1px 1px rgba(0,0,0,0.35), /* The top layer shadow */
5px 5px 0 0px #fff, /* The second layer */
5px 5px 1px 1px rgba(0,0,0,0.35), /* The second layer shadow */
10px 10px 0 0px #fff, /* The third layer */
10px 10px 1px 1px rgba(0,0,0,0.35); /* The third layer shadow */
margin-top: 5px;
margin-left: 10px;
margin-right: 30px;
margin-bottom: 5px;
}
/* Center the heading */
#battery-images .sectitle {
text-align: center;
}
/* Center the image */
.image-container {
text-align: center;
}
.centered-image {
max-width: 55%;
height: auto;
}
/* Container for single top image */
.image-single {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
/* Common styling for all images */
.image-case {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.image-case img {
max-width: 100%;
height: auto;
border-radius: 5px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
margin-bottom: 10px;
}
/* Style for images in a row */
/* Center container for single top image */
.image-single {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
/* Common styling for all images */
.image-case {
display: flex;
flex-direction: column;
align-items: center; /* Center-aligns images */
text-align: center;
margin: 0 auto; /* Centers the container within its parent */
}
.image-case img {
max-width: 100%;
height: auto;
border-radius: 5px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
margin-bottom: 10px; /* Space between image and caption */
}
/* Specific scaling for Force Trend and Failure Mode images */
.large-image {
width: 80%; /* Scales larger image to 80% of container */
}
.small-image {
width: 20%; /* Scales smaller image to 70% of container */
}
/* Specific scaling for Force Trend and Failure Mode images */
.large-part-image {
width: 72.5%; /* Scales larger image to 80% of container */
}
.med-part-image {
width: 67%; /* Scales larger image to 80% of container */
}
.small-part-image {
width: 27.5%; /* Scales smaller image to 70% of container */
}
/* Styling for captions */
.caption {
font-size: 18px;
color: #555;
margin-top: 5px;
}
/* Force row styling for two and three images */
.bottom-images {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}
/* Adjust for mobile responsiveness */
@media (max-width: 768px) {
.bottom-images {
flex-direction: column;
align-items: center;
}
.large-image,
.small-image,
.image-case img {
width: 80%; /* Adjusts size for smaller screens */
}
}
/* General Styling for Videos */
.video-case {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease-in-out;
margin: 1rem;
text-align: center;
}
.video-case:hover {
transform: translateY(-2px);
}
.video-case video {
width: 100%;
border-radius: 8px 8px 0 0;
}
.caption {
font-size: 18px;
color: #555;
margin-top: 5px;
}
/* Styling for Images 2x2 Grid */
.img-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
padding: 1rem;
justify-items: center;
}
/* Styling for Demo Videos Row (Four Side by Side) */
.demo-videos .video-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
padding: 1rem;
justify-items: center;
}
/* Styling for Failure Cases 2x2 Grid */
.failure-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
padding: 1rem;
justify-items: center;
}
/* Styling for Edge Cases 2x2 Grid */
/* Grid layout for Edge Cases */
.edge-grid {
display: grid;
grid-template-columns: repeat(2, 1fr); /* Two columns per row */
gap: 20px;
padding: 1rem;
justify-items: center;
}
/* Ensure the last video spans across both columns in the center */
.video-center {
grid-column: span 2; /* Spans across two columns */
justify-self: center;
max-width: 60%; /* Adjust size if needed */
}
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
.edge-grid {
grid-template-columns: 1fr; /* Stack videos in one column */
}
.video-center {
grid-column: auto; /* Normal placement for mobile */
max-width: 100%;
}
}
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
.demo-videos .video-row,
.failure-grid {
grid-template-columns: 1fr;
}
}
pre {
font-family: "Courier New", Courier, monospace;
white-space: pre-wrap;
word-break: break-word;
}
/* Image Button Functionality */
/* Center the section title */
#hw_setup .sectitle2 {
text-align: center;
margin-bottom: 40px;
font-size: 2rem;
}
/* Make the grid a flex container and center columns */
#hw_setup_grid {
display: flex;
justify-content: center; /* center columns horizontally */
gap: 640px; /* space between columns */
flex-wrap: wrap; /* wrap on smaller screens */
}
/* Each column */
#hw_setup_grid .column {
display: flex;
flex-direction: column;
align-items: center; /* center buttons inside column */
gap: 18px;
}
/* Basic table styling */
.hw-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
font-size: 14px;
}
.hw-table th,
.hw-table td {
border: 1px solid #ddd;
padding: 2.5px;
text-align: center;
}
.hw-table th {
background-color: #f5f5f5;
font-weight: bold;
}
.hw-table .highlight {
font-weight: bold;
}
/* Center the button in the table cell */
.button-wrapper {
position: relative;
display: inline-block;
}
/* Button styling */
.preview-btn {
padding: 1px 10px;
font-size: 1rem;
cursor: pointer;
border-radius: 6px;
border: 2px solid #e2e2e2;
background: #f0f0f0;
transition: background 0.2s;
font-size: 14px;
}
.preview-btn:hover {
background: #e2e2e2;
}
/* Hover preview image */
.hover-preview {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 70vw;
max-height: 70vh;
border: 3px solid #333;
background: white;
padding: 4px;
z-index: 9999;
}
/* Hover caption */
.hover-caption {
display: none;
position: fixed;
top: calc(50% + 20px); /* just below the image */
left: 50%;
transform: translateX(-50%);
background: rgba(0,0,0,0.7);
color: #fff;
padding: 6px 10px;
border-radius: 5px;
max-width: 60vw;
text-align: center;
z-index: 10000;
}
/* Show image + caption on hover */
.button-wrapper:hover .hover-preview,
.button-wrapper:hover .hover-caption {
display: block;
}
/* Optional: style links inside caption */
.hover-caption a {
color: #ffd700;
text-decoration: underline;
}
.hover-caption a:hover {
color: #fff;
}