aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/less/components/examples.less
blob: 61d8d3bc89aa80fcb37209b2feca096858ad2835 (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
// ==========================================================================
// Examples
// ==========================================================================

section {
    margin: 0 auto @padding-base;
    max-width: @example-width-video;
}

video,
.plyr__video-embed {
    border-radius: @border-radius-base;
    max-width: 100%;
    vertical-align: middle;
}
.plyr__video-embed {
    -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
}

// Example players
.plyr {
    margin: 0 auto;

    &__controls {
        border-radius: 0 0 @border-radius-base @border-radius-base;
    }
    video,
    .plyr__video-embed {
        border-radius: @border-radius-base @border-radius-base 0 0;
    }
    &--fullscreen,
    &--fullscreen-active {
        max-width: none;

        .plyr-controls,
        video,
        iframe {
            border-radius: 0;
        }
        iframe {
            -webkit-mask-image: none;
        }
    }
}
.plyr--audio {
    max-width: @example-width-audio;

    .plyr__controls {
        border-radius: @border-radius-base;
    }
    .plyr__progress {
        border-radius: @border-radius-base @border-radius-base 0 0;
        overflow: hidden;
    }
}

// Style full supported player
.plyr__cite {
    display: none;
    margin-top: @padding-base;

    .icon {
        margin-right: (@padding-base / 4);
    }
}

.plyr--video ~ ul .plyr__cite--video,
.plyr--audio ~ ul .plyr__cite--audio,
.plyr--youtube ~ ul .plyr__cite--youtube,
.plyr--vimeo ~ ul .plyr__cite--vimeo {
    display: block;
}