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

.linkEditor {
    width: 100%;
    height: auto;
    font-size: 12px; // TODO
}

.linkEditor-back {
    margin-bottom: 6px;
}

.linKEditor-info {
    border-bottom: 0.5px solid $light-color-secondary; 
    padding-bottom: 6px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;

    .linkEditor-delete {
        width: 20px;
        height: 20px;
        margin-left: 6px;
        padding: 0;
    }
}

.linkEditor-groupsLabel {
    display: flex;
    justify-content: space-between;

    button {
        width: 20px;
        height: 20px;
        margin-left: 6px;
        padding: 0;
        font-size: 14px;
    }
}

.linkEditor-group {
    background-color: $light-color-secondary; 
    padding: 6px;
    margin: 3px 0;
    border-radius: 3px;

    .linkEditor-group-row {
        display: flex;
        margin-bottom: 6px;

        .linkEditor-group-row-label {
            margin-right: 6px;
        }
    }

    .linkEditor-metadata-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;

        .linkEditor-error {
            border-color: red;
        }

        input {
            width: calc(50% - 18px);
            height: 20px;
        }

        button {
            width: 20px;
            height: 20px;
            margin-left: 6px;
            padding: 0;
            font-size: 14px;
        }
    }
}


.linkEditor-dropdown {
    width: 100%;
    position: relative;
    z-index: 999;

    .linkEditor-options-wrapper {
        width: 100%;
        position: absolute;
        top: 19px;
        left: 0;
        display: flex;
        flex-direction: column;
    }

    .linkEditor-option {
        background-color: $light-color-secondary;
        border: 1px solid $intermediate-color;
        border-top: 0;
        padding: 3px;
        cursor: pointer;

        &:hover {
            background-color: $intermediate-color;
            font-weight: bold;
        }
    }
}

.linkEditor-group-buttons {
    height: 20px;
    display: flex;
    justify-content: space-between;

    .linkEditor-groupOpts {
        width: calc(20% - 3px);
        height: 20px;
        padding: 0;
        font-size: 10px;

        &:disabled {
            background-color: gray;
        }
    }

    .linkEditor-groupOpts button {
        width: 100%;
        height: 20px;
        font-size: 10px;
        padding: 0;
    }
}