aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/modules/plyr/custom_plyr.css
blob: 7a9f0f3d17b8e07c3f30a481bc51165f9731aede (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
/* Prevent this div from blocking right-click menu for video
e.g. Firefox playback speed options */
.plyr__poster {
    display: none;
}

/* plyr fix */
.plyr:-moz-full-screen video {
    max-height: initial;
}

.plyr:-webkit-full-screen video {
    max-height: initial;
}

.plyr:-ms-fullscreen video {
    max-height: initial;
}

.plyr:fullscreen video {
    max-height: initial;
}

.plyr__preview-thumb__image-container {
    width: 158px;
    height: 90px;
}

.plyr__preview-thumb {
    bottom: 100%;
}

.plyr__menu__container [role="menu"],
.plyr__menu__container [role="menucaptions"] {
    /* Set vertical scroll */
    /* issue https://github.com/sampotts/plyr/issues/1420 */
    max-height: 320px;
    overflow-y: auto;
}

/*
* Custom styles similar to youtube
*/
.plyr__controls {
    display: flex;
    justify-content: center;
}

.plyr__progress__container {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-bottom: -10px;
}

.plyr__controls .plyr__controls__item:first-child {
    margin-left: 0;
    margin-right: 0;
    z-index: 5;
}

.plyr__controls .plyr__controls__item.plyr__volume {
    margin-left: auto;
}

.plyr__controls .plyr__controls__item.plyr__progress__container {
    padding-left: 10px;
    padding-right: 10px;
}

.plyr__progress input[type="range"] {
    margin-bottom: 50px;
}

/*
* End custom styles
*/