Gitlab CSE Unil

anobj-mgr.less 9.03 KB
Newer Older
1
@import "../lib/bootstrap/less/variables";
Julien Furrer's avatar
Julien Furrer committed
2
3
@import "../lib/bootstrap/less/mixins";

4
5
@modal-header: #d0d0d0;

Julien Furrer's avatar
Julien Furrer committed
6
7
8
9
10
@aom-thumb-width: 150px;
@aom-thumb-height: @aom-thumb-width;

@aom-list-item-width: @aom-thumb-width + 30;
@aom-list-item-height: @aom-thumb-width + 50;
Julien Furrer's avatar
Julien Furrer committed
11
12
@aom-list-item-border: rgb(164, 164, 164);
@aom-list-item-margin-v: 10px;  // margin vertical: top and bottom (both are set)
13
@aom-list-item-margin-h: 10px;  // margin horizontal: left and right (both are set)
Julien Furrer's avatar
Julien Furrer committed
14
@aom-list-item-color: #646464;
15
16
17
18
@aom-list-item-bg: rgba(128,128,128,0.1);

@aom-list-item-current-color: #ffaa33;
@aom-list-item-selected-color: #66afe9;
Julien Furrer's avatar
Julien Furrer committed
19

20
@aom-list-item-col-width: @aom-list-item-width + (@aom-list-item-margin-h * 2);
Julien Furrer's avatar
Julien Furrer committed
21
22

.gen-mod-width(@n, @i: 2) when (@i =< @n) {
23
    @dlg-w: (@aom-list-item-col-width * @i) + 20;
Julien Furrer's avatar
Julien Furrer committed
24
25
    @media (min-width: (@dlg-w + 80)) {
        width: @dlg-w;
Julien Furrer's avatar
Julien Furrer committed
26
//        transition: width 0.3s ease 0s;
27
28
        .narrow-col(1, @w:@aom-list-item-col-width, @i: @i);
        .narrow-col(2, @w:@aom-list-item-col-width, @i: @i);
Julien Furrer's avatar
Julien Furrer committed
29
30
31
32
    }
    .gen-mod-width(@n, (@i + 1));
}

33
34
35
36
37
38
39
40
41
42
43
44
45
// Build classes narrow-*. These classes can be applied to
// the content of the modal (like .aom-list-container) to narrow it
// by the desired number of columns
.narrow-col(@c, @w, @i) {
    .narrow-@{c} when (@i > @c) {
        width: (@w * (@i - @c) + 18);
    }
    .narrow-@{c} when (@i =< @c) {
        width: auto;
    }
}


46
.gen-lst-height(@n, @i: 2, @dH: 0) when (@i =< @n) {
Julien Furrer's avatar
Julien Furrer committed
47
48
    @lst-h: ((@aom-list-item-height + @aom-list-item-margin-v*2) * @i);
    @media (min-height: (@lst-h + 150)) {
49
        max-height: @lst-h - @dH;
Julien Furrer's avatar
Julien Furrer committed
50
        height: auto;
Julien Furrer's avatar
Julien Furrer committed
51
52
53
//        transition-property: max-height, min-height;
//        transition-duration: 0.4s;
//        transition-timing-function: linear;
Julien Furrer's avatar
Julien Furrer committed
54
    }
55
    .gen-lst-height(@n, (@i + 1), @dH);
Julien Furrer's avatar
Julien Furrer committed
56
}
Julien Furrer's avatar
Julien Furrer committed
57
58
59

#aom-modal {
    .modal-body {
60
61
62
63
64
        padding: 10px 0 0;

        .nav-tabs { margin-left: 10px; }
        .tab-content {
            min-height: @aom-list-item-height;
Julien Furrer's avatar
Julien Furrer committed
65
            border-right: solid 1px #e0e0e0;
66
        }
Julien Furrer's avatar
Julien Furrer committed
67
    }
