Skip to content

Commit

Permalink
Replace starter image with book image (#407)
Browse files Browse the repository at this point in the history
This takes the new starter activity image from the book and adds it to
the starter activity chapter. This further introduces some changes to
the layout of the website to make reading a bit easier.
  • Loading branch information
hendricius authored Jan 2, 2025
1 parent cb73bf7 commit 2429ceb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion book/sourdough-starter/sourdough-starter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ \section{Baker's math}%
\section{The process of making a starter}

\begin{figure}[!htb]
\includegraphics[width=\textwidth]{sourdough-starter.jpg}
\centering
\includegraphics[width=\textwidth]{sourdough-starter-activity-indicators}
\caption[Very active sourdough]{A very active sourdough starter shown by the
bubbles in the dough.}%
\label{fig:sourdough-starter}
Expand Down
34 changes: 20 additions & 14 deletions book/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
--padding-hamburger: 5px;
--c-beige: #F3EDE6;
--border-radius: 7px;
--image-padding: 14px;
--image-background: #ffffff;
}

@media (min-width: 1200px){
Expand Down Expand Up @@ -385,11 +387,6 @@ h4 {
margin-top: 1em;
}

img[alt~="PIC"], iframe, a img {
border-radius: var(--border-radius);
border: 2px solid var(--c-black);
}

main.main-content, div.footnotes, main.titlepage {
background-color: var(--c-beige);
}
Expand Down Expand Up @@ -478,10 +475,6 @@ nav.TOC span:hover, nav.TOC span:hover *, nav.TOC span.chapterToc.selected, nav.
}

p.flowchart-image-wrapper {
background: white;
padding: 20px;
border-radius: var(--border-radius);
border: 2px solid var(--c-black);
display: flex;
justify-content: center;
}
Expand Down Expand Up @@ -528,6 +521,19 @@ blockquote {
display: none;
}

figure.float, div.figure, figure.figure {
padding: var(--image-padding);
background: var(--image-background);
}

figure.figure p.noindent {
text-align: center;
}

.flowchart-image-wrapper {
text-align: center;
}

@media (max-width: 768px) {
.header {
display: none;
Expand Down Expand Up @@ -572,10 +578,6 @@ blockquote {
background: var(--c-black-background);
}

p.flowchart-image-wrapper {
padding: 5px;
}

.menu-entry:hover {
background-color: transparent;
}
Expand All @@ -593,4 +595,8 @@ blockquote {
border: none;
border-radius: 0px;
}
}

figure.float, div.figure, figure.figure {
padding: calc(var(--image-padding) / 2);
}
}

0 comments on commit 2429ceb

Please sign in to comment.