aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/linking/LinkEditor.scss
blob: fc5f2410c78f8a2a3aabd3ffe1ebd72d59fa5b26 (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
@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-linkedTo {
        width: calc(100% - 26px);
    }
}

.linkEditor-button {
    width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0;
    // font-size: 12px;
    border-radius: 10px;

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

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

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

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

        .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% - 16px);
            height: 20px;
        }

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


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

    input {
        width: 100%;
    }

    .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: lightgray;
        }

        &.onDown {
            background-color: gray;
        }
    }
}

.linkEditor-typeButton {
    background-color: transparent;
    color: $dark-color;
    width: 100%;
    height: 20px;
    padding: 0 3px;
    padding-bottom: 2px;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    font-size: 12px;
    font-weight: bold;

    &:hover {
        background-color: $light-color;
    }
}

.linkEditor-group-buttons {
    height: 20px;
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;

    .linkEditor-button {
        margin-left: 6px;
    }
}