aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/LinkDocPreview.scss
blob: 7d99247e793ac8f229c0aa7b8e97277518f3a5b8 (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
.linkDocPreview {
    position: absolute;
    pointer-events: all;
    border: 8px solid white;
    border-radius: 7px;
    box-shadow: 3px 3px 1.5px grey;
    border-bottom: 8px solid white;
    border-right: 8px solid white;
    z-index: 2004;
    cursor: pointer;

    .linkDocPreview-inner {
        width: 100%;
        height: 100%;
        pointer-events: none;
        display: flex;
        flex-direction: column;

        .linkDocPreview-info {
            height: 37px;
            white-space: pre;

            .linkDocPreview-buttonBar {
                float: right;
            }

            .linkDocPreview-title {
                padding-right: 4px;
                float: left;
                width: calc(100% - 48px);
                overflow: hidden;
                text-overflow: ellipsis;
                height: 25px;

                .linkDocPreview-description {
                    text-decoration: none;
                    font-style: italic;
                    color: rgb(95, 97, 102);
                    font-size: 10px;
                }
            }

            .linkDocPreview-button {
                display: inline-flex;
                margin: 0px;
                margin-right: 3px;
                border-radius: 50%;
                pointer-events: auto;
                background-color: black;
                color: white;
                transition: transform 0.2s;
                text-align: center;
                position: relative;
                font-size: 12px;
                width: 20px;
                height: 20px;
                align-items: center;
                justify-content: center;

                &:hover {
                    background-color: rgb(77, 77, 77);
                    cursor: pointer;
                }
            }
        }

        .linkDocPreview-preview-wrapper {
            overflow: hidden;
            align-content: center;
            justify-content: center;
            pointer-events: all;
            background-color: rgb(160, 160, 160);
            overflow: auto;
            cursor: grab;
        }
    }
}