aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionTreeView.scss
blob: 95faaa3f01abdc619eb9b9f981205308156fd859 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
@use '../global/globalCssVariables.module.scss' as global;

.collectionTreeView-container {
    transform-origin: top left;
}
.collectionTreeView-dropTarget {
    border-color: transparent;
    border-style: solid;
    border-radius: inherit;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    position: relative;
    top: 0px;
    // background: global.$light-gray;
    font-size: 13px;
    overflow: auto;
    user-select: none;
    cursor: default;
    touch-action: pan-y;

    ul {
        list-style: none;
        padding-left: global.$TREE_BULLET_WIDTH;
        margin-bottom: 1px; // otherwise vertical scrollbars may pop up for no apparent reason....
        > .contentFittingDocumentView {
            width: unset;
            height: unset;
        }
        &:hover {
            cursor: ns-resize;
        }
    }

    .no-indent {
        padding-left: 0px;
        //width: max-content;
    }

    .no-indent-outline {
        padding-left: 0px;
        width: 100%;
    }

    .editableView-container {
        font-weight: bold;
    }

    .delete-button {
        color: global.$medium-gray;
        // float: right;
        margin-left: 15px;
        // margin-top: 3px;
        display: inline;
    }

    .editableView-input,
    .editableView-container-editing {
        display: block;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.collectionTreeView-keyHeader {
    font-style: italic;
    font-size: 8pt;
    margin-left: 3px;
    opacity: 0;
    pointer-events: none;
}

.collectionTreeView-contents {
    display: flex;
    flex-direction: column;
}

.collectionTreeView-titleBar {
    width: 100%;
    .contentFittingDocumentView {
        display: block; // makes titleBar take up full width of the treeView (flex doesn't for some reason)
    }
}

.collectionTreeView-keyHeader:hover {
    background: #797777;
    cursor: pointer;
}

.collectionTreeView-subtitle {
    font-style: italic;
    font-size: 8pt;
    color: global.$medium-gray;
}

.docContainer {
    position: relative;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    min-width: 10px;
    grid-column: 2;
}
.docContainer-system {
    font-variant: all-small-caps;
    border-radius: 5px;
    background: grey;
    color: white;
    padding-left: 3px;
    padding-right: 3px;
    padding-bottom: 2px;
}