Skip to content

Commit

Permalink
Merge pull request #552 from geoadmin/feat_replace_deprecated_sass
Browse files Browse the repository at this point in the history
replace soon-to-be-deprecated division by a function in Sass
  • Loading branch information
pakb authored Dec 1, 2023
2 parents 166b9dd + 9cb8c12 commit 74c127c
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 74c127c

Please sign in to comment.