From e627d7363dc59890743c80bb3fdce1a354e10f22 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Thu, 27 Aug 2026 14:29:06 +1000 Subject: add highlight-left/right modifiers for column emphasis --- README | 16 ++++++++++++++++ acarp.css | 17 +++++++++++++++++ demo-standard.md | 26 ++++++++++++++++++++++++++ justfile | 2 +- 4 files changed, 60 insertions(+), 1 deletion(-) diff --git a/README b/README index b2c936b..5e4c0b6 100644 --- a/README +++ b/README @@ -60,6 +60,22 @@ Text content ``` +### `highlight-left` / `highlight-right` - Column Emphasis +```markdown +--- + + +
+Normal opacity +
+ +
+Faded out +
+``` + +Dims the other column of `layout-2col` / `layout-2col-center`. Use across slides to build up a comparison. + ### `cite` - Citation/Attribution ```markdown --- diff --git a/acarp.css b/acarp.css index ed10edb..2e4c05a 100644 --- a/acarp.css +++ b/acarp.css @@ -597,6 +597,23 @@ section.layout-2col-center img { display: block; } +/* ============================================================================ + LAYOUT: highlight-left / highlight-right + + Modifiers that fade out one column of a two-column slide to draw + attention to the other. Combine with layout-2col or layout-2col-center: + + + + Use across consecutive slides to build up a two-sided comparison, + introducing one half first, then the other. + ============================================================================ */ + +section.highlight-left .right-column, +section.highlight-right .left-column { + opacity: 0.35; +} + /* ============================================================================ SYNTAX HIGHLIGHTING OVERRIDE diff --git a/demo-standard.md b/demo-standard.md index 72f7d9b..88e48f5 100644 --- a/demo-standard.md +++ b/demo-standard.md @@ -259,6 +259,32 @@ def score(term, doc): --- + + +### Column Emphasis + +
+ +
+ +## Focus here + +Full opacity. + +
+ +
+ +
+ +## Faded + +`highlight-left` dims this column. Swap to `highlight-right` to fade the left instead. + +
+ +--- + ## Thank You This theme provides a clean, academic-focused foundation for your presentations. diff --git a/justfile b/justfile index 19b52f2..f24548e 100644 --- a/justfile +++ b/justfile @@ -16,7 +16,7 @@ help: @echo " demo - Build demo presentations" @echo "" @echo "Themes: acarp (16:9), acarp-beamer (4:3)" - @echo "Layouts: title, layout-2col" + @echo "Layouts: title, layout-2col, highlight-left/right" # Install dependencies install: -- cgit v1.2.3