summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/ebook/summary.less
blob: 37d2bdab52e6b43d38f6d861636bf33a2a400548 (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
.section.toc {
    > h1 {
        text-align: center;
    }

    > ol {
        margin: 0px;
        padding: 0px;
    }

    li {
        list-style: none;

        .inner {
            display: block;
            border-bottom: 1px dotted #eee;
            margin-bottom: 4px;

            a, span {
                padding-right: 5px;
                border-bottom: 1px solid #fff;
                margin-bottom: -1px;
            }

            .page {
                float: right;
                padding-left: 5px;
            }
        }

        ol {
            margin: 0px;
            padding: 0px;
            padding-left: 2em;
        }
    }
}

// For LTR, fix direction of table of content
.dir-rtl {
    .section.toc {
        li {
            .inner {
                .page {
                    float: left;
                }
            }

            ol {
                margin: 0px;
                padding: 0px;
                padding-right: 2em;
            }
        }
    }
}