Skip to content

Commit

Permalink
fix: use calc instead of list.slash
Browse files Browse the repository at this point in the history
  • Loading branch information
sampotts committed Dec 16, 2021
1 parent 675a853 commit 9ea3a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sass/plugins/ads.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Advertisements
// ==========================================================================

@use 'sass:list';
@use 'sass:math';

.plyr__ads {
border-radius: inherit;
Expand Down Expand Up @@ -49,7 +49,7 @@
display: block;
height: $plyr-range-track-height;
left: 0;
margin: -(list.slash($plyr-range-track-height, 2)) 0 0;
margin: -calc($plyr-range-track-height / 2) 0 0;
opacity: 0.8;
position: absolute;
top: 50%;
Expand Down

0 comments on commit 9ea3a69

Please sign in to comment.