aboutsummaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/taxonomies.scss
blob: 4e227da9894ecb824a3a7008094b3c804ac28112 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 * SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc
 *
 * SPDX-License-Identifier: LAL-1.3
 */

[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);
    }
}

/* Dewey Taxonomy */
#taxonomy-2519915f-d19c-4281-b758-f5ddb889d7fa {
    ol {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            padding: 0.5rem 1rem;
            font-weight: normal;
            text-align: left;
            z-index: 1001;
        }

        ol {
            display: none;
        }
    }
    .active {
        font-weight: bold;
        ol {
            display: block;
        }
        li.active {
            text-align: right;
        }
    }

    #category-30 { background-color: #BCBCBC; }
    #category-31 { background-color: #95a5a6; }
    #category-32 { background-color: #848482; }
    #category-33 { background-color: #948279; }
    #category-34 { background-color: #59706a; }
    #category-35 { background-color: #16a085; }
    #category-36 { background-color: #27ae60; }
    #category-37 { background-color: #2980b9; }
    #category-38 { background-color: #34495e; }
    #category-39 { background-color: #bd3525; }
    #category-40 { background-color: #d35400; }
    #category-42 { background-color: #eead0e; }
}