Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Keep science-practice single-column for tables with 6+ columns
- 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 six or more columns
- Align `os-number` right in AP Physics 2e `TestPrep`

## [v2.19.0] - 2026-04-15
Expand Down
4 changes: 3 additions & 1 deletion styles/books/ap-physics-2e/book.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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,
),
));

Expand Down
9 changes: 9 additions & 0 deletions styles/designs/carnival/parts/_module-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 5 additions & 1 deletion styles/designs/carnival/parts/_module-shapes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

@include create_shape('carnival:::ModuleWithTwoColumnsShape', (
_components: (
$Module__Container--WithTwoColumns
map-merge($Module__Container--WithTwoColumns, (
_components: (
$Module__Container--WithTwoColumns__Table
)
))
)
));

Expand Down
7 changes: 6 additions & 1 deletion styles/output/ap-physics-2e-pdf.css
Original file line number Diff line number Diff line change
Expand Up @@ -3580,12 +3580,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;
}
Expand Down
Loading