aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/linking/LinkMenuItem.scss
blob: 90722daf9bcfdd7608f0d23c8ed9beaa78d532bb (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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
@import "../global/globalCssVariables";

.linkMenu-item {
    // border-top: 0.5px solid $medium-gray; 
    position: relative;
    display: flex;
    border-top: 0.5px solid #cdcdcd;

    padding-left: 6.5px;
    padding-right: 2px;

    padding-top: 6.5px;
    padding-bottom: 6.5px;

    background-color: white;


    .linkMenu-name {
        position: relative;
        width: auto;

        .linkMenu-text {

            padding: 4px 2px;
            //display: inline;

            .linkMenu-source-title {
                text-decoration: none;
                color: rgb(43, 43, 43);
                font-size: 7px;
                padding-bottom: 0.75px;

                margin-left: 20px;
            }


            .linkMenu-title-wrapper {

                display: flex;

                .destination-icon-wrapper {
                    //border: 0.5px solid rgb(161, 161, 161);
                    margin-right: 2px;
                    padding-right: 2px;

                    .destination-icon {
                        float: left;
                        width: 12px;
                        height: 12px;
                        padding: 1px;
                        margin-right: 3px;
                        color: rgb(161, 161, 161);
                    }
                }

                .linkMenu-destination-title {
                    text-decoration: none;
                    color: #4476F7;
                    font-size: 16px;
                    padding-bottom: 2px;
                    padding-right: 4px;
                    margin-right: 4px;
                    float: right;

                    &:hover {
                        text-decoration: underline;
                        color: rgb(60, 90, 156);
                        //display: inline;
                        text-overflow: break;
                        cursor: pointer;
                    }
                }
            }

            .linkMenu-description {
                text-decoration: none;
                font-style: italic;
                color: rgb(95, 97, 102);
                font-size: 9px;
                margin-left: 20px;
                max-width: 125px;
                height: auto;
                white-space: break-spaces;
            }

            p {
                padding-right: 4px;
                line-height: 12px;
                border-radius: 5px;
                //overflow-wrap: break-word;
                user-select: none;
            }

        }

    }

    .linkMenu-item-content {
        width: 100%;
    }

    .link-metadata {
        padding: 0 10px 0 16px;
        margin-bottom: 4px;
        color: $medium-gray;
        font-style: italic;
        font-size: 10.5px;
    }

    &:hover {

        background-color: rgb(201, 239, 252);

        .linkMenu-item-buttons {
            display: flex;
        }

        .linkMenu-item-content {

            .linkMenu-destination-title {
                text-decoration: underline;
                color: rgb(60, 90, 156);
                //display: inline;
                text-overflow: break;
            }
        }
    }
}

.linkMenu-item-buttons {
    //@extend: right;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: none;

    .button {
        width: 20px;
        height: 20px;
        margin: 0;
        margin-right: 4px;
        padding-right: 6px;
        border-radius: 50%;
        pointer-events: auto;
        background-color: $dark-gray;
        color: $white;
        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: $medium-gray;
            cursor: pointer;
        }
    }
}