Skip to content

Commit

Permalink
Merge pull request #455 from RayTracing/fix-code-style
Browse files Browse the repository at this point in the history
Fix CSS code style
  • Loading branch information
hollasch committed Apr 7, 2020
2 parents 3228df0 + 819ef06 commit 02ee90e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Change Log -- Ray Tracing in One Weekend
# v3.0.2 (in progress)

### Common
- Change: Every book source now includes from a single common acknowledgments document.
- Fix: code styling for source code both inline and in fenced blocks (#430)
- Change: Every book source now includes from a single common acknowledgments document

### _In One Weekend_
- Fix: Correct typo: "consine" to "cosine"
Expand Down
22 changes: 10 additions & 12 deletions style/book.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,25 @@ div.indented {
** Code
** -----------------------------------------------------------------------------------------------*/

.md code {
font-family: Consolas, Menlo, monospace;
color: #000;
}

.md p code {
padding: 0 .4ex;
background: #e4e4e0;
}

.md pre.listing.tilde {
border: solid 3px #d4d4d4;
background: #e4e4e0;
padding: 1.5ex;
width: 96%;
overflow: visible;
background: #e4e4e0;
}

.md pre.listing.tilde code {
.md code {
/* All code, both in fenced blocks and inline. */
font-family: Consolas, Menlo, monospace;
font-size: 86%;
background: #e0e0dc;
}

.md pre.listing.tilde code {
/* Only code in fenced blocks. */
letter-spacing: -0.20;
background: #e4e4e0;
}

/* Hilight.js Syntax Coloring */
Expand Down

0 comments on commit 02ee90e

Please sign in to comment.