68
    .aom-list-container {
Julien Furrer's avatar
Julien Furrer committed
69
70
71
72
73
        .gen-lst-height(4, 1);
    }

    .modal-dialog {
        .gen-mod-width(6);
Julien Furrer's avatar
Julien Furrer committed
74
75
76
    }
}

77
78
.aom-info-panel {
    float: right;
Julien Furrer's avatar
Julien Furrer committed
79
    width: (@aom-list-item-col-width * 2) + 1;
80
81
82
83
    border: 0;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
Julien Furrer's avatar
Julien Furrer committed
84
85
    border-left: solid 1px #e0e0e0;

86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
    .panel-heading {
        border: 0;
        border-bottom: solid 1px @modal-header;
        border-radius: 0;
        padding: 5px 10px;
        background-color: lighten(@modal-header, 10%);
        color: lighten(@text-color, 20%);
        h5 {
            font-weight: 600;
            padding: 0;
            margin: 0;
            font-size: 12px;
        }
    }

    .panel-body {
102
103
104
105
        overflow-x: hidden;
        overflow-y: auto;
        .gen-lst-height(4, 1, 24);

106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
        font-size: 12px;
        padding: 0;
        .aom-image-thumb {
            @thumb-margin: 30px;
            width: @aom-thumb-width + @thumb-margin;
            height: @aom-thumb-height + @thumb-margin;
            background-color: @aom-list-item-bg;
            border-color: @modal-header;
            border-style: solid;
            border-width: 0 1px 1px 0;
            margin: 0 10px 10px 0;
            float: left;
        }

        dl.aom-info-prop {
            margin-top: 15px;
122
            padding-right: 10px;
123
124
125
126
            dd { margin-bottom: 1.4em; }
        }
        hr { clear: both; margin: 5px; }

127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
        .aom-prop-url {
            font-size: 10px;
            color: lighten(@text-color, 30%);
            height: 24px;
            padding: 4px;
        }
        .aom-prop-url-copy-but {
            padding: 2px 4px 0px 6px;
            height: 24px;
            .adim-icon-clippy {
                font-size:16px;
            }
        }
        
        .tooltip {
            font-weight: 200;
            letter-spacing: 1px;
            font-size: 10px;
        }

147
148
149
150
151
152
        .aom-info-share {

            h5 {
                margin: 10px 15px;
            }

153
154
155
156
157
158
            .control-label { text-align: left; }

            .checkbox {
                padding-top: 0;
                input[type=checkbox] { top: -2px; }
            }
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201

            .form-horizontal .form-group {
                margin-left: 0;
                margin-right: 0;
            }

            .form-group {
                label.col-sm-12 { text-align: left; margin-bottom: 5px; }
            }

            .aom-shm-ctrl-members-list {
                margin-top: 5px;
                margin-bottom: 5px;

                .aom-shm-ctrl-unregistred-member {
                    font-style: italic;
                    color: lighten(@input-color, 10%);
                }
            }

            // ----- Locked button and status
            .aom-prop-lock-but { margin-top: -5px; }
            .aom-prop-unlocked-status, .aom-prop-locked-status { display: none; }
            &.aom-prop-unlocked {
                .aom-prop-unlocked-status { display: inline; }
                .aom-prop-locked-status   { display: none; }
            }
            &.aom-prop-locked {
                .aom-prop-unlocked-status { display: none; }
                .aom-prop-locked-status   { display: inline; }
                .aom-prop-locked-status.alert {
                    display: block;
                    margin: 5px 15px 10px;
                    padding: 10px;
                }
                .popover {
                    color: @text-color;
                    font-size: 12px;
                }
                .popover-title {
                    font-size: 12px;
                    font-weight: bold;
                }
202
                .help-block { display: none; }
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
            }
            form {
                position: relative;
                overflow: hidden;
                .aom-shm-frontdrop {
                    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);
                    cursor: not-allowed;
                    height: 800px;
                    left: 0;
                    position: absolute;
                    top: 0;
                    width: 100%;
                    z-index: 100;
                }
            }

            .aom-prop-locked-info {
                cursor: pointer;
                &:hover { text-decoration: underline; }
            }

        }

    }

}

