]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix deprecated slash as division in SASS files
authorClaire <claire.github-309c@sitedethib.com>
Tue, 1 Jun 2021 21:47:27 +0000 (23:47 +0200)
committerClaire <claire.github-309c@sitedethib.com>
Thu, 3 Jun 2021 19:06:16 +0000 (21:06 +0200)
Port be8079f63783691dd9fdec3f79b744a5bfdb2b0f to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/styles/widgets.scss

index 05bc076ea3e2c004feb1477852eae2540e573218..06bf55e1e58a396834b2b787073f67937a84399e 100644 (file)
@@ -1,3 +1,5 @@
+@use "sass:math";
+
 .hero-widget {
   margin-bottom: 10px;
   box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
@@ -489,10 +491,10 @@ $fluid-breakpoint: $maximum-width + 20px;
   }
 
   &__item {
-    width: (960px - 20px) / 3;
+    width: math.div(960px - 20px, 3);
 
     @media screen and (max-width: $fluid-breakpoint) {
-      width: (940px - 20px) / 3;
+      width: math.div(940px - 20px, 3);
     }
 
     @media screen and (max-width: 640px) {