aboutsummaryrefslogtreecommitdiff
path: root/app/javascript/scss/_taxonomies.scss
blob: 5bf19e1d875be64c7c81391db3f57b027ea994d1 (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
@import "taxonomies/dewey";

[data-controller="taxonomy"] {
    height: 100%;
    overflow: hidden auto;
    scrollbar-color: var(--incommon-clear85) var(--incommon-blue);
    scrollbar-width: thin;

    nav {
        position: relative;
        bottom: 0;
        margin: 0;
        padding: 0;
        height: calc(100% - 7.5rem);
        padding-top: 32px;
        max-width: 35rem;
        width: 89vw;

        display: none;
    }
    &.on {
        nav {
            display: block;
        }
    }
}

button[data-action="taxonomy#toggle"] {
    position: absolute;
    left: 0.7rem;
    display: block;
    cursor: pointer;
    padding: 16px;
    color: transparent;
    background: transparent var(--icon-menu-off) top left/32px no-repeat;
    border: none;
    text-align: center;
    z-index: 1002;

    &.on {
        background-image: var(--icon-menu-on);
    }
}