aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/LinkMenu.scss
blob: 7e031b897ca277073848d8f42bf76de8297a9c6c (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
@import "../globalCssVariables";

#linkMenu-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

#linkMenu-searchBar {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    font-size: 12px;
    border: 1px solid #bababa;
}

#linkMenu-list {
    margin-top: 5px;
    width: 100%;
    height: 100px;
    overflow-y: scroll;
}

.link-menu-group {
    .link-menu-item {
        border-top: 0.5px solid $light-color-secondary; 
        padding: 6px;
        position: relative;
        display: flex;

        .link-menu-item-content {
            width: 100%;
        }

        &:last-child {
            border-bottom: 0.5px solid $light-color-secondary;
        }
        &:hover .link-menu-item-buttons {
            display: flex;
        }
        &:hover .link-menu-item-content {
            width: calc(100% - 42px);
        }
    }
    .link-menu-item-buttons {
        display: none;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);

        .button {
            width: 20px;
            height: 20px;
            margin: 0;
            margin-right: 6px;
            border-radius: 50%;
            cursor: pointer;
            pointer-events: auto;
            background-color: $dark-color;
            color: $light-color;
            font-size: 65%;
            transition: transform 0.2s;
            text-align: center;
            position: relative;

            .fa-icon {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

            &:last-child {
                margin-right: 0;
            }
            &:hover {
                background: $main-accent;
            }
        }
    }
}