From 0126abf8a4fa5038c63e59457d001b72bfbc7df1 Mon Sep 17 00:00:00 2001 From: Tyler Nullmeier Date: Wed, 27 May 2026 11:21:26 -0500 Subject: [PATCH 1/3] Set table width to 95% in `ModuleContainerWithTwoColumns` exercises in `ap-physics-2e` --- CHANGELOG.md | 1 + styles/books/ap-physics-2e/book.scss | 4 +++- styles/designs/carnival/parts/_module-components.scss | 9 +++++++++ styles/designs/carnival/parts/_module-shapes.scss | 6 +++++- styles/output/ap-physics-2e-pdf.css | 7 ++++++- 5 files changed, 24 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a8d55fb3..e7abc9e6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add margins to numbered lists in `hs-physics` worked examples and snap labs (CORE-1789) - Indent question stem lists less in `carnival` - Indent first-level lists in eos sections in `corn` +- Set table width to 95% in `ModuleContainerWithTwoColumns` exercises in `ap-physics-2e` ## [v2.19.0] - 2026-04-15 diff --git a/styles/books/ap-physics-2e/book.scss b/styles/books/ap-physics-2e/book.scss index 2c6243d7a..abd04d932 100644 --- a/styles/books/ap-physics-2e/book.scss +++ b/styles/books/ap-physics-2e/book.scss @@ -10,7 +10,9 @@ @include add_settings(( TwoColumnsModules: ( - _selectors: ('.os-ap-test-prep-container'), + _selectors: ('.os-ap-test-prep-container:not(:has(.os-table > table tr td:nth-of-type(6)))'), + 'ModuleContainerWithTwoColumnsTable:::width': 95%, + 'ModuleContainerWithTwoColumnsTable:::margin': auto, ), )); diff --git a/styles/designs/carnival/parts/_module-components.scss b/styles/designs/carnival/parts/_module-components.scss index 0b38b7a4c..fefb663d9 100644 --- a/styles/designs/carnival/parts/_module-components.scss +++ b/styles/designs/carnival/parts/_module-components.scss @@ -10,6 +10,15 @@ $Module__Container--WithTwoColumns: ( ), ); +$Module__Container--WithTwoColumns__Table: ( + _name: "ModuleContainerWithTwoColumnsTable", + _subselector: " .os-table > table", + _properties: ( + width: enum('ValueSet:::OPTIONAL'), + margin: enum('ValueSet:::OPTIONAL'), + ) +); + $ModuleWithIndentation__Para: ( _name: "ModuleWithIndentationPara", _subselector: ' > p', diff --git a/styles/designs/carnival/parts/_module-shapes.scss b/styles/designs/carnival/parts/_module-shapes.scss index 059043535..a541922a4 100644 --- a/styles/designs/carnival/parts/_module-shapes.scss +++ b/styles/designs/carnival/parts/_module-shapes.scss @@ -4,7 +4,11 @@ @include create_shape('carnival:::ModuleWithTwoColumnsShape', ( _components: ( - $Module__Container--WithTwoColumns + map-merge($Module__Container--WithTwoColumns, ( + _components: ( + $Module__Container--WithTwoColumns__Table + ) + )) ) )); diff --git a/styles/output/ap-physics-2e-pdf.css b/styles/output/ap-physics-2e-pdf.css index d2750cb60..e433e8ff3 100644 --- a/styles/output/ap-physics-2e-pdf.css +++ b/styles/output/ap-physics-2e-pdf.css @@ -3578,12 +3578,17 @@ h4.os-subtitle + .os-figure:not(.has-splash) > figure { width: 100%; } -.os-ap-test-prep-container { +.os-ap-test-prep-container:not(:has(.os-table > table tr td:nth-of-type(6))) { column-count: 2; column-gap: 2.4rem; column-width: auto; } +.os-ap-test-prep-container:not(:has(.os-table > table tr td:nth-of-type(6))) .os-table > table { + width: 95%; + margin: auto; +} + .os-ap-test-prep-container section { margin-bottom: 0; } From bbfd39fcc1738bacf7e5b38108c2cf86c3dfb659 Mon Sep 17 00:00:00 2001 From: Tyler Nullmeier Date: Wed, 27 May 2026 11:24:21 -0500 Subject: [PATCH 2/3] Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7abc9e6a..848909956 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Indent question stem lists less in `carnival` - Indent first-level lists in eos sections in `corn` - Set table width to 95% in `ModuleContainerWithTwoColumns` exercises in `ap-physics-2e` +- Use single-column for `ap-test-prep` with tables having five or more columns ## [v2.19.0] - 2026-04-15 From 509ccb3da897f5258d7c8e22bc23ab3f964a3e7d Mon Sep 17 00:00:00 2001 From: Tyler Nullmeier Date: Thu, 28 May 2026 09:52:19 -0500 Subject: [PATCH 3/3] Typo in changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 848909956..2c3506e87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Indent question stem lists less in `carnival` - Indent first-level lists in eos sections in `corn` - Set table width to 95% in `ModuleContainerWithTwoColumns` exercises in `ap-physics-2e` -- Use single-column for `ap-test-prep` with tables having five or more columns +- Use single-column for `ap-test-prep` with tables having six or more columns ## [v2.19.0] - 2026-04-15