Blame view

node_modules/video.js/src/css/_utilities.scss 2.84 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
  @import "utilities/linear-gradient";
  
  @mixin background-color-with-alpha($color, $alpha) {
    background-color: $color;
    background-color: rgba($color, $alpha);
  }
  
  @mixin transform($transform) {
    -moz-transform: $transform;
    -ms-transform: $transform;
    -o-transform: $transform;
    -webkit-transform: $transform;
    transform: $transform;
  }
  
  @mixin transition($string: $transition--default) {
    -webkit-transition: $string;
    -moz-transition: $string;
    -ms-transition: $string;
    -o-transition: $string;
    transition: $string;
  }
  
  @mixin hide-visually {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  @mixin border-radius($radius) {
    -webkit-border-radius: $radius;
    -moz-border-radius: $radius;
    border-radius: $radius;
  }
  
  @mixin animation($string: spin 1s infinite linear) {
    -webkit-animation: $string;
    -moz-animation: $string;
    -o-animation: $string;
    animation: $string;
  }
  
  @mixin display-flex($alignment: '', $justification: '') {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  
    @if $alignment != '' {
      -webkit-box-align: $alignment;
      -webkit-align-items: $alignment;
      -ms-flex-align: $alignment;
      align-items: $alignment;
    }
  
    @if $justification != '' {
      -webkit-box-pack: $justification;
      -webkit-justify-content: $justification;
      -ms-flex-pack: $justification;
      justify-content: $justification;
    }
  }
  
  @mixin flex($value) {
    // @include context('.video-js', '.video-js.vjs-no-flex') {
    //   display: table-cell;
    //   vertical-align: middle;
    //   @if ($value == 'auto') {
    //     width: auto;
    //   }
    // }
  
    -webkit-box-flex: $value;
    -moz-box-flex: $value;
    -webkit-flex: $value;
    -ms-flex: $value;
    flex: $value;
  }
  
  // https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
  // https://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css (version: January, 2017)
  @mixin user-select($string: none) {
    /* iOS Safari */
    -webkit-touch-callout: $string;
    /* Safari */
    -webkit-user-select: $string;
    /* Konqueror HTML */
    -khtml-user-select: $string;
    /* Firefox */
    -moz-user-select: $string;
    /* Internet Explorer/Edge */
    -ms-user-select: $string;
    /* Non-prefixed version, currently supported by Chrome and Opera */
    user-select: $string;
  }
  
  // https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
  @mixin box-shadow ($string: 0 0 1em rgba(0, 0, 0, 0.25)) {
    -webkit-box-shadow: $string;
    -moz-box-shadow: $string;
    box-shadow: $string;
  }
  
  @mixin order($value) {
    -webkit-box-ordinal-group: $value;
    -moz-box-ordinal-group: $value;
    -ms-flex-order: $value;
    -webkit-order: $value;
    order: $value;
  }
  
  %fill-parent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  %icon-default {
    @extend %fill-parent;
    text-align: center;
  }