Skip to content

Commit e52678d

Browse files
committed
Improve code listing style
- Bigger font for print version code listings. - More compact line height for print + online code listings. Resolves #1595
1 parent 11c411d commit e52678d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ Change Log / Ray Tracing in One Weekend
22
====================================================================================================
33

44
# v4.0.1 (in progress)
5-
6-
### Common
75
- Delete --
86
- Change --
97
- Fix --
108
- New --
119

10+
### Common
11+
- Fix -- Big improvement to print version listing font size (#1595) and more compact line
12+
height for code listings in both print and browser.
13+
1214
### In One Weekend
1315
- Fix -- Fixed usage of the term "unit cube" for a cube of diameter two (#1555)
1416

style/book.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ div.indented {
8888
min-width: 96%;
8989
width: fit-content;
9090
background: #e4e4e0;
91+
line-height: 1em;
9192
}
9293

9394
.md code {
@@ -241,6 +242,6 @@ div.credit-list ul {
241242
}
242243

243244
.md pre.listing.tilde code {
244-
font-size: 65%;
245+
font-size: 85%;
245246
}
246247
}

0 commit comments

Comments
 (0)