summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/website/markdown.less
blob: c5cd3487e4f5e5305b39c8eba1d00c03e736a144 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.book .book-body .page-wrapper .page-inner section {
    display: none;
}

.book .book-body .page-wrapper .page-inner section.normal {
    .markdown-content(@content-color, @content-line-height);

    pre, code {
        @import "./highlight/white.less";
    }

    .glossary-term {
        cursor: help;
        text-decoration: underline;
    }
}

.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal {
    color:@page-color-1;

    pre, code {
        background: #fdf6e3;
        color: #657b83;
        border-color: darken(#fdf6e3, 15%);

        @import "./highlight/sepia.less";
    }

    table {
        th, td {
            border-color: darken(#fdf6e3, 25%);
        }

        tr {
            background: #fdf6e3;
            color: inherit;
            border-color: #444;
        }

        tr:nth-child(2n) {
            background-color: darken(#fdf6e3, 5%);
        }
    }
}

.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal {
    color:@page-color-2;

    pre, code {
        background: black;
        color: #eaeaea;
        border-color: #000;

        @import "./highlight/night.less";
    }

    table {
        th, td {
            border-color: #444;
        }

        tr {
            background-color: black;
            color: #eaeaea;
            border-color: #444;
        }

        tr:nth-child(2n) {
            background-color: #222;
        }
    }
}