Skip to content

Commit

Permalink
fix(loading-spinner): border size costumization (#8369)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
amtins authored Dec 4, 2023
1 parent 8240427 commit 1866118
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/css/components/_loading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -36,7 +39,6 @@
.vjs-loading-spinner:after {
content: "";
position: absolute;
margin: -0.6em;
box-sizing: inherit;
width: inherit;
height: inherit;
Expand Down

0 comments on commit 1866118

Please sign in to comment.