Skip to content

Commit

Permalink
chore: Use math.div for divide in video padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitcheljager committed Nov 20, 2024
1 parent c041c79 commit 38adf41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/javascript/scss/elements/_video.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@use "sass:math";

.video {
position: relative;
padding-bottom: 100% / 900 * 500;
padding-bottom: math.div(100%, 900) * 500;
height: 0;
background: $bg-darker;
}
Expand Down

0 comments on commit 38adf41

Please sign in to comment.