mirror of
https://github.com/videojs/video.js.git
synced 2024-12-25 02:42:10 +02:00
fix(loading-spinner): border size costumization (#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`
This commit is contained in:
parent
824042715a
commit
1866118e6c
@ -22,7 +22,10 @@
|
||||
|
||||
.vjs-seeking .vjs-loading-spinner,
|
||||
.vjs-waiting .vjs-loading-spinner {
|
||||
display: block;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
// add a delay before actual show the spinner
|
||||
animation: vjs-spinner-show 0s linear 0.3s forwards;
|
||||
}
|
||||
@ -36,7 +39,6 @@
|
||||
.vjs-loading-spinner:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
margin: -0.6em;
|
||||
box-sizing: inherit;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
|
Loading…
Reference in New Issue
Block a user