Skip to content

Commit

Permalink
Merge pull request #103 from carpentries/fix-code-block-background
Browse files Browse the repository at this point in the history
Fix code colouring and style
  • Loading branch information
zkamvar authored Nov 8, 2023
2 parents 3defcd7 + ad3240c commit fc5a780
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: varnish
Title: Front-end for The Carpentries Lesson Template
Version: 0.3.2
Version: 0.3.3
Authors@R: c(
person(given = "Zhian N.",
family = "Kamvar",
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# varnish 0.3.3

* Code blocks in narrative no longer have a white background on top of the grey
background of the code block (fixed: @zkamvar, #103).
- The colour of the inline code has been changed from the bootstrap default to
black (fixed: @zkamvar, #103).

# varnish 0.3.2

* Provide an improved contrast to inline code within callout blocks by
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.

7 changes: 6 additions & 1 deletion source/stylesheets/syntax-highlighting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ pre .img img, pre .r-plt img {

code {
font-family: 'Source Code Pro', monospace;
border-radius: 4px;
color: #000;
}

p > code {
background-color: #fff;
border-radius: 4px;
font-size: 1em;
}

/* Links ---------------------------------------------------- */
Expand Down

0 comments on commit fc5a780

Please sign in to comment.