-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
208 lines (170 loc) · 3.79 KB
/
styles.css
File metadata and controls
208 lines (170 loc) · 3.79 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
/* css styles */
/* Circular headshots */
.headshot {
border-radius: 50%;
object-fit: cover;
border: 2px solid #ddd;
}
/*Headshots for lab members as rows*/
.person-row{
display: flex;
align-items: center;
gap: 24px;
margin-bottom: 32px;
}
.person-photo{
width: 180px;
height: 180px;
object-fit: cover; /* crops instead of stretching */
border-radius: 50%; /* circle */
flex-shrink: 0;
}
.person-info{
max-width: 600px;
}
.references {
text-align: left;
}
/* --- Put PDF icons at the far right of each reference entry --- */
/* Quarto/Pandoc CSL bibliography entries usually use .csl-entry */
.references .csl-entry {
position: relative;
padding-right: 2.2rem; /* make room for the icon */
}
/* Hide the URL text and turn the link into an icon button */
.references .csl-entry a[href$=".pdf"]{
position: absolute;
right: 0;
top: 0.10em; /* adjust if you want it slightly lower/higher */
width: 2rem;
height: 2rem;
font-size: 0; /* hide the URL text */
text-decoration: none;
}
/* Draw your PDF svg */
.references .csl-entry a[href$=".pdf"]::after{
content: "";
display: block;
width: 100%;
height: 100%;
background: url("images/pdf-icon.svg") no-repeat center / contain;
}
/* Smooth scrolling when clicking year nav */
html { scroll-behavior: smooth; }
/* Year navigation */
.pub-year-nav ul{
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
list-style: none;
padding: 0;
margin: 0 0 1.25rem 0;
justify-content: center;
}
.pub-year-nav a{
display: inline-block;
padding: 0.3rem 0.7rem;
border: 1px solid #d7dbe0;
border-radius: 999px;
text-decoration: none;
font-weight: 600;
font-size: 0.95rem;
}
.pub-year-nav a:hover{
background: #f3f5f7;
}
/* Year headings */
.pub-year-heading{
margin-top: 2rem;
margin-bottom: 0.75rem;
font-size: 1.6rem;
font-weight: 800;
}
/*Preprint formating*/
.preprints {
margin-bottom: 3rem;
}
.preprints p {
margin: 0.4rem 0;
}
.preprints a {
text-decoration: none;
font-weight: 500;
}
.preprints hr {
border: none;
border-top: 1px solid #e0e0e0;
margin: 1rem 0;
}
/* Make manual preprints visually match CSL references */
.preprints .csl-entry {
padding-left: 2.5em;
text-indent: -2.5em;
margin-bottom: 0.75rem; /* similar spacing to the refs */
}
.preprints a[href$=".pdf"]::after {
content: "";
display: inline-block;
width: 1.2rem;
height: 1.2rem;
margin-left: 0.4rem;
background-image: url("images/pdf-icon.svg");
background-size: contain;
background-repeat: no-repeat;
vertical-align: middle;
}
/* PDF icon for both chapters and preprints */
.chapters a[href$=".pdf"],
.preprints a[href$=".pdf"] {
font-size: 0; /* hide the PDF text */
text-decoration: none;
}
.chapters a[href$=".pdf"]::after,
.preprints a[href$=".pdf"]::after {
content: "";
display: inline-block;
width: 2rem;
height: 2rem;
margin-left: 0.35rem;
vertical-align: middle;
background-image: url("images/pdf-icon.svg");
background-size: contain;
background-repeat: no-repeat;
}
/* Make manual chapters visually match CSL references */
.chapters .csl-entry {
padding-left: 2.5em;
text-indent: -2.5em;
margin-bottom: 0.75rem; /* similar spacing to the refs */
}
/*highlight target when jumping to it */
:target {
background: rgba(0,123,255,0.08);
border-radius: 6px;
padding: 4px;
}
/*for global match model*/
.model-figure-float{
float: right;
max-width: 42%;
margin: 0 0 16px 20px;
}
.model-figure-img{
width: 100%;
height: auto;
border-radius: 6px;
}
.model-figure-caption{
font-size: 0.85rem;
line-height: 1.3;
opacity: 0.8;
margin-top: 6px;
}
/* Mobile: stop floating, stack cleanly */
@media (max-width: 800px){
.model-figure-float{
float: none;
max-width: 100%;
margin: 16px auto;
}
}