Blame view

node_modules/video.js/src/css/components/_control-bar.scss 1.17 KB
2a09d1a4   liuqimichale   添加宜春 天水 宣化
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
  .video-js .vjs-control-bar {
    display: none;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.0em;
  
    @include background-color-with-alpha($primary-background-color, $primary-background-transparency);
  }
  
  // Video has started playing
  .vjs-has-started .vjs-control-bar {
    @include display-flex;
    visibility: visible;
    opacity: 1;
  
    $trans: visibility 0.1s, opacity 0.1s; // Var needed because of comma
    @include transition($trans);
  }
  
  // Video has started playing AND user is inactive
  .vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
    // Remain visible for screen reader and keyboard users
    visibility: visible;
    opacity: 0;
  
    $trans: visibility 1.0s, opacity 1.0s;
    @include transition($trans);
  
  }
  
  .vjs-controls-disabled .vjs-control-bar,
  .vjs-using-native-controls .vjs-control-bar,
  .vjs-error .vjs-control-bar {
    // !important is ok in this context.
    display: none !important;
  }
  
  // Don't hide the control bar if it's audio
  .vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
    opacity: 1;
    visibility: visible;
  }
  
  // IE 8 + 9 Support
  .vjs-has-started.vjs-no-flex .vjs-control-bar {
    display: table;
  }