aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/plugins/previewThumbnails.scss
blob: 92702e393a9547bbd945955b4c3f2d7086b137f8 (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
// --------------------------------------------------------------
// Preview Thumbnails
// --------------------------------------------------------------

.plyr__preview-thumbnail-container {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,0,0,0); // The background colour above applies to the area under the border - so appears to be a border of 0.5 opacity black
    border-radius: 0px;
    bottom: 100%;
    box-shadow: $plyr-tooltip-shadow;
    left: 50%;
    line-height: 1.3;
    margin-bottom: $plyr-tooltip-padding * 2;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.2s 0.1s ease;
    white-space: nowrap;
    z-index: 2;

    img {
        position: absolute;
        left: 0px;
        right: 0px;
        top: 0px;
        bottom: 0px;
        margin: auto;
        height: 100%;
        width: 100%;
        border-radius: 0px;
    }

    // Seek time text
    span {
        position: absolute;
        bottom: 0px;
        z-index: 3;
        transform: translate(-50%,0);
        background-color: rgba(0,0,0,0.55);
        color: rgba(255,255,255,1);
        padding: 4px 6px 3px 6px;
        font-size: $plyr-font-size-small;
        font-weight: $plyr-font-weight-regular;
    }
}

.plyr__preview-scrubbing-container {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    height: 100%;
    width: 100%;
    z-index: 1;
    transition: opacity 0.3s 0.3s ease;
    filter: blur(1px);
    
    img {
        position: absolute;
        left: 0px;
        right: 0px;
        top: 0px;
        bottom: 0px;
        margin: auto;
        height: 100%;
        width: 100%;
        object-fit: contain;
    }
}