Skip to content

Commit

Permalink
Show solution while printing lessons
Browse files Browse the repository at this point in the history
Printing to paper or PDF via the browser would invoke the @media print CSS query. It is useful to show all solution while doing so
  • Loading branch information
ashwinvis authored and fmichonneau committed Oct 12, 2021
1 parent 2a9f189 commit ca35a7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions assets/css/lesson.scss
Original file line number Diff line number Diff line change
Expand Up @@ -389,3 +389,13 @@ kbd {
white-space: nowrap;
font-style: normal;
}

//------------------------------------------
// Show solution while printing (Ctrl + P)
// -----------------------------------------

@media print {
blockquote.solution > * {
display: unset !important;
}
}

0 comments on commit ca35a7c

Please sign in to comment.