#aom-shared-images-list {
    .aom-list-item {
        .btn-toolbar {
            .aom-item-sh-status { display: none; }
        }
    }
}

.aom-list-container {
Julien Furrer's avatar
Julien Furrer committed
239

Julien Furrer's avatar
Julien Furrer committed
240
    overflow-y: auto;
Julien Furrer's avatar
Julien Furrer committed
241
242
243
244
245
246
247
248
249
250
251
252
    overflow-x: hidden;

    .popover {
        .popover-title { font-size: 12px; font-weight: 500; }
        .popover-content {
            font-size: 12px;
            .dl-horizontal {
                dt { width: 80px; font-weight: 400; font-style: italic; }
                dd { margin-left: 90px; }
            }
        }
    }
Julien Furrer's avatar
Julien Furrer committed
253
254
255
256
257
258
259
260
261
262
263
264
    .aom-loader {
        text-align: center;
        margin-top: 80px;
        opacity: 0.66;
    }
    .aom-empty-list-msg {
        display: none;
        margin: 50px;
        &:last-child {
            display: block;
        }
    }
Julien Furrer's avatar
Julien Furrer committed
265
266
267
268
269
270
271
272
273
274
275
276
277
}

#aom-dropzone {
    margin-top: 20px;
    .lead { margin-bottom: 0; }

    &.dragover {
        .well {
            background: #999;
        }
    }
}

278
279
280
281
282
283
284
.aom-image-thumb {
    width: @aom-thumb-width;
    height: @aom-thumb-height;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

Julien Furrer's avatar
Julien Furrer committed
285
286
287
288
289
290
291
292
.aom-list-item {
    border: 1px solid @aom-list-item-border;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    width: @aom-list-item-width;
    height: @aom-list-item-height;
    margin: @aom-list-item-margin-v @aom-list-item-margin-h;
293
    background-color: @aom-list-item-bg;
Julien Furrer's avatar
Julien Furrer committed
294
295
296
    color: @aom-list-item-color;
    cursor: pointer;

297
298
    &.selected {
        box-shadow: 0 0 2px 2px @aom-list-item-selected-color;
Julien Furrer's avatar
Julien Furrer committed
299
300
301
        border-color: #66afe9;
    }

302
303
304
305
306
307
308
309
    &.current {
        box-shadow: 0 0 0 1px @aom-list-item-current-color inset;
        border-color: @aom-list-item-current-color;
        &.selected {
            box-shadow: 0 0 2px 2px @aom-list-item-current-color, 0 0 0 1px @aom-list-item-current-color inset;
        }
    }

Julien Furrer's avatar
Julien Furrer committed
310
311
312
313
314
315
    .close {
        font-size: 16px;
        margin-right: 2px;
        opacity: 0.1;
    }

316
317
318
319
320
321
    .btn-toolbar {
        margin-left: 3px;
        opacity: 0.5;
    }

    a, .item-body {
Julien Furrer's avatar
Julien Furrer committed
322
323
324
325
        color: @aom-list-item-color;
        text-decoration: none;
        display: block;
        margin-top: 20px;
326
        cursor: pointer;
Julien Furrer's avatar
Julien Furrer committed
327
328
329
330
331
332
333
334
335
336
337

        &:hover {
            color: darken(@aom-list-item-color, 8%);
        }

        &:focus {
            outline: none;
        }
    }

    img {
338
        .aom-image-thumb;
Julien Furrer's avatar
Julien Furrer committed
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
        opacity: 0.8;
    }

    .name {
//        cursor: text;
        display: block;
        padding: 3px 0 5px;
        margin: 0 3px;
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    &:hover {
        border-color: darken(@aom-list-item-border, 10%);
        background-color: #fff;
        img { opacity: 1; }
        .close { opacity: 0.25 };
358
359
360
361

        &.current {
            border-color: @aom-list-item-current-color;
        }
Julien Furrer's avatar
Julien Furrer committed
362
363
364
    }

}