From e324c166b13f2a8d284436c8f6e5d034b0d978d8 Mon Sep 17 00:00:00 2001 From: Imen Chermiti Date: Wed, 18 Sep 2024 18:42:21 +0200 Subject: [PATCH] feat: upgrade sass version --- src/client/package.json | 2 +- .../shared/LoadSpinner/loadSpinner.scss | 6 +++-- src/client/yarn.lock | 24 ++++++++++++++----- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/client/package.json b/src/client/package.json index 809eebef3..b063719df 100644 --- a/src/client/package.json +++ b/src/client/package.json @@ -53,7 +53,7 @@ "redux-persist": "^6.0.0", "redux-thunk": "^2.2.0", "remark-gfm": "1.0.0", - "sass": "^1.43.3", + "sass": "^1.79.1", "smoothscroll-polyfill": "^0.4.3", "ua-parser-js": "^0.7.21", "zod": "^3.13.4" diff --git a/src/client/src/components/shared/LoadSpinner/loadSpinner.scss b/src/client/src/components/shared/LoadSpinner/loadSpinner.scss index 7ce4306aa..64d9839cf 100644 --- a/src/client/src/components/shared/LoadSpinner/loadSpinner.scss +++ b/src/client/src/components/shared/LoadSpinner/loadSpinner.scss @@ -1,3 +1,5 @@ +@use "sass:math"; + $spinner: #d4e6f1; $size: 5rem; @@ -6,8 +8,8 @@ $size: 5rem; .spinner { position: absolute; - top: calc(50% - #{$size / 2}); - left: calc(50% - #{$size / 2}); + top: calc(50% - #{math.div($size, 2)}); + left: calc(50% - #{math.div($size, 2)}); width: $size; height: $size; animation: spinner 0.75s linear infinite; diff --git a/src/client/yarn.lock b/src/client/yarn.lock index aad82a3f2..d52bad74a 100644 --- a/src/client/yarn.lock +++ b/src/client/yarn.lock @@ -3601,7 +3601,7 @@ check-types@^11.1.1: resolved "https://registry.yarnpkg.com/check-types/-/check-types-11.1.2.tgz#86a7c12bf5539f6324eb0e70ca8896c0e38f3e2f" integrity sha512-tzWzvgePgLORb9/3a0YenggReLKAIb2owL03H2Xdoe5pKcUyWRSEQ8xfCar8t2SIAuEDwtmx2da1YB52YuHQMQ== -"chokidar@>=3.0.0 <4.0.0", chokidar@^3.4.2, chokidar@^3.5.3: +chokidar@^3.4.2, chokidar@^3.5.3: version "3.5.3" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -3616,6 +3616,13 @@ check-types@^11.1.1: optionalDependencies: fsevents "~2.3.2" +chokidar@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-4.0.0.tgz#4d603963e5dd762dc5c7bb1cb5664e53a3002225" + integrity sha512-mxIojEAQcuEvT/lyXq+jf/3cO/KoA6z4CeNDGGevTybECPOMFCnQy3OPahluUkbqgPNGw5Bi78UC7Po6Lhy+NA== + dependencies: + readdirp "^4.0.1" + chrome-trace-event@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac" @@ -9152,6 +9159,11 @@ readable-stream@^3.0.6: string_decoder "^1.1.1" util-deprecate "^1.0.1" +readdirp@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-4.0.1.tgz#b2fe35f8dca63183cd3b86883ecc8f720ea96ae6" + integrity sha512-GkMg9uOTpIWWKbSsgwb5fA4EavTR+SG/PMPoAY8hkhHfEEY0/vqljY+XHqtDf2cr2IJtoNRDbrrEpZUiZCkYRw== + readdirp@~3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" @@ -9521,12 +9533,12 @@ sass-loader@^12.3.0: klona "^2.0.4" neo-async "^2.6.2" -sass@^1.43.3: - version "1.49.11" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.49.11.tgz#1ffeb77faeed8b806a2a1e021d7c9fd3fc322cb7" - integrity sha512-wvS/geXgHUGs6A/4ud5BFIWKO1nKd7wYIGimDk4q4GFkJicILActpv9ueMT4eRGSsp1BdKHuw1WwAHXbhsJELQ== +sass@^1.79.1: + version "1.79.1" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.79.1.tgz#0c572e8f09cc4095c27077567f78dbb9b3dceeb2" + integrity sha512-+mA7svoNKeL0DiJqZGeR/ZGUu8he4I8o3jyUcOFyo4eBJrwNgIMmAEwCMo/N2Y3wdjOBcRzoNxZIOtrtMX8EXg== dependencies: - chokidar ">=3.0.0 <4.0.0" + chokidar "^4.0.0" immutable "^4.0.0" source-map-js ">=0.6.2 <2.0.0"