diff options
| author | Sam Scholten | 2026-08-27 14:29:06 +1000 |
|---|---|---|
| committer | Sam Scholten | 2026-08-27 14:29:06 +1000 |
| commit | e627d7363dc59890743c80bb3fdce1a354e10f22 (patch) | |
| tree | 3455de7573fcec8daafc9ae14a4dd20bef9a3582 | |
| parent | c0b512d2b44458176cf30ef937f10cbd37eb4c8c (diff) | |
| download | acarp-marp-theme-e627d7363dc59890743c80bb3fdce1a354e10f22.tar.gz acarp-marp-theme-e627d7363dc59890743c80bb3fdce1a354e10f22.zip | |
add highlight-left/right modifiers for column emphasis
| -rw-r--r-- | README | 16 | ||||
| -rw-r--r-- | acarp.css | 17 | ||||
| -rw-r--r-- | demo-standard.md | 26 | ||||
| -rw-r--r-- | justfile | 2 |
4 files changed, 60 insertions, 1 deletions
@@ -60,6 +60,22 @@ Text content </div> ``` +### `highlight-left` / `highlight-right` - Column Emphasis +```markdown +--- +<!-- _class: layout-2col-center highlight-left --> + +<div class="left-column"> +Normal opacity +</div> + +<div class="right-column"> +Faded out +</div> +``` + +Dims the other column of `layout-2col` / `layout-2col-center`. Use across slides to build up a comparison. + ### `cite` - Citation/Attribution ```markdown --- @@ -598,6 +598,23 @@ section.layout-2col-center img { } /* ============================================================================ + 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: + + <!-- _class: layout-2col-center highlight-left --> + + 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 Override highlight.js theme colors for consistent academic styling. 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): --- +<!-- _class: layout-2col-center highlight-left --> + +### Column Emphasis + +<div class="left-column"> + +<div class="vspace-large"></div> + +## Focus here + +Full opacity. + +</div> + +<div class="right-column"> + +<div class="vspace-large"></div> + +## Faded + +`highlight-left` dims this column. Swap to `highlight-right` to fade the left instead. + +</div> + +--- + ## Thank You This theme provides a clean, academic-focused foundation for your presentations. @@ -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: |
