summaryrefslogtreecommitdiffstats
path: root/webapp/sass/components/_videos.scss
blob: 16e3468d121ae37f04caa389fee07858eebeb72f (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
@charset 'UTF-8';

.post {
    .video-div {
        margin-bottom: 8px;
        max-width: 480px;
        position: relative;

        .video-thumbnail {
            height: auto;
            max-width: 100%;
        }

        .video-thumbnail__error {
            height: 100%;
            line-height: 2;
            padding: 110px 0;
            text-align: center;
            width: 100%;

            .fa {
                @include opacity(.5);
            }

            div {
                font-size: 1.2em;
            }
        }

        .block {
            background-color: alpha-color($black, .5);
            border-radius: 10px;
            height: 150px;
            left: 50%;
            margin: -75px 0 0 -100px;
            position: absolute;
            top: 50%;
            width: 200px;
        }
    }

    .video-type {
        @include opacity(.8);
        font-size: 15px;
        margin: 0;
        padding: 0;
    }

    .video-title {
        font-size: 15px;
        margin-top: 3px;
    }

    .play-button {
        @include border-radius(14px);
        border: 4px solid alpha-color($white, .4);
        height: 100px;
        position: absolute;
        right: 51px;
        top: 26px;
        width: 100px;

        span {
            border-bottom: 36px solid transparent;
            border-left: 60px solid alpha-color($white, .4);
            border-top: 36px solid transparent;
            height: 0;
            left: 20px;
            position: absolute;
            top: 10px;
            width: 0;
        }
    }

    .img-div {
        -moz-force-broken-image-icon: 1;
        border-radius: 5px;
        margin-bottom: 8px;
        max-height: 500px;
        max-width: 450px;
        position: relative;

        &.placeholder {
            height: 500px;
        }

        .sidebar--right & {
            max-width: 100%;
        }
    }

    .video-loading {
        height: 360px;
    }
}