Skip to content

Commit

Permalink
Unnumbered Learning Objectives in computer-science
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerZeroMaster committed Jul 24, 2024
1 parent baf2e49 commit cf35401
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
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

0 comments on commit cf35401

Please sign in to comment.