aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/plugins/ads.scss
blob: 21a28e02bfd3f29e1df8eb05677628d636b7f35f (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
// ==========================================================================
// Advertisements
// ==========================================================================

.plyr__ads {
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3; // Above the controls

    &::after {
        background: rgba($plyr-color-gunmetal, 0.8);
        border-radius: 2px;
        bottom: $plyr-control-spacing;
        color: #fff;
        content: attr(data-badge-text);
        font-size: 11px;
        padding: 2px 6px;
        pointer-events: none;
        position: absolute;
        right: $plyr-control-spacing;
        z-index: 3;
    }

    &::after:empty {
        display: none;
    }
}

// Advertisement cue's for the progress bar
.plyr__cues {
    background: currentColor;
    display: block;
    height: $plyr-range-track-height;
    left: 0;
    margin: -($plyr-range-track-height / 2) 0 0;
    opacity: 0.8;
    position: absolute;
    top: 50%;
    width: 3px;
    z-index: 3; // Between progress and thumb
}