summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/app/sidebars/Sidebar.module.scss
blob: 19c6a97f29118596bc1c95e11d791369316b1d80 (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
@import 'src/style/_variables.scss';
@import 'src/style/_mixins.scss';

.collapseButton {
    position: absolute;
    left: 5px;
    top: 5px;
    padding: 5px 7px;

    background: white;
    border: solid 1px $gray-semi-light;
    z-index: 99;

    @include clickable;
    border-radius: 5px;
    transition: background 200ms;

    &.collapseButtonRight {
        left: auto;
        right: 5px;
        top: 5px;
    }

    &:hover {
        background: #eeeeee;
    }
}

.sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: $side-bar-width;

    z-index: 100;
    background: white;

    border-right: $gray-semi-dark 1px solid;

    .collapseButton {
        left: auto;
        right: -25px;
    }
}

.sidebarRight {
    left: auto;
    right: 0;

    border-left: $gray-semi-dark 1px solid;
    border-right: none;

    .collapseButtonRight {
        left: -25px;
        right: auto;
    }
}