Skip to content

Commit ca35a7c

Browse files
ashwinvisfmichonneau
authored andcommitted
Show solution while printing lessons
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
1 parent 2a9f189 commit ca35a7c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

assets/css/lesson.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,13 @@ kbd {
389389
white-space: nowrap;
390390
font-style: normal;
391391
}
392+
393+
//------------------------------------------
394+
// Show solution while printing (Ctrl + P)
395+
// -----------------------------------------
396+
397+
@media print {
398+
blockquote.solution > * {
399+
display: unset !important;
400+
}
401+
}

0 commit comments

Comments
 (0)