aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/stylesheets/scss/documents.scss
blob: 07836e14e48181b0e2b5c227f8c39d0f2fbf6b56 (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
.documents {
    .chdir-up a {
        display: block;
    }
    .options {
        text-align: right;
    }
    .bread-crumbs {
        display: inline-block;
        min-height: 1.5em;
        width: 40px;
        z-index: 1;

        > a, ul {
            background-color: var(--white);
            padding: 5px;
        }
        > a {
            padding-bottom: 2px;
        }

        &.extendable:hover {
            > a, > ul {
                box-shadow: 0 4px 3px var(--base-gray);
            }
            ul {
                display: flex;
                flex-direction: column-reverse;
            }
        }

        ul {
            display: none;
            list-style: none;
            margin: 0;
            position: absolute;
        }
        li {
            font-size: 0.85em;
            line-height: 1.5em;

            a {
                @include icon(before, folder-parent, $size: 24px);
                padding-left: 30px;
            }
            &:first-child a {
                @include icon(before, folder-empty, $size: 24px);
            }
        }
    }
}

.document-dialog {
    $info-width: 150px;
    @include clearfix;
    > aside {
        float: left;
        width: $info-width;
    }
    .document-dialog-icon {
        text-align: center;
    }
    > div {
        border-left: 1px dashed var(--dark-gray-color);
        margin-left: $info-width;
        min-height: 100%;
        max-height: 100%;
        overflow-y: auto;
    }
    dl {
        dt:after {
            content: ':';
        }
        dd {
            margin: 0 0 0.5em 0.5em;
            padding: 0;
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

.documents.dragging {
    [data-file]:not([data-folder]) {
        background-color: var(--light-gray-color-40);
        opacity: 0.6;
    }
}
.documents {
    [data-folder].dropping {
        background-color: var(--red-40);
    }
}

.document-draggable-helper {
    background-color: var(--activity-color-40) !important;
    opacity: 1 !important;
    td {
        border-bottom: 0 !important;
    }
}

fieldset.document-admin-search label {
    box-sizing: border-box;
    display: inline-block;
    width: 49%;
}