summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/less/Sidebar.less
blob: a0bfeae9979cce69bf6e4301d429095ca0ff9241 (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
.Sidebar-Flex {
    .flex(0 0 @sidebar-width);

    &.Layout-enter {
        margin-left: -@sidebar-width;

        &.Layout-enter-active {
            margin-left: 0;
            transition: margin-left 250ms ease-in-out;
        }
    }

    &.Layout-leave {
        margin-left: 0;

        &.Layout-leave-active {
            margin-left: -@sidebar-width;
            transition: margin-left 250ms ease-in-out;
        }
    }
}

.Sidebar {
    height: 100%;
    background: @sidebar-background;
    background: rgb(250, 250, 250);
    border-right: 1px solid @sidebar-border-color;
    overflow-y: auto;
}

.GitBookTrademark {
    text-align: center;
    text-decoration: none;
    opacity: 0.1;
    margin-top: 80px;
    margin-bottom: 40px;
    color: #000;
    display: block;

    &:hover {
        text-decoration: none;
        opacity: 0.2;
    }

    span {
        display: block;
    }

    img {
        max-width: 64px;
        filter: grayscale(100%);
        margin-top: 10px;
    }
}