summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/website/navigation.less
blob: 374338143044af00b891d0dad6aef71f25741b5f (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
.book .book-body  {
    .navigation {
        position: absolute;
        top: @header-height;
        bottom: 0px;
        margin: 0;
        max-width: 150px;
        min-width: 90px;

        display: flex;
        justify-content: center;
        align-content: center;
        flex-direction: column;

        font-size: 40px;
        color: @navigation-color;

        text-align: center;

        .transition(all 350ms ease);

        &:hover {
            text-decoration: none;
            color: @navigation-hover-color;
        }

        &.navigation-next {
            right: 0px;
        }
        &.navigation-prev {
            left: 0px;
        }
    }

    @media (max-width: @mobileMaxWidth) {
        .navigation {
            position: static;
            top: auto;
            max-width: 50%;
            width: 50%;
            display: inline-block;
            float: left;

            &.navigation-unique {
                max-width: 100%;
                width: 100%;
            }
        }
    }
}
.book.color-theme-1 .book-body  {
    .navigation {
        color: @navigation-color-1;

        &:hover {
            color: @navigation-hover-color-1;
        }
    }
}
.book.color-theme-2 .book-body  {
    .navigation {
        color: @navigation-color-2;

        &:hover {
            color: @navigation-hover-color-2;
        }
    }
}