Fix Sass deprecation warnings

This commit is contained in:
Andreas Nedbal 2023-01-05 09:07:13 +01:00 committed by Andreas Nedbal
parent dd830bd22b
commit 84fcfb41a3
2 changed files with 5 additions and 3 deletions

View File

@ -1,18 +1,19 @@
@use "sass:map";
@use "sass:math";
.profile {
&__avatar {
display: block;
width: map.get($avatar-sizes, "xl");
height: map.get($avatar-sizes, "xl");
margin: -(map.get($avatar-sizes, "xl") / 2.5) map.get($spacers, 4) 0;
margin: -(math.div(map.get($avatar-sizes, "xl"), 2.5)) map.get($spacers, 4) 0;
border-radius: $avatar-border-radius;
box-shadow: $box-shadow;
@include media-breakpoint-up(sm) {
width: map.get($avatar-sizes, "xxl");
height: map.get($avatar-sizes, "xxl");
margin: -(map.get($avatar-sizes, "xxl") / 2) auto 0;
margin: -(math.div(map.get($avatar-sizes, "xxl"), 2)) auto 0;
}
}

View File

@ -1,4 +1,5 @@
@use "sass:map";
@use "sass:math";
.userbox {
&__header {
@ -15,7 +16,7 @@
display: block;
width: map.get($avatar-sizes, "lg");
height: map.get($avatar-sizes, "lg");
margin-top: -(map.get($avatar-sizes, "lg") / 2);
margin-top: -(math.div(map.get($avatar-sizes, "lg"), 2));
margin-left: auto;
margin-right: auto;
border-radius: $avatar-border-radius;