Skip to content

Commit 665154f

Browse files
authored
chore: remove legacy prefixes (#8276)
1 parent 9e1e29d commit 665154f

File tree

6 files changed

+2
-96
lines changed

6 files changed

+2
-96
lines changed

src/css/_utilities.scss

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,10 @@
66
}
77

88
@mixin transform($transform) {
9-
-moz-transform: $transform;
10-
-ms-transform: $transform;
11-
-o-transform: $transform;
12-
-webkit-transform: $transform;
139
transform: $transform;
1410
}
1511

1612
@mixin transition($string: $transition--default) {
17-
-webkit-transition: $string;
18-
-moz-transition: $string;
19-
-ms-transition: $string;
20-
-o-transition: $string;
2113
transition: $string;
2214
}
2315

@@ -32,44 +24,26 @@
3224
}
3325

3426
@mixin border-radius($radius) {
35-
-webkit-border-radius: $radius;
36-
-moz-border-radius: $radius;
3727
border-radius: $radius;
3828
}
3929

4030
@mixin animation($string: spin 1s infinite linear) {
41-
-webkit-animation: $string;
42-
-moz-animation: $string;
43-
-o-animation: $string;
4431
animation: $string;
4532
}
4633

4734
@mixin display-flex($alignment: '', $justification: '') {
48-
display: -webkit-box;
49-
display: -webkit-flex;
50-
display: -ms-flexbox;
5135
display: flex;
5236

5337
@if $alignment != '' {
54-
-webkit-box-align: $alignment;
55-
-webkit-align-items: $alignment;
56-
-ms-flex-align: $alignment;
5738
align-items: $alignment;
5839
}
5940

6041
@if $justification != '' {
61-
-webkit-box-pack: $justification;
62-
-webkit-justify-content: $justification;
63-
-ms-flex-pack: $justification;
6442
justify-content: $justification;
6543
}
6644
}
6745

6846
@mixin flex($value) {
69-
-webkit-box-flex: $value;
70-
-moz-box-flex: $value;
71-
-webkit-flex: $value;
72-
-ms-flex: $value;
7347
flex: $value;
7448
}
7549

@@ -78,30 +52,18 @@
7852
@mixin user-select($string: none) {
7953
/* iOS Safari */
8054
-webkit-touch-callout: $string;
81-
/* Safari */
55+
/* Safari, and Chrome 53 */
8256
-webkit-user-select: $string;
83-
/* Konqueror HTML */
84-
-khtml-user-select: $string;
85-
/* Firefox */
86-
-moz-user-select: $string;
87-
/* Internet Explorer/Edge */
88-
-ms-user-select: $string;
8957
/* Non-prefixed version, currently supported by Chrome and Opera */
9058
user-select: $string;
9159
}
9260

9361
// https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
9462
@mixin box-shadow ($string: 0 0 1em rgba(0, 0, 0, 0.25)) {
95-
-webkit-box-shadow: $string;
96-
-moz-box-shadow: $string;
9763
box-shadow: $string;
9864
}
9965

10066
@mixin order($value) {
101-
-webkit-box-ordinal-group: $value;
102-
-moz-box-ordinal-group: $value;
103-
-ms-flex-order: $value;
104-
-webkit-order: $value;
10567
order: $value;
10668
}
10769

src/css/components/_button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
text-decoration: none;
1111
transition: none;
1212

13+
// Chrome < 83
1314
-webkit-appearance: none;
14-
-moz-appearance: none;
1515
appearance: none;
1616
}
1717

src/css/components/_loading.scss

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
.vjs-seeking .vjs-loading-spinner:after,
4949
.vjs-waiting .vjs-loading-spinner:before,
5050
.vjs-waiting .vjs-loading-spinner:after {
51-
-webkit-animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, vjs-spinner-fade 1.1s linear infinite;
5251
animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, vjs-spinner-fade 1.1s linear infinite;
5352
}
5453

@@ -60,7 +59,6 @@
6059
.vjs-seeking .vjs-loading-spinner:after,
6160
.vjs-waiting .vjs-loading-spinner:after {
6261
border-top-color: rgb(255,255,255);
63-
-webkit-animation-delay: 0.44s;
6462
animation-delay: 0.44s;
6563
}
6664

@@ -70,24 +68,12 @@
7068
}
7169
}
7270

73-
@-webkit-keyframes vjs-spinner-show {
74-
to {
75-
visibility: visible;
76-
}
77-
}
78-
7971
@keyframes vjs-spinner-spin {
8072
100% {
8173
transform: rotate(360deg);
8274
}
8375
}
8476

85-
@-webkit-keyframes vjs-spinner-spin {
86-
100% {
87-
-webkit-transform: rotate(360deg);
88-
}
89-
}
90-
9177
@keyframes vjs-spinner-fade {
9278
0% {
9379
border-top-color: $secondary-background-color;
@@ -105,21 +91,3 @@
10591
border-top-color: $secondary-background-color;
10692
}
10793
}
108-
109-
@-webkit-keyframes vjs-spinner-fade {
110-
0% {
111-
border-top-color: $secondary-background-color;
112-
}
113-
20% {
114-
border-top-color: $secondary-background-color;
115-
}
116-
35% {
117-
border-top-color: white;
118-
}
119-
60% {
120-
border-top-color: $secondary-background-color;
121-
}
122-
100% {
123-
border-top-color: $secondary-background-color;
124-
}
125-
}

src/css/utilities/_linear-gradient.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979

8080
/// Mixin printing a linear-gradient
8181
/// as well as a plain color fallback
82-
/// and the `-webkit-` prefixed declaration
8382
/// @access public
8483
/// @param {String | List | Angle} $direction - Linear gradient direction
8584
/// @param {Arglist} $color-stops - List of color-stops composing the gradient
@@ -90,6 +89,5 @@
9089
}
9190

9291
background: nth(nth($color-stops, 1), 1);
93-
background: -webkit-linear-gradient(legacy-direction($direction), $color-stops);
9492
background: linear-gradient($direction, $color-stops);
9593
}

src/js/fullscreen-api.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,6 @@ const apiMap = [
3535
'webkitfullscreenchange',
3636
'webkitfullscreenerror',
3737
'-webkit-full-screen'
38-
],
39-
// Mozilla
40-
[
41-
'mozRequestFullScreen',
42-
'mozCancelFullScreen',
43-
'mozFullScreenElement',
44-
'mozFullScreenEnabled',
45-
'mozfullscreenchange',
46-
'mozfullscreenerror',
47-
'-moz-full-screen'
48-
],
49-
// Microsoft
50-
[
51-
'msRequestFullscreen',
52-
'msExitFullscreen',
53-
'msFullscreenElement',
54-
'msFullscreenEnabled',
55-
'MSFullscreenChange',
56-
'MSFullscreenError',
57-
'-ms-fullscreen'
5838
]
5939
];
6040

src/js/player.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,8 +2055,6 @@ class Player extends Component {
20552055

20562056
if (!isFs && el.matches) {
20572057
isFs = el.matches(':' + this.fsApi_.fullscreen);
2058-
} else if (!isFs && el.msMatchesSelector) {
2059-
isFs = el.msMatchesSelector(':' + this.fsApi_.fullscreen);
20602058
}
20612059

20622060
this.isFullscreen(isFs);

0 commit comments

Comments
 (0)