Skip to content

Commit 86a4f2c

Browse files
committed
Align poster boxes: pixel-perfect bottom alignment, vertical centering, add pyyaml dep
1 parent 22b7119 commit 86a4f2c

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

docs/screenshots/poster-sample.png

-65.5 KB
Loading

examples/sample_poster.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Show that findings **replicate** across datasets or participant groups to streng
181181

182182
<div class="example-box" data-title="Robustness check">
183183

184-
We verified our results using cross-validation <span style="white-space:nowrap;">(k&nbsp;=&nbsp;5)</span> and bootstrap resampling <span style="white-space:nowrap;">(1000 iterations).</span> The effect size remains stable <span style="white-space:nowrap;">(Cohen's d&nbsp;=&nbsp;0.8).</span> Sensitivity analyses confirm that results hold across a range of preprocessing choices and model specifications.
184+
We verified our results using cross-validation <span style="white-space:nowrap;">(k&nbsp;=&nbsp;5)</span> and bootstrap resampling <span style="white-space:nowrap;">(1000 iterations).</span> The effect size remains stable <span style="white-space:nowrap;">(Cohen's d&nbsp;=&nbsp;0.8).</span> Sensitivity analyses confirm that results hold across a range of preprocessing choices and model specifications. Permutation testing corroborates significance under non-parametric assumptions <span style="white-space:nowrap;">(BF&nbsp;>&nbsp;10).</span>
185185

186186
</div>
187187

@@ -238,13 +238,15 @@ Acknowledge **limitations** honestly and describe planned follow-ups.
238238

239239
## E: References [orange]
240240

241-
<div class="scale-50">
241+
<div class="scale-45">
242242

243-
<div class="warning-box" data-title="References">
243+
<div class="warning-box" data-title="">
244244

245245
1. Author A *et al.* (2023). *J. Neurosci.*
246246
2. Author C *et al.* (2022). *Nat. Hum. Behav.*
247247
3. Author E *et al.* (2021). *Psychol. Rev.*
248+
4. Author G *et al.* (2020). *PNAS.*
249+
5. Author J *et al.* (2019). *NeuroImage.*
248250

249251
</div>
250252

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dependencies = [
3333
"manim>=0.18.0",
3434
"Pillow>=9.0",
3535
"imageio-ffmpeg>=0.5.1",
36+
"pyyaml>=5.0",
3637
]
3738

3839
[project.optional-dependencies]

src/cdl_slides/assets/themes/cdl-poster-theme.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,38 @@ table th {
218218
box-shadow: 0 0.8mm 2mm rgba(0, 0, 0, 0.08);
219219
display: flex;
220220
flex-direction: column;
221+
min-height: 0;
221222
}
222223

223224
.poster-section > :last-child {
224225
flex-grow: 1;
226+
min-height: 0;
225227
display: flex;
226228
flex-direction: column;
229+
justify-content: center;
230+
overflow: hidden;
231+
}
232+
233+
.poster-section > div[class*="scale-"] {
234+
flex: 1;
235+
min-height: 0;
236+
display: flex;
237+
flex-direction: column;
238+
overflow: hidden;
239+
}
240+
241+
.poster-section > div[class*="scale-"] > .note-box:only-child,
242+
.poster-section > div[class*="scale-"] > .warning-box:only-child,
243+
.poster-section > div[class*="scale-"] > .tip-box:only-child,
244+
.poster-section > div[class*="scale-"] > .definition-box:only-child,
245+
.poster-section > div[class*="scale-"] > .example-box:only-child,
246+
.poster-section > div[class*="scale-"] > .important-box:only-child {
247+
flex: 1;
248+
display: flex;
249+
flex-direction: column;
250+
justify-content: center;
251+
min-height: 0;
252+
overflow: hidden;
227253
}
228254

229255
.poster-title {
@@ -326,6 +352,7 @@ table th {
326352
.important-box::before { content: 'Important'; }
327353

328354
[data-title]::before { content: attr(data-title); }
355+
[data-title=""]::before { display: none; }
329356

330357
.poster-color-blue { --section-box-bg: rgba(38, 122, 186, 0.12); --section-box-border: var(--river-blue); --section-box-title: var(--river-navy); }
331358
.poster-color-green { --section-box-bg: rgba(0, 105, 62, 0.10); --section-box-border: var(--dartmouth-green); --section-box-title: var(--dartmouth-green); }
@@ -470,4 +497,6 @@ p img[alt] {
470497
.scale-60 { font-size: 0.60em; }
471498
.scale-55 { font-size: 0.55em; }
472499
.scale-50 { font-size: 0.50em; }
500+
.scale-45 { font-size: 0.45em; }
501+
.scale-40 { font-size: 0.40em; }
473502

0 commit comments

Comments
 (0)