Skip to content

Commit

Permalink
Merge pull request #149 from MttArmstrong/main
Browse files Browse the repository at this point in the history
Adding Caution Callout
  • Loading branch information
froggleston authored Nov 8, 2024
2 parents 55cdb1b + ea06acd commit 7c8e95f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
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

0 comments on commit 7c8e95f

Please sign in to comment.