Skip to content

Commit

Permalink
Add a way of highlighting (part of) an instruction, also reset step c…
Browse files Browse the repository at this point in the history
…ounter on level-2 headings (addresses part of #1)
  • Loading branch information
doersino committed Mar 27, 2021
1 parent 07780ba commit b6c1ec6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 11 additions & 1 deletion _assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ h2 {
font-size: 0.8em;
letter-spacing: 0.1em;
font-weight: normal;
counter-reset: step; /* handy if used on a recipe page */
}
h3 {
margin: 0.5rem 0 1rem; /* larger bottom margin to fix spacing if the last recipe in a category has no description */
Expand Down Expand Up @@ -259,7 +260,7 @@ hr {
.recipe hr + hr { /* in case there is a leading hr in the document in addition to the hardcoded one */
display: none;
}
.recipe hr:first-child {
.recipe hr:first-child { /* hide first hr's line, but keep the step number */
border-color: transparent;
}
.recipe hr::after {
Expand Down Expand Up @@ -324,6 +325,15 @@ blockquote {
blockquote img {
max-width: 100%;
}
blockquote blockquote blockquote { /* for drawing attention to part of an instruction */
background-image: url("tabler-icons/tabler-icon-flag.svg");
background-size: 1.2em;
background-position: -0.2em 0.1em;
background-repeat: no-repeat;
padding-left: 1.3em;
font-style: italic;
color: #810;
}
a {
color: #239;
}
Expand Down
9 changes: 9 additions & 0 deletions _assets/tabler-icons/tabler-icon-flag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b6c1ec6

Please sign in to comment.