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

Adding Caution Callout #149

Merged
merged 3 commits into from
Nov 8, 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
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* Carpentry-specific favicons are now used automatically based on the value of
the `carpentry:` value in the `config.yaml` file (@Bisaloo, #152, based on a
report from @zkamvar in #33).
* Addition of the `caution` callout (@MttArmstrong #149)
* Improve CSS rendering of checklists by removing the bullet point and increasing
spacing between checkbox and label (reported @jq-11 #156, fixed @froggleston)


# varnish 1.0.4 (2024-08-23)
Expand Down
2 changes: 1 addition & 1 deletion inst/pkgdown/assets/assets/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/pkgdown/assets/assets/styles.css.map

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions source/stylesheets/callouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@
color: $black;
}

/* Caution */

.caution {
border-left: 10px solid $red;
}

.caution .callout-square {
background: $red;
color: #ffffff;
}

/* Parent Class for Accordions in Learner View */

.learner-accordion {
Expand Down
14 changes: 14 additions & 0 deletions source/stylesheets/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,20 @@ $color-mode-type: data;
color: #fff;
}

/* Caution */

.caution {
border-left: 10px solid shade-color($red, 50%);
h4 {
color: #fff;
}
}

.caution .callout-square {
background: shade-color($red, 50%);
color: #fff;
}

/* Parent Class for Accordions in Learner View */

.learner-accordion {
Expand Down