Skip to content

Commit

Permalink
replace soon-to-be-deprecated division by a function in Sass
Browse files Browse the repository at this point in the history
  • Loading branch information
pakb committed Dec 1, 2023
1 parent 166b9dd commit 9cb8c12
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,15 @@ const { show, animate, getImageForBackgroundLayer, toggleShowSelector, onSelectB
</template>
<style lang="scss" scoped>
@use 'sass:math';
@import './bg-selector';
$main-element: '.bg-selector-squared';
$square-button-width: 98px;
$square-button-radius: 8px;
// assets have been sized to have a 4:3 ratio, so we can adapt "squared" button to have this exact ratio
@include setup-background-buttons($main-element, $square-button-width, 3 / 4);
@include setup-background-buttons($main-element, $square-button-width, math.div(3, 4));
@include spread-wheel-buttons($main-element, $square-button-width, right);
#{$main-element} {
Expand Down

0 comments on commit 9cb8c12

Please sign in to comment.