]> cat aescling's git repositories - mastodon.git/commitdiff
Fix deprecated slash as division in SASS files (#16347)
authorClaire <claire.github-309c@sitedethib.com>
Tue, 1 Jun 2021 21:47:27 +0000 (23:47 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Jun 2021 21:47:27 +0000 (23:47 +0200)
Fixes #16293

app/javascript/styles/mastodon/widgets.scss

index f76ff18b32c623c280bd6922b16713d39b9c2119..4e03868a68361254499f426ec4ba0b31e3c7692c 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);
@@ -498,10 +500,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) {