Skip to content

Commit 1866118

Browse files
authored
fix(loading-spinner): border size costumization (videojs#8369)
Allows to change the border size of the `loading-spinner` component without having to reflect the border size in the pseudo-element margin. - uses display `flex` to facilitate centering of pseudo-elements - deletes the pseudo-elements `margin`
1 parent 8240427 commit 1866118

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/css/components/_loading.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
.vjs-seeking .vjs-loading-spinner,
2424
.vjs-waiting .vjs-loading-spinner {
25-
display: block;
25+
display: flex;
26+
justify-content: center;
27+
align-items: center;
28+
2629
// add a delay before actual show the spinner
2730
animation: vjs-spinner-show 0s linear 0.3s forwards;
2831
}
@@ -36,7 +39,6 @@
3639
.vjs-loading-spinner:after {
3740
content: "";
3841
position: absolute;
39-
margin: -0.6em;
4042
box-sizing: inherit;
4143
width: inherit;
4244
height: inherit;

0 commit comments

Comments
 (0)