Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnumbered Learning Objectives in computer-science #537

Merged
merged 1 commit into from
Jul 24, 2024
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

* Unnumbered `Learning Objectives` in `computer-science`
* Style `answer-key` in `neuroscience`
* Add check for whether output compiled to CI
* Rewrite `build.dart` to `build.js` and remove dart
Expand Down
2 changes: 1 addition & 1 deletion styles/books/computer-science/book.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ $bandColor: #24739E;
@include use('TableAfterExercisePara', 'cardboard:::TableTopSpacingShape');

// Learning objectives
@include cardboard.learning-objectives--numbered();
@include use('LearningObjectives', 'cardboard:::LearningObjectivesShape');

// Code
@include cardboard.hljs-colors();
Expand Down
27 changes: 16 additions & 11 deletions styles/output/computer-science-pdf.css
Original file line number Diff line number Diff line change
Expand Up @@ -3498,28 +3498,33 @@ h4.os-subtitle + .os-figure:not(.has-splash) > figure {
margin-top: 1rem;
}

[data-type=page] .learning-objectives > h3[data-type=title] {
[data-type=page]:not(.introduction):not(.unit-opener) .learning-objectives > h3[data-type=title] {
color: #24739E;
font-family: Noto Sans, StixGeneral;
font-family: Noto Sans, sans-serif, StixGeneral;
font-size: 1.2rem;
line-height: 1.5rem;
font-weight: bold;
margin-bottom: 0;
}
[data-type=page] .learning-objectives > p:first-of-type {

[data-type=page]:not(.introduction):not(.unit-opener) .learning-objectives > p:first-of-type {
margin: 0;
}
[data-type=page] .learning-objectives > ul {
list-style-type: none;

[data-type=page]:not(.introduction):not(.unit-opener) .learning-objectives > ul:not([data-labeled-item=true]) {
margin-left: 24px;
}
[data-type=page] .learning-objectives > ul > li {
display: flex;

[data-type=page]:not(.introduction):not(.unit-opener) .learning-objectives > ul:not([data-labeled-item=true]) > li {
max-width: 5.9in;
}
[data-type=page] .learning-objectives > ul > li > span.os-abstract-token {
font-weight: bold;
margin-right: 8px;
color: #344456;

[data-type=page]:not(.introduction):not(.unit-opener) .learning-objectives > ol {
margin-left: 24px;
}

[data-type=page]:not(.introduction):not(.unit-opener) .learning-objectives > ol > li {
max-width: 5.9in;
}

.hljs-comment {
Expand Down
Loading