summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/ebook.less
blob: 0a9d655381ef36cb89e0a4a06ae781de82026a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@import "mixins.less";

@import "ebook/variables.less";
@import "ebook/highlight.less";

.book-chapter {
    display: none;
}

article {
    page-break-after: always;
}

pre, blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
    background: #f1f1f1;
    padding: 8px;
}

img {
    max-width: 100% !important;
    page-break-inside: avoid;
    margin: 0px auto;
}

.exercise, .quiz {
    margin: 1cm 0cm;
    padding: 0.4cm;
    page-break-inside: avoid;

    border: 3px solid #ddd;

    .exercise-header {
        margin-bottom: 0.4cm;
        padding-bottom: 0.2cm;
        border-bottom: 1px solid #ddd;
    }

    .question {
        margin-top: 0.4cm;
    }
}