-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcustom.css
More file actions
89 lines (77 loc) · 1.85 KB
/
custom.css
File metadata and controls
89 lines (77 loc) · 1.85 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
/* Remove top spacing between navbar and banner */
#quarto-content main {
padding-top: 0 !important;
margin-top: 0 !important;
}
main.page-columns {
padding-top: 0 !important;
margin-top: 0 !important;
}
/* Use smaller negative margin to close gap without cutting banner */
.column-page:first-of-type {
margin-top: -1.00rem !important;
padding-top: 0 !important;
}
.column-page:first-of-type img {
display: block;
margin: 0 auto !important;
padding: 0 !important;
width: 85% !important; /* Reduce banner to 80% of its width */
height: auto;
}
/* Card styling for text-only cards (without images) */
.card h3:first-child {
margin-top: 0;
}
.card:not(:has(img)) {
padding: 1.5rem;
}
.card:not(:has(img)):hover {
transform: translateY(-5px);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
border-color: #0d6efd !important;
transition: all 0.2s ease-in-out;
}
.card p {
color: #6c757d;
margin-bottom: 0;
}
/* Card styling for cards WITH images */
.card:has(img) {
position: relative;
overflow: hidden;
transition: all 0.2s ease-in-out;
}
.card:has(img):hover {
transform: translateY(-5px);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
border-color: #0d6efd !important;
}
/* Hide card body (description) by default, show on hover */
.card .card-body {
position: absolute;
bottom: 0;
left: 0;
right: 0;
max-height: 40%;
background: rgba(255, 255, 255, 0.98);
opacity: 0;
transform: translateY(100%);
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
padding: 0 !important;
margin: 0 !important;
border-top: 1px solid #dee2e6;
font-size: 0.85rem;
overflow: hidden;
}
.card:hover .card-body {
opacity: 1 !important;
transform: translateY(0) !important;
padding: 0.05rem !important;
}
.figure-img {
display: block;
margin: 0 auto;
width: 70%;
max-width: 600px;
}