Skip to content

Commit 145f56b

Browse files
committed
chore(css): Fix div deprecations
1 parent 4d99893 commit 145f56b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

src/lib/components/sk-chasing-dots/sk-chasing-dots.component.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1818
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1919
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2020
*/
21+
@use "sass:math";
2122
@import "../variables";
2223

2324
.sk-chasing-dots {
@@ -44,7 +45,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4445
.sk-dot2 {
4546
top: auto;
4647
bottom: 0;
47-
animation-delay: - $animationDuration/2;
48+
animation-delay: math.div(-$animationDuration, 2);
4849
}
4950
}
5051

src/lib/components/sk-three-bounce/sk-three-bounce.component.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1818
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1919
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2020
*/
21+
@use "sass:math";
2122
@import "../variables";
2223

2324
.sk-three-bounce {
@@ -31,8 +32,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3132
text-align: center;
3233

3334
.sk-child {
34-
width: $spinkit-size / 2;
35-
height: $spinkit-size / 2;
35+
width: math.div($spinkit-size, 2);
36+
height: math.div($spinkit-size, 2);
3637

3738
border-radius: 100%;
3839
display: inline-block;
@@ -43,7 +44,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4344
animation-delay: -$delayRange;
4445
}
4546
.sk-bounce2 {
46-
animation-delay: -$delayRange / 2;
47+
animation-delay: math.div(-$delayRange, 2);
4748
}
4849
}
4950

src/lib/components/sk-wandering-cubes/sk-wandering-cubes.component.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1818
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1919
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2020
*/
21+
@use "sass:math";
2122
@import "../variables";
2223

2324
.sk-wandering-cubes {
@@ -39,7 +40,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3940
}
4041

4142
.sk-cube2 {
42-
animation-delay: -$animationDuration / 2;
43+
animation-delay: math.div(-$animationDuration, 2);
4344
}
4445
}
4546

src/lib/components/sk-wave/sk-wave.component.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1818
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1919
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2020
*/
21+
@use "sass:math";
2122
@import "../variables";
2223

2324
.sk-wave {
@@ -44,7 +45,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4445

4546
@for $i from 1 through $rectCount {
4647
.sk-rect#{$i} {
47-
animation-delay: - $animationDuration + $delayRange / ($rectCount - 1) * ($i - 1);
48+
animation-delay: - $animationDuration + math.div($delayRange, $rectCount - 1) * ($i - 1);
4849
}
4950
}
5051
}

0 commit comments

Comments
 (0)