aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/player/upnext.scss
blob: 922a9674d386192d987c96d1a8a3a54400067f8b (plain) (blame)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
$browser-context: 16;

@function em($pixels, $context: $browser-context) {
  @return #{$pixels/$context}em;
}

@mixin transition($string: $transition--default) {
  transition: $string;
}

.video-js {

  .vjs-upnext-content {
    @include transition(opacity 0.1s);

    font-size: 1.8em;
    pointer-events: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
  }

  .vjs-upnext-top {
    margin: 0 auto;
    width: 100%;
    position: absolute;
    bottom: 50%;
    margin-bottom: 60px;
  }

  .vjs-upnext-bottom {
    margin: 0 auto;
    width: 100%;
    position: absolute;
    top: 50%;
    margin-top: 52px;
  }

  .vjs-upnext-suspended,
  .vjs-upnext-cancel {
    display: block;
    float: none;
    text-align: center;
  }

  .vjs-upnext-suspended {
    font-size: 50%;
    margin-top: 1rem;
  }

  .vjs-upnext-headtext {
    display: block;
    font-size: 14px;
    text-align: center;
    padding-bottom: 7px;
  }

  .vjs-upnext-title {
    display: block;
    padding: 10px 10px 2px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: normal;
    text-overflow: ellipsis;
  }

  .vjs-upnext-cancel-button {
    cursor: pointer;
    display: inline-block;
    float: none;
    padding: 10px !important;
    font-size: 16px !important;
    border: 0;
  }

  .vjs-upnext-cancel-button,
  .vjs-upnext-cancel-button:focus {
    outline: 0;
  }

  .vjs-upnext-cancel-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
  }

  &.vjs-no-flex .vjs-upnext-content {
    padding-bottom: 1em;
  }

  .vjs-upnext-autoplay-icon {
    @include transition(stroke-dasharray 0.1s cubic-bezier(0.4,0,1,1));

    position: absolute;
    top: 50%;
    left: 50%;
    width: 98px;
    height: 98px;
    margin: -49px 0 0 -49px;
    cursor: pointer;
  }

}

.video-js.vjs-upnext--showing {
  .vjs-control-bar {
    z-index: 1;
  }
}