aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/modules/plyr/custom_plyr.css
blob: fd2034baffe1e39b96299f61b6bd91e252c939dd (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
/* 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 for plyr similar to shaka-player
*/
.plyr__controls__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0px 10px;
}

.plyr__progress__container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 5px 0;
}

.plyr__progress {
    width: 100%;
}

.plyr__controls {
    flex-direction: column;
}

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

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

.plyr__controls .plyr__controls__item.plyr__progress__container {
    padding-left: 10px;
    padding-right: 10px;
}
/*
* End custom styles for plyr similar to shaka-player
*/