Project

General

Profile

1
/* cards */
2
.md-card {
3
    background: @white;
4
    position: relative;
5
    .boxShadowHelper(1);
6
    border: none;
7
    & + &,
8
    & + .uk-grid,
9
    .uk-grid + & {
10
        margin-top: 25px;
11
    }
12
    .full_width_in_card {
13
        padding: 16px 24px;
14
        background: @background_color_default;
15
    }
16
    .md-card-toolbar {
17
        height: @header_main_height;
18
        //position: relative;
19
        //z-index: 11;
20
        padding: 0 16px;
21
        border-bottom: 1px solid @border_color;
22
        background: @white;
23
        .clearfix();
24
        &-heading-text {
25
            .md_font(500,14px,50px);
26
            color: @text_primary_color;
27
            margin: 0;
28
            float: left;
29
            overflow: hidden;
30
            height: 48px;
31
            &.large {
32
                font-size: 18px;
33
                font-weight: 400;
34
            }
35
        }
36
        .md-toggle-group {
37
            float: left;
38
            margin: 8px 0 0 16px;
39
            &.md-toggle-group-small {
40
                margin-top: 10px;
41
            }
42
        }
43
        .md-card-toolbar-actions {
44
            float: right;
45
            padding-top: 10px;
46
            .uk-open {
47
                .md-card-toolbar-icon {
48
                    background: @background_color_default;
49
                    color: @text_primary_color;
50
                }
51
            }
52
            .md-card-dropdown {
53
                display: inline-block;
54
                position: relative;
55
            }
56
            .selectize-control {
57
                min-width: 220px;
58
                margin-top: -3px;
59
                .selectize-input {
60
                    min-height: 30px;
61
                    padding: 4px 8px;
62
                }
63
                .selectize-dropdown {
64
                    margin-top: -34px;
65
                }
66
            }
67
        }
68
        .md-icon {
69
            + .md-card-dropdown {
70
               margin-left: 4px;
71
            }
72
        }
73
        .md-card-fullscreen-deactivate {
74
            margin: 9px 8px 0 0;
75
        }
76
        &-input {
77
            border: none;
78
            .md_font(400,18px,24px);
79
            height: auto;
80
            background: none !important;
81
            padding: 12px 0;
82
            width: 50%;
83
            box-sizing: border-box;
84
        }
85
        .uk-tab {
86
            margin-top: -2px;
87
            border-bottom: none;
88
            li > a {
89
                padding: 10px 8px !important;
90
            }
91
        }
92
    }
93
    .md-card-head {
94
        height: 160px;
95
        position: relative;
96
        border-bottom: 1px solid @border_color;
97
        &-menu {
98
            position: absolute;
99
            right: 8px;
100
            top: 8px;
101
        }
102
        &-avatar {
103
            width: 82px;
104
            height: 82px;
105
            border-radius: 50%;
106
            margin-top: 16px;
107
            border: 2px solid @white;
108
            display: inline-block;
109
        }
110
        &-text {
111
            padding: 8px 16px 16px;
112
            .md_font(500,16px,22px);
113
            color: @text_primary_color;
114
            margin: 0;
115
            span {
116
                display: block;
117
                .md_font(400,12px,18px);
118
                margin-top: -2px;
119
            }
120
            &.text_dark {
121
                color: @text_primary_color !important;
122
            }
123
            &-over {
124
                background-image: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
125
            }
126
        }
127
        &-subtext {
128
            position: absolute;
129
            bottom: 10px;
130
            left: 0;
131
            right: 0;
132
            padding: 0 16px;
133
            text-align: right;
134
            color: @white;
135
            span {
136
                font-size: 26px;
137
            }
138
        }
139
        &-icon {
140
            font-size: 48px;
141
            color: @white;
142
            vertical-align: middle;
143
        }
144
        &.head_background {
145
            background-repeat: no-repeat;
146
            background-position: center center;
147
            background-size: cover;
148
            border-bottom-color: transparent;
149
            .md-card-head-text {
150
                color: @white;
151
            }
152
            &_top {
153
                background-repeat: no-repeat;
154
                background-position: center top;
155
            }
156
            &_bottom {
157
                background-repeat: no-repeat;
158
                background-position: center bottom;
159
            }
160
        }
161
        .head_chart {
162
            height: 100px;
163
            width: 100%;
164
            position: absolute !important;
165
            left: 0;
166
            top: 40px;
167
        }
168
        .fitVid_player {
169
            width: 100%;
170
            height: 160px;
171
            overflow: hidden;
172
        }
173
        &-img {
174
            height: 100%;
175
            width: auto;
176
        }
177
        iframe {
178
            height: 160px;
179
        }
180
    }
181
    .md-card-content {
182
        padding: 16px;
183
        &.padding-reset {
184
            padding: 0;
185
        }
186
        &.large-padding {
187
            padding: 24px 35px;
188
        }
189
        &.small-padding {
190
            padding: 8px;
191
        }
192
    }
193
    .md-card-footer {
194
        padding: 16px;
195
        font-size: 14px;
196
        line-height: 18px;
197
        .md-card-footer-head {
198
            .md_font(500,16px,20px);
199
            margin: 0 0 4px;
200
        }
201
    }
202
    &.md-card-fullscreen {
203
        position: fixed;
204
        z-index: 9998;
205
        overflow-x: hidden;
206
        .md-card-fullscreen-activate {
207
            display: none;
208
        }
209
    }
210
    .md-card-fullscreen-content {
211
        display: none;
212
        padding: 16px 0;
213
        .md-card-fullscreen-content-hidden & {
214
            display: block;
215
            visibility: hidden;
216
            padding: 0;
217
        }
218
    }
219
    &.mdToolbar_fixed {
220
        overflow-y: hidden;
221
        > .md-card-toolbar {
222
            position: fixed;
223
            left: 0;
224
            right: 0;
225
            top: 0;
226
            z-index: 9999;
227
            .boxShadowHelper(2);
228
        }
229
        > .md-card-content {
230
            overflow-y: scroll;
231
            box-sizing: border-box;
232
            position: absolute;
233
            width: 100%;
234
            top: @header_main_height;
235
            bottom: 0;
236
        }
237
    }
238
    &.md-card-overlay {
239
        overflow: hidden;
240
        padding-bottom: 54px;
241
        .md-card-content {
242
            height: 142px;
243
            overflow: hidden;
244
            box-sizing: border-box;
245
            &.no_truncate {
246
                position: relative;
247
                &:after {
248
                    position: absolute;
249
                    bottom: 0;
250
                    left: 0;
251
                    right: 0;
252
                    height: 8px;
253
                    background-image: linear-gradient(to top, rgba(255,255,255,1)  50%,rgba(255,255,255,0)  100%);
254
                    display: block;
255
                    content: '';
256
                    z-index: 10;
257
                }
258
            }
259
            > pre {
260
                margin-top: 0;
261
                max-height: 110px;
262
                > code {
263
                    overflow: hidden;
264
                }
265
            }
266
        }
267
        .md-card-overlay-content {
268
            position: absolute;
269
            top: 100%;
270
            left: 0;
271
            right: 0;
272
            padding: 0 16px;
273
            margin-top: -54px;
274
            border-top: 1px solid @border_color;
275
            text-align: left;
276
            bottom: 0;
277
            background: @white;
278
            z-index: 10;
279
            transition: all 280ms @md_easing;
280
            p {
281
                margin: 0;
282
                + * {
283
                    margin-top: 16px
284
                }
285
                + p {
286
                    margin-top: 4px
287
                }
288
            }
289
        }
290
        .md-card-overlay-header {
291
            .clearfix;
292
            padding: 12px 0;
293
            h3,
294
            h4 {
295
                margin: 0;
296
                .truncate_line;
297
                padding-right: 32px;
298
                box-sizing: border-box;
299
            }
300
            h3 {
301
                .md_font(400, 16px, 30px);
302
            }
303
            h4 {
304
                .md_font(500, 14px, 30px);
305
            }
306
            .md-icon {
307
                position: absolute;
308
                right: 12px;
309
                top: 11px;
310
            }
311
        }
312
        &-active {
313
            .md-card-overlay-content {
314
                top: -1px;
315
                margin-top: 0;
316
            }
317
        }
318
    }
319
    &.md-card-hover {
320
        transition: all 280ms @md_easing;
321
        will-change: box-shadow;
322
        &:hover {
323
            .boxShadowHelper(3);
324
        }
325
    }
326
    // ui-kit sortable
327
    .uk-sortable-dragged & {
328
        .boxShadowHelper(3);
329
        canvas {
330
            margin: 0 auto;
331
            display: block;
332
        }
333
    }
334
    .heading_list {
335
        padding: 0;
336
    }
337
    &-primary,
338
    &-success,
339
    &-danger,
340
    &-warning {
341
        border-left: 4px solid transparent;
342
    }
343
    &-primary {
344
        border-left-color: @primary_color;
345
    }
346
    &-success {
347
        border-left-color: @success_color;
348
    }
349
    &-danger {
350
        border-left-color: @danger_color;
351
    }
352
    &-warning {
353
        border-left-color: @warning_color;
354
    }
355
}
356
.md-expand,
357
.md-expand-group > * {
358
    opacity: 0;
359
}
360
.md-card-placeholder {
361
    min-width: 100%;
362
}
363
.md-card-list-wrapper {
364
    .border-box();
365
    .md-card-list-header {
366
        position: absolute;
367
        top: -24px;
368
        left: 0;
369
    }
370
    .md-card-list {
371
        margin: 48px 0 0 0;
372
        position: relative;
373
        &:first-child {
374
            margin-top: 24px;
375
        }
376
        > ul {
377
            .reset_list();
378
            > li {
379
                min-height: 34px;
380
                padding: 8px 16px;
381
                font-size: 13px;
382
                .clearfix();
383
                transition: background 150ms,padding 200ms;
384
                background: @white;
385
                .boxShadowHelper(1);
386
                &.item-shown {
387
                    background: @white;
388
                    padding: 8px 36px;
389
                    .md-card-list-item {
390
                        &-subject {
391
                            @media @screen_medium_max {
392
                                clear: both;
393
                                float: none;
394
                                padding-top: 16px;
395
                                > span {
396
                                    white-space: normal;
397
                                }
398
                            }
399
                        }
400
                        &-sender {
401
                            width: auto;
402
                            overflow: hidden;
403
                        }
404
                    }
405
                    &.md-card-list-item-selected {
406
                        position: relative;
407
                        &:before {
408
                            content: '';
409
                            position: absolute;
410
                            display: block;
411
                            left: 0;
412
                            top: 0;
413
                            bottom: 0;
414
                            width: 8px;
415
                            background: @theme_light_color;
416
                        }
417
                    }
418
                }
419
            }
420
        }
421
        .md-card-list-item {
422
            &-select,
423
            &-avatar-wrapper,
424
            &-sender {
425
                float: left;
426
            }
427
            &-select {
428
                padding: 6px 8px 0 0;
429
            }
430
            &-avatar-wrapper,
431
            &-sender,
432
            &-subject,
433
            &-date {
434
                padding: 0 8px;
435
            }
436
            &-avatar-wrapper {
437
                .md-card-list-item-avatar {
438
                    background: #757575;
439
                    color: @white;
440
                    .md-user-image;
441
                    display: block;
442
                }
443
                span.md-card-list-item-avatar {
444
                    line-height: 34px;
445
                    text-transform: uppercase;
446
                    text-align: center;
447
                }
448

    
449
            }
450
            &-sender {
451
                width: 220px;
452
                line-height: 34px;
453
                > span {
454
                    .truncate_line();
455
                }
456
                @media @screen_xlarge_max {
457
                    display: none;
458
                }
459
            }
460
            &-subject {
461
                overflow: hidden;
462
                font-weight: 500;
463
                > span {
464
                    line-height: 34px;
465
                    .truncate_line();
466
                }
467
                .md-card-list-item-sender-small {
468
                    display: none;
469
                    @media @screen_xlarge_max {
470
                        display: block;
471
                        + span {
472
                            line-height: inherit;
473
                        }
474
                    }
475
                    > span {
476
                        .truncate_line();
477
                        font-size: 12px;
478
                        color: #999;
479
                    }
480
                }
481
            }
482
            &-date {
483
                line-height: 34px;
484
                float: right;
485
                color: #999;
486
                @media @screen_small_max {
487
                    display: none;
488
                }
489
            }
490
            &-menu {
491
                float: right;
492
                margin: 0 0 0 8px;
493
                position: relative;
494
                .uk-dropdown {
495
                    .material-icons {
496
                        margin-right: 8px;
497
                    }
498
                }
499
            }
500
            &-content-wrapper {
501
                display: none;
502
                clear: both;
503
                opacity: 0;
504
            }
505
            &-content {
506
                padding: 16px 16px 0 0;
507
                max-height: 360px;
508
                overflow-x: hidden;
509
                margin: 0 0 40px;
510
                top: 20px;
511
                position: relative;
512
                font-size: 14px;
513
                + .md-card-list-item-reply {
514
                    padding-top: 10px;
515
                }
516
            }
517
            &-reply {
518
                padding: 16px 0;
519
            }
520
            &-selected {
521
                background: @theme_light_color;
522
            }
523
        }
524
    }
525
}
(2-2/12)